/* ── HF Google Reviews Widget ─────────────────────────────────────────────── */

.hf-gr {
	--hf-gr-logo-size: 22px;
	--hf-gr-logo-color: #5F6368;
	--hf-gr-sep: #E0E0E0;
	--hf-gr-sep-height: 26px;
	--hf-gr-star-size: 17px;
	--hf-gr-star-gap: 2px;
	--hf-gr-star: #F5871F;
	--hf-gr-star-empty: rgba(0, 0, 0, .15);
	--hf-gr-text: #6B6B6B;
	--hf-gr-gap: 10px;

	display: flex;
	justify-content: flex-start;
}

/* ── Dark theme ────────────────────────────────────────────────────────────
   For badges placed on a dark background. Each value has a matching "(dark)"
   colour control in the widget's Style tab. */

.hf-gr.hf-gr--dark {
	--hf-gr-logo-color: #FFFFFF;
	--hf-gr-sep: rgba(255, 255, 255, .25);
	--hf-gr-star: #FFB400;
	--hf-gr-star-empty: rgba(255, 255, 255, .25);
	--hf-gr-text: #E8EAED;
}

.hf-gr__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--hf-gr-gap);
	line-height: 1;
	text-decoration: none;
	color: inherit;
}

a.hf-gr__badge:hover .hf-gr__count,
a.hf-gr__badge:focus-visible .hf-gr__count {
	text-decoration: underline;
}

a.hf-gr__badge:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ── Logo ──────────────────────────────────────────────────────────────────
   The four-colour Google G is recoloured to a single tone in mono mode, which
   is the footer default. */

.hf-gr__logo {
	display: inline-flex;
	flex: 0 0 auto;
}

.hf-gr__logo svg {
	width: var(--hf-gr-logo-size);
	height: var(--hf-gr-logo-size);
	display: block;
}

.hf-gr--mono .hf-gr__logo svg path {
	fill: var(--hf-gr-logo-color);
}

/* ── Separator ─────────────────────────────────────────────────────────────── */

.hf-gr__sep {
	flex: 0 0 auto;
	width: 1px;
	align-self: center;
	height: var(--hf-gr-sep-height);
	background-color: var(--hf-gr-sep);
}

/* ── Stars ─────────────────────────────────────────────────────────────────
   Two identical rows stacked: a muted track and a coloured overlay clipped to
   the rating percentage, so half stars render exactly. */

.hf-gr__stars {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	line-height: 0;
}

.hf-gr__stars-track,
.hf-gr__stars-fill {
	display: block;
	white-space: nowrap;
	font-size: 0;
}

.hf-gr__stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	max-width: 100%;
}

.hf-gr__star {
	width: var(--hf-gr-star-size);
	height: var(--hf-gr-star-size);
	display: inline-block;
	vertical-align: top;
}

.hf-gr__star + .hf-gr__star {
	margin-left: var(--hf-gr-star-gap);
}

.hf-gr__stars-track .hf-gr__star {
	fill: var(--hf-gr-star-empty);
}

.hf-gr__stars-fill .hf-gr__star {
	fill: var(--hf-gr-star);
}

/* ── Text ──────────────────────────────────────────────────────────────────── */

.hf-gr__value {
	font-weight: 700;
	line-height: 1;
}

.hf-gr__count {
	line-height: 1;
	white-space: nowrap;
}

.hf-gr--dark .hf-gr__count,
.hf-gr--dark .hf-gr__value {
	color: var(--hf-gr-text);
}
