/* Google Business Reviews — frontend styles.
   All rules are scoped under .gbr-wrap to avoid clashing with theme CSS. */

.gbr-wrap {
	box-sizing: border-box;
	width: 100%;
	padding: 24px 0;
	font-family: inherit;
	color: #1f2937;
}
.gbr-wrap *,
.gbr-wrap *::before,
.gbr-wrap *::after { box-sizing: border-box; }

/* ---------- heading ---------- */
.gbr-heading-row {
	text-align: center;
	margin-bottom: 28px;
	position: relative;
}

.gbr-heading-underline {
	display: inline-block;
	width: 64px;
	height: 3px;
	background: #2e7d32;
	border-radius: 2px;

}

/* ---------- summary block ---------- */
.gbr-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0px 22px;
	background: #f5f6f8;
	border-radius: 12px;
	margin-bottom: 28px;
}
.gbr-summary-left {
	display: flex;
	align-items: center;
	gap: 16px;
}
.gbr-summary-rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gbr-summary-icon {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gbr-summary-icon img{
	width: 50px;
	height: 50px;
}

.gbr-summary-rating-value {
	font-size: 36px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1;
}
.gbr-summary-stars .gbr-star {
	font-size: 22px;
	color: #d1d5db;
}
.gbr-summary-stars .gbr-star-filled { color: #f4b400; }
.gbr-summary-meta { font-size: 14px; color: #4b5563; }
.gbr-summary-right { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.gbr-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	border: 1px solid transparent;
}
.gbr-btn-primary {
	background: #ffffff;
	color: #1f2937;
	border-color: #e5e7eb;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.gbr-summary-rating-block{
	display: flex;
	align-items: center;
	gap: 8px;
	flex-direction: row;
}

.gbr-summary-rating-block-stars{
	display: flex;
	align-items: start;
	gap: 5px;
	flex-direction: column;
}

.gbr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.gbr-btn-ghost {
	background: transparent;
	color: #2e7d32;
	border-color: transparent;
}
.gbr-btn-ghost:hover { background: rgba(46,125,50,0.08); }
.gbr-g-icon {
	width: 20px; height: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
	color: #fff; font-weight: 700; font-size: 12px;
}

/* ---------- slider / cards ---------- */
.gbr-slider {
	position: relative;
	padding: 0 40px;
}
.gbr-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 16px) / 4);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 2px 12px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.gbr-track::-webkit-scrollbar { display: none; }

.gbr-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px 18px 18px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 220px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.gbr-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}
.gbr-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}
.gbr-card-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gbr-card-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	object-fit: cover;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #4b5563;
	text-transform: uppercase;
}
.gbr-card-avatar-initial { background: #d9e3dd; color: #2e7d32; }
.gbr-card-name-wrap { min-width: 0; }
.gbr-card-name {
	font-weight: 700;
	font-size: 14px;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.gbr-card-stars {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}
.gbr-card-stars .gbr-star { font-size: 15px; color: #d1d5db; }
.gbr-card-stars .gbr-star-filled { color: #f4b400; }
.gbr-card-date {
	margin-top: 2px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.2;
}

.gbr-g-badge {
	width: 24px; height: 24px;
	/*border-radius: 50%;*/
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/*box-shadow: 0 1px 3px rgba(0,0,0,0.08);*/
	flex-shrink: 0;
}
.gbr-g-badge-letter {
	font-weight: 700;
	font-size: 14px;
	background: conic-gradient(from 0deg, #4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1;
}

.gbr-card-body { flex: 1 1 auto; }
.gbr-comment {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #374151;
	word-break: break-word;
}
.gbr-read-more {
	margin-top: 6px;
	background: none;
	border: 0;
	padding: 0;
	color: #4b5563;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}
.gbr-read-more:hover { color: #1f2937; text-decoration: underline; }

.gbr-card-reply {
	border-top: 1px dashed #d1d5db;
	padding-top: 8px;
	margin-top: 6px;
	font-size: 13px;
	color: #4b5563;
}

/* ---------- nav arrows ---------- */
.gbr-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #4b5563;
	font-size: 20px;
	line-height: 30px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
	z-index: 2;
}
.gbr-nav:hover { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.gbr-nav-prev { left: 0; }
.gbr-nav-next { right: 0; }
.gbr-nav[disabled] { opacity: 0.35; cursor: default; }



/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.gbr-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 800px) {
	.gbr-track { grid-auto-columns: calc((100% - 16px) / 2); }
	.gbr-heading { font-size: 22px; }
}
@media (max-width: 560px) {
	.gbr-slider { padding: 0 8px; }
	.gbr-track { grid-auto-columns: 90%; }
	.gbr-summary { flex-direction: column; align-items: flex-start; }
	.gbr-summary-right { width: 100%; }
	.gbr-nav { display: none; }
}

/* =====================================================================
   Footer badge (position: fixed, floats over the page)
   ===================================================================== */
.gbr-badge {
	position: fixed;
	bottom: 20px;
	z-index: 10050;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	background: #ffffff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.10);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.1;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gbr-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}
.gbr-badge-br { right: 20px; }
.gbr-badge-bl { left: 20px; }
.gbr-badge-icon {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.gbr-badge-icon {
	box-shadow: none !important;
}

.gbr-badge-icon-letter {
	font-weight: 700;
	font-size: 18px;
	background: conic-gradient(from 0deg, #4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1;
}
.gbr-badge-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
}
.gbr-badge-title {
	font-weight: 700;
	font-size: 13px;
	color: #1f2937;
	white-space: nowrap;
}
.gbr-badge-meta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #4b5563;
}
.gbr-badge-rating { font-weight: 700; color: #1f2937; }
.gbr-badge-stars .gbr-star { font-size: 12px; color: #d1d5db; }
.gbr-badge-stars .gbr-star-filled { color: #f4b400; }
.gbr-badge-count { color: #6b7280; }

/* =====================================================================
   Sidebar panel
   ===================================================================== */
.gbr-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17,24,39,0.48);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	z-index: 10060;
}
.gbr-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease;
}

.gbr-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 420px;
	max-width: 100vw;
	background: #ffffff;
	box-shadow: -12px 0 32px rgba(0,0,0,0.16);
	transform: translateX(105%);
	transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
	display: flex;
	flex-direction: column;
	z-index: 10070;
}
.gbr-sidebar.is-open { transform: translateX(0); }

.gbr-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}
.gbr-sidebar-head-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.gbr-sidebar-title {
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.2;
}
.gbr-sidebar-sub {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #4b5563;
	margin-top: 2px;
}
.gbr-sidebar-rating { font-weight: 700; color: #1f2937; }
.gbr-sidebar-stars .gbr-star { font-size: 12px; color: #d1d5db; }
.gbr-sidebar-stars .gbr-star-filled { color: #f4b400; }
.gbr-sidebar-count { color: #6b7280; }

.gbr-sidebar-close {
	flex-shrink: 0;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #4b5563;
	font-size: 22px;
	line-height: 28px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.gbr-sidebar-close:hover { background: #f3f4f6; color: #1f2937; }

.gbr-sidebar-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px 16px;
	background: #ffffff;
}
.gbr-sidebar-empty {
	color: #6b7280;
	text-align: center;
	padding: 30px 0;
}
.gbr-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gbr-sidebar-item {
	padding: 14px 2px;
	border-bottom: 1px solid #f1f2f4;
}
.gbr-sidebar-item:last-child { border-bottom: 0; }

.gbr-sidebar-item-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.gbr-sidebar-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	object-fit: cover;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #4b5563;
	text-transform: uppercase;
}
.gbr-sidebar-avatar-initial { background: #d9e3dd; color: #2e7d32; }
.gbr-sidebar-item-who { min-width: 0; }
.gbr-sidebar-item-name {
	font-weight: 700;
	font-size: 14px;
	color: #1f2937;
}
.gbr-sidebar-item-stars {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}
.gbr-sidebar-item-stars .gbr-star { font-size: 13px; color: #d1d5db; }
.gbr-sidebar-item-stars .gbr-star-filled { color: #f4b400; }
.gbr-sidebar-item-date {
	font-size: 12px;
	color: #6b7280;
}
.gbr-sidebar-item-body .gbr-comment {
	font-size: 13.5px;
	line-height: 1.55;
	color: #374151;
}
.gbr-sidebar-item-reply {
	border-top: 1px dashed #d1d5db;
	padding-top: 6px;
	margin-top: 6px;
	font-size: 12px;
	color: #4b5563;
}

.gbr-sidebar-foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}
.gbr-sidebar-cta { justify-content: center; }

/* body lock while sidebar is open */
body.gbr-no-scroll { overflow: hidden; }

@media (max-width: 520px) {
	.gbr-sidebar { width: 100vw; }
	.gbr-badge { bottom: 14px; }
	.gbr-badge-br { right: 14px; }
	.gbr-badge-bl { left: 14px; }
	.gbr-badge-title { font-size: 12px; }
}
