.customer-review-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    margin: 0 0 16px;
}

#product-intro:has(> .button-request-quote) .customer-review-panel {
    padding-inline: 0;
}

.customer-review-panel__score,
.customer-review-section__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
}

.customer-review-panel__score img,
.customer-review-section__score img {
    display: block;
    object-fit: contain;
}

.customer-review-panel__number {
    color: var(--brand-heading);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
}

.customer-review-panel__scale,
.customer-review-panel__detail p {
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.4;
}

.customer-review-panel__detail {
    text-align: right;
}

.customer-review-panel__action {
    min-height: 32px;
    margin: 0;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--brand-heading);
    font: 600 15px/1.4 'Open Sans', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.customer-review-panel__action:hover {
    text-decoration-thickness: 2px;
}

.customer-review-section {
    padding: 50px 0 55px;
    border-top: 1px solid var(--brand-rule);
    background: #fff;
}

.customer-review-section h2.border {
    color: var(--brand-heading);
    margin-bottom: 22px;
    padding-top: 0;
    padding-bottom: 14px;
}

.customer-review-section__heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
}

.customer-review-section__rating {
    display: grid;
    gap: 4px;
}

.customer-review-section__rating p {
    margin: 0;
    padding: 0;
}

.customer-review-section__score strong {
    color: var(--brand-heading);
}

.customer-review-section__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--brand-heading);
    background: #fff;
    color: var(--brand-heading);
    font: 600 15px/1.4 'Open Sans', sans-serif;
    cursor: pointer;
}

.customer-review-section__action:hover {
    background: var(--brand-panel);
}

.customer-review-panel__action:focus-visible,
.customer-review-section__action:focus-visible {
    outline: 2px solid var(--brand-heading);
    outline-offset: 3px;
}

.customer-review-section__quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.customer-review-section figure {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 22px 24px;
    background: var(--brand-panel);
}

.customer-review-section blockquote {
    margin: 0;
    color: var(--brand-ink);
    font: 400 17px/1.55 'Open Sans', sans-serif;
}

.customer-review-section figcaption {
    color: var(--brand-heading);
    font: 600 14px/1.4 'Open Sans', sans-serif;
}

/* Keep the reviews close control above the sticky purchase bar. */
.reviews-enrollment-popup--active:has(.product-reviews--active) {
    z-index: 101;
}

button.reviews-enrollment__button-close {
    padding: 0;
    border: 0;
}

@media (max-width: 600px) {
    .customer-review-panel {
        align-items: flex-start;
        padding: 0;
    }
    .customer-review-panel__number {
        font-size: 28px;
    }
    .customer-review-panel__detail {
        text-align: left;
    }
    .customer-review-section {
        padding: 36px 0 40px;
    }
    .customer-review-section__quotes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .customer-review-section figure {
        padding: 18px 20px;
    }
}
