/* =============================================
   Google Review Badge — [ago_review_badge]
   Compact horizontal widget for header / anywhere
   ============================================= */

.ws-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-family: var(--ws-body-font, 'Outfit', sans-serif);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

a.ws-review-badge {
    cursor: pointer;
}

a.ws-review-badge:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
}

/* Dark scheme (for dark headers) */
.ws-review-badge--dark {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

a.ws-review-badge--dark:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Google "G" icon */
.ws-review-badge__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Body — stacks top row + subtitle */
.ws-review-badge__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Top row: stars + rating number */
.ws-review-badge__top {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stars row */
.ws-review-badge__stars {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}

.ws-review-badge__star {
    display: block;
}

/* Rating number */
.ws-review-badge__rating {
    font-weight: 700;
    font-size: 15px;
}

/* Subtitle: "based on X reviews" */
.ws-review-badge__subtitle {
    font-size: 10px;
    opacity: 0.55;
    line-height: 1;
    letter-spacing: 0.01em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ws-review-badge {
        padding: 4px 8px;
        gap: 5px;
        font-size: 12px;
    }

    .ws-review-badge__star {
        width: 12px;
        height: 12px;
    }

    .ws-review-badge__icon svg {
        width: 16px;
        height: 16px;
    }

    .ws-review-badge__subtitle {
        display: none;
    }
}
