/*
 * BWS CusRev Homepage Carousel
 * Version 1.2.0
 * Judge.me-inspired presentation
 */

#reviews .bws-jm-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 45px auto 65px;
    font-family: inherit;
    color: #333;
}

#reviews .bws-jm-heading {
    text-align: center;
    margin-bottom: 26px;
}

#reviews .bws-jm-heading h2 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 400;
    text-transform: none;
    color: #333;
}

#reviews .bws-jm-stars {
    color: #ed1717;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 1px;
}

#reviews .bws-jm-total {
    color: #ed1717;
    font-size: 16px;
    line-height: 1.35;
    margin-top: 3px;
}

/* Three open columns with no boxed cards. */

#reviews .bws-jm-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 0 2px;
}

#reviews .bws-jm-track::-webkit-scrollbar {
    display: none;
}

#reviews .bws-jm-item {
    scroll-snap-align: start;
    min-width: 0;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 12px 6px;
    display: flex;
    flex-direction: column;
}

#reviews .bws-jm-item-stars {
    color: #ed1717;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

#reviews .bws-jm-copy {
    min-height: 210px;
    margin: 0 auto;
    width: 100%;
    max-width: 340px;
}

#reviews .bws-jm-copy h3 {
    margin: 0 0 6px;
    padding: 0;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #333;
}

#reviews .bws-jm-copy p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
}

#reviews .bws-jm-footer {
    margin-top: auto;
}

#reviews .bws-jm-author {
    font-size: 14px;
    color: #888;
    margin: 13px 0 12px;
}

#reviews .bws-jm-product {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: #555;
}

#reviews .bws-jm-product img {
    display: block;
    height: 96px;
    width: 110px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

#reviews .bws-jm-product span {
    font-size: 12px;
    line-height: 1.3;
    max-width: 220px;
    margin-top: 6px;
    color: #666;
}

#reviews .bws-jm-product:hover span {
    text-decoration: underline;
}

/* Subtle navigation below the carousel. */

#reviews .bws-jm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 10px;
}

#reviews .bws-jm-controls button {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #d4d4d4;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 43px;
    font-weight: 300;
    line-height: 1;
    padding: 0 5px;
    min-height: 44px;
}

#reviews .bws-jm-controls button:hover,
#reviews .bws-jm-controls button:focus-visible {
    color: #ed1717;
}

@media (max-width: 900px) {
    #reviews .bws-jm-track {
        grid-auto-columns: calc((100% - 20px) / 2);
        gap: 20px;
    }

    #reviews .bws-jm-copy {
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    #reviews .bws-jm-carousel {
        margin: 25px auto 45px;
    }

    #reviews .bws-jm-heading h2 {
        font-size: 26px;
    }

    #reviews .bws-jm-track {
        grid-auto-columns: 100%;
        gap: 0;
    }

    #reviews .bws-jm-item {
        padding: 0 18px 6px;
    }

    #reviews .bws-jm-copy {
        min-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #reviews .bws-jm-track {
        scroll-behavior: auto;
    }
}
