/* „Atsiliepimai“ Beaver Builder module (inc/mv-atsiliepimai/): the sliding strip of Google reviews. Loaded by the
   module itself, so it works in any row; the colours fall back to the brand values when the row sets none.
   The strip pauses on hover and while it has focus (it is focusable: Tab, or a tap on touch screens). */

.mv-rev {
	--mv-ink: #510000;
	--mv-ink-85: rgba(81, 0, 0, .85);
	--mv-ink-70: rgba(81, 0, 0, .7);
	--mv-ink-hover: #6a2524;
	--mv-line: rgba(81, 0, 0, .12);
	--mv-ground: #f9f6ed;
	--mv-sand: #f4f1e6;
	color: var(--mv-ink);
}
.mv-rev :focus-visible {
	outline: 2px solid var(--mv-ink);
	outline-offset: 3px;
}

/* Buttons: same shape and states as the homepage buttons */
.mv-rev a.mv-btn,
.mv-rev a.mv-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 2px solid #510000;
	border-radius: 999px;
	background: transparent;
	color: #510000;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.mv-rev a.mv-btn--ink,
.mv-rev a.mv-btn--ink:visited {
	background: #510000;
	color: #f9f6ed;
}
.mv-rev a.mv-btn svg {
	flex: none;
	width: 18px;
	height: 18px;
	transition: transform .15s ease;
}
@media (hover: hover) {
	.mv-rev a.mv-btn:hover {
		background: #510000;
		color: #f9f6ed;
	}
	.mv-rev a.mv-btn--ink:hover {
		border-color: #6a2524;
		background: #6a2524;
	}
	.mv-rev a.mv-btn:hover svg {
		transform: translateX(3px);
	}
}
.mv-rev a.mv-btn:active {
	transform: translateY(1px);
}

.mv-rev__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	max-width: 1248px;
	margin: 0 auto 36px;
	padding: 0 24px;
}
.mv-rev__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mv-ink-70);
}
.mv-rev__g {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--mv-line);
	border-radius: 50%;
	background: var(--mv-ground);
	color: var(--mv-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
}
.mv-rev h2.mv-rev__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--mv-ink);
	text-transform: none;
}
.mv-rev__rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--mv-ink-85);
}
.mv-rev__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.mv-rev__marquee {
	position: relative;
	overflow: hidden;
}
.mv-rev__marquee:focus-visible {
	outline: 2px solid var(--mv-ink);
	outline-offset: -2px;
}
.mv-rev__marquee::before,
.mv-rev__marquee::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 80px;
	pointer-events: none;
}
.mv-rev__marquee::before {
	left: 0;
	background: linear-gradient(90deg, var(--mv-sand), transparent);
}
.mv-rev__marquee::after {
	right: 0;
	background: linear-gradient(-90deg, var(--mv-sand), transparent);
}
.mv-rev__track {
	display: flex;
	gap: 20px;
	width: max-content;
	padding-block: 4px;
	animation: mv-rev-slide var(--mv-rev-duration, 60s) linear infinite;
}
.mv-rev__marquee:hover .mv-rev__track,
.mv-rev__marquee:focus-within .mv-rev__track {
	animation-play-state: paused;
}
@keyframes mv-rev-slide {
	to { transform: translateX(calc(-50% - 10px)); }
}
.mv-rev__card {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 16px;
	width: 360px;
	padding: 26px 26px 22px;
	border: 1px solid var(--mv-line);
	border-radius: 24px;
	background: var(--mv-ground);
}
.mv-rev__stars {
	display: flex;
	gap: 3px;
	color: #f4af14;
}
.mv-rev__stars svg {
	width: 18px;
	height: 18px;
}
.mv-rev__rating .mv-rev__stars svg {
	width: 16px;
	height: 16px;
}
.mv-rev blockquote.mv-rev__text {
	flex: 1;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.55;
	color: var(--mv-ink-85);
}
.mv-rev__by {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--mv-line);
}
.mv-rev__avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--mv-ink);
	font-weight: 700;
}
.mv-rev__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
.mv-rev__src {
	display: block;
	font-size: 13px;
	color: var(--mv-ink-70);
}
.mv-rev__empty {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	border: 1px dashed rgba(81, 0, 0, .3);
	border-radius: 16px;
	font-size: 15px;
}

@media (max-width: 640px) {
	.mv-rev__head {
		padding: 0 16px;
	}
	.mv-rev__actions {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}
	.mv-rev a.mv-btn {
		min-height: 50px;
		padding: 0 22px;
	}
	.mv-rev__card {
		width: 290px;
		padding: 22px 20px 18px;
	}
	.mv-rev blockquote.mv-rev__text {
		font-size: 15px;
	}
	.mv-rev__marquee::before,
	.mv-rev__marquee::after {
		width: 24px;
	}
}
@media (prefers-reduced-motion: reduce) {
	/* No sliding: a strip you scroll yourself, each review once (the copies that make the loop are hidden) */
	.mv-rev__track {
		animation: none;
	}
	.mv-rev__marquee {
		overflow-x: auto;
	}
	.mv-rev__card[aria-hidden="true"] {
		display: none;
	}
	.mv-rev__marquee::before,
	.mv-rev__marquee::after {
		display: none;
	}
	.mv-rev a.mv-btn,
	.mv-rev a.mv-btn svg {
		transition: none;
	}
}
