/* RH Google Reviews — marquee
   Every tunable is a CSS variable set inline by the renderer,
   so the settings screen drives the look with no dynamic CSS file. */

.rhgr-section {
	--rhgr-accent: #EC612A;
	--rhgr-card-bg: #f5f4f6;
	--rhgr-text: #333;
	--rhgr-name: #000;
	--rhgr-page-bg: #fff;
	--rhgr-card-w: 360px;
	--rhgr-card-w-mob: 280px;
	--rhgr-gap: 24px;
	--rhgr-radius: 15px;
	--rhgr-speed: 300s;
	--rhgr-lines: 6;
	--rhgr-margin: 150px;

	display: block;
	width: 100%;
	margin-bottom: var(--rhgr-margin);
	overflow: hidden;
}

.rhgr-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ---------- heading ---------- */
.rhgr-head {
	max-width: 1140px;
	margin: 0 auto 50px;
	padding: 0 15px;
	text-align: center;
}

.rhgr-head .rhgr-eyebrow {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--rhgr-accent);
}

.rhgr-head h2 {
	margin: 0 0 12px;
}

.rhgr-head p {
	max-width: 560px;
	margin: 0 auto;
}

.rhgr-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rhgr-name) !important;
	text-decoration: none !important;
}

.rhgr-badge:hover {
	color: var(--rhgr-accent) !important;
}

/* ---------- stars ---------- */
.rhgr-stars {
	display: inline-flex;
	gap: 1px;
	line-height: 0;
}

.rhgr-star {
	fill: #dcdcdc;
}

.rhgr-star.on {
	fill: #FBBC04;
}

/* ---------- viewport ---------- */
.rhgr-viewport {
	position: relative;
	width: 100%;
}

.rhgr-section.rhgr-fade .rhgr-viewport::before,
.rhgr-section.rhgr-fade .rhgr-viewport::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 90px;
	z-index: 2;
	pointer-events: none;
}

.rhgr-section.rhgr-fade .rhgr-viewport::before {
	left: 0;
	background: linear-gradient(to right, var(--rhgr-page-bg), rgba(255, 255, 255, 0));
}

.rhgr-section.rhgr-fade .rhgr-viewport::after {
	right: 0;
	background: linear-gradient(to left, var(--rhgr-page-bg), rgba(255, 255, 255, 0));
}

/* ---------- track ---------- */
.rhgr-track {
	display: flex;
	gap: var(--rhgr-gap);
	width: max-content;
	padding: 10px 0;
	animation: rhgr-scroll var(--rhgr-speed) linear infinite;
	will-change: transform;
}

.rhgr-section.rhgr-ltr .rhgr-track {
	animation-name: rhgr-scroll-rev;
}

.rhgr-section.rhgr-pause-hover .rhgr-viewport:hover .rhgr-track {
	animation-play-state: paused;
}

.rhgr-set {
	display: flex;
	gap: var(--rhgr-gap);
}

@keyframes rhgr-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@keyframes rhgr-scroll-rev {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

/* ---------- card ---------- */
.rhgr-card {
	width: var(--rhgr-card-w);
	flex: 0 0 var(--rhgr-card-w);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	background: var(--rhgr-card-bg);
	border: 1px solid transparent;
	border-radius: var(--rhgr-radius);
	text-decoration: none !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.rhgr-card {
	cursor: pointer;
}

a.rhgr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
	border-color: var(--rhgr-accent);
}

.rhgr-card-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.rhgr-avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--rhgr-accent);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	overflow: hidden;
}

/* A loaded photo covers the circle, so hide the fallback letter underneath. */
.rhgr-avatar.rhgr-has-photo {
	color: transparent !important;
}

.rhgr-id {
	display: block;
	min-width: 0;
}

.rhgr-name {
	display: block;
	max-width: 220px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--rhgr-name) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rhgr-id .rhgr-stars {
	/* Block-level, not inline-flex: an inline box would sit inside the card's
	   1.6 line-height and add ~9px of dead space under the stars that the
	   original markup (a block <img>) never had. */
	display: flex;
	margin-top: 4px;
	height: 13px;
	line-height: 0;
}

.rhgr-id .rhgr-star {
	display: block;
}

.rhgr-date {
	display: block;
	margin-top: 3px;
	line-height: 1.2;
	font-size: 12px;
	color: #777 !important;
}

.rhgr-glogo {
	margin-left: auto;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

.rhgr-text {
	display: -webkit-box;
	-webkit-line-clamp: var(--rhgr-lines);
	line-clamp: var(--rhgr-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rhgr-text) !important;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
	.rhgr-card {
		width: var(--rhgr-card-w-mob);
		flex: 0 0 var(--rhgr-card-w-mob);
		padding: 22px 20px;
	}

	.rhgr-section {
		margin-bottom: calc(var(--rhgr-margin) * .6);
	}

	.rhgr-head {
		margin-bottom: 34px;
	}

	.rhgr-section.rhgr-fade .rhgr-viewport::before,
	.rhgr-section.rhgr-fade .rhgr-viewport::after {
		width: 40px;
	}
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
	.rhgr-track {
		animation: none;
	}

	.rhgr-viewport {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
