/* Service feedback is a side helper, not part of the working result area.
   The main result block keeps its original width; the feedback card is placed
   outside it on wide screens and falls under it on smaller screens. */
.service-feedback-result-layout {
    position: relative;
    display: block;
    width: min(100%, var(--content-width, 880px));
    margin-left: auto;
    margin-right: auto;
}

.service-feedback-result-layout > .wb-results,
.service-feedback-result-layout > .fb-panel {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.service-feedback-slot {
    display: block;
}

.service-feedback-slot:empty {
    display: none;
}

.service-feedback-card {
    position: relative;
    width: 100%;
    border: 1px solid rgba(155, 92, 255, .28);
    border-radius: 18px;
    padding: 18px;
    color: #1f1633;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 50px rgba(124, 58, 237, .16), inset 0 1px 0 rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.service-feedback-card--compact {
    padding: 16px;
}

.service-feedback-card__title {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 0;
    color: #201238;
}

.service-feedback-card__subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(32, 18, 56, .72);
}

.service-feedback-card__stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.service-feedback-card__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    color: rgba(109, 40, 217, .58);
    background: transparent;
    font-size: 22px;
    line-height: 1;
    transition: color .14s ease, background .14s ease, transform .14s ease;
}

.service-feedback-card__star:hover,
.service-feedback-card__star.is-active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, .12);
}

.service-feedback-card__star:hover {
    transform: translateY(-1px);
}

.service-feedback-card__label {
    display: block;
    margin: 0 0 8px;
    font-size: 12.5px;
    font-weight: 750;
    color: rgba(32, 18, 56, .82);
}

.service-feedback-card__textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 1px solid rgba(124, 58, 237, .22);
    border-radius: 13px;
    padding: 12px;
    outline: none;
    color: #211434;
    background: rgba(255, 255, 255, .66);
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.service-feedback-card__textarea:focus {
    border-color: rgba(124, 58, 237, .58);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.service-feedback-card__textarea::placeholder {
    color: rgba(67, 56, 87, .58);
}

.service-feedback-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 12px 26px rgba(109, 40, 217, .25);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

.service-feedback-card__submit:disabled {
    cursor: default;
    opacity: .72;
}

.service-feedback-card__message {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(32, 18, 56, .76);
}

.service-feedback-card__message--error {
    color: #b91c1c;
}

.service-feedback-card__thanks {
    display: flex;
    align-items: center;
    min-height: 90px;
    margin: 0;
    color: #201238;
    font-size: 15px;
    font-weight: 850;
}

@media (min-width: 1500px) {
    .service-feedback-result-layout > .service-feedback-slot:not(:empty) {
        position: absolute;
        z-index: 8;
        top: 38px;
        left: calc(100% + 24px);
        width: 286px;
    }

    .service-feedback-result-layout > .service-feedback-slot:not(:empty) .service-feedback-card {
        position: sticky;
        top: 92px;
    }
}

@media (max-width: 1499.98px) {
    .service-feedback-result-layout > .service-feedback-slot:not(:empty) {
        width: min(100%, 420px);
        margin: 14px 0 28px;
    }
}

@media (max-width: 640px) {
    .service-feedback-result-layout > .service-feedback-slot:not(:empty) {
        width: 100%;
    }

    .service-feedback-card {
        max-width: none;
        border-radius: 16px;
        padding: 16px;
    }
}

/* Уведомление о вставленной ссылке Ozon. Использует тот же стиль карточки
   (.service-feedback-card), чтобы совпадать с текущим дизайном страниц. */
.ozon-support-slot {
    display: block;
    width: min(100%, var(--content-width, 880px));
    margin: 14px auto 0;
}

.ozon-support-slot:empty {
    display: none;
}

.ozon-support-card__text {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
    color: #201238;
}

.ozon-support-card__text--muted {
    margin-bottom: 14px;
    font-weight: 600;
    color: rgba(32, 18, 56, .72);
}

.ozon-support-card__action {
    display: block;
}

.ozon-support-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 12px 26px rgba(109, 40, 217, .25);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.ozon-support-card__button:disabled {
    cursor: default;
    opacity: .72;
}

.ozon-support-card__message {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(32, 18, 56, .76);
}

.ozon-support-card__message--error {
    color: #b91c1c;
}

.ozon-support-card__thanks {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
    color: #201238;
}

@media (max-width: 640px) {
    .ozon-support-slot {
        width: 100%;
    }

    .ozon-support-card__button {
        width: 100%;
    }
}
