/* ===================================================================
   Google Reviews Badge
   Light variant: .grb-card
   Dark variant:  .grb-dark   [google_reviews_badge variant="dark"]
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');


/* ── LIGHT VARIANT (Card) ──────────────────────────────────────── */

.grb-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.grb-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.grb-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-shrink: 0;
}

.grb-google-logo { display: block; }

.grb-card__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.grb-card__top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.grb-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.grb-card__label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.4;
    white-space: nowrap;
}

.grb-card__bottom-row { display: flex; align-items: center; gap: 8px; }

.grb-card__stars { display: inline-flex; align-items: center; gap: 2px; line-height: 0; }

.grb-star { display: inline-block; vertical-align: middle; }

.grb-card__rating-text { font-size: 14px; font-weight: 600; color: #555; }

.grb-card__count-wrap { display: flex; align-items: center; flex-shrink: 0; margin-left: 8px; }

.grb-card__count-circle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.grb-card__review-icon { display: block; flex-shrink: 0; }
.grb-card__count-num { line-height: 1; }

@media (max-width: 520px) {
    .grb-card { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .grb-card__name { max-width: 180px; font-size: 14px; }
    .grb-card__count-wrap { margin-left: 0; }
}


/* ── DARK VARIANT (Hero) ───────────────────────────────────────── */

.grb-dark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #133a24;
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    padding: 0 20px;
    height: 66px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    box-sizing: border-box;
}

/* Circular white "G" icon */
.grb-dark__g-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* Info column */
.grb-dark__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* Name + label row */
.grb-dark__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grb-dark__name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.grb-dark__label {
    display: inline-block;
    background: #4ADE80;
    color: #0d2818;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Stars + rating row */
.grb-dark__rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grb-dark__stars {
    font-size: 12px;
    color: #facc15;
    letter-spacing: 1px;
    line-height: 1;
}

.grb-dark__rating-text {
    font-size: 11px;
    color: #8faa9a;
    font-weight: 500;
    line-height: 1;
}

/* Review count with left border separator */
.grb-dark__count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5a7a6a;
    font-weight: 600;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(74, 222, 128, 0.1);
    white-space: nowrap;
    height: 28px;
}

.grb-dark__count-star {
    color: #facc15;
    font-size: 11px;
    line-height: 1;
}

.grb-dark__count-num {
    line-height: 1;
}

/* Responsive */
@media (max-width: 420px) {
    .grb-dark {
        gap: 10px;
        padding: 0 14px;
    }
    .grb-dark__name {
        max-width: 140px;
        font-size: 12px;
    }
    .grb-dark__count {
        padding-left: 10px;
        margin-left: 4px;
    }
}
