/* Google Reviews Widget — Public Styles */

.grw-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.grw-widget *, .grw-widget *::before, .grw-widget *::after {
    box-sizing: inherit;
}

/* Header */
.grw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.grw-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 !important;
}

.grw-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: #555;
}

.grw-avg-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
}

/* Stars */
.grw-stars {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.grw-star {
    width: 15px;
    height: 15px;
}

/* Loading */
.grw-loading {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 2rem 0;
    color: #888;
    font-size: .9375rem;
}

.grw-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: grw-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes grw-spin { to { transform: rotate(360deg); } }

/* Error */
.grw-error {
    padding: 1.25rem;
    background: #fff3f3;
    border: 1px solid #ffd7d7;
    border-radius: 8px;
    color: #c00;
    font-size: .875rem;
}

/* Track */
.grw-track-wrap {
    overflow: hidden;
    position: relative;
}

.grw-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Card */
.grw-card {
    flex: 0 0 calc(33.333% - 12px);
    margin-right: 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 200px;
}

@media (max-width: 900px) {
    .grw-card { flex: 0 0 calc(50% - 9px); }
}

@media (max-width: 580px) {
    .grw-card { flex: 0 0 calc(100% - 4px); margin-right: 8px; }
}

.grw-card-top {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.grw-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.grw-avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grw-author-name {
    font-weight: 600;
    font-size: .9375rem;
    color: #111;
    line-height: 1.2;
}

.grw-place-name {
    font-size: .75rem;
    color: #777;
    margin-top: 2px;
}

.grw-review-date {
    font-size: .75rem;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}

.grw-review-text {
    font-size: .875rem;
    line-height: 1.6;
    color: #333;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.grw-card-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
}

.grw-google-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}

.grw-google-link:hover { color: #555; }

.grw-google-link svg {
    width: 15px;
    height: 15px;
}

/* Controls */
.grw-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.grw-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    padding: 0;
    flex-shrink: 0;
}

.grw-btn:hover { background: #f5f5f5; border-color: #bbb; }

.grw-btn svg {
    width: 16px;
    height: 16px;
    stroke: #555;
}

.grw-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.grw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, transform .2s;
}

.grw-dot.active { transform: scale(1.4); }

/* Updated line */
.grw-updated {
    text-align: center;
    margin-top: .75rem;
    font-size: .75rem;
    color: #bbb;
}
