.customer-reviews {
    scroll-margin-top: 4rem;
    font-family: Montserrat, Arial, sans-serif;
    padding-block: clamp(1.8rem, 3vw, 3rem);
    border-top: 1px solid #cfdfdb;
    background: #eff7f5;
    color: #152925;
}
.customer-reviews__inner { width: min(86%, 78rem); margin-inline: auto; }
.customer-reviews + .home-brands { margin-top: 0; }
.customer-reviews + .home-brands:not([data-before-footer]) { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.customer-reviews :where(a, button):focus-visible { outline: 3px solid #1aaea6; outline-offset: 3px; }
.customer-reviews__header, .customer-reviews__summary:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; }
.customer-reviews__header { justify-content: space-between; gap: .65rem 1.25rem; margin-bottom: 1.1rem; }
.customer-reviews__header h2 { margin: 0; font: 400 clamp(1.65rem, 2.1vw, 2.1rem)/1.06 Outage, sans-serif; }
.customer-reviews__summary { gap: .5rem; font-size: .94rem; }
.customer-reviews__summary > span:last-child { padding-left: .55rem; border-left: 1px solid #a9c8c3; color: #41534e; font-size: .83rem; }
.customer-reviews__stars, .customer-reviews .review-card__rating::before {
    color: transparent;
    background: linear-gradient(to right, #10756d var(--rating), #aec5bf var(--rating));
    background-clip: text;
    letter-spacing: .08em;
}
.customer-reviews #review_display { display: grid; grid-template-columns: 1fr; gap: .85rem; }
.customer-reviews #review_display > :not(.review-list__item) { grid-column: 1 / -1; color: #43594f; }
.customer-reviews .review-list__item {
    min-width: 0;
    margin: 0;
    background: white;
    border: 1px solid #cbd8d4;
    border-radius: .85rem;
}
.customer-reviews .review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 8vw, 7rem);
    grid-template-areas: "body product";
    align-items: start;
    gap: 1.2rem;
    padding: clamp(1rem, 1.65vw, 1.55rem);
    overflow-wrap: anywhere;
}
.customer-reviews .review-card__body {
    grid-area: body; display: grid; grid-template-areas: "heading" "comment" "meta" "reply"; min-width: 0; padding: 0;
}
.customer-reviews .review-card__heading { grid-area: heading; display: grid; justify-items: start; gap: .35rem; }
.customer-reviews .review-card__rating { width: auto; margin: 0; line-height: 1; }
.customer-reviews .review-card__rating > div { display: none; }
.customer-reviews .review-card__rating::before { content: '★★★★★'; }
.customer-reviews .review-card__title { margin: 0; font: 700 clamp(1rem, 1.2vw, 1.2rem)/1.35 Montserrat, sans-serif; }
.customer-reviews .review-card__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin: .75rem 0 0; color: #43594f; font-size: .78rem; line-height: 1.45; }
.customer-reviews .review-card__meta .text-nowrap { white-space: normal; }
.customer-reviews .review-card__meta .text-teal-500 { margin: 0; color: #08665e; font-size: inherit; font-style: normal; font-weight: 600; }
.customer-reviews .review-card__comment { grid-area: comment; margin: .55rem 0 0; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.customer-reviews .review-card__product { grid-area: product; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; }
.customer-reviews .review-card__product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f6f4; border-radius: .5rem; }
.customer-reviews .review-card__product figcaption { margin: .4rem 0 0; color: #43594f; font-size: .72rem; line-height: 1.35; font-style: normal; }
.customer-reviews .review-card__reply { grid-area: reply; margin: .85rem 0 0; padding: .6rem .85rem; border-left: 2px solid #86beb4; border-radius: 0 .35rem .35rem 0; background: #eff7f5; font-size: .87rem; }
.customer-reviews .review-card__reply > :first-child { color: #24584f; font-weight: 700; }
.customer-reviews .review-card__reply > :last-child { margin-top: .25rem; padding: 0; }
.customer-reviews__pagination > div { flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.customer-reviews__pagination #paginator_links { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.customer-reviews__pagination :is(#paginator_links, #paginator_info):not(:empty) { margin-top: 1rem; }
.customer-reviews__pagination #paginator_links :is(a, span) {
    display: inline-flex; align-items: center; justify-content: center; gap: .25rem;
    min-width: 2.25rem; min-height: 2.25rem; padding-inline: .55rem; border-radius: 2rem;
    color: #155e55; font-size: .83rem; font-weight: 700;
}
.customer-reviews__pagination #paginator_links a:hover { background: #d7ebe6; }
.customer-reviews__pagination #paginator_links span { background: #145c52; color: white; }
.customer-reviews__pagination #paginator_info { color: #43594f; font-size: .8rem; }
@media (min-width: 960px) {
    .customer-reviews #review_display { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (max-width: 720px) {
    .customer-reviews__inner { width: 90%; }
}
@media (max-width: 520px) {
    .customer-reviews .review-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "product"; gap: .8rem; }
    .customer-reviews .review-card__product { display: flex; align-items: center; gap: .7rem; padding-top: .65rem; border-top: 1px solid #dfebe6; }
    .customer-reviews .review-card__product img { width: 3.3rem; margin: 0; }
    .customer-reviews .review-card__product figcaption { margin: 0; text-align: left; }
}
