/* ============================================================
   VS Review Carousel v2.0
   ============================================================ */

.vs-review-wrapper {
    position: relative;
    padding: 0 60px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

.vs-review-inner {
    background: linear-gradient(135deg, #dff2ec 0%, #c8e6de 100%);
    border-radius: 20px;
    padding: 30px 24px 58px;
    position: relative;
    box-sizing: border-box;
}

.vs-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.vs-carousel-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Card (width set by JS) ── */
.vs-review-card {
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vs-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vs-client-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

.vs-client-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vs-client-name {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    line-height: 1.2;
}

.vs-stars { display: flex; gap: 2px; }
.vs-star        { color: #d1d5db; font-size: 18px; line-height: 1; }
.vs-star.filled { color: #f59e0b; }

.vs-review-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 155px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.vs-review-desc::-webkit-scrollbar       { width: 3px; }
.vs-review-desc::-webkit-scrollbar-track { background: transparent; }
.vs-review-desc::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* ── Arrow buttons — force circle, override Elementor ── */
.vs-review-wrapper .vs-carousel-btn,
.vs-review-wrapper .vs-carousel-btn:not(:hover) {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    background-color: #3b5bdb !important;
    background-image: none !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(59,91,219,.4) !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    outline: none !important;
    transition: background-color .18s, box-shadow .18s, transform .18s !important;
    /* reset any inherited/Elementor styles */
    font-size: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    overflow: visible !important;
}
.vs-review-wrapper .vs-carousel-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}
.vs-review-wrapper .vs-carousel-btn:hover {
    background-color: #2f4cc7 !important;
    box-shadow: 0 6px 20px rgba(59,91,219,.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.vs-review-wrapper .vs-carousel-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}
.vs-review-wrapper .vs-prev { left: 6px !important; right: auto !important; }
.vs-review-wrapper .vs-next { right: 6px !important; left: auto !important; }

/* ── Bottom controls ── */
.vs-controls {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 26px;
    pointer-events: none;
}
.vs-controls > * { pointer-events: auto; }

.vs-slide-counter {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.38);
    white-space: nowrap;
    letter-spacing: .4px;
    line-height: 1;
}

.vs-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.vs-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, width .25s;
    outline: none;
    flex-shrink: 0;
}
.vs-dot.active {
    background: #3b5bdb;
    width: 22px;
}

/* autoplay button — also force circle/clean */
.vs-review-wrapper .vs-autoplay-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    color: rgba(0,0,0,.32) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: color .2s !important;
    outline: none !important;
    background-image: none !important;
}
.vs-review-wrapper .vs-autoplay-btn:hover {
    color: #3b5bdb !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.vs-review-wrapper .vs-autoplay-btn svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    pointer-events: none !important;
    stroke: none !important;
}

.vs-no-reviews { text-align:center; padding:24px; color:#777; }

@media (max-width: 900px) {
    /* card widths handled by JS */
}
@media (max-width: 580px) {
    .vs-review-wrapper { padding: 0 46px; }
    .vs-review-inner   { padding: 20px 14px 52px; }
    .vs-review-wrapper .vs-carousel-btn {
        width: 36px !important;
        height: 36px !important;
    }
}
