.customer-reviews {
    --reviews-red: #D71920;
    --reviews-black: #111;
    --reviews-muted: #666;
    --reviews-border: #e5e7eb;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(56px, 8vw, 96px) 24px calc(clamp(56px, 8vw, 96px) + 100px);
    overflow: hidden;
    background: #fff;
    color: var(--reviews-black);
}

.customer-reviews *,
.customer-reviews *::before,
.customer-reviews *::after {
    box-sizing: border-box;
}

.customer-reviews__inner {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
}

.customer-reviews__heading {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
    text-align: center;
}

.customer-reviews__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--reviews-red);
    font: 700 clamp(15px, 1.3vw, 18px)/1.2 Oswald, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-reviews__heading h2 {
    margin: 0;
    color: var(--reviews-black);
    font: 700 clamp(34px, 4.5vw, 54px)/1.05 Oswald, sans-serif;
    text-transform: uppercase;
}

.customer-reviews__accent {
    display: block;
    width: 60px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: var(--reviews-red);
}

.customer-reviews__heading p {
    max-width: 700px;
    margin: 18px 0 0;
    margin-inline: auto;
    color: var(--reviews-muted);
    font: 400 clamp(15px, 1.3vw, 17px)/1.7 Oxygen, sans-serif;
    text-align: center;
}

.customer-reviews__summary {
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 36px;
    margin-inline: auto;
    padding: 10px 24px;
    border: 1px solid var(--reviews-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
    font-family: Oxygen, sans-serif;
}

.customer-reviews__score {
    color: var(--reviews-black);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.customer-reviews__summary-stars,
.customer-review__stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    color: var(--reviews-red);
}

.customer-reviews__summary-stars svg {
    width: 17px;
    height: 17px;
}

.customer-reviews__summary-copy {
    color: #444;
    font-size: 13px;
    white-space: nowrap;
}

.customer-reviews__google {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--reviews-border);
    border-radius: 50%;
    color: #4285F4;
    font: 700 16px/1 Arial, sans-serif;
}

.customer-reviews__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.customer-reviews__viewport::-webkit-scrollbar {
    display: none;
}

.customer-reviews__track {
    display: grid;
    grid-auto-columns: calc((100% - 48px) / 3);
    grid-auto-flow: column;
    align-items: stretch;
    gap: 24px;
    padding: 2px 0 10px;
}

.customer-review {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--reviews-border);
    border-radius: 4px;
    background: #fff;
    scroll-snap-align: start;
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.customer-review::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 0;
    height: 3px;
    background: var(--reviews-red);
    content: "";
    transition: width .25s ease;
}

.customer-review__quote {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 34px;
    height: 34px;
    color: var(--reviews-red);
    opacity: .12;
}

.customer-review__stars {
    margin-bottom: 16px;
}

.customer-review__stars svg {
    width: 16px;
    height: 16px;
}

.customer-review blockquote {
    display: -webkit-box;
    min-height: 6.8em;
    margin: 0 0 20px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    color: #444;
    font: 400 15px/1.7 Oxygen, sans-serif;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.customer-review__divider {
    height: 1px;
    margin-top: auto;
    background: var(--reviews-border);
}

.customer-review__customer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
}

.customer-review__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #fbe9e9;
    color: #9f1117;
    font: 700 14px/1 Oxygen, sans-serif;
}

.customer-review__customer figcaption {
    min-width: 0;
}

.customer-review__name {
    display: block;
    overflow-wrap: anywhere;
    color: var(--reviews-black);
    font: 700 14px/1.4 Oxygen, sans-serif;
}

.customer-review__purchase {
    display: block;
    margin-top: 3px;
    color: var(--reviews-muted);
    font: 400 12px/1.45 Oxygen, sans-serif;
}

.customer-reviews__track:hover .customer-review:not(:hover) {
    opacity: .85;
}

.customer-review:hover {
    z-index: 1;
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

.customer-review:hover::before {
    width: calc(100% + 2px);
}

.customer-reviews__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}

.customer-reviews__arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--reviews-border);
    border-radius: 50%;
    background: #fff;
    color: var(--reviews-black);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.customer-reviews__arrow:hover {
    border-color: var(--reviews-red);
    background: var(--reviews-red);
    color: #fff;
}

.customer-reviews__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.customer-reviews__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.customer-reviews__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9cdd3;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.customer-reviews__dot[aria-current="true"] {
    transform: scale(1.2);
    background: var(--reviews-red);
}

.customer-reviews :focus-visible {
    outline: 3px solid var(--reviews-red);
    outline-offset: 3px;
}

.customer-review.is-entering {
    opacity: 0;
    transform: translateY(18px);
}

.customer-review.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--review-stagger, 0ms);
}

.customer-review.is-visible:hover {
    transform: translateY(-6px);
}

@media (max-width: 900px) {
    .customer-reviews__track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 600px) {
    .customer-reviews {
        padding-right: 20px;
        padding-left: 20px;
    }

    .customer-reviews__heading h2 {
        font-size: clamp(30px, 7.5vw, 38px);
    }

    .customer-reviews__summary {
        gap: 8px;
        margin: 26px auto 28px;
        padding: 9px 14px;
    }

    .customer-reviews__score {
        font-size: 21px;
    }

    .customer-reviews__summary-stars {
        gap: 1px;
    }

    .customer-reviews__summary-stars svg {
        width: 14px;
        height: 14px;
    }

    .customer-reviews__summary-copy {
        font-size: 11px;
    }

    .customer-reviews__google {
        width: 22px;
        height: 22px;
    }

    .customer-reviews__track {
        grid-auto-columns: 87%;
        gap: 16px;
    }

    .customer-review {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-reviews *,
    .customer-reviews *::before,
    .customer-reviews *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .customer-review.is-entering {
        opacity: 1;
        transform: none;
    }
}
