/* === Google Reviews Widget – Frontend === */
.grw-wrapper {
    --grw-accent: #1a73e8;
    --grw-stars: #fbbc04;
    --grw-card-bg: #ffffff;
    --grw-text: #202124;
    --grw-radius: 12px;
    --grw-visible: 3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--grw-text);
    margin: 24px 0;
}

/* Demo notice */
.grw-demo-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}
.grw-demo-notice a { color: #1a73e8; }

/* Header */
.grw-header { margin-bottom: 20px; }
.grw-google-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.grw-google-logo { height: 24px; width: auto; }
.grw-overall { display: flex; align-items: center; gap: 10px; }
.grw-overall-score { font-size: 22px; font-weight: 700; color: var(--grw-text); }
.grw-stars-row { display: flex; gap: 1px; }
.grw-count { font-size: 13px; color: #5f6368; }
.grw-headline { font-size: 20px; font-weight: 700; margin: 0 0 4px; }

/* Stars */
.grw-stars, .grw-stars-row { display: flex; gap: 1px; margin-bottom: 10px; }
.grw-star { font-size: 20px; line-height: 1; }
.grw-star-full, .grw-star-half { color: var(--grw-stars); }
.grw-star-empty { color: #dadce0; }
.grw-stars-row .grw-star { font-size: 16px; }

/* Track wrapper */
.grw-track-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.grw-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Cards container (carousel) */
.grw-layout-carousel .grw-track { }
.grw-layout-carousel .grw-card-inner {
    display: flex;
    gap: 16px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

/* Grid layout */
.grw-layout-grid .grw-track { overflow: visible; }
.grw-layout-grid .grw-card-inner {
    display: grid;
    grid-template-columns: repeat(var(--grw-visible), 1fr);
    gap: 16px;
}
.grw-layout-grid .grw-nav { display: none; }
.grw-layout-grid .grw-dots { display: none; }

/* List layout */
.grw-layout-list .grw-track { overflow: visible; }
.grw-layout-list .grw-card-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.grw-layout-list .grw-nav { display: none; }
.grw-layout-list .grw-dots { display: none; }

/* Individual card */
.grw-card {
    background: var(--grw-card-bg);
    border-radius: var(--grw-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: box-shadow .2s, transform .2s;
}
.grw-layout-carousel .grw-card {
    width: calc((100% - (var(--grw-visible) - 1) * 16px) / var(--grw-visible));
}
.grw-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.grw-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }

/* Avatar */
.grw-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: hsl(var(--av-hue, 210), 60%, 50%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.grw-avatar img { width: 100%; height: 100%; object-fit: cover; }

.grw-meta { flex: 1; min-width: 0; }
.grw-author { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grw-date { font-size: 12px; color: #5f6368; }
.grw-g-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.grw-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grw-text); }

/* Nav buttons */
.grw-nav {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.12);
    background: var(--grw-card-bg);
    color: var(--grw-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.grw-nav:hover { background: var(--grw-accent); color: #fff; border-color: var(--grw-accent); }
.grw-nav:disabled { opacity: .3; cursor: default; }

/* Dots */
.grw-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.grw-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #dadce0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.grw-dot.active { background: var(--grw-accent); transform: scale(1.3); }

/* Responsive */
@media (max-width: 768px) {
    .grw-layout-carousel .grw-card { width: calc((100% - 16px) / 2); }
    .grw-layout-grid .grw-card-inner { grid-template-columns: repeat(2, 1fr); }
    .grw-wrapper { --grw-visible: 2; }
}
@media (max-width: 500px) {
    .grw-layout-carousel .grw-card { width: 100%; }
    .grw-layout-grid .grw-card-inner { grid-template-columns: 1fr; }
    .grw-wrapper { --grw-visible: 1; }
    .grw-nav { display: none; }
}
