/* Size cards against the space supplied by the theme, not the browser viewport. */
.smart-reviews-section .smart-carousel-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 0 52px;
    container: smart-review-carousel / inline-size;
}
.smart-reviews-section .smart-reviews.layout-carousel {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    padding: 8px 0 12px;
    margin: 0;
}
.smart-reviews-section .smart-reviews.layout-carousel > .smart-review {
    flex: 0 0 100%;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
}
/* Two or three cards only when each card has at least 280px available. */
@container smart-review-carousel (min-width: 584px) {
    .smart-reviews-section .smart-reviews.layout-carousel > .smart-review {
        flex-basis: calc((100% - 24px) / 2);
    }
}
@container smart-review-carousel (min-width: 888px) {
    .smart-reviews-section .smart-reviews.layout-carousel > .smart-review {
        flex-basis: calc((100% - 48px) / 3);
    }
}
.smart-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #c4d2e5;
    border-radius: 50%;
    background: #fff;
    color: #2456a6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.smart-carousel-nav.prev { left: 0; }
.smart-carousel-nav.next { right: 0; }
.smart-carousel-nav:disabled { opacity: .35; cursor: default; }
.smart-carousel-nav[hidden] { display: none; }
@media (max-width: 600px) {
    .smart-reviews-section .smart-carousel-wrapper { padding: 0 0 52px; }
    .smart-carousel-nav { top: auto; bottom: 0; transform: none; }
    .smart-carousel-nav.prev { left: calc(50% - 48px); }
    .smart-carousel-nav.next { right: calc(50% - 48px); }
}
