/* ================================================
   Customer Reviews Widget — RTL Layout
   ================================================ */

/* ── Wrapper ── */
.crw-wrapper {
    width: 100%;
    direction: rtl;
    position: relative;
}

/* ── Outer shell: arrows on sides, carousel in middle ── */
.crw-shell {
    display: flex;
    align-items: center;
    gap: 0;
    direction: rtl;
}

/* ── Custom arrow buttons (sides) ── */
.crw-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: background .2s, color .2s, box-shadow .2s;
    z-index: 2;
    position: relative;
    padding: 0;
    margin: 0 4px;
}
.crw-nav-btn:hover {
    background: #222;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* ── Carousel track area ── */
.crw-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    direction: rtl;
}

.crw-carousel {
    direction: rtl;
}
.crw-carousel .slick-list {
    overflow: hidden;
    direction: rtl;
}
.crw-carousel .slick-track {
    display: flex !important;
    direction: rtl;
}
.crw-carousel .slick-slide {
    padding: 0 12px;
    box-sizing: border-box;
    height: auto !important;
}
.crw-carousel .slick-slide > div {
    height: 100%;
}

/* ── Dots ── */
.crw-dots-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    direction: ltr;
    flex-wrap: wrap;
}
.crw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
    display: block;
    flex-shrink: 0;
}
.crw-dot.active {
    background: #333;
    transform: scale(1.25);
}

/* ── Slide item wrapper ── */
.crw-slide-item {
    height: 100%;
}

/* ── Card ── */
.crw-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 22px 20px;
    direction: rtl;
    text-align: right;
    border: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.crw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

/* ── Card header: photo+name (right) | stars (left) ── */
.crw-card-header {
    display: flex;
    flex-direction: row;               /* RTL: first child = right side */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    direction: rtl;
}

/* Photo + name group → sits on RIGHT in RTL */
.crw-name-photo {
    display: flex;
    flex-direction: row;               /* photo first, then name */
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.crw-customer-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f5b301;
    flex-shrink: 0;
    display: block;
    order: 0;                          /* photo comes first (rightmost in RTL) */
}

.crw-customer-name {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0;
    text-align: right;
    line-height: 1.3;
    order: 1;                          /* name after photo */
}

/* Stars → sit on LEFT in RTL (flex end) */
.crw-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: ltr;                    /* ★★★★★ always LTR */
    gap: 2px;
    flex-shrink: 0;
}
.crw-star       { font-size: 22px; line-height: 1; }
.crw-star.active   { color: #FFB800; }
.crw-star.inactive { color: #E0E0E0; }

/* ── Review text ── */
.crw-review-text {
    font-size: 14px;
    line-height: 1.9;
    color: #444;
    text-align: right;
    direction: rtl;
    flex-grow: 1;
    margin-bottom: 10px;
}

/* ── Extra info ── */
.crw-extra-info {
    font-size: 13px;
    color: #888;
    font-style: italic;
    text-align: right;
    direction: rtl;
    margin-top: auto;
}

/* ── Elementor editor preview ── */
.crw-carousel-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    direction: rtl;
}
.crw-carousel-preview .crw-slide-item {
    flex: 1;
    min-width: 260px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .crw-card             { padding: 18px 14px; }
    .crw-customer-name    { font-size: 15px; }
    .crw-review-text      { font-size: 13px; }
    .crw-star             { font-size: 18px; }
    .crw-nav-btn          { width: 32px; height: 32px; font-size: 17px; }
}
