/* Google Reviews Sync — slider */
.bgr,
.bgr-badge {
	--bgr-primary: var(--wp--preset--color--primary, #6B3FA0);
	--bgr-primary-soft: rgba(107, 63, 160, .08);
	--bgr-text: #2b2433;
	--bgr-muted: #6f6779;
	--bgr-star: #F4B400;
	--bgr-radius: 20px;
	--bgr-gap: 20px;
	--bgr-heading-font: var(--wp--preset--font-family--heading, 'Playfair Display', Georgia, serif);
	--bgr-body-font: var(--wp--preset--font-family--body, 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif);
	font-family: var(--bgr-body-font);
	color: var(--bgr-text);
	box-sizing: border-box;
}
.bgr *,
.bgr *::before,
.bgr *::after { box-sizing: inherit; }

.bgr {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 20px 40px;
}

/* Header */
.bgr__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}
.bgr__title {
	font-family: var(--bgr-heading-font);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	line-height: 1.15;
	margin: 0;
	color: var(--bgr-text);
}

/* Score summary */
.bgr-summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(107, 63, 160, .15);
	box-shadow: 0 4px 14px rgba(43, 36, 51, .06);
	color: var(--bgr-text);
	text-decoration: none;
	font-size: .95rem;
	line-height: 1;
	transition: box-shadow .2s, transform .2s;
}
a.bgr-summary:hover { box-shadow: 0 6px 20px rgba(107, 63, 160, .16); transform: translateY(-1px); }
.bgr-summary__logo { display: block; width: 22px; height: 22px; object-fit: contain; margin: 0; }
.bgr-summary__score { font-size: 1.15rem; font-weight: 700; }
.bgr-summary__count { color: var(--bgr-muted); }
.bgr-badge { display: inline-block; }

/* Stars */
.bgr-stars {
	position: relative;
	display: inline-block;
	font-size: 1.05rem;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}
.bgr-stars__base { color: #e4dfe9; }
.bgr-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: var(--bgr-star);
}

/* Slider */
.bgr__viewport { position: relative; }
.bgr__track {
	display: flex;
	gap: var(--bgr-gap);
	margin: 0;
	padding: 6px 2px 16px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	outline: none;
}
.bgr__track::-webkit-scrollbar { display: none; }
.bgr__track:focus-visible { outline: 2px solid var(--bgr-primary); outline-offset: 4px; border-radius: var(--bgr-radius); }

.bgr__slide {
	flex: 0 0 86%;
	scroll-snap-align: start;
	display: flex;
	margin: 0;
	padding: 0;
}
@media (min-width: 680px) {
	.bgr__slide { flex-basis: calc((100% - var(--bgr-gap)) / 2); }
}
@media (min-width: 1024px) {
	.bgr__slide { flex-basis: calc((100% - 2 * var(--bgr-gap)) / 3); }
}

/* Card */
.bgr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 24px 24px 22px;
	background: #fff;
	border: 1px solid rgba(107, 63, 160, .12);
	border-radius: var(--bgr-radius);
	box-shadow: 0 6px 24px rgba(43, 36, 51, .06);
	overflow: hidden;
}
.bgr-card::after {
	content: "\201D";
	position: absolute;
	top: -6px;
	right: 18px;
	font-family: var(--bgr-heading-font);
	font-size: 6rem;
	line-height: 1;
	color: var(--bgr-primary-soft);
	pointer-events: none;
}
.bgr .bgr-card__head {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	min-height: 0;
	position: static;
	background: none;
	border: 0;
	box-shadow: none;
}
.bgr-card__avatar {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #8a63c0, var(--bgr-primary));
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.05rem;
}
.bgr-card__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bgr .bgr-card__meta { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin: 0; padding: 0; }
.bgr .bgr-card__name { display: block; margin: 0; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgr .bgr-card__date { display: block; margin: 0; font-size: .85rem; line-height: 1.3; color: var(--bgr-muted); }
.bgr .bgr-card > * { margin-top: 0; margin-bottom: 0; }

.bgr-card__text {
	font-size: .98rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bgr-card__text p { margin: 0 0 .6em; }
.bgr-card__text p:last-child { margin-bottom: 0; }
.bgr-card.is-open .bgr-card__text { display: block; -webkit-line-clamp: unset; }

.bgr-card__more {
	align-self: flex-start;
	margin-top: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bgr-primary);
	font: inherit;
	font-weight: 600;
	font-size: .92rem;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Arrows */
.bgr__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -30px;
	border: 1px solid rgba(107, 63, 160, .18);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(43, 36, 51, .12);
	color: var(--bgr-primary);
	display: none;
	place-items: center;
	cursor: pointer;
	padding: 0;
	transition: background .2s, color .2s, opacity .2s;
}
.bgr__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bgr__nav:hover { background: var(--bgr-primary); color: #fff; }
.bgr__nav:focus-visible { outline: 2px solid var(--bgr-primary); outline-offset: 3px; }
.bgr__nav--prev { left: -22px; }
.bgr__nav--next { right: -22px; }
@media (min-width: 680px) {
	.bgr.is-scrollable .bgr__nav { display: grid; }
}
@media (max-width: 1240px) {
	.bgr__nav--prev { left: -6px; }
	.bgr__nav--next { right: -6px; }
}

/* Dots */
.bgr__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	min-height: 10px;
	margin-top: 6px;
}
.bgr__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(107, 63, 160, .22);
	transition: width .25s, background .25s;
}
.bgr__dot.is-active { width: 24px; background: var(--bgr-primary); }
.bgr__counter { font-size: .85rem; color: var(--bgr-muted); }

/* CTA */
.bgr__cta { text-align: center; margin: 22px 0 0; }
.bgr__cta-link {
	color: var(--bgr-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.bgr__track { scroll-behavior: auto; }
	.bgr__dot, .bgr-summary, .bgr__nav { transition: none; }
}
