/* Reviews hero aligned with the Discounts page reference. */
html body .kh-info-page--reviews > .kh-reviews-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 405.25px;
    min-height: 0;
    padding: 0 !important;
    border: 2px solid #dbe7f8 !important;
    border-radius: 18px !important;
    background: #f7f9fd !important;
    box-shadow: 0 22px 60px rgba(33, 54, 96, .08) !important;
}

html body .kh-info-page--reviews .kh-reviews-hero__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

html body .kh-info-page--reviews .kh-reviews-hero__shade {
    display: none;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-hero__content {
    position: relative;
    z-index: 2;
    width: 590px !important;
    max-width: 590px !important;
    padding: 34px 44px !important;
    color: #071b40;
    font-family: "Inter", sans-serif;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-eyebrow {
    min-height: 25px;
    padding: 0 10px;
    border: 2px solid #dbe5f7;
    border-radius: 999px;
    background: #f3f6fb;
    color: #122a59;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    transform: translate(-10px, -16px);
}

html body .kh-info-page--reviews .kh-reviews-hero h1 {
    width: 100%;
    max-width: 590px;
    margin: 17px 0 0 !important;
    color: #081b4e;
    font-family: "Inter", sans-serif;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
}

html body .kh-info-page--reviews .kh-reviews-hero p {
    width: 100%;
    max-width: 520px;
    margin: 16px 0 0 !important;
    color: #617294;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px !important;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn {
    min-height: 44px;
    padding: 0 21px;
    border-radius: 11px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn--primary {
    border: 0;
    background: linear-gradient(100deg, #6959ff 0%, #2dbdf1 100%);
    color: #fff !important;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn--ghost {
    border: 2px solid #ceddf0;
    background: rgba(255, 255, 255, .92);
    color: #081b4e !important;
}

html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn:focus-visible {
    outline: 3px solid rgba(54, 121, 255, .28);
    outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    html body .kh-info-page--reviews > .kh-reviews-hero {
        height: auto;
        aspect-ratio: 2400 / 826;
    }

    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-hero__content {
        width: 55% !important;
        max-width: none !important;
        padding: 24px 38px !important;
    }

    html body .kh-info-page--reviews .kh-reviews-hero p,
    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-actions {
        display: none;
    }

    html body .kh-info-page--reviews .kh-reviews-hero h1 {
        margin-bottom: 0 !important;
        font-size: 36px !important;
    }
}

@media (max-width: 767px) {
    html body .kh-info-page--reviews > .kh-reviews-hero {
        height: auto;
        min-height: 390px;
        aspect-ratio: auto;
        border-radius: 17px !important;
    }

    html body .kh-info-page--reviews .kh-reviews-hero__image {
        object-position: 70% center;
    }

    html body .kh-info-page--reviews .kh-reviews-hero__shade {
        position: absolute;
        z-index: 1;
        display: block;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(249, 252, 255, .76) 56%, rgba(244, 249, 255, .26) 100%);
        pointer-events: none;
    }

    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-hero__content {
        width: 100% !important;
        max-width: none !important;
        padding: 22px 14px 16px !important;
    }

    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-eyebrow {
        transform: none;
    }

    html body .kh-info-page--reviews .kh-reviews-hero h1 {
        margin: 15px 0 0 !important;
        font-size: 29px !important;
        line-height: 1.08;
    }

    html body .kh-info-page--reviews .kh-reviews-hero p {
        max-width: 520px;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.5;
    }

    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-actions {
        margin-top: 16px !important;
    }
}

@media (max-width: 420px) {
    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn {
        width: 100%;
    }
}

/* Horizontal review rows based on the supplied reference. */
html body .kh-info-page--reviews .kh-reviews-main {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .kh-info-page--reviews .kh-reviews-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
}

html body .kh-info-page--reviews .kh-review-card {
    width: 100%;
    min-height: 164px !important;
    display: grid !important;
    /* Stage 330: date gets its own row, not a full-height empty column. */
    grid-template-columns: 148px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas:
        "identity meta"
        "identity excerpt"
        "identity product"
        "identity more"
        "identity reply";
    align-items: start;
    align-content: start;
    gap: 8px 18px;
    padding: 18px !important;
    border-radius: 16px !important;
}

html body .kh-info-page--reviews .kh-review-card.kh-review-card--hidden {
    display: none !important;
}

html body .kh-info-page--reviews .kh-review-card__top {
    grid-area: identity;
    align-self: stretch;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "name"
        "stars"
        "label";
    align-content: start;
    align-items: flex-start !important;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid var(--kh-review-line-soft, #edf1f5);
}

html body .kh-info-page--reviews .kh-review-card__top > div {
    display: contents;
    min-width: 0;
}

html body .kh-info-page--reviews .kh-review-card__top h3 {
    grid-area: name;
    overflow-wrap: anywhere;
}

html body .kh-info-page--reviews .kh-review-card__top span {
    grid-area: label;
}

html body .kh-info-page--reviews .kh-review-card__top strong {
    grid-area: stars;
    letter-spacing: 1px;
}

html body .kh-info-page--reviews .kh-review-card__excerpt {
    grid-area: excerpt;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

html body .kh-info-page--reviews .kh-review-card__excerpt > p {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

html body .kh-info-page--reviews .kh-review-card__product {
    grid-area: product;
    align-self: start;
    min-width: 0;
    margin-top: 4px !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid var(--kh-review-line-soft, #edf1f5) !important;
    border-bottom: 0 !important;
}

html body .kh-info-page--reviews .kh-review-card > time {
    grid-area: meta;
    justify-self: end;
    align-self: start;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

html body .kh-info-page--reviews .kh-review-card > .kh-review-reply {
    grid-area: reply;
    align-self: stretch;
    min-width: 0;
    min-height: 64px;
    display: grid !important;
    grid-template-columns: 38px max-content minmax(0, 1fr);
    grid-template-areas: "mark reply-title reply-text";
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #e2ddff !important;
    border-left: 3px solid var(--kh-review-blue, #3679ff) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #faf9ff 0%, #f5f4ff 100%) !important;
}

html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__mark {
    grid-area: mark;
    margin: 0;
}

html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content {
    display: contents;
}

html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content strong {
    grid-area: reply-title;
    margin: 0 !important;
    white-space: nowrap;
}

html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content p {
    grid-area: reply-text;
    min-width: 0;
    margin: 0 !important;
}

html body .kh-info-page--reviews .kh-review-card__read-more {
    grid-area: more;
    justify-self: start;
    width: auto;
    min-height: 44px !important;
    margin-top: 0 !important;
}

@media (max-width: 900px) and (min-width: 768px) {
    html body .kh-info-page--reviews .kh-review-card {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 8px 14px;
    }

    html body .kh-info-page--reviews .kh-review-card__top {
        padding-right: 12px;
    }
}

@media (max-width: 767px) {
    html body .kh-info-page--reviews .kh-review-card {
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 20px !important;
    }

    html body .kh-info-page--reviews .kh-review-card.kh-review-card--hidden {
        display: none !important;
    }

    html body .kh-info-page--reviews .kh-review-card__top {
        width: 100%;
        align-self: auto;
        display: flex !important;
        flex-direction: row;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 14px;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--kh-review-line-soft, #edf1f5);
    }

    html body .kh-info-page--reviews .kh-review-card__top > div {
        display: block;
    }

    html body .kh-info-page--reviews .kh-review-card__top strong {
        flex: 0 0 auto;
    }

    html body .kh-info-page--reviews .kh-review-card__excerpt {
        width: 100%;
        margin-top: 14px;
    }

    html body .kh-info-page--reviews .kh-review-card__product {
        width: 100%;
        margin-top: 14px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--kh-review-line-soft, #edf1f5) !important;
    }

    html body .kh-info-page--reviews .kh-review-card > time {
        align-self: flex-start;
        margin-top: 10px;
        padding-top: 0 !important;
    }

    html body .kh-info-page--reviews .kh-review-card > .kh-review-reply {
        width: 100%;
        align-self: auto;
        min-height: 0;
        display: flex !important;
        gap: 12px;
        margin-top: 12px !important;
    }

    html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content {
        display: block;
    }

    html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content strong {
        white-space: normal;
    }

    html body .kh-info-page--reviews .kh-review-card > .kh-review-reply .kh-review-reply__content p {
        margin-top: 3px !important;
    }

    html body .kh-info-page--reviews .kh-review-card__read-more {
        align-self: flex-start;
        margin-top: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .kh-info-page--reviews .kh-reviews-hero .kh-info-btn {
        transition: none;
    }
}
html body .kh-info-page--reviews .kh-reviews-more {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    width: 100%;
    margin-top: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .kh-info-page--reviews .kh-reviews-more .kh-info-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 220px;
}

/* Stage 324: keep the reviews content inside tablet and phone viewports. */
@media (max-width: 1100px) {
    html body .kh-info-page--reviews .kh-reviews-layout {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body .kh-info-page--reviews .kh-reviews-main,
    html body .kh-info-page--reviews .kh-reviews-grid,
    html body .kh-info-page--reviews .kh-review-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    html body .kh-info-page--reviews .kh-reviews-layout,
    html body .kh-info-page--reviews .kh-reviews-main,
    html body .kh-info-page--reviews .kh-reviews-grid {
        overflow: visible;
    }

    /* Stage 331: retain page gutters without the nested 26px panel gutters. */
    html body .kh-info-page--reviews .kh-reviews-main {
        padding-left: 0;
        padding-right: 0;
    }

    html body .kh-info-page--reviews .kh-review-card__top,
    html body .kh-info-page--reviews .kh-review-card__excerpt,
    html body .kh-info-page--reviews .kh-review-card__product,
    html body .kh-info-page--reviews .kh-review-card > .kh-review-reply {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}
