/* ===== Mobile footer (hidden on desktop) ===== */
.cs-testimonial__mobile-footer {
    display: none;
}

.cs-testimonial__mobile-logo {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-testimonial__mobile-logo img {
    position: absolute;
    max-height: 48px;
    max-width: 70%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .5s ease;
}

.cs-testimonial__mobile-logo img.is-active {
    opacity: 1;
}

.cs-testimonial__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 0 22px;
}

.cs-testimonial__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b7bccb;
    cursor: pointer;
    transition: background .25s ease;
}

.cs-testimonial *,
.cs-testimonial *::before,
.cs-testimonial *::after {
    box-sizing: border-box;
}


.cs-testimonial__logos {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    padding: 18px 24px 0;
    gap: 1rem;
}

.cs-testimonial__logo {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px 16px;
    min-width: 0;
    cursor: pointer;
}

.cs-testimonial__logo img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.cs-testimonial__logo.is-active .cs-testimonial__bar {
    transform: translateX(-50%) scaleX(1);
}

.cs-testimonial__quote,
.cs-testimonial__quote p {
    font-size: 20px;
}

.cs-testimonial__stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

h2.stat {
    font-size: 34px;
    font-weight: 700;
    margin-top: 20px;
}

.stat-text {
    font-size: 16px;
}

.cs-testimonial__arrow--prev {
    left: -8px;
}

.cs-testimonial__arrow--next {
    right: -8px;
}


.cs-testimonial__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 48px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
    pointer-events: none;
}

.cs-testimonial__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

/* ===== Mobile layout ===== */
@media (max-width: 767px) {
    .cs-testimonial__logos {
        display: none;
    }

    .cs-testimonial__arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .cs-testimonial__slides {
        padding: 0 !important;
        min-height: 0;
    }

    .cs-testimonial__slides-wrapper{
        margin: 0 36px;
        border: 1px solid #dedede;
    }

    h2.stat {
        margin-top: 0;
    }

    .cs-testimonial__slide {
        padding: 36px 26px 24px;
    }

    .cs-testimonial__stats {
        flex-direction: column;
    }

    .cs-testimonial__slide:not(.is-active) {
        display: none;
    }

    .cs-testimonial__quote {
        font-size: 18px;
    }

    .cs-testimonial__mobile-footer {
        display: block;

        padding-top: 18px;
    }
}
