/*!
 * GMB Pro — front end.
 * Every selector is prefixed (.gmbp-root / #gmbp-floats) and buttons/links/images
 * are reset at a specificity that beats common theme and Elementor kit rules,
 * so the plugin neither breaks the site nor gets broken by it.
 */

/* ========== Stars (shared) ========== */
.gmbp-stars { display: inline-flex; gap: 2px; font-size: 16px; line-height: 1; vertical-align: middle; }
.gmbp-stars .gmbp-star { position: relative; display: inline-block; width: 1em; height: 1em; flex: 0 0 1em; }
.gmbp-stars .gmbp-star svg { display: block; width: 1em; height: 1em; max-width: none; }
.gmbp-stars .gmbp-star-o { fill: none; stroke: var(--gmbp-star, #f7931e); stroke-width: 1.6; stroke-linejoin: round; }
.gmbp-stars .gmbp-star-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.gmbp-stars .gmbp-star-fill svg { fill: var(--gmbp-star, #f7931e); }

/* ========== Root & themes ========== */
.gmbp-root {
	--gmbp-bg: #ffffff;
	--gmbp-text: #1f2328;
	--gmbp-muted: #667085;
	--gmbp-name: #1a56db;
	--gmbp-star: #f7931e;
	--gmbp-accent: #1a73e8;
	--gmbp-card-bg: #f6f7f9;
	--gmbp-card-border: #e4e7ec;
	--gmbp-card-radius: 14px;
	--gmbp-card-pad: 22px;
	--gmbp-arrow-bg: #ffffff;
	--gmbp-arrow-color: #344054;
	--gmbp-dot: #c8ccd3;
	--gmbp-dot-active: var(--gmbp-star);
	--gmbp-pad: 44px 40px;
	--gmbp-cols: var(--gmbp-cols-d, 3);

	position: relative;
	display: block;
	margin: 0;
	padding: var(--gmbp-pad);
	background: var(--gmbp-bg);
	color: var(--gmbp-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.gmbp-root, .gmbp-root *, .gmbp-root *::before, .gmbp-root *::after { box-sizing: border-box; }

.gmbp-root.gmbp-theme-dark {
	--gmbp-bg: #1e2330;
	--gmbp-text: #eef0f4;
	--gmbp-muted: #a5acb9;
	--gmbp-name: #5b8ef0;
	--gmbp-card-bg: #262c3a;
	--gmbp-card-border: #353c4d;
	--gmbp-arrow-bg: #f2f4f7;
	--gmbp-arrow-color: #344054;
	--gmbp-dot: #555c6c;
}
.gmbp-root.gmbp-theme-transparent {
	--gmbp-bg: transparent;
	--gmbp-text: currentColor;
	--gmbp-muted: currentColor;
	--gmbp-card-bg: rgba(127, 127, 127, .08);
	--gmbp-card-border: rgba(127, 127, 127, .22);
	--gmbp-pad: 0;
}
.gmbp-root.gmbp-theme-transparent .gmbp-date,
.gmbp-root.gmbp-theme-transparent .gmbp-biz-count,
.gmbp-root.gmbp-theme-transparent .gmbp-powered { opacity: .7; }

@media (max-width: 1024px) {
	.gmbp-root { --gmbp-cols: var(--gmbp-cols-t, 2); --gmbp-pad: 36px 28px; }
}
@media (max-width: 767px) {
	.gmbp-root { --gmbp-cols: var(--gmbp-cols-m, 1); --gmbp-pad: 28px 16px; }
	.gmbp-root.gmbp-theme-transparent { --gmbp-pad: 0; }
}

/* ========== Width ========== */
/* The layout reacts to the space the widget really has (container queries),
   not just the screen size, so it also works in narrow columns. */
.gmbp-root:not(.gmbp-layout-badge) { container-type: inline-size; container-name: gmbp; --gmbp-card-min: 230px; }

.gmbp-root .gmbp-inner { max-width: var(--gmbp-max, none); margin-left: auto; margin-right: auto; }
/* Full page width even inside a narrow (boxed) container.
   --gmbp-sbw is the scrollbar width, measured by gmbp.js, so no sideways scroll appears. */
.gmbp-root.gmbp-stretch {
	width: calc(100vw - var(--gmbp-sbw, 0px));
	max-width: none;
	margin-left: calc(50% - (100vw - var(--gmbp-sbw, 0px)) / 2);
	margin-right: calc(50% - (100vw - var(--gmbp-sbw, 0px)) / 2);
}

/* ========== Summary ========== */
.gmbp-root .gmbp-summary { display: flex; align-items: center; gap: 16px; min-width: 0; }
.gmbp-root .gmbp-summary .gmbp-biz-avatar {
	display: flex; align-items: center; justify-content: center;
	flex: 0 0 56px; width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--gmbp-accent);
	color: #fff;
	font-size: 24px; font-weight: 700; line-height: 1;
}
.gmbp-root .gmbp-summary img.gmbp-biz-logo {
	display: block;
	max-width: none;
	height: 56px;
	margin: 0;
	padding: 5px;
	background: #fff;
	border: 1px solid rgba(16, 24, 40, .10);
	border-radius: 50%;
	box-shadow: none;
	object-fit: contain;
}
.gmbp-root .gmbp-summary .gmbp-biz { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.gmbp-root .gmbp-summary .gmbp-biz-name {
	color: var(--gmbp-text);
	font-size: 19px; font-weight: 700; line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.gmbp-root .gmbp-summary a.gmbp-biz-name:hover { text-decoration: underline; color: var(--gmbp-text); }
.gmbp-root .gmbp-summary .gmbp-biz-rating { display: flex; align-items: center; gap: 8px; }
.gmbp-root .gmbp-summary .gmbp-score { color: var(--gmbp-star); font-size: 19px; font-weight: 700; line-height: 1; }
.gmbp-root .gmbp-summary .gmbp-stars-lg { font-size: 21px; }
.gmbp-root .gmbp-summary .gmbp-biz-count { color: var(--gmbp-muted); font-size: 15px; }
.gmbp-root .gmbp-summary .gmbp-powered { color: var(--gmbp-text); font-size: 14px; font-weight: 600; }
.gmbp-root .gmbp-summary .gmbp-write {
	display: inline-flex; align-items: center; justify-content: center;
	margin: 8px 0 0;
	min-height: 42px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--gmbp-accent);
	color: #fff;
	font-size: 14px; font-weight: 600; line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	transition: filter .15s ease;
}
.gmbp-root .gmbp-summary .gmbp-write:hover,
.gmbp-root .gmbp-summary .gmbp-write:focus-visible { color: #fff; filter: brightness(1.1); text-decoration: none; }

/* ========== Layout wrappers ========== */
.gmbp-root .gmbp-inner { display: block; min-width: 0; }
.gmbp-root.gmbp-summary-top .gmbp-summary { margin: 0 0 28px; }

.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-inner { display: flex; align-items: center; gap: 40px; }
.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-summary { flex: 0 0 auto; max-width: 300px; }
.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-slider { flex: 1 1 0; }

@media (max-width: 1024px) {
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-inner { flex-direction: column; align-items: stretch; gap: 28px; }
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-summary { max-width: none; }
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-slider { flex: none; width: 100%; }
}
@media (max-width: 767px) {
	.gmbp-root.gmbp-layout-slider .gmbp-summary { justify-content: center; }
	.gmbp-root.gmbp-summary-top .gmbp-summary { margin-bottom: 22px; }
}

@container gmbp (max-width: 900px) {
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-inner { flex-direction: column; align-items: stretch; gap: 26px; }
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-summary { max-width: none; }
	.gmbp-root.gmbp-layout-slider.gmbp-summary-left .gmbp-slider { flex: none; width: 100%; }
}
@container gmbp (max-width: 520px) {
	.gmbp-root.gmbp-layout-slider .gmbp-summary { justify-content: center; }
	.gmbp-root .gmbp-slider.gmbp-has-arrows { grid-template-columns: minmax(0, 1fr); }
	.gmbp-root .gmbp-slider .gmbp-arrow { display: none; }
}

/* ========== Slider ========== */
.gmbp-root .gmbp-slider { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 22px; min-width: 0; }
.gmbp-root .gmbp-slider.gmbp-has-arrows { grid-template-columns: auto minmax(0, 1fr) auto; }

.gmbp-root .gmbp-slider .gmbp-track {
	display: flex;
	align-items: stretch;
	gap: var(--gmbp-gap, 32px);
	margin: 0;
	padding: 4px 2px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	outline: none;
}
.gmbp-root .gmbp-slider .gmbp-track::-webkit-scrollbar { display: none; }
.gmbp-root .gmbp-slider .gmbp-track:focus-visible { outline: 2px solid var(--gmbp-accent); outline-offset: 4px; border-radius: 6px; }
.gmbp-root .gmbp-slider .gmbp-track > .gmbp-card {
	/* N per row, but never narrower than --gmbp-card-min (then fewer are shown at once) */
	/* --gmbp-cols-fit = how many whole cards fit (set by gmbp.js), never more than “per row” */
	flex: 0 0 max(calc((100% - (var(--gmbp-cols-fit, var(--gmbp-cols)) - 1) * var(--gmbp-gap, 32px)) / var(--gmbp-cols-fit, var(--gmbp-cols))), min(var(--gmbp-card-min, 230px), 100%));
	scroll-snap-align: start;
}
.gmbp-root .gmbp-slider .gmbp-track.is-draggable { cursor: grab; }
.gmbp-root .gmbp-slider .gmbp-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }

.gmbp-root .gmbp-slider .gmbp-arrow {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 1px solid rgba(16, 24, 40, .08);
	border-radius: 50%;
	background: var(--gmbp-arrow-bg);
	color: var(--gmbp-arrow-color);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
	font-size: 0; line-height: 1;
	text-transform: none; letter-spacing: normal;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}
.gmbp-root .gmbp-slider .gmbp-arrow:hover,
.gmbp-root .gmbp-slider .gmbp-arrow:focus { background: var(--gmbp-arrow-bg); color: var(--gmbp-arrow-color); border-color: rgba(16, 24, 40, .08); }
.gmbp-root .gmbp-slider .gmbp-arrow:hover { transform: scale(1.06); }
.gmbp-root .gmbp-slider .gmbp-arrow:focus-visible { outline: 2px solid var(--gmbp-accent); outline-offset: 2px; }
.gmbp-root .gmbp-slider .gmbp-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.gmbp-root .gmbp-slider .gmbp-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gmbp-root .gmbp-slider .gmbp-dots { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; min-height: 24px; }
.gmbp-root .gmbp-slider .gmbp-dot {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}
.gmbp-root .gmbp-slider .gmbp-dot:hover,
.gmbp-root .gmbp-slider .gmbp-dot:focus { background: transparent; border: 0; }
.gmbp-root .gmbp-slider .gmbp-dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gmbp-dot); transition: transform .2s ease, background-color .2s ease; }
.gmbp-root .gmbp-slider .gmbp-dot.is-active::before { background: var(--gmbp-dot-active); transform: scale(1.3); }
.gmbp-root .gmbp-slider .gmbp-dot:focus-visible { outline: 2px solid var(--gmbp-accent); outline-offset: 0; }

/* Everything fits: no arrows or dots needed. */
.gmbp-root.gmbp-no-scroll .gmbp-slider .gmbp-arrow { visibility: hidden; }
.gmbp-root.gmbp-no-scroll .gmbp-slider .gmbp-dots { display: none; }

@media (max-width: 767px) {
	.gmbp-root .gmbp-slider.gmbp-has-arrows { grid-template-columns: minmax(0, 1fr); }
	.gmbp-root .gmbp-slider .gmbp-arrow { display: none; }
	.gmbp-root .gmbp-slider .gmbp-track { gap: min(var(--gmbp-gap, 32px), 16px); }
	/* Let the next review peek in so visitors know they can swipe. */
	.gmbp-root .gmbp-slider .gmbp-track > .gmbp-card {
		flex-basis: calc((100% - 28px - (var(--gmbp-cols-fit, var(--gmbp-cols)) - 1) * min(var(--gmbp-gap, 32px), 16px)) / var(--gmbp-cols-fit, var(--gmbp-cols)));
	}
}

/* ========== Grid & list ========== */
.gmbp-root .gmbp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - (var(--gmbp-cols) - 1) * var(--gmbp-gap, 32px)) / var(--gmbp-cols)), min(var(--gmbp-card-min, 230px), 100%)), 1fr));
	gap: var(--gmbp-gap, 32px);
}
.gmbp-root.gmbp-layout-list .gmbp-grid { grid-template-columns: minmax(0, 1fr); }
.gmbp-root.gmbp-layout-list.gmbp-clamp .gmbp-card .gmbp-text { min-height: 0; }
.gmbp-root.gmbp-layout-list .gmbp-card { display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); align-items: start; gap: 24px; }
.gmbp-root.gmbp-layout-list.gmbp-cards-flat .gmbp-grid { gap: 0; }
.gmbp-root.gmbp-layout-list.gmbp-cards-flat .gmbp-card { padding: 22px 0; }
.gmbp-root.gmbp-layout-list.gmbp-cards-flat .gmbp-card + .gmbp-card { border-top: 1px solid var(--gmbp-card-border); }
@media (max-width: 767px) {
	.gmbp-root.gmbp-layout-list .gmbp-card { display: flex; gap: 12px; }
	.gmbp-root .gmbp-grid { gap: min(var(--gmbp-gap, 32px), 16px); }
}

/* ========== Review card ========== */
.gmbp-root .gmbp-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; color: var(--gmbp-text); text-align: left; }
.gmbp-root.gmbp-cards-flat .gmbp-card { padding: 4px 0; background: transparent; border: 0; }
.gmbp-root.gmbp-cards-boxed .gmbp-card {
	padding: var(--gmbp-card-pad);
	background: var(--gmbp-card-bg);
	border: 1px solid var(--gmbp-card-border);
	border-radius: var(--gmbp-card-radius);
}
@media (max-width: 767px) {
	.gmbp-root.gmbp-cards-boxed .gmbp-card { padding: min(var(--gmbp-card-pad), 18px); }
}

.gmbp-root .gmbp-card .gmbp-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gmbp-root .gmbp-card .gmbp-avatar {
	display: flex; align-items: center; justify-content: center;
	flex: 0 0 52px; width: 52px; height: 52px; max-width: none;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	box-shadow: none;
	object-fit: cover;
	background-color: #d0d5dd;
	color: #fff;
	font-size: 19px; font-weight: 700; line-height: 1;
	letter-spacing: .02em;
}
.gmbp-root .gmbp-card .gmbp-avatar-wrap { position: relative; display: block; flex: 0 0 52px; width: 52px; height: 52px; }
/* Local Guide badge, bottom-right of the photo like on Google Maps */
.gmbp-root .gmbp-card .gmbp-guide {
	position: absolute;
	right: -3px;
	bottom: -3px;
	display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--gmbp-guide, #f16d22);
	box-shadow: 0 0 0 2px var(--gmbp-guide-ring, #fff);
	pointer-events: auto;
	cursor: default;
}
.gmbp-root .gmbp-card .gmbp-guide svg { width: 12px; height: 12px; fill: #fff; display: block; }
.gmbp-root.gmbp-cards-boxed .gmbp-card .gmbp-guide { --gmbp-guide-ring: var(--gmbp-card-bg); }
.gmbp-root.gmbp-cards-flat .gmbp-card .gmbp-guide { --gmbp-guide-ring: var(--gmbp-bg, #fff); }
.gmbp-root.gmbp-theme-transparent.gmbp-cards-flat .gmbp-card .gmbp-guide { --gmbp-guide-ring: #fff; }
.gmbp-modal .gmbp-modal-box .gmbp-card .gmbp-guide { --gmbp-guide-ring: var(--gmbp-modal-bg, #fff); }
.gmbp-root .gmbp-card .gmbp-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gmbp-root .gmbp-card .gmbp-name {
	display: block;
	color: var(--gmbp-name);
	font-size: 17px; font-weight: 600; line-height: 1.3;
	text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gmbp-root .gmbp-card a.gmbp-name:hover,
.gmbp-root .gmbp-card a.gmbp-name:focus { color: var(--gmbp-name); text-decoration: underline; }
.gmbp-root .gmbp-card .gmbp-date { color: var(--gmbp-muted); font-size: 14px; line-height: 1.3; }
.gmbp-root .gmbp-card .gmbp-card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }
.gmbp-root .gmbp-grid { align-items: stretch; }
/* Same-size cards: text is cut after N lines; the full review opens in a popup. */
.gmbp-root.gmbp-clamp .gmbp-card .gmbp-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--gmbp-lines, 4);
	line-clamp: var(--gmbp-lines, 4);
	overflow: hidden;
	/* reserve the space even for short reviews so every card is identical */
	min-height: calc(var(--gmbp-lines, 4) * 1.65em);
}
.gmbp-root .gmbp-card .gmbp-stars { font-size: 20px; }
.gmbp-root .gmbp-card .gmbp-text { margin: 0; color: var(--gmbp-text); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.gmbp-root .gmbp-card .gmbp-more {
	-webkit-appearance: none; appearance: none;
	display: inline-block; align-self: flex-start; width: auto; min-width: 0; min-height: 0;
	margin: auto 0 0; padding: 2px 0;
	border: 0; border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--gmbp-name);
	font: inherit; font-size: 14px; font-weight: 600; line-height: inherit;
	text-transform: none; letter-spacing: normal; text-decoration: none;
	cursor: pointer;
}
.gmbp-root .gmbp-card .gmbp-more[hidden] { display: none; }
.gmbp-root .gmbp-card .gmbp-more:hover,
.gmbp-root .gmbp-card .gmbp-more:focus { background: transparent; color: var(--gmbp-name); text-decoration: underline; }

/* ========== Badge ========== */
.gmbp-root.gmbp-layout-badge {
	--gmbp-pad: 18px 24px 18px 18px;
	display: inline-block;
	max-width: 100%;
	border-radius: 18px;
	box-shadow: 0 6px 24px rgba(16, 24, 40, .10), 0 1px 3px rgba(16, 24, 40, .08);
}
.gmbp-root.gmbp-layout-badge.gmbp-theme-transparent { box-shadow: none; }

/* ========== Misc ========== */
.gmbp-root .gmbp-empty { color: var(--gmbp-muted); padding: 12px 0; }
.gmbp-admin-notice { padding: 12px 16px; border-left: 4px solid #d63638; background: #fcf0f1; color: #3c434a; font-size: 14px; line-height: 1.5; }

/* ========== Floating button ========== */
/* Five designs (card, compact, icon, badge, tab) and five positions.
   Computers and phones can each have their own button (.gmbp-only-d / .gmbp-only-m). */
#gmbp-floats, #gmbp-floats *, #gmbp-floats *::before, #gmbp-floats *::after { box-sizing: border-box; }
#gmbp-floats { position: static; margin: 0; padding: 0; }
#gmbp-floats .gmbp-f {
	--gx: 24px;
	--gb: var(--gmbp-f-off-d, 24px);
	--gvy: var(--gmbp-f-vy-d, 50%);
	--gop: var(--gmbp-f-op-d, 1);
	position: fixed;
	z-index: 99990;
	display: flex;
	margin: 0;
	padding: 0;
	font-family: inherit;
	line-height: 1.2;
	text-align: left;
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
#gmbp-floats .gmbp-f[hidden] { display: none; }

/* Shapes: --gr for buttons, --gr2 for taller designs (badge, tab) */
#gmbp-floats .gmbp-shape-pill    { --gr: 999px; --gr2: 16px; --gri: 50%; }
#gmbp-floats .gmbp-shape-rounded { --gr: 16px;  --gr2: 12px; --gri: 11px; }
#gmbp-floats .gmbp-shape-square  { --gr: 6px;   --gr2: 4px;  --gri: 4px; }

/* ---- Positions ---- */
#gmbp-floats .gmbp-bottom { bottom: calc(var(--gb) + env(safe-area-inset-bottom, 0px)); transform: translateY(16px); }
#gmbp-floats .gmbp-pos-bottom-left  { left: calc(var(--gx) + env(safe-area-inset-left, 0px)); right: auto; }
#gmbp-floats .gmbp-pos-bottom-right { right: calc(var(--gx) + env(safe-area-inset-right, 0px)); left: auto; }
#gmbp-floats .gmbp-pos-bottom-center { left: 0; right: 0; width: max-content; max-width: calc(100% - 2 * var(--gx)); margin: 0 auto; }

#gmbp-floats .gmbp-side { top: var(--gvy); bottom: auto; translate: 0 -50%; }
#gmbp-floats .gmbp-pos-left.gmbp-side  { left: calc(var(--gx) + env(safe-area-inset-left, 0px)); right: auto; transform: translateX(-16px); }
#gmbp-floats .gmbp-pos-right.gmbp-side { right: calc(var(--gx) + env(safe-area-inset-right, 0px)); left: auto; transform: translateX(16px); }
/* The side tab sticks to the screen edge */
#gmbp-floats .gmbp-st-tab.gmbp-pos-left,
#gmbp-floats .gmbp-st-label.gmbp-pos-left  { left: 0; transform: translateX(-100%); }
#gmbp-floats .gmbp-st-tab.gmbp-pos-right,
#gmbp-floats .gmbp-st-label.gmbp-pos-right { right: 0; transform: translateX(100%); }

/* Shown state comes after the positions so it wins over their start offsets */
#gmbp-floats .gmbp-f.is-visible { opacity: var(--gop, 1); transform: none; pointer-events: auto; }
/* See-through buttons turn solid when hovered or focused */
#gmbp-floats .gmbp-f.is-visible:hover,
#gmbp-floats .gmbp-f.is-visible:focus-within { opacity: 1; }
#gmbp-floats .gmbp-f.is-closing { opacity: 0; pointer-events: none; }

/* ---- Shared link ---- */
#gmbp-floats .gmbp-float-link {
	display: flex; align-items: center; gap: 10px;
	margin: 0;
	padding: 8px 18px 8px 8px;
	border: 0;
	border-radius: var(--gr, 999px);
	background: var(--gmbp-f-bg, #fff);
	color: var(--gmbp-f-color, #1f2328);
	box-shadow: 0 8px 28px rgba(16, 24, 40, .18), 0 1px 3px rgba(16, 24, 40, .12);
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
	transition: box-shadow .2s ease;
}
#gmbp-floats .gmbp-float-link:hover,
#gmbp-floats .gmbp-float-link:focus { color: var(--gmbp-f-color, #1f2328); text-decoration: none; }
#gmbp-floats .gmbp-float-link:hover { box-shadow: 0 10px 32px rgba(16, 24, 40, .24), 0 1px 3px rgba(16, 24, 40, .12); }
#gmbp-floats .gmbp-float-link:focus-visible { outline: 3px solid var(--gmbp-f-icon-bg, #1a73e8); outline-offset: 2px; }

#gmbp-floats .gmbp-float-icon {
	display: flex; align-items: center; justify-content: center;
	flex: 0 0 40px; width: 40px; height: 40px;
	border-radius: var(--gri, 50%);
	background: var(--gmbp-f-icon-bg, #1a73e8);
}
#gmbp-floats .gmbp-float-icon.gmbp-float-logo { background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .10); }
#gmbp-floats .gmbp-float-logo img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 3px; border: 0; border-radius: inherit; object-fit: contain; }
#gmbp-floats .gmbp-float-icon svg { width: 20px; height: 20px; fill: var(--gmbp-f-icon, #fff); }
#gmbp-floats .gmbp-float-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#gmbp-floats .gmbp-float-text { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
#gmbp-floats .gmbp-float-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; }
#gmbp-floats .gmbp-float-meta .gmbp-stars { font-size: 12px; gap: 1px; }
#gmbp-floats .gmbp-float-count { opacity: .65; }
#gmbp-floats svg.gmbp-g { display: block; width: 100%; height: 100%; }

/* ---- Compact: icon + rating ---- */
#gmbp-floats .gmbp-st-compact .gmbp-float-link { padding-right: 16px; }
#gmbp-floats .gmbp-st-compact.gmbp-has-rating .gmbp-float-meta { font-size: 14px; }
#gmbp-floats .gmbp-st-compact.gmbp-has-rating .gmbp-float-meta .gmbp-stars { font-size: 13px; }

/* ---- Icon only ---- */
#gmbp-floats .gmbp-st-icon .gmbp-float-link { padding: 6px; }
#gmbp-floats .gmbp-st-icon .gmbp-float-icon { flex-basis: 48px; width: 48px; height: 48px; }
#gmbp-floats .gmbp-st-icon .gmbp-float-icon svg { width: 22px; height: 22px; }

/* ---- Google badge ---- */
#gmbp-floats .gmbp-st-badge .gmbp-float-link {
	gap: 12px;
	padding: 14px 20px 12px 14px;
	border-radius: var(--gr2, 16px);
	background:
		linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%) top / 100% 4px no-repeat,
		var(--gmbp-f-bg, #fff);
}
#gmbp-floats .gmbp-st-badge .gmbp-badge-g { flex: 0 0 34px; width: 34px; height: 34px; }
#gmbp-floats .gmbp-st-badge .gmbp-float-text { font-size: 13px; font-weight: 600; opacity: .85; }
#gmbp-floats .gmbp-st-badge .gmbp-badge-row { display: flex; align-items: center; gap: 7px; }
#gmbp-floats .gmbp-st-badge .gmbp-badge-score { font-size: 22px; font-weight: 800; line-height: 1; color: var(--gmbp-f-color, #1f2328); }
#gmbp-floats .gmbp-st-badge .gmbp-badge-row .gmbp-stars { font-size: 15px; gap: 1px; }
#gmbp-floats .gmbp-st-badge .gmbp-float-count { font-size: 12px; }

/* ---- Side tab (vertical, on the screen edge) ---- */
#gmbp-floats .gmbp-st-tab .gmbp-float-link { flex-direction: column; gap: 9px; padding: 13px 10px; }
#gmbp-floats .gmbp-st-tab.gmbp-pos-left .gmbp-float-link  { border-radius: 0 var(--gr2, 16px) var(--gr2, 16px) 0; }
#gmbp-floats .gmbp-st-tab.gmbp-pos-right .gmbp-float-link { border-radius: var(--gr2, 16px) 0 0 var(--gr2, 16px); }
#gmbp-floats .gmbp-st-tab .gmbp-tab-g { flex: 0 0 22px; width: 22px; height: 22px; }
#gmbp-floats .gmbp-st-tab .gmbp-tab-word { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: .3px; white-space: nowrap; }
#gmbp-floats .gmbp-st-tab.gmbp-side .gmbp-tab-word { writing-mode: vertical-rl; transform: rotate(180deg); }
#gmbp-floats .gmbp-st-tab .gmbp-tab-stars .gmbp-stars { font-size: 12px; gap: 2px; }
#gmbp-floats .gmbp-st-tab.gmbp-side .gmbp-tab-stars .gmbp-stars { flex-direction: column; }
#gmbp-floats .gmbp-st-tab .gmbp-tab-score { font-size: 14px; font-weight: 800; line-height: 1; }
/* Tab at the bottom: the same content in one row */
#gmbp-floats .gmbp-st-tab.gmbp-bottom .gmbp-float-link { flex-direction: row; gap: 8px; padding: 10px 16px; border-radius: var(--gr, 999px); }

/* ---- Google bubble: round G with a rating chip ---- */
#gmbp-floats .gmbp-st-bubble .gmbp-float-link { position: relative; justify-content: center; width: 60px; height: 60px; padding: 0; border-radius: var(--gri, 50%); }
#gmbp-floats .gmbp-st-bubble .gmbp-bubble-g { width: 30px; height: 30px; }
#gmbp-floats .gmbp-st-bubble .gmbp-bubble-chip {
	position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 2px;
	padding: 3px 7px; border-radius: 999px;
	background: var(--gmbp-f-icon-bg, #1a73e8); color: var(--gmbp-f-icon, #fff);
	font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
#gmbp-floats .gmbp-st-bubble .gmbp-bubble-chip svg { width: 10px; height: 10px; fill: var(--gmbp-star, #f7931e); }

/* ---- Rating bar: G, rating and a button in one slim row ---- */
#gmbp-floats .gmbp-st-bar .gmbp-float-link { gap: 10px; padding: 6px 6px 6px 14px; }
#gmbp-floats .gmbp-st-bar .gmbp-bar-g { flex: 0 0 20px; width: 20px; height: 20px; }
#gmbp-floats .gmbp-st-bar .gmbp-float-meta { font-size: 14px; }
#gmbp-floats .gmbp-st-bar .gmbp-float-meta .gmbp-stars { font-size: 13px; }
#gmbp-floats .gmbp-cta-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 16px; border-radius: var(--gr, 999px);
	background: var(--gmbp-f-icon-bg, #1a73e8); color: var(--gmbp-f-icon, #fff);
	font-size: 13px; font-weight: 700; line-height: 1.1; white-space: nowrap;
	transition: filter .15s ease;
}
#gmbp-floats .gmbp-float-link:hover .gmbp-cta-btn { filter: brightness(1.1); }

/* ---- Rating tile: small square card ---- */
#gmbp-floats .gmbp-st-tile .gmbp-float-link { flex-direction: column; justify-content: center; gap: 5px; min-width: 104px; padding: 14px 14px 12px; border-radius: var(--gr2, 16px); text-align: center; }
#gmbp-floats .gmbp-st-tile .gmbp-tile-g { width: 28px; height: 28px; }
#gmbp-floats .gmbp-st-tile .gmbp-tile-score { font-size: 26px; font-weight: 800; line-height: 1; }
#gmbp-floats .gmbp-st-tile .gmbp-tile-stars .gmbp-stars { font-size: 13px; gap: 1px; }
#gmbp-floats .gmbp-st-tile .gmbp-float-count { font-size: 11px; }
#gmbp-floats .gmbp-st-tile .gmbp-float-text { font-size: 12px; max-width: 110px; white-space: normal; }

/* ---- Colour tab: solid tab in the icon colour ---- */
#gmbp-floats .gmbp-st-label .gmbp-float-link { gap: 8px; padding: 10px 16px; background: var(--gmbp-f-icon-bg, #1a73e8); color: var(--gmbp-f-icon, #fff); }
#gmbp-floats .gmbp-st-label .gmbp-float-link:hover,
#gmbp-floats .gmbp-st-label .gmbp-float-link:focus { color: var(--gmbp-f-icon, #fff); }
#gmbp-floats .gmbp-st-label .gmbp-label-star svg { display: block; width: 16px; height: 16px; fill: var(--gmbp-star, #f7931e); }
#gmbp-floats .gmbp-st-label .gmbp-label-score { font-size: 15px; font-weight: 800; line-height: 1; }
#gmbp-floats .gmbp-st-label .gmbp-label-text { font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
#gmbp-floats .gmbp-st-label.gmbp-side .gmbp-float-link { flex-direction: column; padding: 14px 10px; }
#gmbp-floats .gmbp-st-label.gmbp-side .gmbp-label-text { writing-mode: vertical-rl; transform: rotate(180deg); }
#gmbp-floats .gmbp-st-label.gmbp-pos-left .gmbp-float-link  { border-radius: 0 var(--gr2, 16px) var(--gr2, 16px) 0; }
#gmbp-floats .gmbp-st-label.gmbp-pos-right .gmbp-float-link { border-radius: var(--gr2, 16px) 0 0 var(--gr2, 16px); }

/* ---- Card + button ---- */
#gmbp-floats .gmbp-st-cta .gmbp-float-link { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border-radius: var(--gr2, 16px); }
#gmbp-floats .gmbp-st-cta .gmbp-cta-top { display: flex; align-items: center; gap: 10px; }
#gmbp-floats .gmbp-st-cta .gmbp-cta-g { flex: 0 0 30px; width: 30px; height: 30px; }
#gmbp-floats .gmbp-st-cta .gmbp-cta-btn { width: 100%; border-radius: var(--gr2, 16px); }
#gmbp-floats .gmbp-st-cta.gmbp-shape-pill .gmbp-cta-btn { border-radius: 999px; }

/* ---- Close (×) ---- */
#gmbp-floats .gmbp-float-close {
	-webkit-appearance: none; appearance: none;
	position: absolute; top: -8px; right: -8px; left: auto;
	display: flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--gmbp-f-close, #374151);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	line-height: 1;
	cursor: pointer;
}
#gmbp-floats .gmbp-pos-bottom-right .gmbp-float-close,
#gmbp-floats .gmbp-pos-right .gmbp-float-close { left: -8px; right: auto; }
#gmbp-floats .gmbp-st-bubble .gmbp-float-close { top: -6px; right: -6px; }
#gmbp-floats .gmbp-st-bubble.gmbp-pos-bottom-right .gmbp-float-close,
#gmbp-floats .gmbp-st-bubble.gmbp-pos-right .gmbp-float-close { left: -6px; right: auto; }
#gmbp-floats .gmbp-float-close:hover,
#gmbp-floats .gmbp-float-close:focus { background: var(--gmbp-f-close, #374151); color: #fff; }
#gmbp-floats .gmbp-float-close:focus-visible { outline: 2px solid var(--gmbp-f-icon-bg, #1a73e8); outline-offset: 2px; }
#gmbp-floats .gmbp-float-close::before { content: ""; position: absolute; inset: -10px; }
#gmbp-floats .gmbp-float-close svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }

/* ---- Devices ---- */
@media (min-width: 768px) {
	#gmbp-floats.gmbp-hide-d .gmbp-f,
	#gmbp-floats .gmbp-f.gmbp-only-m { display: none !important; }
}
@media (max-width: 767px) {
	#gmbp-floats.gmbp-hide-m .gmbp-f,
	#gmbp-floats .gmbp-f.gmbp-only-d { display: none !important; }

	#gmbp-floats .gmbp-f { --gx: 14px; --gb: var(--gmbp-f-off-m, 16px); --gvy: var(--gmbp-f-vy-m, 50%); --gop: var(--gmbp-f-op-m, 1); }

	#gmbp-floats .gmbp-float-link { gap: 8px; padding: 6px 14px 6px 6px; }
	#gmbp-floats .gmbp-float-icon { flex-basis: 34px; width: 34px; height: 34px; }
	#gmbp-floats .gmbp-float-icon svg { width: 17px; height: 17px; }
	#gmbp-floats .gmbp-float-text { font-size: 13px; max-width: 52vw; }
	#gmbp-floats .gmbp-float-meta, #gmbp-floats .gmbp-float-meta .gmbp-stars { font-size: 11px; }

	#gmbp-floats .gmbp-st-compact.gmbp-has-rating .gmbp-float-meta { font-size: 13px; }
	#gmbp-floats .gmbp-st-compact.gmbp-has-rating .gmbp-float-meta .gmbp-stars { font-size: 12px; }

	#gmbp-floats .gmbp-st-icon .gmbp-float-link { padding: 5px; }
	#gmbp-floats .gmbp-st-icon .gmbp-float-icon { flex-basis: 42px; width: 42px; height: 42px; }
	#gmbp-floats .gmbp-st-icon .gmbp-float-icon svg { width: 20px; height: 20px; }

	#gmbp-floats .gmbp-st-badge .gmbp-float-link { gap: 10px; padding: 11px 14px 9px 11px; }
	#gmbp-floats .gmbp-st-badge .gmbp-badge-g { flex-basis: 28px; width: 28px; height: 28px; }
	#gmbp-floats .gmbp-st-badge .gmbp-float-text { font-size: 12px; }
	#gmbp-floats .gmbp-st-badge .gmbp-badge-score { font-size: 18px; }
	#gmbp-floats .gmbp-st-badge .gmbp-badge-row .gmbp-stars { font-size: 13px; }
	#gmbp-floats .gmbp-st-badge .gmbp-float-count { font-size: 11px; }

	#gmbp-floats .gmbp-st-tab .gmbp-float-link { gap: 7px; padding: 10px 7px; }
	#gmbp-floats .gmbp-st-tab .gmbp-tab-g { flex-basis: 18px; width: 18px; height: 18px; }
	#gmbp-floats .gmbp-st-tab .gmbp-tab-word { font-size: 15px; }
	#gmbp-floats .gmbp-st-tab .gmbp-tab-stars .gmbp-stars { font-size: 10px; gap: 1px; }
	#gmbp-floats .gmbp-st-tab .gmbp-tab-score { font-size: 12px; }
	#gmbp-floats .gmbp-st-tab.gmbp-bottom .gmbp-float-link { padding: 8px 13px; }

	#gmbp-floats .gmbp-st-bubble .gmbp-float-link { width: 52px; height: 52px; padding: 0; }
	#gmbp-floats .gmbp-st-bubble .gmbp-bubble-g { width: 26px; height: 26px; }
	#gmbp-floats .gmbp-st-bar .gmbp-float-link { gap: 8px; padding: 5px 5px 5px 11px; }
	#gmbp-floats .gmbp-st-bar .gmbp-bar-g { flex-basis: 17px; width: 17px; height: 17px; }
	#gmbp-floats .gmbp-st-bar .gmbp-float-meta { font-size: 12px; }
	#gmbp-floats .gmbp-st-bar .gmbp-float-meta .gmbp-stars { font-size: 10px; }
	#gmbp-floats .gmbp-st-bar .gmbp-float-count { display: none; }
	#gmbp-floats .gmbp-cta-btn { padding: 8px 12px; font-size: 12px; }
	#gmbp-floats .gmbp-st-tile .gmbp-float-link { min-width: 86px; padding: 10px 10px 9px; gap: 4px; }
	#gmbp-floats .gmbp-st-tile .gmbp-tile-g { width: 22px; height: 22px; }
	#gmbp-floats .gmbp-st-tile .gmbp-tile-score { font-size: 21px; }
	#gmbp-floats .gmbp-st-tile .gmbp-tile-stars .gmbp-stars { font-size: 11px; }
	#gmbp-floats .gmbp-st-label .gmbp-float-link { padding: 8px 13px; }
	#gmbp-floats .gmbp-st-label.gmbp-side .gmbp-float-link { padding: 11px 8px; gap: 7px; }
	#gmbp-floats .gmbp-st-label .gmbp-label-text { font-size: 13px; }
	#gmbp-floats .gmbp-st-label .gmbp-label-score { font-size: 13px; }
	#gmbp-floats .gmbp-st-cta .gmbp-float-link { padding: 11px; gap: 9px; }
	#gmbp-floats .gmbp-st-cta .gmbp-cta-g { flex-basis: 24px; width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	#gmbp-floats .gmbp-f, .gmbp-root .gmbp-slider .gmbp-arrow, .gmbp-root .gmbp-summary .gmbp-write { transition: none; }
	.gmbp-root .gmbp-slider .gmbp-track { scroll-behavior: auto; }
}

/* ========== Google Map embed ========== */
.gmbp-map, .gmbp-map *, .gmbp-map *::before, .gmbp-map *::after { box-sizing: border-box; }
.gmbp-map { display: flex; flex-direction: column; align-items: var(--gmbp-map-btn-align, flex-start); gap: 14px; margin: 0; --gmbp-accent: #1a73e8; }
.gmbp-map .gmbp-map-frame {
	position: relative;
	width: 100%;
	height: var(--gmbp-map-h, 400px);
	margin: 0;
	overflow: hidden;
	border-radius: var(--gmbp-map-r, 14px);
	background: #e5e3df;
}
.gmbp-map .gmbp-map-frame iframe {
	position: absolute;
	top: 0; left: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0; padding: 0;
	border: 0;
}
.gmbp-map.gmbp-map-gray .gmbp-map-frame iframe { filter: grayscale(1); }
.gmbp-map .gmbp-map-dir {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--gmbp-accent);
	color: var(--gmbp-map-btn-color, #fff);
	font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	transition: filter .15s ease;
}
.gmbp-map .gmbp-map-dir:hover,
.gmbp-map .gmbp-map-dir:focus { color: var(--gmbp-map-btn-color, #fff); text-decoration: none; filter: brightness(1.1); }
.gmbp-map .gmbp-map-dir:focus-visible { outline: 2px solid var(--gmbp-accent); outline-offset: 3px; }
.gmbp-map .gmbp-map-dir svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 18px; }
@media (max-width: 767px) {
	.gmbp-map .gmbp-map-frame { height: var(--gmbp-map-h-m, 300px); }
	/* Full-width, easy-to-tap button on phones unless a position was chosen */
	.gmbp-map { align-items: var(--gmbp-map-btn-align, stretch); }
}

/* ========== Full review popup ========== */
.gmbp-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gmbp-modal[hidden] { display: none; }
.gmbp-modal .gmbp-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); }
.gmbp-modal .gmbp-root.gmbp-modal-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: min(82vh, 680px);
	overflow-y: auto;
	padding: 30px 28px 26px;
	border-radius: 16px;
	background: var(--gmbp-modal-bg, #fff);
	box-shadow: 0 24px 60px rgba(16, 24, 40, .35);
	overscroll-behavior: contain;
}
.gmbp-modal .gmbp-modal-box .gmbp-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.gmbp-modal .gmbp-modal-box .gmbp-card .gmbp-text { font-size: 16px; line-height: 1.7; white-space: normal; }
.gmbp-modal .gmbp-modal-box .gmbp-card .gmbp-name { white-space: normal; }
.gmbp-modal .gmbp-modal-close {
	-webkit-appearance: none; appearance: none;
	position: absolute; top: 12px; right: 12px;
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(127, 127, 127, .14);
	color: var(--gmbp-text, #1f2328);
	box-shadow: none;
	cursor: pointer;
}
.gmbp-modal .gmbp-modal-close:hover,
.gmbp-modal .gmbp-modal-close:focus { background: rgba(127, 127, 127, .24); color: var(--gmbp-text, #1f2328); }
.gmbp-modal .gmbp-modal-close:focus-visible { outline: 2px solid var(--gmbp-accent, #1a73e8); outline-offset: 2px; }
.gmbp-modal .gmbp-modal-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gmbp-modal .gmbp-modal-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(127, 127, 127, .2); font-size: 14px; }
.gmbp-modal .gmbp-modal-foot a { color: var(--gmbp-name, #1a56db); font-weight: 600; text-decoration: none; }
.gmbp-modal .gmbp-modal-foot a:hover { text-decoration: underline; }
@media (max-width: 767px) {
	/* bottom sheet on phones */
	.gmbp-modal { align-items: flex-end; padding: 0; }
	.gmbp-modal .gmbp-root.gmbp-modal-box { max-width: none; max-height: 85vh; border-radius: 18px 18px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
}
html.gmbp-modal-open, html.gmbp-modal-open body { overflow: hidden; }
