/* Google Reviews Showcase — front */
.grs-block {
	--grs-star-color: #F5B301;
	--grs-cards-d: 4;
	--grs-cards-t: 2;
	--grs-cards-m: 1;
	--grs-gap: 16px;
	--grs-clamp: 4;
	--grs-card-bg: #fff;
	--grs-text: #1f2328;
	--grs-muted: #8a8f98;
	--grs-radius: 14px;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 0;
	color: inherit;
	font-family: inherit;
}
.grs-block *, .grs-block *::before, .grs-block *::after { box-sizing: inherit; }
.grs-block button { font-family: inherit; }

/* ---------- Header ---------- */
.grs-header { text-align: center; margin-bottom: 28px; padding: 15px 0; }
.grs-title {
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.2;
	margin: 0 0 18px;
	color: inherit;
}
.grs-rating-label {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.grs-summary-stars {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	line-height: 1;
	margin-bottom: 6px;
	direction: ltr;
	unicode-bidi: isolate;
}
.grs-rating-value {
	font-family: inherit;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: inherit;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}
.grs-count { font-size: 14px; color: inherit; font-family: inherit; }
.grs-count a { color: inherit; text-decoration: none; }
.grs-count strong { font-weight: 700; }
.grs-logo { margin-top: 8px; line-height: 0; }
.grs-logo a { display: inline-block; line-height: 0; }
.grs-google-logo { height: 32px; width: auto; }

/* ---------- Stars ---------- */
.grs-stars { display: inline-flex; flex-direction: row; gap: 2px; line-height: 0; color: var(--grs-star-color); vertical-align: middle; direction: ltr; unicode-bidi: isolate; }
.grs-star { width: var(--grs-star-size, 18px); height: var(--grs-star-size, 18px); }
.grs-star-bg { fill: #D9DADB; }
.grs-star-fg { fill: currentColor; display: none; }
.grs-star.is-full .grs-star-fg { display: inline; }
.grs-star.is-half .grs-star-fg { display: inline; clip-path: inset(0 50% 0 0); }

/* ---------- Carousel ---------- */
.grs-carousel { position: relative; display: flex; align-items: stretch; gap: 8px; direction: ltr; }
.grs-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--grs-cards-d) - 1) * var(--grs-gap)) / var(--grs-cards-d));
	gap: var(--grs-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 12px;
	flex: 1 1 auto;
	min-width: 0;
	outline: none;
	direction: ltr;
}
html[dir="rtl"] .grs-card,
body.rtl .grs-card { direction: rtl; }
.grs-track::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) {
	.grs-track { grid-auto-columns: calc((100% - (var(--grs-cards-t) - 1) * var(--grs-gap)) / var(--grs-cards-t)); }
}
@media (max-width: 640px) {
	.grs-track { grid-auto-columns: calc((100% - (var(--grs-cards-m) - 1) * var(--grs-gap)) / var(--grs-cards-m)); }
}

.grs-block .grs-nav {
	flex: 0 0 auto;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	background-color: #fff;
	color: #4b5563;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.grs-block button.grs-nav:hover,
.grs-block button.grs-nav:focus,
.grs-block button.grs-nav:focus-visible {
	background: #f8fafc !important;
	background-color: #f8fafc !important;
	color: #111827 !important;
	border-color: #d1d5db !important;
	box-shadow: 0 4px 14px rgba(17, 24, 39, .14);
	transform: scale(1.06);
	outline: none;
}
.grs-block .grs-nav:active {
	transform: scale(.96);
	box-shadow: 0 1px 2px rgba(17, 24, 39, .1);
}
.grs-nav-icon { display: block; }
.grs-block .grs-nav[disabled] {
	opacity: .35;
	cursor: default;
	transform: none;
	box-shadow: none;
}
@media (max-width: 640px) {
	.grs-block .grs-nav { width: 34px; height: 34px; }
	.grs-nav-icon { width: 16px; height: 16px; }
}

/* ---------- Card ---------- */
.grs-card {
	scroll-snap-align: start;
	background: var(--grs-card-bg);
	border-radius: var(--grs-radius);
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	min-height: 180px;
	font-size: 14px;
	line-height: 1.45;
	font-family: inherit;
	color: inherit;
}
.grs-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.grs-author { flex: 1 1 auto; min-width: 0; }
.grs-name {
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
	font-family: inherit;
}
.grs-date { display: block; font-size: 12px; color: var(--grs-muted); margin-top: 1px; }
.grs-card-g { flex: 0 0 auto; line-height: 0; }

.grs-avatar {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 500;
	font-size: 20px;
	line-height: 1;
	background: #7E57C2;
	user-select: none;
}
.grs-avatar--photo { background: #eee; }
.grs-avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grs-avatar-fallback {
	position: absolute; inset: 0;
	display: none; align-items: center; justify-content: center;
	border-radius: 50%;
}
.grs-avatar--photo.is-broken img { display: none; }
.grs-avatar--photo.is-broken .grs-avatar-fallback { display: inline-flex; }

.grs-card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.grs-verified { flex: 0 0 auto; }

.grs-text {
	flex: 1 1 auto;
	color: inherit;
	font-family: inherit;
	white-space: pre-line;
	word-break: break-word;
}
.grs-text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--grs-clamp);
	line-clamp: var(--grs-clamp);
	overflow: hidden;
}
.grs-more {
	align-self: flex-start;
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--grs-muted);
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}
.grs-more:hover { color: inherit; text-decoration: underline; }
