  /* ===== 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);
}


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

    .cs-testimonial__slides {
        padding: 36px 26px 24px;
        min-height: 0;
    }

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

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

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

    .cs-testimonial__mobile-footer {
        display: block;

        padding-top: 18px;
    }
}

.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;
}