/* /customer-reviews (WI 5232). Own file, loaded from the page's PageCSS section — not bundled, so it does
   not depend on the VS Bundler pipeline. Type comes from the --txt-* scale in global.css. */

.cr-page {
    padding: 32px 0 72px;
    color: #3d3d3d;
    font-size: var(--txt-sm);
    line-height: 1.6;
}

.cr-section-title {
    margin: 0 0 20px;
    font-size: var(--txt-2xl);
    line-height: 1.25;
    color: #2b2b2b;
}

/* ---- hero ---- */

.cr-hero {
    padding: 0 0 36px;
    border-bottom: 1px solid #ece4d9;
    margin-bottom: 40px;
}

.cr-hero__title {
    margin: 0 0 12px;
    font-size: var(--txt-4xl);
    line-height: 1.15;
    color: #2b2b2b;
}

.cr-hero__lede {
    max-width: 62ch;
    margin: 0 0 20px;
    font-size: var(--txt-md);
}

.cr-hero__lede strong {
    color: #2b2b2b;
}

/* ---- distribution ---- */

.cr-distribution {
    margin-bottom: 48px;
}

.cr-distribution__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    max-width: 620px;
}

.cr-distribution__link {
    display: grid;
    grid-template-columns: 5.5rem 1fr 9rem;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.cr-distribution__link:hover,
.cr-distribution__link:focus-visible {
    background: #fbf7f2;
    color: inherit;
}

.cr-distribution__row--active .cr-distribution__link {
    background: #fdeef4;
    box-shadow: inset 0 0 0 1px #f3b7cd;
}

.cr-distribution__stars {
    font-size: var(--txt-sm);
    white-space: nowrap;
}

.cr-distribution__bar {
    display: block;
    height: 12px;
    background: #f0e9df;
    border-radius: 999px;
    overflow: hidden;
}

.cr-distribution__fill {
    display: block;
    height: 100%;
    min-width: 2px;
    background: #e8a33d;
    border-radius: 999px;
}

.cr-distribution__count {
    font-size: var(--txt-xs);
    color: #6b6b6b;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cr-distribution__note {
    max-width: 62ch;
    margin: 0;
    font-size: var(--txt-xs);
    color: #6b6b6b;
}

/* ---- how we collect ---- */

.cr-how {
    margin-bottom: 48px;
    padding: 28px;
    background: #fbf7f2;
    border-radius: 12px;
}

.cr-how__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.cr-how__item h3 {
    margin: 0 0 8px;
    font-size: var(--txt-md);
    color: #2b2b2b;
}

.cr-how__item p {
    margin: 0;
    font-size: var(--txt-sm);
}

/* ---- controls ---- */

.cr-list__head {
    margin-bottom: 24px;
}

.cr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cr-controls__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cr-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e3ddd4;
    border-radius: 999px;
    color: #3d3d3d;
    font-size: var(--txt-xs);
    text-decoration: none;
}

.cr-chip:hover,
.cr-chip:focus-visible {
    border-color: #c9bfb2;
    color: #3d3d3d;
}

.cr-chip--on {
    background: #d93d88;
    border-color: #c2255c;
    color: #fff;
}

.cr-chip--on:hover,
.cr-chip--on:focus-visible {
    color: #fff;
}

.cr-chip--clear {
    border-style: dashed;
}

/* ---- review cards ---- */

.cr-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.cr-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #ece4d9;
    border-radius: 12px;
}

.cr-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.cr-card__stars {
    letter-spacing: 2px;
    font-size: var(--txt-md);
    color: #ddd4c8;
}

.cr-star--on {
    color: #e8a33d;
}

.cr-card__meta {
    display: flex;
    gap: 10px;
    font-size: var(--txt-xs);
    color: #6b6b6b;
}

.cr-card__author {
    color: #3d3d3d;
    font-weight: 600;
}

.cr-card__product {
    margin: 0 0 10px;
    font-size: var(--txt-xs);
}

.cr-card__product a {
    color: #c2255c;
}

.cr-card__title {
    margin: 0 0 8px;
    font-size: var(--txt-md);
    color: #2b2b2b;
}

.cr-card__body {
    margin: 0;
    max-width: 78ch;
    white-space: pre-line;
}

.cr-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.cr-card__tags li {
    padding: 4px 12px;
    background: #f4faf6;
    border: 1px solid #cde9d7;
    border-radius: 999px;
    font-size: var(--txt-xs);
    color: #1b5e20;
}

.cr-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.cr-card__photos img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.cr-card__reply {
    margin-top: 18px;
    padding: 16px 18px;
    background: #fbf7f2;
    border-left: 3px solid #d93d88;
    border-radius: 0 8px 8px 0;
}

.cr-card__reply-label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--txt-xs);
    font-weight: 700;
    color: #c2255c;
}

.cr-card__reply p {
    margin: 0;
    font-size: var(--txt-sm);
}

/* ---- pager ---- */

.cr-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 36px 0 0;
}

.cr-pager__step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    background: #fff;
    border: 1px solid #e3ddd4;
    border-radius: 999px;
    color: #3d3d3d;
    font-size: var(--txt-sm);
    text-decoration: none;
}

.cr-pager__step:hover,
.cr-pager__step:focus-visible {
    border-color: #c9bfb2;
    color: #3d3d3d;
}

.cr-pager__status {
    font-size: var(--txt-xs);
    color: #6b6b6b;
}

.cr-empty {
    padding: 40px 0;
    font-size: var(--txt-md);
}

/* ---- product cross-links ---- */

.cr-products {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #ece4d9;
}

.cr-products__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.cr-products__item a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 56px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ece4d9;
    border-radius: 10px;
    color: #3d3d3d;
    text-decoration: none;
}

.cr-products__item a:hover,
.cr-products__item a:focus-visible {
    border-color: #c9bfb2;
    color: #3d3d3d;
}

.cr-products__name {
    font-size: var(--txt-sm);
    color: #2b2b2b;
}

.cr-products__stat {
    font-size: var(--txt-xs);
    color: #6b6b6b;
}

/* ---- call to action ---- */

.cr-cta {
    margin-top: 56px;
    padding: 32px;
    background: #fbf7f2;
    border-radius: 12px;
}

.cr-cta p {
    margin: 0;
    font-size: var(--txt-md);
}

.cr-cta__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 8px;
    padding: 10px 24px;
    background: #d93d88;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

.cr-cta__link:hover,
.cr-cta__link:focus-visible {
    background: #c2255c;
    color: #fff;
}

@media (max-width: 767px) {
    .cr-page {
        padding: 20px 0 48px;
    }

    .cr-hero__title {
        font-size: var(--txt-3xl);
    }

    .cr-section-title {
        font-size: var(--txt-xl);
    }

    .cr-distribution__link {
        grid-template-columns: 4.5rem 1fr;
        grid-template-areas: "stars bar" "count count";
        row-gap: 2px;
    }

    .cr-distribution__stars {
        grid-area: stars;
    }

    .cr-distribution__bar {
        grid-area: bar;
    }

    .cr-distribution__count {
        grid-area: count;
        text-align: left;
    }

    .cr-how {
        padding: 20px;
    }

    .cr-card {
        padding: 18px;
    }

    .cr-cta {
        padding: 22px;
    }

    .cr-cta__link {
        margin: 12px 0 0;
    }
}
