/* Google Reviews Widget – Frontend Styles v1.2.0 */
.grw-wrapper {
    --grw-accent: #01696f;
    --grw-star: #f5a623;
    --grw-radius: 12px;
    --grw-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-family: inherit;
    color: inherit;
    max-width: 100%;
}

/* Badge */
.grw-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--grw-radius);
    margin-bottom: 20px;
    box-shadow: var(--grw-shadow);
    flex-wrap: wrap;
}
.grw-badge-info { flex: 1; min-width: 140px; }
.grw-badge-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.grw-badge-rating { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.grw-overall-score { font-size: 1.5rem; font-weight: 800; color: var(--grw-accent); line-height: 1; }
.grw-review-count { font-size: 0.8rem; color: #777; }
.grw-badge-link {
    font-size: 0.85rem;
    color: var(--grw-accent);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 7px 14px;
    border: 2px solid var(--grw-accent);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.grw-badge-link:hover { background: var(--grw-accent); color: #fff; }

/* Stars */
.grw-stars, .grw-review-stars { display: flex; gap: 1px; line-height: 1; }
.grw-star { font-size: 16px; }
.grw-star-full  { color: var(--grw-star); }
.grw-star-half  { color: var(--grw-star); }
.grw-star-empty { color: #ddd; }

/* Grid */
.grw-layout-grid .grw-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}

/* List */
.grw-layout-list .grw-reviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card */
.grw-review-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--grw-radius);
    padding: 18px;
    box-shadow: var(--grw-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.grw-review-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}
.grw-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.grw-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: var(--grw-accent);
    display: flex; align-items: center; justify-content: center;
}
.grw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.grw-avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem; text-transform: uppercase;
}
.grw-reviewer-info { min-width: 0; }
.grw-reviewer-name {
    font-weight: 600; font-size: 0.9rem; color: inherit;
    text-decoration: none; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grw-reviewer-name:hover { color: var(--grw-accent); }
.grw-review-date { font-size: 0.78rem; color: #888; display: block; margin-top: 1px; }
.grw-review-stars { margin-bottom: 10px; }
.grw-review-text {
    font-size: 0.9rem; line-height: 1.65; color: #444; margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel */
.grw-layout-carousel .grw-carousel-track { display: flex; overflow: hidden; position: relative; }
.grw-layout-carousel .grw-review-card { flex: 0 0 100%; display: none; }
.grw-layout-carousel .grw-review-card.active { display: block; }
.grw-carousel-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 14px;
}
.grw-carousel-btn {
    background: var(--grw-accent); color: #fff;
    border: none; border-radius: 50%;
    width: 38px; height: 38px; font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s; line-height: 1;
}
.grw-carousel-btn:hover { opacity: 0.8; }
.grw-carousel-dots { display: flex; gap: 6px; }
.grw-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #ccc; border: none; cursor: pointer; padding: 0;
    transition: background 0.2s;
}
.grw-dot.active { background: var(--grw-accent); }

/* Misc */
.grw-powered-by { margin-top: 12px; text-align: right; }
.grw-powered-by a {
    font-size: 0.72rem; color: #aaa; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.grw-powered-by a:hover { color: #4285F4; }
.grw-no-reviews { text-align: center; color: #888; padding: 30px 0; }
.grw-error {
    background: #fff3f3; border: 1px solid #f5c6c6;
    border-radius: 8px; padding: 12px 16px; color: #c00; font-size: 0.9rem;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .grw-review-card  { background: #1e1e1e; border-color: rgba(255,255,255,0.1); }
    .grw-badge        { background: #1e1e1e; border-color: rgba(255,255,255,0.1); }
    .grw-review-text  { color: #ccc; }
    .grw-reviewer-name { color: #e8e8e8; }
    .grw-review-date  { color: #aaa; }
    .grw-star-empty   { color: #555; }
}
