/* Amazon Reviews Widget - Frontend Slider */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.arw-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
    padding: 28px 0 20px;
    box-sizing: border-box;
}

/* ── Header ── */
.arw-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.arw-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.arw-summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arw-overall-score {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.arw-stars-row {
    display: flex;
    gap: 1px;
}

.arw-star {
    font-size: 20px;
    line-height: 1;
}

.arw-star--full  { color: #f59e0b; }
.arw-star--half  { color: #f59e0b; opacity: 0.6; }
.arw-star--empty { color: #d1d5db; }

.arw-total-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Write a Review button */
.arw-write-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1.5px solid #94a3b8;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.arw-write-btn:hover {
    border-color: #64748b;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

/* ── Slider Wrapper ── */
.arw-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nav Buttons */
.arw-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 22px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 0;
    z-index: 2;
}

.arw-nav:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.arw-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Viewport */
.arw-slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 0;
}

/* Track */
.arw-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Review Card ── */
.arw-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card Header */
.arw-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arw-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arw-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.arw-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arw-verified {
    color: #3b82f6;
    font-size: 12px;
}

.arw-review-date {
    font-size: 12px;
    color: #94a3b8;
}

/* Card Stars */
.arw-card-stars {
    display: flex;
    gap: 1px;
}

.arw-card-stars .arw-star {
    font-size: 16px;
}

/* Review Title */
.arw-review-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

/* Review Body */
.arw-review-body {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Dots ── */
.arw-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.arw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.arw-dot.arw-dot--active {
    background: #64748b;
    transform: scale(1.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .arw-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 580px) {
    .arw-card {
        flex: 0 0 100%;
    }
    .arw-write-btn {
        display: none;
    }
}

.arw-error {
    color: #ef4444;
    font-style: italic;
}
