/* ============================================================
   Google Reviews Widget — google-reviews.css
   ============================================================ */

/* Reset */
.grw-wrapper *,
.grw-wrapper *::before,
.grw-wrapper *::after {
    box-sizing: border-box;
}

/* ── Outer wrapper ─────────────────────────────────────────── */
.grw-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    max-width: 1100px;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── Left: Business panel ──────────────────────────────────── */
.grw-business {
    flex: 0 0 200px;
    min-width: 180px;
    padding: 24px 20px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #fff;
}

.grw-biz-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.grw-biz-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grw-biz-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.grw-biz-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.grw-rating-number {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.grw-stars {
    display: inline-flex;
    gap: 1px;
}

.grw-star {
    font-size: 18px;
    line-height: 1;
}

.grw-star-full  { color: #f59e0b; }
.grw-star-half  { color: #f59e0b; position: relative; }
.grw-star-empty { color: #d1d5db; }

/* half-star via clip */
.grw-star-half::after {
    content: '★';
    position: absolute;
    left: 0; top: 0;
    color: #d1d5db;
    clip-path: inset(0 0 0 50%);
}
.grw-star-half {
    clip-path: inset(0 50% 0 0);
    color: #f59e0b;
}

.grw-biz-total {
    font-size: 12px;
    color: #6b7280;
    margin-top: 0;
}

/* Powered by Google */
.grw-powered {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.grw-powered strong {
    color: #374151;
}

.grw-google-logo {
    width: 48px;
    height: 16px;
}

/* Review button */
.grw-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
    cursor: pointer;
}

.grw-review-btn:hover {
    background: #f8f9fa;
    border-color: #bbbfc4;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    text-decoration: none;
    color: #111;
}

/* ── Right: Carousel wrapper ───────────────────────────────── */
.grw-carousel-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}

/* Arrow buttons */
.grw-arrow {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 10px;
    transition: color .15s;
    user-select: none;
    align-self: center;
    z-index: 2;
}

.grw-arrow:hover { color: #374151; }

.grw-arrow:disabled {
    color: #e5e7eb;
    cursor: default;
}

/* Viewport + track */
.grw-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.grw-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    align-items: stretch;
}

/* ── Review Card ───────────────────────────────────────────── */
.grw-card {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 170px;
    transition: box-shadow .2s;
}

.grw-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* Card header */
.grw-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Avatar */
.grw-reviewer-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.grw-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.grw-reviewer-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grw-reviewer-name:hover { text-decoration: underline; }

.grw-reviewer-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Google G badge */
.grw-g-badge {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
}

.grw-g-badge svg {
    width: 20px;
    height: 20px;
}

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

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

/* Review text */
.grw-card-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
    flex: 1;
}

.grw-read-more {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #1a73e8;
    cursor: pointer;
    margin-top: 4px;
    display: block;
    font-weight: 600;
}

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
    .grw-wrapper {
        flex-direction: column;
        border-radius: 10px;
    }

    .grw-business {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .grw-biz-photo { margin-bottom: 0; }

    .grw-carousel-wrap { padding: 12px 0; }

    .grw-card { flex: 0 0 80vw; max-width: 300px; }
}
