/**
 * MyoCare homepage Google-reviews carousel.
 *
 * Lives inside the existing "What Our Patients Are Saying" Elementor section
 * (post 9, container 784712f) — the section's faded gradient background and
 * heading are untouched; this styles only the injected shortcode content.
 *
 * Matches the site language sampled from the old static testimonial cards:
 *   card:   #fff, 4px radius, shadow 0 14px 40px rgba(8,77,110,.08)
 *   stars:  var(--e-global-color-primary) = #37421A (olive, Elementor kit)
 *   body:   GT Walsheim 16px, theme font color #626974
 *   pill:   .mc-loc-pill look (white pill, hairline border, olive text)
 *   button: olive #687642 pill, white text (site "BOOK NOW" style)
 *
 * Layout classes .swiper/.swiper-wrapper/.swiper-slide come from Elementor's
 * bundled Swiper v8 CSS, already loaded on the front page.
 */

.mc-rev {
	--mc-rev-olive: #687642;
	--mc-rev-olive-deep: var(--e-global-color-primary, #37421A);
	--mc-rev-ink: #2F3544;
	--mc-rev-body: #626974;
	--mc-rev-soft: #686C79;
	--mc-rev-rule: rgba(47, 53, 68, 0.12);
	--mc-rev-shadow: 0 14px 40px rgba(8, 77, 110, 0.08);
	width: 100%;
	font-family: "GT Walsheim", "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mc-rev *,
.mc-rev *::before,
.mc-rev *::after {
	box-sizing: border-box;
}

/* ---------- aggregate badge row ---------- */

.mc-rev__badge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin: 0 0 34px;
	text-align: center;
	font-size: 16px;
	color: var(--mc-rev-ink);
}

.mc-rev__badge-stars {
	display: inline-flex;
	gap: 3px;
	color: var(--mc-rev-olive-deep);
}

.mc-rev__badge-stars svg {
	width: 19px;
	height: 19px;
	display: block;
}

.mc-rev__badge-item strong {
	font-weight: 700;
}

.mc-rev__badge-sep {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--mc-rev-olive);
	opacity: 0.55;
}

/* ---------- stage: arrows beside the swiper ---------- */

.mc-rev__stage {
	display: flex;
	align-items: center;
	gap: 18px;
}

.mc-rev__swiper {
	flex: 1 1 auto;
	min-width: 0;
	/* Room for the card shadow, which overflow:hidden would otherwise crop. */
	padding: 10px 6px 30px;
}

/* Equal-height cards. */
.mc-rev .swiper-slide {
	height: auto;
	display: flex;
}

/* Pre-init facade: before (or without) Swiper, show a sane one-row layout. */
.mc-rev:not(.is-ready) .mc-rev__swiper {
	overflow: hidden;
}

.mc-rev:not(.is-ready) .swiper-wrapper {
	display: flex;
	gap: 40px;
}

.mc-rev:not(.is-ready) .swiper-slide {
	flex: 0 0 auto;
	width: min(100%, 360px);
}

/* ---------- arrows (site style: white circle, olive glyph) ---------- */

.mc-rev .mc-rev__arrow {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mc-rev-rule);
	border-radius: 50%;
	background: #fff;
	color: var(--mc-rev-olive-deep);
	box-shadow: 0 6px 18px rgba(8, 77, 110, 0.08);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mc-rev .mc-rev__arrow svg {
	width: 20px;
	height: 20px;
	display: block;
}

.mc-rev .mc-rev__arrow:hover,
.mc-rev .mc-rev__arrow:focus-visible {
	background: var(--mc-rev-olive);
	border-color: var(--mc-rev-olive);
	color: #fff;
}

.mc-rev .mc-rev__arrow:focus-visible,
.mc-rev .mc-rev__btn:focus-visible {
	outline: 2px solid var(--mc-rev-olive-deep);
	outline-offset: 2px;
}

/* ---------- review card ---------- */

.mc-rev-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--mc-rev-shadow);
	padding: 30px 28px 26px;
}

/* flex 0 0 auto: a stretched flex item would grow past the clamped 8 lines
   and reveal the overflow-hidden 9th line; the spare space goes between the
   text and the stars row (margin-top auto below) instead. */
.mc-rev-card__text {
	flex: 0 0 auto;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.7;
	color: var(--mc-rev-body);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
	line-clamp: 8;
	overflow: hidden;
}

.mc-rev-card__stars {
	display: flex;
	gap: 2px;
	margin: auto 0 18px;
}

.mc-rev-card__star {
	display: inline-flex;
	color: #878F9D;
}

.mc-rev-card__star.is-active {
	color: var(--mc-rev-olive-deep);
}

.mc-rev-card__star svg {
	width: 15px;
	height: 15px;
	display: block;
}

.mc-rev-card__meta {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mc-rev-card__avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.mc-rev-card__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #EDEFE5;
	color: var(--mc-rev-olive-deep);
	font-size: 22px;
	font-weight: 700;
}

.mc-rev-card__who {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mc-rev .mc-rev-card__name {
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mc-rev-ink);
}

.mc-rev-card__when {
	font-size: 13px;
	color: var(--mc-rev-soft);
}

/* Location tag — same look as .mc-loc-pill on location pages. */
.mc-rev-card__pill {
	flex: 0 0 auto;
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--mc-rev-rule);
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: var(--mc-rev-olive);
}

/* ---------- dots ---------- */

.mc-rev__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	min-height: 8px;
	margin: 2px 0 0;
}

.mc-rev__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 50%;
	background: var(--mc-rev-olive-deep);
	opacity: 0.22;
	transition: opacity 0.2s ease;
}

.mc-rev__dots .swiper-pagination-bullet-active {
	opacity: 1;
}

/* ---------- CTA buttons (site olive pill style) ---------- */

.mc-rev__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 30px 0 0;
}

.mc-rev .mc-rev__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 30px;
	border-radius: 999px;
	background: var(--mc-rev-olive);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.mc-rev .mc-rev__btn:hover,
.mc-rev .mc-rev__btn:focus-visible {
	background: var(--mc-rev-olive-deep);
	color: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.mc-rev__stage {
		gap: 10px;
	}
}

@media (max-width: 700px) {
	.mc-rev__stage {
		gap: 0;
	}

	/* Swipe + dots on small screens; arrows would crowd the cards. */
	.mc-rev .mc-rev__arrow {
		display: none;
	}

	.mc-rev__swiper {
		padding: 6px 2px 24px;
	}

	.mc-rev-card {
		padding: 24px 22px 22px;
	}

	.mc-rev__badge {
		flex-direction: column;
		gap: 8px;
	}

	.mc-rev__badge-sep {
		display: none;
	}
}
