/* Google Reviews TCG — ADA / WCAG 2.1 AA Compliant Carousel */
.grtcg-reviews,
.grtcg-reviews.grtcg-theme-auto,
.grtcg-reviews.grtcg-theme-light {
	--grtcg-card-bg: #ffffff;
	--grtcg-text: #111827;
	--grtcg-quote-text: #1f2937;
	--grtcg-muted: #4b5563;
	--grtcg-border: #e2e8f0;
	--grtcg-control-border: #cbd5e1;
	--grtcg-star: #c27803;
	--grtcg-star-empty: #94a3b8;
	--grtcg-accent: #1d4ed8;
	--grtcg-accent-contrast: #ffffff;
	--grtcg-focus: #2563eb;

	background: transparent;
	background-color: transparent;
	color: var(--grtcg-text);
	padding: 0.25rem;
	border: 0;
	box-sizing: border-box;
	font-family: inherit;
}

.grtcg-reviews.grtcg-theme-dark {
	--grtcg-card-bg: #1e293b;
	--grtcg-text: #f8fafc;
	--grtcg-quote-text: #f1f5f9;
	--grtcg-muted: #cbd5e1;
	--grtcg-border: #475569;
	--grtcg-control-border: #475569;
	--grtcg-star: #fbbf24;
	--grtcg-star-empty: #64748b;
	--grtcg-accent: #60a5fa;
	--grtcg-accent-contrast: #0f172a;
	--grtcg-focus: #93c5fd;

	background: transparent;
	background-color: transparent;
}

.grtcg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.grtcg-hidden {
	display: none !important;
}

.grtcg-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.grtcg-title {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.grtcg-summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.grtcg-score {
	font-weight: 700;
	font-size: 1.125rem;
}

.grtcg-count {
	font-size: 0.9375rem;
}

.grtcg-google-link {
	color: var(--grtcg-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.grtcg-google-link:focus-visible,
.grtcg-btn:focus-visible,
.grtcg-dot:focus-visible,
.grtcg-read-more:focus-visible,
.grtcg-viewport:focus-visible {
	outline: 3px solid var(--grtcg-focus);
	outline-offset: 2px;
}

.grtcg-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
}

.grtcg-star-filled {
	color: var(--grtcg-star);
}

.grtcg-star-empty {
	color: var(--grtcg-star-empty);
}

.grtcg-viewport {
	overflow: hidden;
	padding: 0.25rem 0;
}

.grtcg-track {
	display: flex;
	margin-left: -1.25rem;
	will-change: transform;
	backface-visibility: hidden;
	touch-action: pan-y pinch-zoom;
}

.grtcg-slide {
	flex: 0 0 100%;
	min-width: 0;
	padding-left: 1.25rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.grtcg-slide {
		flex: 0 0 50%;
	}
}

@media (min-width: 1024px) {
	.grtcg-slide {
		flex: 0 0 calc(100% / 3);
	}
}

.grtcg-card {
	background-color: var(--grtcg-card-bg);
	color: var(--grtcg-text);
	border: 1px solid var(--grtcg-border);
	border-radius: 0.75rem;
	padding: 1.375rem;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.grtcg-card-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.grtcg-avatar-wrap {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.grtcg-avatar {
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	object-fit: cover;
	display: block;
}

.grtcg-avatar-fallback {
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	background-color: var(--grtcg-accent);
	color: var(--grtcg-accent-contrast);
	font-weight: 700;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.grtcg-author-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.grtcg-author-name {
	font-style: normal;
	font-weight: 700;
	color: var(--grtcg-text);
	line-height: 1.3;
}

.grtcg-time {
	font-size: 0.875rem;
	color: var(--grtcg-muted);
	line-height: 1.3;
}

.grtcg-location {
	font-size: 0.8125rem;
	color: var(--grtcg-muted);
	font-weight: 500;
	line-height: 1.3;
	margin-top: 0.125rem;
}

/* Reset WordPress theme blockquote styles (borders, italics, pseudo-quotes) */
.grtcg-reviews blockquote.grtcg-quote {
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 0;
	background: transparent;
	font-style: normal;
	quotes: none;
	color: var(--grtcg-quote-text);
	line-height: 1.6;
	font-size: 0.95rem;
}

.grtcg-reviews blockquote.grtcg-quote::before,
.grtcg-reviews blockquote.grtcg-quote::after {
	content: none;
	display: none;
}

.grtcg-reviews blockquote.grtcg-quote p {
	margin: 0;
	color: inherit;
	font-style: normal;
}

.grtcg-read-more {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.125rem 0;
	border: 0;
	background: transparent;
	color: var(--grtcg-accent);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.grtcg-read-more:hover {
	opacity: 0.85;
}

.grtcg-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.875rem;
	margin-top: 1.125rem;
}

.grtcg-btn {
	min-width: 44px;
	min-height: 44px;
	border-radius: 9999px;
	border: 1px solid var(--grtcg-control-border);
	background-color: var(--grtcg-card-bg);
	color: var(--grtcg-text);
	font-size: 1.125rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.grtcg-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

.grtcg-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.grtcg-dots {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	background-color: var(--grtcg-card-bg);
	border: 1px solid var(--grtcg-control-border);
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.grtcg-dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 9999px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.grtcg-dot::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	border: 2px solid var(--grtcg-muted);
	background: transparent;
	box-sizing: border-box;
}

.grtcg-dot[aria-current="true"]::before {
	background-color: var(--grtcg-accent);
	border-color: var(--grtcg-accent);
}

.grtcg-counter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.25rem 0.9rem;
	border-radius: 9999px;
	background-color: var(--grtcg-card-bg);
	color: var(--grtcg-text);
	border: 1px solid var(--grtcg-control-border);
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	.grtcg-btn {
		transition: none;
	}
	.grtcg-btn:hover:not(:disabled) {
		transform: none;
	}
}
