/* MG Google reviews: brand styling for Business Reviews Bundle ([brb_collection]).
   Scoped to the "Google reviews" Bricks component (321399), which sits on the
   light blue tint (section-tinted). Overrides the plugin's own CSS variables first;
   direct rules only where no variable exists.
   Layout: plugin header is flattened (display: contents) so its pieces can be
   reordered: rating summary above the slider. Plugin buttons hidden; the
   component has its own Bricks buttons. */

.brxe-321399 .rpi {
	/* Type */
	--font-family: inherit;
	--font-size: var(--text-m);
	--name-fs: var(--text-m);
	--text-fs: var(--text-m);
	--rev-time-fs: var(--text-s);
	--rev-text-lh: 1.6;
	--text-line-height: 1.6em;
	--head-fs: var(--text-m);
	--head-based-fs: var(--text-m);
	--head-btn-fs: var(--text-s);

	/* Colours */
	--card-color: var(--text);
	--name-color: var(--primary);
	--time-color: var(--text-t-4);
	--readmore-color: var(--secondary);
	--head-based-color: var(--text);
	--star-color: var(--accent); /* brand blue stars; decorative, rating is also in text */
	--head-star-color: var(--accent);
	--rpi-star-color: var(--accent);
	--rating-color: var(--primary); /* "4.8" text: accent fails contrast on the tint */
	--head-rating-color: var(--primary);
	--head-star-size: 24px;

	/* Cards: white on the tinted section */
	--card-bg: var(--surface);
	--card-bg-color: var(--surface);
	--card-br: var(--border-thin, 1px) solid;
	--card-br-color: var(--primary-t-1);
	--card-radius: var(--radius-card);
	--card-padding: var(--space-l);
	--card-shadow: none;
	--img-size: 48px;

	/* Slider arrows and dots */
	--slider-btn-bg: var(--surface);
	--slider-btn-bc: var(--primary-t-2);
	--slider-btn-color: var(--primary);
	--slider-btn-shadow: none;
	--slider-btn-size: 18px;
	--slider-dot-size: 0.75em;
	--slider-card-margin: 10px;

	color: var(--text);
}

/* ---------- Layout: rating above, slider, buttons below ---------- */

.brxe-321399 .rpi .rpi-cnt {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--space-m);
}

/* Flatten the header so its rating and buttons become items of .rpi-cnt */
.brxe-321399 .rpi .rpi-header,
.brxe-321399 .rpi .rpi-header .rpi-cards,
.brxe-321399 .rpi .rpi-header .rpi-card,
.brxe-321399 .rpi .rpi-header .rpi-card-inner,
.brxe-321399 .rpi .rpi-header .rpi-flex {
	display: contents !important;
}

/* Header Google "G" badge is drawn as ::before on the card */
.brxe-321399 .rpi .rpi-header .rpi-card-inner::before {
	content: none !important;
	display: none !important;
}

/* Drop the branded block: Google logo, business avatar, "Top rated", business name */
.brxe-321399 .rpi .rpi-header .rpi-logos,
.brxe-321399 .rpi .rpi-header .rpi-img-wrap,
.brxe-321399 .rpi .rpi-header .rpi-scale,
.brxe-321399 .rpi .rpi-header .rpi-name {
	display: none !important;
}

/* Rating summary: "4.8 ★★★★★  Based on 158 reviews", centred */
.brxe-321399 .rpi .rpi-header .rpi-info {
	order: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs) var(--space-s);
	width: 100%;
	overflow: visible;
	text-align: center;
}

.brxe-321399 .rpi .rpi-header .rpi-stars {
	align-self: center;
	color: var(--primary);
	font-size: var(--text-l);
	font-weight: 700;
}

.brxe-321399 .rpi .rpi-header .rpi-based {
	justify-content: center;
	font-weight: 600;
}

/* Slider */
.brxe-321399 .rpi .rpi-content {
	order: 2;
	width: 100%;
	flex: 0 0 auto;
}

/* Plugin buttons hidden: the component has its own Bricks buttons below the slider */
.brxe-321399 .rpi .rpi-header .rpi-slider-btn {
	display: none !important;
}

/* Leave room under the slider for the plugin dots (absolutely positioned) */
.brxe-321399 .rpi .rpi-cnt {
	padding-bottom: var(--space-l);
}

/* ---------- Review cards ---------- */

.brxe-321399 .rpi .rpi-content .rpi-name {
	font-weight: 700;
	text-decoration: none;
}

.brxe-321399 .rpi .rpi-content .rpi-name:hover {
	text-decoration: underline;
}

.brxe-321399 .rpi .rpi-reply {
	margin-top: var(--space-s);
	padding: var(--space-s);
	border-left: 3px solid var(--accent);
	background: var(--surface-alt);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	font-size: var(--text-s);
}

.brxe-321399 .rpi .rpi-reply b {
	display: block;
	color: var(--primary);
}

/* ---------- Slider controls ---------- */

.brxe-321399 .rpi .rpi-ltgt:hover {
	background-color: var(--surface-alt) !important;
}

.brxe-321399 .rpi .rpi-dots .rpi-dot {
	background-color: var(--primary) !important;
}

/* Keyboard focus: visible ring in brand accent */
.brxe-321399 .rpi a:focus-visible,
.brxe-321399 .rpi button:focus-visible,
.brxe-321399 .rpi .rpi-text:focus-visible,
.brxe-321399 .rpi .rpi-reply:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
