/*
 * BB Google Sync — inline pill styling.
 *
 * The pill sits on the listing header's social-icons row, next to the
 * Facebook / LinkedIn / Google G chips. Matches their visual vocabulary:
 * rounded, bordered, hover-lift, opens in a new tab. Slightly wider than
 * the icon chips because it carries text.
 *
 * Enqueued only on listing single pages by the plugin.
 */

.bbgs-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	height: 32px;
	border: 1px solid var(--primary, #14b8a6);
	border-radius: 999px;
	background: transparent;
	color: var(--primary, #14b8a6);
	text-decoration: none;
	font-size: 13px;
	line-height: 1;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bbgs-pill:hover,
.bbgs-pill:focus-visible {
	background: var(--primary, #14b8a6);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.bbgs-pill__g {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Keep the Google G colours intact on hover — they're brand marks. */
.bbgs-pill:hover .bbgs-pill__g svg path,
.bbgs-pill:focus-visible .bbgs-pill__g svg path {
	/* Tiny visual lift inside the white fill on hover */
	filter: drop-shadow(0 0 1px rgba(255,255,255,0.35));
}

.bbgs-pill__star {
	color: #fbbc05;
	font-size: 14px;
	line-height: 1;
}

.bbgs-pill:hover .bbgs-pill__star,
.bbgs-pill:focus-visible .bbgs-pill__star {
	color: #fff;
}

.bbgs-pill__rating {
	font-weight: 700;
}

.bbgs-pill__sep {
	opacity: 0.6;
}

.bbgs-pill__count {
	font-weight: 500;
}

/* Dark theme support (the theme's main dark mode uses html.dark + the
 * data-theme attribute; both are honoured here). */
html.dark .bbgs-pill,
[data-theme="dark"] .bbgs-pill {
	color: var(--primary, #14b8a6);
}
html.dark .bbgs-pill:hover,
html.dark .bbgs-pill:focus-visible,
[data-theme="dark"] .bbgs-pill:hover,
[data-theme="dark"] .bbgs-pill:focus-visible {
	background: var(--primary, #14b8a6);
	color: #fff;
}

/* Tight phone widths — when there's room only for icons + a short rating,
 * hide the "47 reviews" text and let the pill compress to just G + ★ 4.6. */
@media (max-width: 360px) {
	.bbgs-pill__sep,
	.bbgs-pill__count { display: none; }
}
