/* ── CHP Google Reviews Slider ────────────────────────────────────── */

.chp-grs-layout {
	display: flex;
	flex-direction: column;
	gap: 0px;
}
.chp-grs-left {
	padding: 3vw 3vw 3vw 3vw;

	@media (min-width: 1700px) {
		padding-left: 0;
	}
}
@media (min-width: 1024px) {
	.chp-grs-layout {
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}

	.chp-grs-left {
		width: 40%;
		flex-shrink: 0;
	}

	.chp-grs-right {
		flex: 1;
		min-width: 0; /* required: prevents flex child from overflowing */
	}

	/* Bleed: JS extends margin-right to reach the viewport edge */
	.chp-grs-right--bleed {
		overflow: visible;
	}

	/* When bleeding, the clip container must not cut the right side.
	   overflow-x:clip is used because overflow-x:visible would force
	   overflow-y to also become visible, removing the shadow clipping. */
	.chp-grs-right--bleed .chp-grs-slider-clip {
		overflow-x: clip;
	}
}

/* ── Left column ──────────────────────────────────────────────────── */

.chp-grs-google-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1rem;
}

.chp-grs-google-badge a {
	color: #6c757d;
	text-decoration: underline;
	font-size: 0.875rem;
}

.chp-grs-g-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.chp-grs-rating-block {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 0x;

	@media (max-width: 1023px) {
		margin-bottom: 0;
	}
}

.chp-grs-score {
	font-size: 4.5rem;
	font-weight: 800;
	line-height: 1;
	color: #111;
}

.chp-grs-rating-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.chp-grs-stars {
	display: flex;
	gap: 2px;
	font-size: 1.4rem;
}

.chp-grs-star {
	color: #ffc107;
}

.chp-grs-star--empty {
	opacity: 0.3;
}

.chp-grs-meta span {
	font-size: 0.875rem;
	color: #888;
}

/* ── Navigation ───────────────────────────────────────────────────── */

.chp-grs-nav {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Desktop nav lives in the left column — hidden on mobile */
.chp-grs-nav--desktop {
	display: none;
}

/* Mobile nav sits below the slider track — hidden on desktop */
.chp-grs-nav--mobile {
	display: flex;
	justify-content: center;
}

@media (min-width: 1024px) {
	.chp-grs-nav--desktop {
		display: flex;
	}

	.chp-grs-nav--mobile {
		display: none;
	}
}

.chp-grs-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #328bc6;
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	flex-shrink: 0;
	padding: 0;
	
	svg {
		stroke: #fff;
	}
}

.chp-grs-nav-btn:hover {
	background-color: #2770a0;
}

.chp-grs-nav-btn--disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}
.chp-grs-slider .swiper-slide {
	padding: 1.5rem;
}
/* ── Right column ─────────────────────────────────────────────────── */

/*
 * .chp-grs-slider-clip clips the right edge so only the current card
 * and a partial peek of the next are visible.
 * The .swiper itself must NOT have overflow:hidden so the peek works.
 */
.chp-grs-slider-clip {
	overflow: hidden;
	/* small padding so box-shadows on cards aren't cut off at left/top/bottom */
	padding: 16px 0 16px 4px;
	margin: -16px 0 -16px -4px;
}

.chp-grs-slider.swiper {
	overflow: visible;
}

.swiper-slide {
	height: auto;
}

/* ── Review cards ─────────────────────────────────────────────────── */

.chp-grs-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.chp-grs-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.chp-grs-card-top .chp-grs-stars {
	font-size: 1.2rem;
}

.chp-grs-g-icon--sm {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.chp-grs-card-body {
	flex-grow: 1;
	margin-bottom: 24px;
}

.chp-grs-review-text {
	color: #555;
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chp-grs-card-footer {
	margin-top: auto;
}

.chp-grs-author-name {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}

.chp-grs-author-label {
	font-size: 0.8125rem;
	color: #999;
}

/* ── Error / notice ───────────────────────────────────────────────── */

.chp-grs-notice {
	padding: 16px 20px;
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
	border-radius: 6px;
	font-size: 0.9rem;
}


.chp-grs-heading {
	margin-bottom: 2rem;
}

.chp-grs-layout:has(.chp-grs-heading) {
.chp-grs-badge-rating {
	background: #fff;
	padding: 1.5rem;
	margin-bottom: 1rem;
	border-radius: 30px;
}
}