/* ── Testimonials Slider ─────────────────────────────────────────── */

.cew-testimonials-slider {
    width: 100%;
}

/* ── Slider Viewport & Track ─────────────────────────────────────── */
.cew-ts-viewport {
    overflow: hidden;
    width: 100%;
}

.cew-ts-track {
    display: flex;
    gap: 16px;
    --cew-ts-gap: 16px;
    --cew-ts-visible: 4;
    will-change: transform;
}

/* Drag cursor */
.cew-ts-draggable .cew-ts-track {
    cursor: grab;
    user-select: none;
}

.cew-ts-draggable .cew-ts-track:active {
    cursor: grabbing;
}

/* ── Card ────────────────────────────────────────────────────────── */
.cew-ts-card {
    min-width: 220px;
    flex: 0 0 calc((100% - (var(--cew-ts-visible) - 1) * var(--cew-ts-gap)) / var(--cew-ts-visible));
    border-radius: 20px;
    border: 1px solid #E4E7ED;
    background: var(--color-grey-97, #F6F7FA);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* ── Card Header: author + score ─────────────────────────────────── */
.cew-ts-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ── Card Rating Score ───────────────────────────────────────────── */
.cew-ts-card-score {
    color: #58CBE6;
    font-family: 'Manrope';
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Stars ───────────────────────────────────────────────────────── */
.cew-ts-stars-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.cew-ts-star {
    color: #0F1117;
    font-size: 10px;
    line-height: 1;
}

/* ── Review Text ─────────────────────────────────────────────────── */
.cew-ts-review {
    flex: 1;
    color:  #0F1117;
    font-family: var(--font-family-Font-5, "Instrument Sans");
    font-size: var(--font-size-15, 15px);
    font-weight: var(--font-weight-400, 400);
    line-height: var(--line-height-25_5, 25.5px); /* 170% */
    margin: 0;
}

.cew-ts-review p {
    margin: 0;
}

/* ── Author Row ──────────────────────────────────────────────────── */
.cew-ts-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cew-ts-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #58CBE6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.cew-ts-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cew-ts-author-name {
    color:  #0F1117;
    font-family:  "Instrument Sans";
    font-size: var(--font-size-14, 14px);
    font-weight: var(--font-weight-700, 700);
}

.cew-ts-author-location {
    color: var(--claude-ai-pale-sky, var(--color-grey-46, #6B7280));
    font-family: "Instrument Sans";
    font-size: 11.5px;
    font-weight: 400;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.cew-ts-nav {
    display: none; /* shown via Elementor responsive selector */
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.cew-ts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E4E7ED;
    background: #ffffff;
    color: #0F1117;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.cew-ts-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cew-ts-btn:hover {
    background: #58CBE6;
    border-color: #58CBE6;
    color: #ffffff;
}

/* ── Dots ────────────────────────────────────────────────────────── */
.cew-ts-dots {
    display: none; /* hidden on desktop by default; toggled via Elementor responsive control */
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.cew-ts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #D0D0D0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.cew-ts-dot.is-active {
    background: #58CBE6;
    transform: scale(1.3);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cew-ts-track {
        --cew-ts-visible: 2;
    }
}

@media (max-width: 767px) {
    .cew-ts-track {
        --cew-ts-visible: 1;
    }
}