/* Google Reviews Widget Pro — Public v2
   Carousel matches the clean Trustindex style in the reference image */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.grw {
    --grw-accent:  #1a73e8;
    --grw-accent2: rgba(26,115,232,.1);
    --grw-radius:  16px;
    --grw-star-on: #F9AB00;
    --grw-star-off:#E0E0E0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    width: 100%;
    position: relative;
}

/* ── Business Header ─────────────────────────────── */
.grw-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.grw-biz-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--grw-accent), #34a853);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.grw-biz-name  { font-size: 16px; font-weight: 600; display: block; margin-bottom: 2px; }
.grw-biz-addr  { font-size: 12px; color: #9ca3af; display: block; margin-bottom: 4px; }
.grw-rating-row { display: flex; align-items: center; gap: 8px; }
.grw-avg-num   { font-size: 22px; font-weight: 700; line-height: 1; }
.grw-stars-disp{ display: flex; gap: 1px; }
.grw-total     { font-size: 12px; color: #6b7280; }
.grw-g-badge   { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; }
.grw-live      { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #34a853; font-weight: 600; margin-left: 4px; }
.grw-dot       { width: 7px; height: 7px; border-radius: 50%; background: #34a853; animation: grw-pulse 1.5s infinite; display: inline-block; }
@keyframes grw-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── Card (shared across all layouts) ────────────── */
.grw-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: var(--grw-radius);
    padding: 20px 22px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    animation: grw-in .3s ease both;
}
.grw-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.grw-card--new  { border-color: var(--grw-accent); }
@keyframes grw-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.grw-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.grw-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.grw-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.grw-author { flex: 1; min-width: 0; }
.grw-author strong { font-size: 14px; font-weight: 600; color: #1a1a2e; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grw-date  { font-size: 12px; color: #9ca3af; display: block; margin-top: 2px; }
.grw-g-icon-sm { flex-shrink: 0; margin-top: 2px; }
.grw-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.grw-text  { font-size: 13px; line-height: 1.65; color: #374151; margin: 0; }
.grw-verified { font-size: 11px; color: #34a853; font-weight: 500; display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.grw-badge-new {
    position: absolute; top: 12px; right: 12px;
    background: #34a853; color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 10px;
}

/* ── Card style variants ─────────────────────────── */
.grw-style-shadow .grw-card { border: none; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.grw-style-flat   .grw-card { border: none; background: #f7f8fa; }
.grw-style-flat   .grw-card:hover { background: #eef0f4; }
.grw-style-outline .grw-card { border: 2px solid #1a1a2e; }
.grw-style-outline .grw-card:hover { border-color: var(--grw-accent); }

/* ── CAROUSEL ────────────────────────────────────── */
.grw-carousel-wrap { position: relative; }
.grw-carousel-track {
    display: flex;
    gap: 16px;
    overflow: hidden;          /* JS controls scroll via transform */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.grw-carousel-track .grw-card {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    min-width: 0;
}

/* Arrows */
.grw-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    background: #fff; border: 1px solid #e8eaed; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151; z-index: 10;
    transition: all .15s; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.grw-arrow:hover { background: var(--grw-accent); border-color: var(--grw-accent); color: #fff; box-shadow: 0 4px 14px rgba(26,115,232,.3); }
.grw-arrow-prev { left: -18px; }
.grw-arrow-next { right: -18px; }
.grw-arrow:disabled { opacity: .35; pointer-events: none; }

/* Dots */
.grw-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 18px;
}
.grw-dots-btn {
    width: 7px; height: 7px; border-radius: 50%;
    background: #d1d5db; border: none; padding: 0; cursor: pointer;
    transition: all .2s;
}
.grw-dots-btn.active { background: var(--grw-accent); width: 20px; border-radius: 4px; }

/* ── GRID ────────────────────────────────────────── */
.grw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 16px;
}

/* ── LIST ────────────────────────────────────────── */
.grw-list { display: flex; flex-direction: column; gap: 12px; }
.grw-list .grw-card { display: flex; gap: 16px; align-items: flex-start; }
.grw-list .grw-card-top { margin-bottom: 0; flex: 0 0 auto; flex-direction: column; align-items: flex-start; width: 56px; }
.grw-list .grw-card-body { flex: 1; }

/* ── MASONRY ─────────────────────────────────────── */
.grw-masonry { columns: 3; gap: 16px; }
.grw-masonry .grw-card { break-inside: avoid; margin-bottom: 16px; display: block; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .grw-carousel-track .grw-card { flex: 0 0 calc(50% - 8px); }
    .grw-masonry { columns: 2; }
}
@media (max-width: 580px) {
    .grw-carousel-track .grw-card { flex: 0 0 90%; }
    .grw-masonry { columns: 1; }
    .grw-grid { grid-template-columns: 1fr; }
    .grw-arrow-prev { left: 0; }
    .grw-arrow-next { right: 0; }
    .grw-header { flex-direction: column; align-items: flex-start; }
    .grw-g-badge { margin-left: 0; }
}
