.rossypi_comment_form {
    margin-top: 32px;
    margin-bottom: 36px;
}

.rossypi-comment-composer {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 22px;
    border: 1px solid rgba(58, 139, 149, 0.3);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(58, 139, 149, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rossypi-comment-composer.is-expanded,
.rossypi-comment-composer:focus-within {
    border-color: #3A8B95;
    box-shadow: 0 20px 42px rgba(58, 139, 149, 0.14);
}

.rossypi-comment-composer__author,
.rossypi-comment-composer__input,
.rossypi-comment-composer__placeholder {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: inherit;
    line-height: 1.6;
}

.rossypi-comment-composer__author {
    min-height: 28px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    color: #2f2f2f;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.rossypi-comment-composer__author[readonly] {
    cursor: default;
    opacity: 0.9;
}

.rossypi-comment-composer__author:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.rossypi-comment-composer__field-error {
    display: none;
    color: #b84b3b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.rossypi-comment-composer__field-error:not(:empty) {
    display: block;
    margin-top: 8px;
}

.rossypi-comment-composer__divider {
    display: block;
    width: 128px;
    height: 1px;
    margin: 6px 0;
    background: linear-gradient(
        90deg,
        rgba(58, 139, 149, 0.18) 0%,
        rgba(58, 139, 149, 0.75) 50%,
        rgba(58, 139, 149, 0.18) 100%
    );
    user-select: none;
}

.rossypi-comment-composer__author.is-invalid,
.rossypi-comment-composer__input.is-invalid {
    background: rgba(184, 75, 59, 0.05);
    box-shadow: inset 0 -2px 0 rgba(184, 75, 59, 0.8) !important;
}

.rossypi-comment-composer__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rossypi-comment-composer__input,
.rossypi-comment-composer__placeholder {
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f2f2f;
}

.rossypi-comment-composer__input {
    height: 28px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    resize: none;
    overflow: hidden;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.rossypi-comment-composer__input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.rossypi-comment-composer__author::placeholder,
.rossypi-comment-composer__input::placeholder,
.rossypi-comment-composer__placeholder {
    color: rgba(47, 47, 47, 0.5);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.rossypi-comment-composer__actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.rossypi-comment-composer.is-expanded .rossypi-comment-composer__actions {
    display: flex;
}

.rossypi-comment-composer__cancel,
.rossypi-comment-composer__submit {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rossypi-comment-composer__cancel {
    background: rgba(0, 0, 0, 0.06);
    color: #444;
}

.rossypi-comment-composer__cancel:hover,
.rossypi-comment-composer__cancel:focus {
    background: rgba(0, 0, 0, 0.12);
}

.rossypi-comment-composer__submit {
    background: #3A8B95;
    color: #ffffff;
}

.rossypi-comment-composer__submit:hover,
.rossypi-comment-composer__submit:focus {
    background: #2f7179;
    color: #ffffff;
}

.rossypi-comment-composer__submit[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media only screen and (max-width: 575px) {
    .rossypi_comment_form {
        margin-top: 24px;
        margin-bottom: 30px;
    }
    .rossypi-comment-composer {
        padding: 16px 18px;
        border-radius: 20px;
    }
    .rossypi-comment-composer__author {
        min-height: 26px;
    }
    .rossypi-comment-composer__actions {
        gap: 10px;
    }
    .rossypi-comment-composer__cancel,
    .rossypi-comment-composer__submit {
        padding: 0.7rem 1.05rem;
    }
}
