/* BG Reviews — front-end (BlueGuard brand) v1.1 */
.bgr {
	--bgr-blue: #2B6CD4;
	--bgr-sky: #5BBFE6;
	--bgr-green: #7AC943;
	--bgr-navy: #0B1E3F;
	--bgr-ink: #111827;
	--bgr-text: #374151;
	--bgr-muted: #6B7280;
	--bgr-card: #FFFFFF;
	--bgr-line: #E5E7EB;
	--bgr-star: #F5B400;
	--bgr-radius: 16px;
	--bgr-gap: 20px;
	--bgr-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--bgr-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-family: var(--bgr-body);
	color: var(--bgr-text);
	line-height: 1.6;
	box-sizing: border-box;
}
.bgr *, .bgr *::before, .bgr *::after { box-sizing: border-box; }
.bgr .bgr-is-hidden { display: none !important; }
.bgr p { margin: 0; }

/* ---------- Header ---------- */
.bgr-head { margin: 0 0 26px; max-width: 900px; }
.bgr-eyebrow {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 14px !important;
	font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--bgr-green);
}
.bgr-eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; }
.bgr .bgr-title {
	margin: 0 0 16px;
	font-family: var(--bgr-head);
	font-weight: 800;
	font-size: clamp(38px, 5.2vw, 64px);
	line-height: .98;
	letter-spacing: -.01em;
	color: var(--bgr-ink);
	text-transform: none;
}
.bgr-title__hl { display: block; color: var(--bgr-green); }
.bgr-sub { max-width: 760px; font-size: 16.5px; color: var(--bgr-muted); }

/* ---------- Stars / marks ---------- */
.bgr-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.bgr-star { width: 18px; height: 18px; fill: #D9DDE3; }
.bgr-star.is-on { fill: var(--bgr-star); }
.bgr-stars--md .bgr-star { width: 20px; height: 20px; }
.bgr-verified { width: 18px; height: 18px; flex: 0 0 18px; }
.bgr-verified circle { fill: var(--bgr-blue); }
.bgr-verified path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bgr-source {
	font-family: var(--bgr-body); font-weight: 800; font-size: 13px; letter-spacing: -.01em;
	color: #5F6368; background: #fff; border: 1px solid var(--bgr-line);
	border-radius: 99px; padding: 2px 10px; line-height: 1.5; white-space: nowrap;
}

/* ---------- Rating bar ---------- */
.bgr-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--bgr-card);
	border: 1px solid var(--bgr-line);
	box-shadow: 0 6px 20px rgba(17,24,39,.05);
	border-radius: var(--bgr-radius);
	padding: 16px 20px;
	margin: 0 0 30px;
}
.bgr-bar__score { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.bgr-bar .bgr-source { font-size: 16px; padding: 4px 14px; }
.bgr-bar__word { font-weight: 800; color: var(--bgr-ink); }
.bgr-bar__num { font-weight: 800; color: var(--bgr-ink); }
.bgr-bar__sep { width: 1px; height: 18px; background: #C9CDD4; }
.bgr-bar__count { color: var(--bgr-muted); font-weight: 600; }
.bgr-write {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: var(--bgr-ink) !important;
	border: 1px solid var(--bgr-line); border-radius: 12px;
	padding: 11px 20px; font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; list-style: none; white-space: nowrap;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bgr-write:hover { border-color: var(--bgr-blue); box-shadow: 0 8px 22px rgba(43,108,212,.15); transform: translateY(-1px); }
.bgr-pick { position: relative; }
.bgr-pick > summary::-webkit-details-marker { display: none; }
.bgr-pick > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.bgr-pick__menu {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
	min-width: 220px; background: #fff; border-radius: 14px; padding: 8px;
	box-shadow: 0 18px 44px rgba(17,24,39,.18);
}
.bgr-pick__hint { display: block; padding: 6px 12px 4px; font-size: 12px; font-weight: 700; color: var(--bgr-muted); }
.bgr-pick__menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--bgr-ink) !important; font-weight: 700; text-decoration: none !important; }
.bgr-pick__menu a:hover { background: #F1F3F6; color: var(--bgr-blue) !important; }

/* ---------- Cards ---------- */
.bgr-track { list-style: none; margin: 0; padding: 0; }
.bgr-card {
	display: flex; flex-direction: column; gap: 14px;
	margin: 0; padding: 24px 22px 20px;
	background: var(--bgr-card);
	border: 1px solid var(--bgr-line);
	border-radius: var(--bgr-radius);
	box-shadow: 0 6px 20px rgba(17,24,39,.05);
	transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bgr-card:hover { background: #fff; border-color: #D5DCE6; box-shadow: 0 18px 40px rgba(17,24,39,.10); }
.bgr-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bgr-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bgr-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: transparent; }
/* Reviewer photo: strip any theme/Elementor image box (padding, border, bg, shadow) */
.bgr img.bgr-avatar {
	width: 44px !important; height: 44px !important; max-width: none !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important;
	border-radius: 50% !important; background: transparent !important; box-shadow: none !important;
	object-fit: cover; display: block;
}
.bgr-avatar--letter { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 600; }
.bgr-person__txt { min-width: 0; }
.bgr-name { display: block; font-weight: 800; font-size: 16px; line-height: 1.25; color: var(--bgr-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgr-date { display: block; font-size: 13px; color: var(--bgr-muted); }
.bgr-card__rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bgr-city { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--bgr-blue); background: rgba(43,108,212,.08); border-radius: 99px; padding: 2px 10px; }
.bgr-card__text {
	font-size: 15px; line-height: 1.55; color: var(--bgr-text);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
	overflow: hidden; white-space: pre-line; word-break: break-word;
}
.bgr-card__text--empty { color: var(--bgr-muted); font-style: italic; }
.bgr-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.bgr .bgr-open {
	background: none !important; border: 0 !important; padding: 0; box-shadow: none !important;
	text-transform: none !important; letter-spacing: normal !important; min-height: 0; line-height: 1.4;
	font-family: inherit; font-size: 14px; font-weight: 700; color: var(--bgr-muted) !important; cursor: pointer;
	transition: color .2s ease;
}
.bgr .bgr-open:hover { color: var(--bgr-blue) !important; text-decoration: underline; }
.bgr-replied { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; font-weight: 700; color: #3f8a1d; }
.bgr-replied svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Carousel ---------- */
.bgr-stage { position: relative; }
.bgr--carousel .bgr-track {
	display: flex; gap: var(--bgr-gap);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 4px 1px 14px; outline: none;
}
.bgr--carousel .bgr-track::-webkit-scrollbar { display: none; }
.bgr--carousel .bgr-card {
	flex: 0 0 calc((100% - (var(--bgr-cols, 3) - 1) * var(--bgr-gap)) / var(--bgr-cols, 3));
	scroll-snap-align: start;
}
.bgr .bgr-nav {
	position: absolute; top: calc(50% - 7px); z-index: 5;
	width: 36px; height: 36px; padding: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff !important; border: 1px solid #D1D5DB !important;
	box-shadow: 0 4px 12px rgba(17,24,39,.08);
	transform: translateY(-50%); cursor: pointer;
	transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.bgr .bgr-nav svg { width: 17px; height: 17px; fill: none; stroke: var(--bgr-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bgr .bgr-nav--next { background: var(--bgr-sky) !important; border-color: var(--bgr-sky) !important; }
.bgr .bgr-nav:hover { background: var(--bgr-blue) !important; border-color: var(--bgr-blue) !important; }
.bgr .bgr-nav:hover svg { stroke: #fff; }
.bgr-nav--prev { left: -18px; }
.bgr-nav--next { right: -18px; }
.bgr .bgr-nav[disabled] { opacity: .35; pointer-events: none; }
.bgr-progress { position: relative; height: 3px; margin: 10px auto 0; max-width: 220px; background: var(--bgr-line); border-radius: 3px; overflow: hidden; }
.bgr-progress__bar { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 10%; background: var(--bgr-blue); border-radius: inherit; transition: left .3s ease, width .3s ease; }

/* ---------- Grid / list ---------- */
.bgr--grid .bgr-track { display: grid; grid-template-columns: repeat(var(--bgr-cols, 3), minmax(0, 1fr)); gap: var(--bgr-gap); }
.bgr--list .bgr-track { display: grid; gap: 14px; max-width: 860px; }
.bgr-more-wrap { text-align: center; margin-top: 26px; }
.bgr .bgr-more {
	background: #fff !important; color: var(--bgr-ink) !important;
	border: 1px solid var(--bgr-line) !important; border-radius: 12px;
	padding: 12px 24px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.bgr .bgr-more:hover { border-color: var(--bgr-blue) !important; color: var(--bgr-blue) !important; }
.bgr-more-count { color: var(--bgr-muted); }
.bgr-empty { color: var(--bgr-muted); }

/* ---------- Full-review popup ---------- */
.bgr-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(11,30,63,.55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .2s ease;
}
.bgr-modal.is-open { opacity: 1; }
.bgr-modal__box {
	position: relative; width: 100%; max-width: 580px; max-height: min(86vh, 760px);
	overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 20px; padding: 30px 30px 28px;
	box-shadow: 0 30px 80px rgba(11,30,63,.35);
	transform: translateY(14px) scale(.98); transition: transform .25s ease;
	display: flex; flex-direction: column; gap: 16px;
}
.bgr-modal.is-open .bgr-modal__box { transform: none; }
.bgr-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 36px; }
.bgr-modal__text { font-size: 16px; line-height: 1.7; color: var(--bgr-text); word-break: break-word; }
.bgr .bgr-modal__close {
	position: absolute; top: 16px; right: 16px;
	width: 36px; height: 36px; border-radius: 50%; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: #F1F3F6 !important; border: 0 !important; cursor: pointer;
}
.bgr .bgr-modal__close svg { width: 16px; height: 16px; stroke: var(--bgr-ink); stroke-width: 2.4; stroke-linecap: round; }
.bgr .bgr-modal__close:hover { background: var(--bgr-line) !important; }
.bgr-reply {
	background: #F4F6F9; border-radius: 14px; padding: 16px 18px;
	border-left: 3px solid var(--bgr-green);
	font-size: 15px; line-height: 1.65; color: var(--bgr-text);
}
.bgr-reply__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bgr-reply__logo {
	width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--bgr-navy); color: var(--bgr-green);
	font-family: var(--bgr-head); font-weight: 800; font-size: 15px;
}
.bgr-reply__name { display: block; font-weight: 800; font-size: 14px; color: var(--bgr-ink); line-height: 1.3; }
.bgr-reply__date { display: block; font-size: 12.5px; color: var(--bgr-muted); }
html.bgr-lock, html.bgr-lock body { overflow: hidden !important; }

/* ---------- Badge ---------- */
.bgr-badge {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px 8px 8px; background: #fff;
	border: 1px solid var(--bgr-line); border-radius: 99px;
	text-decoration: none !important; color: var(--bgr-ink) !important;
	box-shadow: 0 6px 18px rgba(17,24,39,.06);
}
.bgr-badge__num { font-weight: 800; font-size: 17px; }
.bgr-badge__txt { font-size: 13px; font-weight: 700; color: var(--bgr-muted); }
a.bgr-badge:hover { border-color: var(--bgr-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bgr--carousel .bgr-card { flex-basis: calc((100% - var(--bgr-gap)) / 2); }
	.bgr--grid .bgr-track { grid-template-columns: repeat(min(2, var(--bgr-cols, 3)), minmax(0, 1fr)); }
	.bgr-nav--prev { left: -10px; }
	.bgr-nav--next { right: -10px; }
}
@media (max-width: 640px) {
	.bgr { --bgr-gap: 12px; }
	.bgr-bar { padding: 16px; justify-content: center; text-align: center; }
	.bgr-bar__score { width: 100%; justify-content: center; }
	.bgr-bar__sep { order: 1; flex-basis: 100%; width: auto; height: 0; background: none; }
	.bgr-bar__num { order: 2; }
	.bgr-bar__count { order: 3; }
	.bgr-bar__num::after { content: "·"; margin-left: 10px; color: var(--bgr-muted); font-weight: 400; }
	.bgr-bar .bgr-write, .bgr-bar .bgr-pick { width: 100%; justify-content: center; }
	.bgr-pick__menu { left: 0; right: 0; }
	.bgr--carousel .bgr-card { flex-basis: 86%; }
	.bgr--grid .bgr-track { grid-template-columns: 1fr; }
	.bgr .bgr-nav { display: none; }
	.bgr-modal { align-items: center; justify-content: center; padding: 16px; }
	.bgr-modal__box { max-width: 100%; border-radius: 18px; max-height: 82vh; padding: 24px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.bgr *, .bgr-modal, .bgr-modal__box, .bgr--carousel .bgr-track { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Showcase style — [bg_reviews_carousel]
   ========================================================= */
.bgr--showcase {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 40px 40px 30px;
	border-radius: 28px;
	background: linear-gradient(160deg, #F7FAFE 0%, #EDF3FB 100%);
	border: 1px solid #E3EAF3;
}
.bgr--showcase::before,
.bgr--showcase::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px);
}
.bgr--showcase::before { width: 340px; height: 340px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(122,201,67,.28), rgba(122,201,67,0) 70%); }
.bgr--showcase::after  { width: 300px; height: 300px; left: -140px; bottom: -170px; background: radial-gradient(circle, rgba(43,108,212,.18), rgba(43,108,212,0) 70%); }

/* Head */
.bgr-sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 30px; flex-wrap: wrap; margin-bottom: 28px; }
.bgr-sc-score { display: flex; align-items: center; gap: 18px; }
.bgr-sc-score__num {
	font-family: var(--bgr-head); font-weight: 800; font-size: 76px; line-height: .82; letter-spacing: -.02em;
	color: var(--bgr-navy);
}
.bgr-sc-score__meta { display: flex; flex-direction: column; gap: 8px; }
.bgr-sc-score__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bgr-sc-score__word { font-weight: 800; font-size: 17px; color: var(--bgr-ink); }
.bgr-sc-score__count { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--bgr-muted); }
.bgr-faces { display: inline-flex; padding-left: 8px; }
.bgr-faces img, .bgr-faces span {
	width: 30px; height: 30px; border-radius: 50%; margin-left: -8px;
	border: 2px solid #fff; object-fit: cover; background: #dfe3e8;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; font-size: 12px; font-weight: 700;
}
.bgr-sc-actions { display: flex; align-items: center; gap: 12px; }
.bgr-sc-arrows { display: inline-flex; gap: 8px; }
.bgr--showcase .bgr-nav {
	position: static; transform: none;
	width: 46px; height: 46px;
	background: #fff !important; border: 1px solid #D6DEEA !important; box-shadow: none;
}
.bgr--showcase .bgr-nav--next { background: var(--bgr-navy) !important; border-color: var(--bgr-navy) !important; }
.bgr--showcase .bgr-nav--next svg { stroke: var(--bgr-green); }
.bgr--showcase .bgr-nav:hover { background: var(--bgr-blue) !important; border-color: var(--bgr-blue) !important; }
.bgr--showcase .bgr-nav:hover svg { stroke: #fff; }
.bgr--showcase .bgr-nav[disabled] { opacity: .4; }
.bgr-cta {
	display: inline-flex; align-items: center; gap: 6px;
	height: 46px; padding: 0 22px; border-radius: 99px;
	background: var(--bgr-green); color: var(--bgr-navy) !important;
	font-weight: 800; font-size: 15px; line-height: 1;
	text-decoration: none !important; cursor: pointer; list-style: none; white-space: nowrap;
	box-shadow: 0 8px 20px rgba(122,201,67,.35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bgr-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(122,201,67,.45); }
.bgr-pick > summary.bgr-cta::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }

/* Cards */
.bgr--showcase .bgr-track { padding: 6px 2px 18px; }
.bgr-card--sc {
	background: #fff;
	border: 1px solid #E6ECF4;
	border-radius: 22px;
	padding: 26px 24px 20px;
	gap: 14px;
	box-shadow: 0 1px 2px rgba(11,30,63,.04), 0 10px 30px rgba(11,30,63,.05);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bgr-card--sc:hover { background: #fff; transform: translateY(-4px); border-color: #CFDCEE; box-shadow: 0 2px 4px rgba(11,30,63,.04), 0 22px 44px rgba(11,30,63,.10); }
.bgr-sc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bgr-quote { width: 30px; height: 22px; fill: var(--bgr-green); opacity: .9; }
.bgr-card--sc .bgr-card__text { font-size: 16px; line-height: 1.6; color: #2A3448; -webkit-line-clamp: 5; line-clamp: 5; }
.bgr-card--sc .bgr-card__foot { min-height: 20px; }
.bgr-card--sc .bgr-open { color: var(--bgr-blue) !important; }
.bgr-sc-card__person {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding-top: 16px; border-top: 1px dashed #E1E7F0;
}
.bgr-card--sc .bgr-card__foot:empty,
.bgr-card--sc .bgr-card__foot:has(> .bgr-open[hidden]:only-child) { display: none; }
.bgr--showcase .bgr-progress { max-width: 180px; margin-top: 8px; background: rgba(11,30,63,.08); }
.bgr--showcase .bgr-progress__bar { background: var(--bgr-navy); }

@media (max-width: 1024px) {
	.bgr--showcase { padding: 32px 26px 24px; }
}
@media (max-width: 640px) {
	.bgr--showcase { padding: 26px 16px 20px; border-radius: 22px; margin: 0 -4px; }
	.bgr-sc-head { flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 22px; }
	.bgr-sc-score { flex-direction: column; gap: 10px; }
	.bgr-sc-score__num { font-size: 64px; }
	.bgr-sc-score__meta, .bgr-sc-score__row { align-items: center; justify-content: center; }
	.bgr-sc-actions { width: 100%; justify-content: center; }
	.bgr-sc-arrows { display: none; }
	.bgr-sc-actions .bgr-cta, .bgr-sc-actions .bgr-pick { width: 100%; justify-content: center; }
	.bgr-card--sc { padding: 22px 20px 18px; }
}

/* hidden attribute must always win over display rules */
.bgr [hidden], .bgr-modal[hidden] { display: none !important; }
