.ep-home-reviews {
	--ep-review-accent: var(--wd-primary-color, #34d399);
	--ep-review-ink: #17211f;
	--ep-review-muted: #6f7c79;
	--ep-review-line: #dbe3e1;
	position: relative;
	width: 100%;
	padding: clamp(34px, 4.2vw, 64px) max(18px, calc((100vw - var(--wd-container-w, 1222px)) / 2));
	overflow: hidden;
	background: linear-gradient(135deg, #f7faf9 0%, #f1f8f5 55%, #f7f8fa 100%);
}

.ep-home-reviews__inner {
	width: min(100%, var(--wd-container-w, 1222px));
	margin-inline: auto;
}

.ep-home-reviews__header {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 24px;
	align-items: end;
	margin-bottom: 26px;
}

.ep-home-reviews__eyebrow {
	margin: 0 0 6px;
	color: #079b72;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ep-home-reviews__intro h2 {
	margin: 0;
	color: var(--ep-review-ink);
	font-size: clamp(25px, 2.4vw, 38px);
	line-height: 1.12;
}

.ep-home-reviews__summary {
	display: flex;
	gap: 13px;
	align-items: center;
	min-width: 260px;
}

.ep-home-reviews__score {
	color: var(--ep-review-ink);
	font-size: clamp(38px, 4vw, 54px);
	font-weight: 700;
	line-height: .9;
}

.ep-home-reviews__summary-copy {
	display: grid;
	gap: 5px;
	color: var(--ep-review-muted);
	font-size: 13px;
	line-height: 1.35;
}

.ep-home-reviews__summary-copy strong {
	color: var(--ep-review-ink);
}

.ep-home-review-stars {
	display: inline-flex;
	gap: 2px;
	align-items: center;
	line-height: 1;
}

.ep-home-review-stars__star {
	color: #d4dcda;
	font-size: 18px;
}

.ep-home-review-stars__star.is-active {
	color: #f2b705;
}

.ep-home-reviews__controls {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.ep-home-reviews__control {
	display: inline-flex;
	flex: 0 0 44px;
	width: 44px;
	min-width: 44px;
	height: 44px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ep-review-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ep-review-ink);
	box-shadow: none;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.ep-home-reviews__control:hover {
	border-color: var(--ep-review-accent);
	background: var(--ep-review-accent);
	color: #10201c;
	transform: translateY(-1px);
}

.ep-home-reviews__control:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ep-review-accent) 35%, transparent);
	outline-offset: 2px;
}

.ep-home-reviews__control svg {
	display: block;
	flex: 0 0 21px;
	width: 21px;
	min-width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ep-home-reviews__play-icon,
.ep-home-reviews__control[aria-pressed="true"] .ep-home-reviews__pause-icon {
	display: none;
}

.ep-home-reviews__control[aria-pressed="true"] .ep-home-reviews__play-icon {
	display: block;
}

.ep-home-reviews__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 9px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x pan-y;
	cursor: grab;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.ep-home-reviews__viewport::-webkit-scrollbar {
	display: none;
}

.ep-home-reviews__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.ep-home-reviews__track {
	display: flex;
	gap: 16px;
}

.ep-home-review-card {
	display: flex;
	flex: 0 0 calc((100% - 48px) / 4);
	min-width: 0;
	min-height: 270px;
	padding: 20px;
	flex-direction: column;
	border: 1px solid var(--ep-review-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(22, 39, 34, .045);
	scroll-snap-align: start;
}

.ep-home-review-card__top {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 11px;
}

.ep-home-review-card__top > div {
	display: grid;
	gap: 2px;
}

.ep-home-review-card__author {
	color: var(--ep-review-ink);
	font-size: 15px;
	line-height: 1.3;
}

.ep-home-review-card time {
	color: var(--ep-review-muted);
	font-size: 12px;
}

.ep-home-review-card__verified {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	color: #087e61;
	font-size: 11px;
	font-weight: 650;
	white-space: nowrap;
}

.ep-home-review-card__verified svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.ep-home-review-card__content {
	display: -webkit-box;
	overflow: hidden;
	min-height: 5.7em;
	margin: 13px 0 18px;
	color: #303c39;
	font-size: 14px;
	line-height: 1.43;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow-wrap: anywhere;
}

.ep-home-review-card__product {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 18px;
	gap: 11px;
	align-items: center;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid #edf1f0;
	color: var(--ep-review-ink);
	text-decoration: none;
}

.ep-home-review-card__product:hover {
	color: #087e61;
}

.ep-home-review-card__image {
	display: flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 10px;
	background: #f7f9f8;
}

.ep-home-review-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ep-home-review-card__product-copy {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.ep-home-review-card__product-copy small {
	color: var(--ep-review-muted);
	font-size: 10px;
	font-weight: 650;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ep-home-review-card__product-copy strong {
	overflow: hidden;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ep-home-review-card__arrow {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

@media (max-width: 1024px) {
	.ep-home-reviews__header {
		grid-template-columns: 1fr auto;
	}

	.ep-home-reviews__summary {
		grid-column: 1;
		grid-row: 2;
	}

	.ep-home-reviews__controls {
		grid-column: 2;
		grid-row: 2;
	}

	.ep-home-review-card {
		flex-basis: calc((100% - 32px) / 3);
	}
}

@media (max-width: 767px) {
	.ep-home-reviews {
		padding: 32px 16px 36px;
	}

	.ep-home-reviews__header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 18px 12px;
		margin-bottom: 20px;
	}

	.ep-home-reviews__intro {
		grid-column: 1 / -1;
	}

	.ep-home-reviews__summary {
		min-width: 0;
	}

	.ep-home-reviews__score {
		font-size: 39px;
	}

	.ep-home-reviews__summary-copy {
		font-size: 12px;
	}

	.ep-home-reviews__control {
		flex-basis: 40px;
		width: 40px;
		min-width: 40px;
		height: 40px;
	}

	.ep-home-reviews .ep-home-reviews__control--pause {
		display: none !important;
	}

	.ep-home-review-card {
		flex-basis: min(86vw, 318px);
		min-height: 255px;
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ep-home-reviews__viewport,
	.ep-home-reviews__control {
		scroll-behavior: auto;
		transition: none;
	}
}
