/* Google Reviews Widget Pro - Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.grw-wrapper {
    font-family: 'DM Sans', sans-serif;
    --grw-primary: #1a1a2e;
    --grw-accent: #4285F4;
    --grw-star: #F4B400;
    --grw-card-bg: #ffffff;
    --grw-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --grw-shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
    --grw-radius: 16px;
    --grw-text: #2d2d2d;
    --grw-muted: #888;
    --grw-border: #f0f0f0;
    position: relative;
    padding: 0 0 32px;
}

/* ── OVERALL HEADER ── */
.grw-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.grw-overall-block {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--grw-border);
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: var(--grw-shadow);
}

.grw-google-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.grw-overall-rating-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--grw-primary);
    line-height: 1;
}

.grw-overall-stars-row {
    display: flex;
    gap: 2px;
}

.grw-overall-stars-row .grw-star {
    font-size: 18px;
    color: var(--grw-star);
}

.grw-overall-count {
    font-size: 13px;
    color: var(--grw-muted);
}

.grw-overall-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--grw-muted);
    font-size: 14px;
}

/* ── SLIDER CONTAINER ── */
.grw-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grw-track-wrapper {
    overflow: hidden;
    flex: 1;
    border-radius: var(--grw-radius);
}

.grw-track {
    display: flex;
    gap: 18px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── LOADING STATE ── */
.grw-loading-state {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--grw-muted);
    font-size: 14px;
}

.grw-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9e9e9;
    border-top-color: var(--grw-accent);
    border-radius: 50%;
    animation: grwSpin 0.8s linear infinite;
}

@keyframes grwSpin {
    to { transform: rotate(360deg); }
}

/* ── CARD ── */
.grw-card {
    background: var(--grw-card-bg);
    border-radius: var(--grw-radius);
    padding: 24px;
    box-shadow: var(--grw-shadow);
    border: 1px solid var(--grw-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    min-height: 240px;
    box-sizing: border-box;
}

.grw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--grw-shadow-hover);
}

/* ── CARD HEADER ── */
.grw-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grw-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--grw-border);
    flex-shrink: 0;
}

.grw-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grw-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grw-reviewer-info {
    flex: 1;
    min-width: 0;
}

.grw-reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--grw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.grw-date {
    font-size: 12px;
    color: var(--grw-muted);
    margin-top: 2px;
}

/* ── STARS ── */
.grw-stars {
    display: flex;
    gap: 3px;
}

.grw-star {
    font-size: 16px;
    color: var(--grw-star);
    line-height: 1;
}

.grw-star.empty {
    color: #ddd;
}

/* ── REVIEW TEXT ── */
.grw-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    flex: 1;
}

.grw-read-more {
    background: none;
    border: none;
    color: var(--grw-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    margin-top: 4px;
    display: inline-block;
}

.grw-read-more:hover {
    text-decoration: underline;
}

/* ── GOOGLE BADGE ── */
.grw-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--grw-border);
    margin-top: auto;
}

.grw-google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grw-google-badge .grw-g-logo {
    font-size: 15px;
    font-weight: 700;
}

.grw-badge-text {
    font-size: 11px;
    color: var(--grw-muted);
    font-weight: 500;
}

/* ── ARROWS ── */
.grw-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--grw-border);
    box-shadow: var(--grw-shadow);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: var(--grw-primary);
    z-index: 2;
    line-height: 1;
}

.grw-arrow:hover {
    background: var(--grw-accent);
    color: #fff;
    border-color: var(--grw-accent);
    transform: scale(1.08);
}

.grw-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.grw-arrow.hidden {
    visibility: hidden;
}

/* ── DOTS ── */
.grw-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.grw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.grw-dot.active {
    background: var(--grw-accent);
    width: 24px;
    border-radius: 4px;
}

/* ── ERROR STATE ── */
.grw-error {
    padding: 24px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: var(--grw-radius);
    color: #c62828;
    font-size: 14px;
    text-align: center;
}

/* ── EMPTY STATE ── */
.grw-empty {
    padding: 40px;
    text-align: center;
    color: var(--grw-muted);
    font-size: 15px;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .grw-arrow { width: 36px; height: 36px; font-size: 18px; }
    .grw-card { padding: 18px; }
}
