/* AG Client: Google reviews (cards row/carousel, rating badge, reviewer photos). Colours and fonts come from
   Settings > AG Client > Google reviews as custom properties; the Elementor widget's style controls override them. */
.agc-gr {
	--agc-gr-accent: #2f6b66;
	--agc-gr-star: #e8a33d;
	--agc-gr-star-off: #d9d4cc;
	--agc-gr-ink: #1b1b1b;
	--agc-gr-ink2: #4a4a4a;
	--agc-gr-ink3: #767676;
	--agc-gr-line: #e6e2dc;
	font-family: var(--agc-gr-font, inherit);
}

/* Stars: a grey row with a coloured row on top, cut to the score (4.9 = 98 %). Drawn by CSS only. */
.agc-gr-stars {
	position: relative;
	display: inline-block;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 1px;
	color: var(--agc-gr-star-off);
	white-space: nowrap;
	vertical-align: middle;
}
.agc-gr-stars::before {
	content: "\2605\2605\2605\2605\2605";
}
.agc-gr-stars::after {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
	width: var(--agc-gr-fill, 100%);
	overflow: hidden;
	color: var(--agc-gr-star);
}
.agc-gr-gmark {
	display: block;
	flex: none;
}

/* Review cards */
.agc-gr-cards {
	--agc-gr-gap: 20px;
	--agc-gr-pad: 24px;
	--agc-gr-cols: var(--agc-gr-per, 3);
}
@media (max-width: 1024px) {
	.agc-gr-cards { --agc-gr-cols: var(--agc-gr-per-t, 2); }
}
@media (max-width: 767px) {
	.agc-gr-cards { --agc-gr-cols: var(--agc-gr-per-m, 1); }
}
.agc-gr-stage {
	position: relative;
}
.agc-gr-track {
	display: grid;
	grid-template-columns: repeat(var(--agc-gr-cols), minmax(0, 1fr));
	gap: var(--agc-gr-gap);
	margin: 0;
	padding: 0;
}
.agc-gr-cards.is-carousel .agc-gr-stage {
	padding: 0 30px;
}
.agc-gr-cards.is-carousel .agc-gr-track {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--agc-gr-cols) - 1) * var(--agc-gr-gap)) / var(--agc-gr-cols));
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.agc-gr-cards.is-carousel .agc-gr-track::-webkit-scrollbar {
	display: none;
}
.agc-gr-track:focus-visible {
	outline: 2px solid var(--agc-gr-accent);
	outline-offset: 4px;
	border-radius: 14px;
}
.agc-gr-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--agc-gr-line);
	border-radius: 14px;
	scroll-snap-align: start;
	overflow: hidden;
}
.agc-gr-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: var(--agc-gr-pad) var(--agc-gr-pad) calc(var(--agc-gr-pad) * 0.67);
	border-bottom: 1px solid var(--agc-gr-line);
}
.agc-gr-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef6f5;
}
/* ".agc-gr ... img" outranks Elementor's ".elementor img { border: none; border-radius: 0; height: auto }". */
.agc-gr .agc-gr-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
}
.agc-gr-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 600;
	font-size: 17px;
	color: var(--agc-gr-accent);
}
.agc-gr-who {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	min-width: 0;
	flex: 1 1 auto;
}
.agc-gr-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--agc-gr-ink);
	overflow-wrap: anywhere;
}
.agc-gr-name a {
	color: inherit;
	text-decoration: none;
}
.agc-gr-name a:hover,
.agc-gr-name a:focus-visible {
	text-decoration: underline;
}
.agc-gr-meta {
	font-size: 13px;
	line-height: 1.35;
	color: var(--agc-gr-ink3);
}
.agc-gr-g {
	flex: none;
	display: flex;
	padding: 2px;
	border-radius: 50%;
}
.agc-gr-text {
	margin: 0;
	padding: calc(var(--agc-gr-pad) * 0.67) var(--agc-gr-pad) var(--agc-gr-pad);
	font-size: 15px;
	line-height: 1.55;
	color: var(--agc-gr-ink2);
	overflow-wrap: anywhere;
}
.agc-gr-more {
	color: var(--agc-gr-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

/* Carousel arrows and dots (the dots row keeps its height before the script runs: no layout shift). The selectors
   are long on purpose: themes and Elementor kits style every <button> (".elementor-kit-12 button:hover"). */
.agc-gr-cards .agc-gr-stage button.agc-gr-arrow,
.agc-gr-cards .agc-gr-stage button.agc-gr-arrow:hover,
.agc-gr-cards .agc-gr-stage button.agc-gr-arrow:focus {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	margin: -22px 0 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--agc-gr-accent);
	font-size: 0;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.agc-gr-cards .agc-gr-stage button.agc-gr-arrow:hover {
	background: rgba(0, 0, 0, 0.05);
}
.agc-gr-cards .agc-gr-stage button.agc-gr-arrow:focus-visible {
	outline: 2px solid var(--agc-gr-accent);
	outline-offset: 1px;
}
.agc-gr-cards .agc-gr-stage button.agc-gr-prev {
	left: 0;
}
.agc-gr-cards .agc-gr-stage button.agc-gr-next {
	right: 0;
}
.agc-gr-next svg {
	transform: scaleX(-1);
}
.agc-gr-cards.is-static .agc-gr-arrow {
	visibility: hidden;
}
.agc-gr-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	min-height: 8px;
	margin-top: 20px;
}
.agc-gr-cards .agc-gr-dots button.agc-gr-dot,
.agc-gr-cards .agc-gr-dots button.agc-gr-dot:hover,
.agc-gr-cards .agc-gr-dots button.agc-gr-dot:focus {
	display: block;
	width: 8px;
	min-width: 0;
	height: 8px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.18);
	box-shadow: none;
	font-size: 0;
	cursor: pointer;
}
.agc-gr-cards .agc-gr-dots button.agc-gr-dot.is-active {
	background: var(--agc-gr-accent);
}
.agc-gr-attr {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	color: var(--agc-gr-ink3);
}
.agc-gr-attr a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 767px) {
	.agc-gr-cards.is-carousel .agc-gr-stage {
		padding: 0 24px;
	}
	.agc-gr-cards .agc-gr-stage button.agc-gr-arrow {
		width: 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.agc-gr-cards.is-carousel .agc-gr-track {
		scroll-behavior: auto;
	}
}

/* Rating badge */
.agc-gr-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 5px 12px 5px 9px;
	background: #fff;
	border: 1px solid var(--agc-gr-line);
	border-radius: 10px;
	color: var(--agc-gr-ink);
	text-decoration: none;
	line-height: 1.2;
	box-sizing: border-box;
}
a.agc-gr-badge:hover,
a.agc-gr-badge:focus-visible {
	border-color: var(--agc-gr-accent);
	color: var(--agc-gr-ink);
}
a.agc-gr-badge:focus-visible {
	outline: 2px solid var(--agc-gr-accent);
	outline-offset: 2px;
}
.agc-gr-badge-g {
	display: flex;
}
.agc-gr-badge-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.agc-gr-badge-top {
	display: flex;
	align-items: center;
	gap: 6px;
}
.agc-gr-score {
	font-family: var(--agc-gr-heading, inherit);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--agc-gr-ink);
}
.agc-gr-badge-label {
	font-size: 12px;
	line-height: 1.2;
	color: var(--agc-gr-ink2);
	white-space: nowrap;
}

/* Reviewer photos */
.agc-gr-faces {
	--agc-gr-face: 38px;
	--agc-gr-overlap: 12px;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}
.agc-gr-faces img.agc-gr-face {
	display: block;
	max-width: none;
	flex: none;
	width: var(--agc-gr-face);
	height: var(--agc-gr-face);
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #eef6f5;
	box-sizing: border-box;
}
.agc-gr-faces img.agc-gr-face + img.agc-gr-face {
	margin-left: calc(var(--agc-gr-overlap) * -1);
}
.agc-gr-empty {
	margin: 0;
}
