/* [ux_products columns="1" class="uni-slider-vertical"]: vertical slider, 4 products per view.
   The viewport height is set by JS (height of the first 4 products). */
.uni-vslider {
    position: relative;
}
.uni-vslider__viewport {
    position: relative; /* offsetParent of the products: their offsetTop / offsetLeft do not depend on the scroll */
    /* No mouse wheel / swipe scrolling: it only moves via the buttons and autoplay (scrollTo works on overflow: hidden).
       Do not use overflow: clip here, a clipped box cannot be scrolled at all, not even by script. */
    overflow: hidden;
}
/* Flatsome's row has negative side margins and the columns have side padding: remove both so the products
   fill the viewport exactly. */
.uni-vslider .row.uni-slider-vertical {
    width: 100%;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.uni-vslider .row.uni-slider-vertical > .col {
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.uni-vslider .uni-slider-vertical .box-text,
.uni-vslider .uni-slider-vertical .box-text-products {
    box-sizing: border-box;
    max-width: 100%;
}

/* Horizontal layout: products side by side, --uni-visible per view (set by JS) */
.uni-vslider.is-horizontal .row.uni-slider-vertical {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 var(--uni-gap, 10px);
}
.uni-vslider.is-horizontal .row.uni-slider-vertical > .col {
    flex: 0 0 calc((100% - var(--uni-gap, 10px) * (var(--uni-visible, 4) - 1)) / var(--uni-visible, 4));
    max-width: calc((100% - var(--uni-gap, 10px) * (var(--uni-visible, 4) - 1)) / var(--uni-visible, 4));
    padding-bottom: 0;
}

/* Prev / next buttons: two square buttons side by side, over the top-left corner of the first product */
.uni-vslider__nav {
    position: absolute;
    top: 4px;
    z-index: 3;
    width: 32px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
    cursor: pointer;
    transition: opacity .2s ease;
}
.uni-vslider__nav--prev {
    left: 0;
}
.uni-vslider__nav--next {
    left: 36px;
}
.uni-vslider__nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
}
/* "<" and ">" chevrons */
.uni-vslider__nav--prev::before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translate(-30%, -50%) rotate(45deg);
}
.uni-vslider__nav--next::before {
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-70%, -50%) rotate(45deg);
}
.uni-vslider__nav:disabled {
    opacity: .3;
    cursor: default;
}
.uni-vslider:not(.is-scrollable) .uni-vslider__nav {
    display: none;
}
