/* The page builder puts the categories and testimonials in their own row. */
.home section.row:has(> .spb_widget_area #woocommerce_product_categories-4):has(> .spb_testimonial_slider_widget) {
    display: grid;
    grid-template-columns: 25% minmax(0, 68%);
    justify-content: space-between;
    align-items: stretch;
    margin-top: clamp(32px, 4vw, 56px);
}
.home section.row:has(> .spb_testimonial_slider_widget)::before,
.home section.row:has(> .spb_testimonial_slider_widget)::after {
    content: none;
}
.home section.row:has(> .spb_testimonial_slider_widget) > :is(.spb_widget_area, .spb_testimonial_slider_widget) {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
}
.home #woocommerce_product_categories-4 {
    padding-bottom: 0;
}
.home .spb_testimonial_slider_widget > .spb-bg-color-wrap {
    display: grid;
    align-items: center;
    height: 100%;
}
.home .spb_testimonial_slider_widget .slider-wrap {
    padding: 24px 0;
}
.home .spb_testimonial_slider_widget .heading-wrap {
    padding: 0 12%;
    margin-bottom: 16px;
}
.home .spb_testimonial_slider_widget .testimonials-slider {
    padding-bottom: 0;
}
.home .spb_testimonial_slider_widget .lSSlideWrapper {
    padding-inline: 12% 19%;
}
.home .spb_testimonial_slider_widget .lSSlideOuter > ul.lSPager.lSpg {
    right: 6%;
    left: auto;
}
/* Let the longest review size the carousel, including after a font or screen-size change. */
.home .spb_testimonial_slider_widget ul.slides.lSFade {
    display: grid;
    height: auto !important;
    min-height: 80px;
    padding-bottom: 0 !important;
}
.home .spb_testimonial_slider_widget .lSFade > li.lslide {
    grid-area: 1 / 1;
    position: relative !important;
    height: auto;
}
.home .spb_testimonial_slider_widget .testimonial-text {
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .home section.row:has(> .spb_widget_area #woocommerce_product_categories-4):has(> .spb_testimonial_slider_widget) {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 1fr;
        row-gap: 24px;
    }
    .home .spb_widget_area > .spb-asset-content:has(> #woocommerce_product_categories-4),
    .home #woocommerce_product_categories-4 {
        height: 100%;
    }
    .home #woocommerce_product_categories-4,
    .home #woocommerce_product_categories-4 .product-categories {
        display: flex;
        flex-direction: column;
    }
    .home #woocommerce_product_categories-4 :is(.product-categories, .cat-item) {
        flex: 1;
    }
    .home .spb_testimonial_slider_widget .slider-wrap {
        padding-block: 20px;
    }
    .home .spb_testimonial_slider_widget .testimonial-text {
        font-size: 20px;
        line-height: 1.4;
    }
    .home .spb_testimonial_slider_widget .heading-wrap {
        padding-inline: 6%;
    }
    .home .spb_testimonial_slider_widget .lSSlideWrapper {
        padding-inline: 6% 15%;
    }
    .home .spb_testimonial_slider_widget .lSSlideOuter > ul.lSPager.lSpg {
        right: 3%;
    }
}
