/* PLManager reviews: home-page carousel + Trustpilot footer badge. Loaded by plm-reviews.php.
   Design note: deliberately NOT a three-card testimonial grid. Each review is a wide slab
   carrying the seller's own ledger figure, so the proof sits inside the card instead of being
   asserted by a row of stars. Asymmetric: wide quote column, narrow right-aligned figure. */

.plm-rv,
.plm-rvtp {
	--rv-ink: #0B1220;
	--rv-text: #334155;
	--rv-muted: #5B6B82;
	--rv-border: #E2E8F0;
	--rv-alt: #F7F9FC;
	--rv-blue: #2563EB;
	--rv-navy: #051D3F;
	--rv-gain: #047A48;
	--rv-ease: cubic-bezier(.22, .61, .36, 1);
	--rv-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rv-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.plm-rv__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Section shell ---------- */
.plm-rv {
	position: relative;
	background: #fff;
	padding: 92px 0 96px;
	font-family: var(--rv-font);
	/* a single hairline above, so the section reads as its own chapter */
	border-top: 1px solid var(--rv-border);
}

.plm-rv__in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Head: label left, controls right. Asymmetric on purpose — not a centred stack. */
.plm-rv__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin: 0 0 40px;
}

.plm-rv__eyebrow {
	display: block;
	margin: 0 0 12px !important;
	padding: 0;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--rv-muted) !important;
}

.plm-rv__title {
	margin: 0 !important;
	padding: 0;
	max-width: 19ch;
	font-family: var(--rv-font) !important;
	font-size: clamp(28px, 3.1vw, 40px) !important;
	font-weight: 700 !important;
	line-height: 1.14 !important;
	letter-spacing: -.021em;
	color: var(--rv-ink) !important;
}

/* ---------- Controls ---------- */
.plm-rv__nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	padding-bottom: 4px;
}

.plm-rv__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* fixed, so the theme's button padding cannot stretch the circle into a pill */
	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0 !important;
	border: 1px solid var(--rv-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rv-ink);
	cursor: pointer;
	transition: border-color .18s var(--rv-ease), background-color .18s var(--rv-ease), color .18s var(--rv-ease);
	-webkit-appearance: none;
	appearance: none;
}
.plm-rv__btn:hover:not(:disabled) {
	border-color: var(--rv-navy);
	background: var(--rv-navy);
	color: #fff;
}
.plm-rv__btn:focus-visible {
	outline: 2px solid var(--rv-blue);
	outline-offset: 2px;
}
.plm-rv__btn:disabled {
	opacity: .32;
	cursor: default;
}
/* The theme sets svg { width: auto } which collapses a viewBox-only icon to 0px,
   so the size is pinned here. */
.plm-rv__btn svg {
	width: 17px !important;
	height: 17px !important;
	display: block;
	flex: none;
}

/* ---------- Rail ---------- */
.plm-rv__viewport {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	/* Let focus rings and hover shadow breathe without being clipped, and let the rail
	   bleed to the right edge of the window so the next card is visibly cut off —
	   that overflow is what tells the reader the row scrolls. */
	padding-block: 6px 10px;
	margin-block: -6px -10px;
	margin-inline: 0 calc(50% - 50vw);
	padding-inline: 0 calc(50vw - 50%);
}
.plm-rv__viewport::-webkit-scrollbar { display: none; }

.plm-rv__track {
	display: flex;
	gap: 20px;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- The slab ---------- */
.plm-rv__item {
	scroll-snap-align: start;
	list-style: none;
	margin: 0;
	flex: 0 0 auto;
	width: min(560px, 86vw);
	display: grid;
	/* wide quote, narrow figure — the asymmetry is the point */
	grid-template-columns: minmax(0, 1fr) 168px;
	background: #fff;
	border: 1px solid var(--rv-border);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color .2s var(--rv-ease), box-shadow .2s var(--rv-ease);
}
.plm-rv__item:hover {
	border-color: #CBD5E1;
	box-shadow: 0 8px 24px -8px rgba(11, 18, 32, .14), 0 2px 6px -2px rgba(11, 18, 32, .06);
}

.plm-rv__body {
	padding: 26px 24px 22px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.plm-rv__quote {
	/* The theme gives every blockquote a 4px blue left stripe and 30px padding — that
	   side-stripe card is exactly the pattern this design avoids, so it is reset here. */
	margin: 0 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	quotes: none;
	font-family: var(--rv-font) !important;
	font-size: 15.5px !important;
	font-weight: 400 !important;
	line-height: 1.62 !important;
	letter-spacing: -.003em;
	color: var(--rv-text) !important;
	/* keep every slab the same height without clipping mid-word */
	flex: 1 1 auto;
}
/* Quote marks come from the text itself (see reviews.php), not from CSS, so a quote
   containing its own punctuation never ends up double-wrapped. */

/* Attribution: monogram tile, never a stock face. */
.plm-rv__who {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.plm-rv__mono {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--rv-alt);
	border: 1px solid var(--rv-border);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--rv-navy);
}

.plm-rv__ident { min-width: 0; }

.plm-rv__name {
	display: block;
	/* <cite> is italic by default; the name is a name, not a work title */
	font-style: normal;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	color: var(--rv-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.plm-rv__role {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--rv-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Figure column: a ledger row, not a badge ---------- */
.plm-rv__fig {
	border-inline-start: 1px solid var(--rv-border);
	background: var(--rv-alt);
	padding: 26px 20px 22px;
	display: flex;
	flex-direction: column;
	/* figure sits level with the quote's first line; platform mark anchors to the base,
	   level with the attribution across the rule */
	justify-content: space-between;
	align-items: flex-end;
	text-align: end;
}
.plm-rv__fig > span:first-child {
	display: block;
}

.plm-rv__metric {
	display: block;
	font-family: var(--rv-mono);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.03em;
	/* a currency amount should stay on one line; only long word-pairs wrap */
	white-space: nowrap;
	/* green is reserved for money; everything else stays navy */
	color: var(--rv-navy);
	font-variant-numeric: tabular-nums;
}
/* Two-word figures ("2 products") may wrap; a currency amount never does. */
.plm-rv__item:not([data-money="1"]) .plm-rv__metric {
	white-space: normal;
	overflow-wrap: anywhere;
}
.plm-rv__item[data-money="1"] .plm-rv__metric { color: var(--rv-gain); }

.plm-rv__mlabel {
	display: block;
	margin-top: 7px;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--rv-muted);
}

.plm-rv__plat {
	margin-top: 18px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	/* #94A3B8 only reached 2.43:1 on the alt panel; this clears WCAG AA for small text */
	color: #64748B;
	white-space: nowrap;
}

/* ---------- Progress: a rule that fills, matching the ledger idea ---------- */
.plm-rv__foot {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 30px;
}

.plm-rv__rail {
	position: relative;
	flex: 1 1 auto;
	height: 2px;
	background: var(--rv-border);
	border-radius: 2px;
	overflow: hidden;
}
.plm-rv__bar {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 25%;
	background: var(--rv-navy);
	border-radius: 2px;
	transition: transform .25s var(--rv-ease), width .25s var(--rv-ease);
}

.plm-rv__count {
	flex: none;
	font-family: var(--rv-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--rv-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.plm-rv { padding: 68px 0 72px; }
	.plm-rv__head {
		display: block;
		margin-bottom: 30px;
	}
	.plm-rv__title { max-width: none; }
	.plm-rv__nav { display: none; }
}

@media (max-width: 560px) {
	.plm-rv { padding: 56px 0 60px; }
	.plm-rv__in { padding: 0 18px; }
	.plm-rv__item {
		width: 85vw;
		/* stack: the figure becomes a footer strip rather than a column */
		grid-template-columns: 1fr;
	}
	.plm-rv__body { padding: 22px 20px 18px; }
	.plm-rv__quote { font-size: 15px !important; }
	.plm-rv__fig {
		border-inline-start: 0;
		border-block-start: 1px solid var(--rv-border);
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: start;
		padding: 13px 20px;
		gap: 14px;
	}
	.plm-rv__mlabel { margin-top: 2px; }
	.plm-rv__plat { margin-top: 0; }
	.plm-rv__track { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.plm-rv__viewport { scroll-behavior: auto; }
	.plm-rv__item,
	.plm-rv__btn,
	.plm-rv__bar { transition: none; }
}

/* ---------- Trustpilot badge, footer ---------- */
.plm-rvtp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--rv-font);
	font-size: 13px;
	line-height: 1.4;
	color: #CBD5E1;
}
.plm-rvtp a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .28);
	padding-bottom: 1px;
	transition: border-color .18s var(--rv-ease);
}
.plm-rvtp a:hover { border-bottom-color: #fff; }
.plm-rvtp a:focus-visible {
	outline: 2px solid #93C5FD;
	outline-offset: 3px;
	border-radius: 3px;
}
.plm-rvtp__star { flex: none; display: block; }

/* The real Trustpilot widget, when it is switched on. */
.plm-rvtp__widget {
	margin: 0 0 18px;
	min-height: 24px;
}
