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

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

/* ── Rating Bar ──────────────────────────────────────────────────── */
.cew-ts-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cew-ts-bar-left,
.cew-ts-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cew-ts-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFF;
    padding: 8px 16px;
}

.cew-ts-stars-row {
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.cew-ts-star {
    color: #F5A623;
    font-size: 16px;
    line-height: 1;
}

.cew-ts-overall-rating {
    font-size: 14px;
    color: #1A1A1A;
    white-space: nowrap;
    font-weight: 700;
    line-height: 21px; 
}

.cew-ts-divider {
    color: rgba(0, 0, 0, 0.12);;
    font-size: 14px;
}

.cew-ts-review-count {
    color: rgba(20, 20, 20, 0.45);
    font-family: "Instrument Sans";
    font-size: 13px;
    line-height: 19.5px;
}

.cew-ts-leave-review {
    font-size: 14px;
    font-weight: 600;
    color: #FF1F6E;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cew-ts-leave-review:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.cew-ts-nav {
    top: -69px;
    right: 0;
    gap: 8px;
    display: flex;
    align-items: center;
    position: absolute;
}

.cew-ts-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    background: #ffffff;
    color: #1A1A1A;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}

.cew-ts-nav-btn:hover {
    background: #FF1F6E;
    color: #ffffff;
    border-color: #FF1F6E;
}

.cew-ts-nav-standalone {
    justify-content: flex-end;
    margin-top: 20px;
}

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

.cew-ts-track {
    display: flex;
    gap: 16px;
    --cew-ts-gap: 16px;
    --cew-ts-visible: 3;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ── Card ────────────────────────────────────────────────────────── */
.cew-ts-card {
    min-width: 350px;
    flex: 0 0 calc((100% - (var(--cew-ts-visible) - 1) * var(--cew-ts-gap)) / var(--cew-ts-visible));
    background: #F5F4F2;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.cew-ts-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cew-ts-quote-icon {
    width: 20px;
    color: #FF1F6E;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Review Text ─────────────────────────────────────────────────── */
.cew-ts-review {
    flex: 1;
    font-size: 15px;
    line-height: 25.5px;
    color: #444;
    margin: 0;
}

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

/* ── Author Row ──────────────────────────────────────────────────── */
.cew-ts-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.cew-ts-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #FF1F6E;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

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

.cew-ts-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #0D0D0D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cew-ts-author-location {
    font-size: 12px;
    color: #6B6B6B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cew-ts-source-icon {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

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

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

    .cew-ts-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cew-ts-bar-right {
        width: 100%;
        justify-content: space-between;
    }
    .cew-ts-nav {
        top: 44px;
    }
}
