
/* ==================================================
REVIEWITS CAROUSEL
================================================== */

/* Main Carousel */

.rvts-review-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* ==================================================
VIEWPORT
================================================== */

.rvts-review-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

/* ==================================================
CAROUSEL TRACK
================================================== */

.rvts-review-carousel-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: var(--rvts-carousel-gap, 20px);
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ==================================================
CAROUSEL SLIDES
================================================== */

.rvts-review-carousel-item {
    display: flex;

    flex: 0 0 calc(
        (
            100% -
            (
                var(--rvts-carousel-gap, 20px) *
                (var(--rvts-slides-desktop, 3) - 1)
            )
        ) / var(--rvts-slides-desktop, 3)
    );

    min-width: 0;
    align-items: stretch;
    box-sizing: border-box;
}

/* ==================================================
EQUAL HEIGHT REVIEW CARDS
================================================== */

.rvts-review-carousel-item > .elementor {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.rvts-review-carousel-item > .elementor > .e-con.e-parent {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: space-between;
}

/* ==================================================
TABLET
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .rvts-review-carousel-item {
        flex-basis: calc(
            (
                100% -
                (
                    var(--rvts-carousel-gap, 20px) *
                    (var(--rvts-slides-tablet, 2) - 1)
                )
            ) / var(--rvts-slides-tablet, 2)
        );
    }

}

/* ==================================================
MOBILE
================================================== */

@media screen and (max-width: 767px) {

    .rvts-review-carousel-item {
        flex-basis: calc(
            (
                100% -
                (
                    var(--rvts-carousel-gap, 20px) *
                    (var(--rvts-slides-mobile, 1) - 1)
                )
            ) / var(--rvts-slides-mobile, 1)
        );
    }

}

/* ==================================================
NAVIGATION ARROWS
================================================== */

.rvts-review-carousel-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.rvts-review-carousel-arrows button {
    cursor: pointer;
}

/* ==================================================
PAGINATION
================================================== */

.rvts-review-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.rvts-review-carousel-pagination button {
    cursor: pointer;
}

/* Review Carousel Pagination */

button.rvts-review-carousel-dot {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #c5c5c5;
    cursor: pointer;
}

button.rvts-review-carousel-dot.active {
    width: 22px;
    height: 9px;
    background: #333333;
    border-radius: 10px;
}

/* ==================================================
OUTSIDE ARROW POSITION
================================================== */

.rvts-review-carousel[data-arrow-position="outside"] {
    position: relative;
}

.rvts-review-carousel[data-arrow-position="outside"] .rvts-review-carousel-arrows {
    position: absolute;
    top: 50%;
    left: -45px;
    right: -45px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    pointer-events: none;
}

.rvts-review-carousel[data-arrow-position="outside"] .rvts-review-carousel-arrows button {
    pointer-events: auto;
}

/* ==================================================
INSIDE ARROW POSITION
================================================== */

.rvts-review-carousel[data-arrow-position="inside"] .rvts-review-carousel-arrows {
    position: absolute;
    top: 50%;
    left: -2%;
    right: -2%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    pointer-events: none;
}

.rvts-review-carousel[data-arrow-position="inside"] .rvts-review-carousel-arrows button {
    pointer-events: auto;
}

/* ==================================================
INDIVIDUAL CAROUSEL ARROW POSITIONING
================================================== */

.rvts-review-carousel-arrows button {
    position: relative;
}

/* ==================================================
CAROUSEL ARROW BUTTON ALIGNMENT
================================================== */

.rvts-review-carousel-arrows button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================================
CAROUSEL ARROW ICON
================================================== */

.rvts-review-carousel-arrow-icon {
    display: block;
    flex-shrink: 0;
    background-color: currentColor;

    -webkit-mask-image: var(--rvts-arrow-icon-url);
    mask-image: var(--rvts-arrow-icon-url);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}
