/* Google Reviews Slider - front-end styles */

.grs-widget {
	--grs-accent: #FBBC04;
	display: flex;
	align-items: flex-start;
	gap: 48px;
	flex-wrap: wrap;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #202124;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.grs-widget *,
.grs-widget *::before,
.grs-widget *::after {
	box-sizing: inherit;
}

/* Left rating summary */

.grs-summary {
	flex: 0 0 200px;
	text-align: left;
	padding-top: 4px;
}

.grs-summary-label {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.grs-summary-stars {
	display: block;
	font-size: 26px;
	color: var(--grs-accent);
	letter-spacing: 3px;
	margin-bottom: 10px;
}

.grs-summary-count {
	font-size: 15px;
	color: #3c4043;
	margin-bottom: 14px;
}

.grs-google-logo {
	display: inline-block;
	line-height: 0;
}

/* Carousel */

.grs-carousel {
	position: relative;
	flex: 1 1 500px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.grs-track-viewport {
	overflow: hidden;
	flex: 1;
	min-width: 0;
}

.grs-track {
	display: flex;
	gap: 20px;
	transition: transform 0.35s ease;
	will-change: transform;
}

.grs-card {
	background: #F5F5F6;
	border-radius: 12px;
	padding: 24px;
	min-width: 240px;
}

.grs-widget[data-visible="1"] .grs-card { flex: 0 0 100%; }
.grs-widget[data-visible="2"] .grs-card { flex: 0 0 calc((100% - 20px) / 2); }
.grs-widget[data-visible="3"] .grs-card { flex: 0 0 calc((100% - 40px) / 3); }
.grs-widget[data-visible="4"] .grs-card { flex: 0 0 calc((100% - 60px) / 4); }
.grs-widget[data-visible="5"] .grs-card { flex: 0 0 calc((100% - 80px) / 5); }

.grs-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.grs-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.grs-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
}

.grs-card-meta {
	min-width: 0;
}

.grs-author {
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grs-date {
	font-size: 13px;
	color: #70757a;
}

.grs-card-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--grs-accent);
	font-size: 16px;
	margin-bottom: 14px;
}

.grs-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #1A73E8;
	color: #fff;
	font-size: 10px;
	line-height: 1;
}

.grs-card-text {
	font-size: 14px;
	line-height: 1.55;
	color: #202124;
}

.grs-text-clamped {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.grs-card.grs-expanded .grs-text-clamped {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.grs-read-more {
	display: block;
	background: none;
	border: none;
	padding: 8px 0 0;
	margin: 0;
	color: #70757a;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

.grs-read-more:hover,
.grs-read-more:focus-visible {
	text-decoration: underline;
}

.grs-nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #dadce0;
	background: #fff;
	color: #5f6368;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 0;
}

.grs-nav:hover {
	background: #f1f3f4;
}

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

.grs-nav:focus-visible,
.grs-read-more:focus-visible {
	outline: 2px solid #1A73E8;
	outline-offset: 2px;
}

.grs-fallback {
	font-size: 14px;
	color: #70757a;
	padding: 12px 0;
}

.grs-admin-notice {
	font-size: 14px;
	color: #d93025;
	border: 1px dashed #d93025;
	padding: 10px 14px;
	border-radius: 8px;
}

@media (max-width: 900px) {
	.grs-widget[data-visible] .grs-card {
		flex: 0 0 calc((100% - 20px) / 2);
	}
	.grs-summary {
		flex-basis: 100%;
	}
}

@media (max-width: 600px) {
	.grs-widget {
		gap: 24px;
	}
	.grs-widget[data-visible] .grs-card {
		flex: 0 0 100%;
	}
	.grs-carousel {
		gap: 6px;
	}
	.grs-nav {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.grs-track {
		transition: none;
	}
}
