/* Google Reviews Bar — frontend */

.grb-bar {
	--grb-bg: #ffffff;
	--grb-text: #222222;
	--grb-accent: #fbbc05;
	--grb-border: rgba(0, 0, 0, 0.08);
	--grb-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: var(--grb-text);
	background: var(--grb-bg);
	border-top: 1px solid var(--grb-border);
	box-shadow: var(--grb-shadow);
	box-sizing: border-box;
	z-index: 99998;
}

.grb-bar.grb-bar-fixed {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
}

.grb-bar.grb-bar-inline {
	position: relative;
	margin: 1.5rem 0;
	border-radius: 8px;
	border: 1px solid var(--grb-border);
}

.grb-bar *,
.grb-bar *::before,
.grb-bar *::after {
	box-sizing: border-box;
}

.grb-bar.grb-bar-closed {
	display: none;
}

.grb-bar-inner {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.75rem 3rem 0.75rem 1rem;
}

.grb-track {
	display: grid;
	grid-template-columns: repeat(var(--grb-cols, 3), minmax(0, 1fr));
	gap: 1rem;
	min-height: 88px;
	align-items: stretch;
}

.grb-bar[data-grb-visible="1"] .grb-track { --grb-cols: 1; }
.grb-bar[data-grb-visible="2"] .grb-track { --grb-cols: 2; }
.grb-bar[data-grb-visible="3"] .grb-track { --grb-cols: 3; }

@media (max-width: 900px) {
	.grb-bar[data-grb-visible="3"] .grb-track { --grb-cols: 2; }
}
@media (max-width: 600px) {
	.grb-track { --grb-cols: 1 !important; }
}

.grb-review {
	display: none;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--grb-accent);
	background: rgba(0, 0, 0, 0.015);
	border-radius: 4px;
	min-width: 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.grb-review.grb-visible {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.grb-review-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.grb-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
	background: #e8eaed;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: #555;
	font-size: 14px;
}

.grb-review-meta {
	min-width: 0;
	flex: 1;
}

.grb-author {
	font-weight: 600;
	font-size: 0.85rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grb-stars {
	font-size: 0.85rem;
	letter-spacing: 1px;
	line-height: 1;
}

.grb-star-filled { color: var(--grb-accent); }
.grb-star-empty  { color: rgba(0, 0, 0, 0.18); }

.grb-text {
	font-size: 0.82rem;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: inherit;
}

.grb-time {
	font-size: 0.72rem;
	opacity: 0.65;
}

.grb-close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.5;
	padding: 0;
	border-radius: 4px;
}
.grb-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }
