/**
 * Supplier reviews page - Avia Nova.
 */

body.avia-nova-theme .nova-supplier-reviews-page {
    --nova-reviews-primary: #2095AE;
    --nova-reviews-navy: #0F2454;
    --nova-reviews-text: #676977;
    --nova-reviews-line: #E6E8EE;
    background: #F6F8FA;
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-site-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 24px rgba(15, 36, 84, 0.07);
    backdrop-filter: blur(12px);
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-navbar > .container {
    border-bottom-color: transparent;
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-menu .nav-link,
body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-action-btn {
    color: var(--nova-reviews-navy);
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-action-btn {
    background: rgba(15, 36, 84, 0.04);
    border-color: rgba(15, 36, 84, 0.1);
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-action-btn:hover {
    color: #fff;
    background: var(--nova-reviews-primary);
    border-color: var(--nova-reviews-primary);
}

body.avia-nova-theme:has(.nova-supplier-reviews-page) .nova-nav-toggle span {
    background: var(--nova-reviews-navy);
}

.nova-supplier-reviews-page .container {
    max-width: min(1140px, calc(100% - 32px));
}

.nova-supplier-reviews-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 84px;
    background:
        linear-gradient(135deg, rgba(15, 36, 84, 0.98), rgba(15, 36, 84, 0.9)),
        radial-gradient(circle at 82% 16%, rgba(32, 149, 174, 0.48), transparent 34%);
    color: #fff;
}

.nova-supplier-reviews-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.nova-supplier-reviews-breadcrumb,
.nova-supplier-reviews-hero__content {
    position: relative;
    z-index: 1;
}

.nova-supplier-reviews-breadcrumb {
    margin-bottom: 34px;
}

.nova-supplier-reviews-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.nova-supplier-reviews-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.nova-supplier-reviews-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.42);
}

.nova-supplier-reviews-breadcrumb a {
    color: rgba(255, 255, 255, 0.82) !important;
}

.nova-supplier-reviews-hero__content {
    max-width: 790px;
}

.nova-supplier-reviews-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--nova-reviews-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nova-supplier-reviews-hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

body.avia-nova-theme .nova-supplier-reviews-page .nova-supplier-reviews-hero h1 {
    margin: 0;
    color: #fff !important;
    font-family: var(--nova-font-heading);
    font-size: clamp(44px, 6.2vw, 82px);
    font-weight: 700;
    line-height: 0.98;
}

body.avia-nova-theme .nova-supplier-reviews-page .nova-supplier-reviews-hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 18px;
    line-height: 1.75;
}

.nova-supplier-reviews-main {
    padding: 70px 0 96px;
}

.nova-supplier-reviews-panel,
.th-reviews-index-summary,
.th-reviews-index-card,
.th-reviews-index-form-card,
.th-reviews-index-manage-banner {
    border: 1px solid var(--nova-reviews-line);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 36, 84, 0.08);
}

.nova-supplier-reviews-panel {
    padding: 32px;
}

.th-reviews-index-manage-banner,
.th-reviews-index-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px;
}

.th-reviews-index-manage-banner i {
    color: var(--nova-reviews-primary);
    font-size: 22px;
}

.th-reviews-index-manage-banner p {
    flex: 1;
    margin: 0;
    color: var(--nova-reviews-text);
}

.th-reviews-index-manage-banner a,
.th-reviews-index-toggle-btn,
.th-reviews-index-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    background: var(--nova-reviews-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(32, 149, 174, 0.2);
}

.th-reviews-index-manage-banner a:hover,
.th-reviews-index-toggle-btn:hover,
.th-reviews-index-submit:hover {
    background: var(--nova-reviews-navy);
}

.th-reviews-index-summary__score,
.th-reviews-index-summary__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.th-reviews-index-summary__number {
    margin: 0;
    color: var(--nova-reviews-navy);
    font-family: var(--nova-font-heading);
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 700;
    line-height: 1;
}

.th-reviews-index-summary__stars,
.th-reviews-index-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #F5B942;
}

.th-reviews-index-summary__stars i,
.th-reviews-index-card__stars i {
    color: #F5B942;
}

.th-reviews-index-summary__stars .ri-star-s-line,
.th-reviews-index-card__stars .ri-star-s-line {
    color: #D7DCE6;
}

.th-reviews-index-summary__count {
    width: 100%;
    margin: -8px 0 0;
    color: var(--nova-reviews-text);
    font-size: 14px;
}

.th-reviews-index-summary__breakdown {
    min-width: 240px;
}

.th-reviews-index-bar {
    display: grid;
    grid-template-columns: 18px minmax(130px, 1fr) 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 12px;
}

.th-reviews-index-bar__label {
    color: var(--nova-reviews-navy);
    font-weight: 800;
}

.th-reviews-index-bar__track {
    height: 8px;
    overflow: hidden;
    background: #EDF1F6;
}

.th-reviews-index-bar__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #F5B942, #FFCC66);
}

.th-reviews-index-bar__pct {
    color: var(--nova-reviews-text);
    text-align: right;
}

.th-reviews-index-toggle-btn__arrow {
    transition: transform 0.2s ease;
}

.th-reviews-index-toggle-btn__arrow.is-open {
    transform: rotate(180deg);
}

.th-reviews-index-alert,
.th-reviews-index-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 0;
}

.th-reviews-index-note {
    border-left: 4px solid var(--nova-reviews-primary);
    background: rgba(32, 149, 174, 0.08);
}

.th-reviews-index-note i {
    color: var(--nova-reviews-primary);
    font-size: 20px;
}

.th-reviews-index-note p {
    margin: 0;
    color: var(--nova-reviews-text);
}

.th-reviews-index-list {
    display: grid;
    gap: 16px;
}

.th-reviews-index-card {
    padding: 22px;
}

.th-reviews-index-card__head,
.th-reviews-index-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.th-reviews-index-card__author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.th-reviews-index-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: var(--nova-reviews-navy);
    color: #fff;
    font-weight: 800;
}

.th-reviews-index-card__name {
    margin: 0 0 4px;
    color: var(--nova-reviews-navy);
    font-family: var(--nova-font-heading);
    font-size: 20px;
    font-weight: 700;
}

.th-reviews-index-card__score,
.th-reviews-index-card__date {
    color: var(--nova-reviews-text);
    font-size: 13px;
}

.th-reviews-index-card__comment-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--nova-reviews-line);
}

.th-reviews-index-card__comment-wrap.is-collapsed {
    position: relative;
    max-height: 6.6em;
    overflow: hidden;
}

.th-reviews-index-card__comment-wrap.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.8em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
}

.th-reviews-index-card__comment-wrap.is-expanded {
    max-height: none;
    overflow: visible;
}

.th-reviews-index-card__comment-wrap.is-expanded::after {
    display: none;
}

.th-reviews-index-card__comment {
    margin: 0;
    color: var(--nova-reviews-text);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.th-reviews-index-card__more-btn {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nova-reviews-primary);
    font-weight: 800;
}

.th-reviews-index-card__photos,
.service-review-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.th-reviews-index-card__photos-link,
.service-review-card__photos-link {
    display: block;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--nova-reviews-line);
    background: #F8FAFC;
}

.th-reviews-index-card__photos-link img,
.service-review-card__photos-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-reviews-index-card__response,
.service-review-card__response {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 4px solid var(--nova-reviews-primary);
    background: rgba(32, 149, 174, 0.08);
}

body.avia-nova-theme .nova-supplier-reviews-page .th-reviews-index-card__response--supplier,
body.avia-nova-theme .nova-supplier-reviews-page .service-review-card__response--supplier {
    position: relative;
    margin-top: 18px;
    padding: 20px 22px 20px 24px;
    border: 1px solid rgba(32, 149, 174, 0.28);
    border-left: 6px solid var(--nova-reviews-primary);
    background:
        linear-gradient(135deg, rgba(32, 149, 174, 0.16), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 42px rgba(15, 36, 84, 0.12);
}

body.avia-nova-theme .nova-supplier-reviews-page .th-reviews-index-card__response--supplier::before,
body.avia-nova-theme .nova-supplier-reviews-page .service-review-card__response--supplier::before {
    content: "\ec51";
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(32, 149, 174, 0.16);
    font-family: remixicon;
    font-size: 34px;
    line-height: 1;
}

.th-reviews-index-card__response__label,
.service-review-card__response__label {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 8px;
    color: var(--nova-reviews-navy);
    font-weight: 800;
}

body.avia-nova-theme .nova-supplier-reviews-page .th-reviews-index-card__response--supplier .th-reviews-index-card__response__label,
body.avia-nova-theme .nova-supplier-reviews-page .service-review-card__response--supplier .service-review-card__response__label {
    color: var(--nova-reviews-primary);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.th-reviews-index-card__response__text,
.service-review-card__response__text {
    margin: 0;
    color: var(--nova-reviews-text);
    line-height: 1.65;
    white-space: pre-wrap;
}

body.avia-nova-theme .nova-supplier-reviews-page .th-reviews-index-card__response--supplier .th-reviews-index-card__response__text,
body.avia-nova-theme .nova-supplier-reviews-page .service-review-card__response--supplier .service-review-card__response__text {
    position: relative;
    z-index: 1;
    color: var(--nova-reviews-navy);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
}

.th-reviews-index-card__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--nova-reviews-line);
    color: var(--nova-reviews-text);
    font-size: 14px;
}

.th-reviews-index-card__footer-main,
.th-reviews-index-card__reply {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.th-reviews-index-card__footer a {
    color: var(--nova-reviews-primary);
    font-weight: 800;
}

.th-reviews-index-card__supplier-action {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: 430px;
}

.th-reviews-index-card__supplier-action span {
    color: var(--nova-reviews-text);
    font-size: 13px;
}

.th-reviews-index-card__reply {
    min-height: 42px;
    padding: 0 16px;
    background: var(--nova-reviews-primary);
    color: #fff !important;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.th-reviews-index-card__reply:hover {
    background: var(--nova-reviews-navy);
    color: #fff !important;
}

.th-reviews-index-empty {
    padding: 46px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--nova-reviews-line);
}

.th-reviews-index-empty i {
    color: var(--nova-reviews-primary);
    font-size: 42px;
}

.th-reviews-index-empty p {
    margin: 10px 0 0;
    color: var(--nova-reviews-text);
}

.th-reviews-index-pagination {
    margin-top: 28px;
}

.th-reviews-index-form-panel {
    margin-top: 34px;
}

.th-reviews-index-form-card {
    padding: 30px;
}

.th-reviews-index-form-title {
    margin: 0 0 8px;
    color: var(--nova-reviews-navy);
    font-family: var(--nova-font-heading);
    font-size: 30px;
    font-weight: 700;
}

.th-reviews-index-form-intro {
    margin: 0 0 24px;
    color: var(--nova-reviews-text);
}

.th-reviews-index-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.th-reviews-index-form-field--full {
    grid-column: 1 / -1;
}

.th-reviews-index-form-label,
.review-images-upload__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--nova-reviews-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.th-reviews-index-input,
.th-reviews-index-select,
.th-reviews-index-textarea,
.th-reviews-captcha__input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--nova-reviews-line);
    border-radius: 0;
    background: #F8FAFC;
    color: var(--nova-reviews-text);
    padding: 12px 14px;
    box-shadow: none;
}

.th-reviews-index-textarea {
    min-height: 150px;
    resize: vertical;
}

.th-reviews-index-input:focus,
.th-reviews-index-select:focus,
.th-reviews-index-textarea:focus,
.th-reviews-captcha__input:focus {
    outline: none;
    border-color: var(--nova-reviews-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32, 149, 174, 0.12);
}

.th-reviews-index-stars {
    display: inline-flex;
    flex-direction: row;
    gap: 4px;
}

.th-reviews-index-star {
    display: inline-flex;
    position: relative;
    margin: 0;
}

.th-reviews-index-star input {
    position: absolute;
    opacity: 0;
}

.th-reviews-index-star i {
    color: #D7DCE6;
    font-size: 30px;
    cursor: pointer;
}

.th-reviews-index-star.is-active i,
.th-reviews-index-star.is-hovered i,
.th-reviews-index-star:focus-within i {
    color: #F5B942;
}

.th-reviews-index-stars-hint,
.th-reviews-index-form-hint {
    margin: 8px 0 0;
    color: var(--nova-reviews-text);
    font-size: 13px;
}

.th-reviews-index-form-error {
    margin: 7px 0 0;
    color: #DC3545;
    font-size: 13px;
}

body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__zone {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    min-height: 54px;
    padding: 8px !important;
    border: 1px solid var(--nova-reviews-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.th-reviews-captcha {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(130px, 170px) 52px;
    align-items: stretch;
    gap: 10px;
}

body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__btn,
.th-reviews-captcha__refresh,
.th-reviews-captcha__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--nova-reviews-line);
    background: #fff;
    color: var(--nova-reviews-navy);
    cursor: pointer;
}

body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: var(--nova-reviews-primary) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
}

body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__names {
    flex: 1 1 auto;
    min-width: 120px;
    color: var(--nova-reviews-text);
    font-size: 14px;
    line-height: 1.45;
}

.th-reviews-captcha__image img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.th-reviews-captcha__input {
    max-width: none;
    min-width: 0;
}

.th-reviews-captcha__refresh {
    width: 52px;
    padding: 0;
}

.th-reviews-captcha__refresh i {
    font-size: 20px;
    line-height: 1;
}

.th-reviews-index-form-actions {
    margin-top: 24px;
}

@media (max-width: 991.98px) {
    .nova-supplier-reviews-hero {
        padding: 124px 0 58px;
    }

    .nova-supplier-reviews-main {
        padding: 42px 0 64px;
    }
}

@media (max-width: 767.98px) {
    .nova-supplier-reviews-panel,
    .th-reviews-index-form-card {
        padding: 20px;
    }

    .th-reviews-index-form-grid {
        grid-template-columns: 1fr;
    }

    .th-reviews-captcha {
        grid-template-columns: 1fr 52px;
    }

    .th-reviews-captcha__image {
        grid-column: 1 / -1;
    }

    .th-reviews-captcha__image img {
        width: 100%;
        height: auto;
        max-height: 64px;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__zone {
        align-items: stretch !important;
        flex-direction: column;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__btn,
    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__names {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .nova-supplier-reviews-page .container {
        max-width: calc(100% - 16px);
    }

    .nova-supplier-reviews-hero {
        padding: 112px 0 46px;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .nova-supplier-reviews-hero h1 {
        font-size: 42px;
    }

    .th-reviews-index-summary,
    .th-reviews-index-card {
        padding: 18px;
    }

    .nova-supplier-reviews-panel {
        padding: 12px;
        box-shadow: 0 12px 32px rgba(15, 36, 84, 0.08);
    }

    .th-reviews-index-form-card {
        padding: 18px;
        box-shadow: none;
    }

    .th-reviews-index-form-grid {
        gap: 16px;
    }

    .th-reviews-index-form-label,
    .review-images-upload__label {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.25;
    }

    .th-reviews-index-input,
    .th-reviews-index-select,
    .th-reviews-index-textarea,
    .th-reviews-captcha__input {
        min-height: 54px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .th-reviews-index-textarea {
        min-height: 132px;
    }

    .th-reviews-index-toggle-btn,
    .th-reviews-index-submit {
        width: 100%;
        min-height: 56px;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload {
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__zone {
        display: flex !important;
        gap: 10px;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__btn {
        width: 100%;
        min-height: 48px;
        padding: 0 20px;
        font-size: 13px;
        letter-spacing: 0.05em;
    }

    body.avia-nova-theme .nova-supplier-reviews-page .review-images-upload__names {
        display: block;
        padding: 0;
        color: #7A7D89;
        font-size: 14px;
        line-height: 1.45;
        word-break: break-word;
    }

    .th-reviews-index-form-hint {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.55;
    }

    .th-reviews-captcha {
        grid-template-columns: minmax(0, 1fr) 56px;
        gap: 10px;
    }

    .th-reviews-captcha__image {
        grid-column: 1 / -1;
        min-height: 0;
        padding: 8px;
        overflow: hidden;
        border-color: var(--nova-reviews-line);
        background: #fff;
    }

    .th-reviews-captcha__image img {
        display: block;
        width: auto;
        max-width: 100%;
        height: 54px;
        max-height: 54px;
        margin: 0 auto;
        object-fit: contain;
    }

    .th-reviews-captcha__refresh {
        width: 56px;
        min-height: 54px;
        padding: 0;
    }

    .th-reviews-index-form-actions {
        margin-top: 18px;
    }
}
