.search-feedback {
    --search-feedback-accent: #5f35ff;
    --search-feedback-accent-soft: #ede9ff;
    margin: 18px 0;
}

.search-feedback[data-theme="lavka"] {
    --search-feedback-accent: #00a6b8;
    --search-feedback-accent-soft: #e7f8fb;
}

.search-feedback[data-theme="ritmonexx"] {
    --search-feedback-accent: #ff0050;
    --search-feedback-accent-soft: #fff0f5;
}

.search-feedback[data-theme="modimio"] {
    --search-feedback-accent: #5bb34e;
    --search-feedback-accent-soft: #eef8ec;
}

.search-feedback__panel {
    align-items: center;
    background: #f4f3f9;
    border-radius: 14px;
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 14px 18px;
}

.search-feedback__question {
    color: #07163d;
    font-size: 16px;
    font-weight: 700;
}

.search-feedback__actions {
    display: flex;
    gap: 8px;
}

.search-feedback__button {
    align-items: center;
    background: var(--search-feedback-accent-soft);
    border: 0;
    border-radius: 10px;
    color: var(--search-feedback-accent);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
    min-height: 38px;
    padding: 8px 16px;
}

.search-feedback__icon {
    fill: none;
    flex: 0 0 auto;
    height: 30px;
    margin: -5px 0;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 30px;
}

.search-feedback__button:hover {
    filter: brightness(0.98);
}

.search-feedback__thanks {
    color: #59606f;
    display: none;
    font-size: 15px;
    font-weight: 600;
}

.search-feedback--sent .search-feedback__actions,
.search-feedback--sent .search-feedback__question {
    display: none;
}

.search-feedback--sent .search-feedback__thanks {
    display: block;
}

.search-feedback__overlay {
    align-items: center;
    background: rgba(0, 0, 0, .35);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 10000;
}

.search-feedback__overlay.is-open {
    display: flex;
}

.search-feedback__modal {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    max-width: 590px;
    padding: 34px 44px 44px;
    position: relative;
    width: 100%;
}

.search-feedback__close {
    align-items: center;
    background: #eff1f7;
    border: 0;
    border-radius: 50%;
    color: #7c8496;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
}

.search-feedback__title {
    color: #07163d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.search-feedback__form {
    display: grid;
    gap: 16px;
}

.search-feedback__field {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.search-feedback__label {
    color: #07163d;
    font-size: 15px;
    font-weight: 700;
}

.search-feedback__input,
.search-feedback__textarea {
    background: #f7f6fb;
    border: 1px solid #e2e3ee;
    border-radius: 12px;
    color: #07163d;
    font-size: 15px;
    padding: 13px 14px;
    width: 100%;
}

.search-feedback__input:focus,
.search-feedback__textarea:focus {
    border-color: var(--search-feedback-accent);
}

.search-feedback__radio {
    align-items: center;
    color: #07163d;
    display: inline-flex;
    font-size: 15px;
    gap: 8px;
    margin-right: 20px;
}

.search-feedback__textarea {
    min-height: 56px;
    resize: vertical;
}

.search-feedback__submit {
    background: var(--search-feedback-accent);
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    min-height: 52px;
    width: 100%;
}

.search-feedback__submit:disabled {
    background: #f0eff7;
    color: #9a9aa5;
    cursor: default;
}

.search-feedback__error {
    color: #d23a3a;
    display: none;
    font-size: 13px;
    margin-top: 10px;
}

.search-feedback__error.is-open {
    display: block;
}

@media (max-width: 767px) {
    .search-feedback {
        margin: 32px 0;
    }

    .search-feedback__panel {
        align-items: stretch;
        flex-direction: column;
    }

    .search-feedback__question {
        text-align: center;
    }

    .search-feedback__actions {
        justify-content: center;
    }

    .search-feedback__modal {
        border-radius: 18px;
        padding: 28px 18px 24px;
    }

    .search-feedback__title {
        font-size: 24px;
    }
}
