/* Google Reviews Carousel — matches screenshot layout */

.grc-widget {
	--grc-card-bg: #f2f2f2;
	--grc-text: #1a1a1a;
	--grc-muted: #757575;
	--grc-star: #fbbc04;
	--grc-verified: #4285f4;
	--grc-gap: 16px;
	--grc-radius: 10px;
	--grc-font: "Roboto", "Open Sans", Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 12px 32px;
	font-family: var(--grc-font);
	color: var(--grc-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.grc-widget *,
.grc-widget *::before,
.grc-widget *::after {
	box-sizing: border-box;
}

/* —— Header —— */
.grc-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 28px;
}

.grc-header-label {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 6px;
}

.grc-header-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 8px;
	line-height: 1;
}

.grc-header-stars .grc-star {
	font-size: 26px;
}

.grc-header-count {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}

.grc-header-count strong {
	font-weight: 700;
}

.grc-google-logo {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.grc-google-wordmark {
	display: inline-block;
	font-family: "Product Sans", "Google Sans", Roboto, Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1;
}

/* —— Stars —— */
.grc-star {
	color: #dadce0;
	font-size: 15px;
	line-height: 1;
}

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

/* —— Carousel —— */
.grc-carousel-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
	position: relative;
}

.grc-track-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	min-height: 180px;
}

.grc-track {
	display: flex;
	gap: var(--grc-gap);
	transition: transform 0.45s ease;
	will-change: transform;
}

/* —— Nav buttons —— */
.grc-nav {
	flex-shrink: 0;
	align-self: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #dadce0;
	background: #fff;
	color: #5f6368;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.grc-nav:hover:not(:disabled) {
	background: #f8f9fa;
	color: #202124;
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
}

.grc-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.grc-nav:focus-visible {
	outline: 2px solid var(--grc-verified);
	outline-offset: 2px;
}

/* —— Cards —— */
.grc-card {
	flex: 0 0 calc((100% - (2 * var(--grc-gap))) / 3);
	width: calc((100% - (2 * var(--grc-gap))) / 3);
	max-width: 100%;
	min-width: 220px;
	box-sizing: border-box;
	background: var(--grc-card-bg);
	border-radius: var(--grc-radius);
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.grc-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.grc-author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.grc-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	line-height: 1;
	overflow: hidden;
}

.grc-avatar-img {
	object-fit: cover;
	padding: 0;
	background: #e8eaed;
}

.grc-author-meta {
	min-width: 0;
}

.grc-author-name {
	font-size: 14px;
	font-weight: 700;
	color: #202124;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grc-author-time {
	font-size: 12px;
	color: var(--grc-muted);
	margin-top: 2px;
	line-height: 1.3;
}

.grc-g-icon {
	flex-shrink: 0;
	line-height: 0;
	margin-top: 2px;
}

.grc-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.grc-card-stars {
	display: inline-flex;
	gap: 1px;
	line-height: 1;
}

.grc-card-stars .grc-star {
	font-size: 14px;
}

.grc-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--grc-verified);
	flex-shrink: 0;
}

.grc-card-text {
	font-size: 13.5px;
	line-height: 1.45;
	color: #202124;
}

.grc-text-clamp {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	word-break: break-word;
}

.grc-text-clamp.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.grc-read-more {
	display: inline;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: #9aa0a6;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
}

.grc-read-more:hover {
	color: #5f6368;
	text-decoration: underline;
}

.grc-read-more[hidden] {
	display: none !important;
}

/* —— Responsive —— */
@media (max-width: 900px) {
	.grc-card {
		flex-basis: calc((100% - var(--grc-gap)) / 2);
		width: calc((100% - var(--grc-gap)) / 2);
		min-width: 200px;
	}
}

@media (max-width: 600px) {
	.grc-widget {
		padding: 16px 4px 24px;
	}

	.grc-header-label {
		font-size: 18px;
	}

	.grc-header-stars .grc-star {
		font-size: 22px;
	}

	.grc-card {
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
		padding: 16px;
	}

	.grc-nav {
		width: 32px;
		height: 32px;
	}
}
