/*
 * NP24 PDP sections (WidenMarketing, 2026-11): review section and How it works.
 * Loaded after the parent theme style.css. Uses the theme tokens only; the only new color
 * is Trustpilot green. The review section sits on the theme's light blue (--qte-color-accent-1,
 * as the parent review section does) with white cards and the arrows outside the row, like the
 * parent slider. No hover or focus color changes on cards or arrows. Layout follows the theme row:
 * .np24-inner is the row width that .qte-section defines (--row-width), so the sections line up.
 */

.np24-inner {
	width: var(--row-width, min(100% - 40px, 1280px));
	margin: 0 auto;
	min-width: 0;
}

.np24-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.np24-rev [hidden],
.np24-hiw [hidden] {
	display: none !important;
}

/* ---------- Buttons: theme hierarchy, without the primary shadow, auto width on desktop ---------- */

.np24-hiw .np24-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 160px;
	padding: 14px 22px;
	border-radius: var(--qte-spacing-1, 10px);
	border-width: 1px;
	border-style: solid;
	font-family: var(--qte-ff-text);
	font-size: 15px;
	font-weight: var(--qte-fw-btn, 600);
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	transition: background-color var(--transition, 0.2s), border-color var(--transition, 0.2s), color var(--transition, 0.2s);
}

.np24-hiw .np24-btn.qte-btn-primary {
	background-color: var(--qte-color-primary);
	border-color: var(--qte-color-primary);
	color: var(--qte-color-text-light);
	box-shadow: none;
}

.np24-hiw .np24-btn.qte-btn-primary:hover {
	background-color: var(--qte-color-primary-hover);
	border-color: var(--qte-color-primary-hover);
	color: var(--qte-color-text-light);
}

.np24-hiw .np24-btn.qte-btn-tertiary {
	background-color: transparent;
	border-color: var(--qte-color-tertiary-50, rgba(71, 84, 103, 0.5));
	color: var(--qte-color-text-secondary-dark);
}

.np24-hiw .np24-btn.qte-btn-tertiary:hover {
	background-color: var(--qte-color-primary-hover);
	border-color: var(--qte-color-primary-hover);
	color: var(--qte-color-text-light);
}

/* ---------- 1. Reviews ---------- */

.qte-section.np24-rev {
	background-color: var(--qte-color-accent-1, #e6f2ff);
	padding-block: var(--qte-spacing-section-sm);
	overflow: hidden;
}

.np24-rev__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.np24-rev .np24-rev__title {
	margin: 0;
	font-family: var(--qte-ff-heading);
	font-size: var(--qte-fs-h3);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--qte-color-text-dark);
}

.np24-rev__score {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--qte-color-text-body);
	text-decoration: none;
	white-space: nowrap;
}

.np24-rev__score:hover {
	color: var(--qte-color-text-dark);
}

.np24-rev__score strong {
	color: var(--qte-color-text-dark);
}

.np24-tp-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--qte-color-text-dark);
}

.np24-tp-wordmark svg {
	width: 18px;
	height: 18px;
}

.np24-tp-stars {
	display: inline-flex;
	gap: 3px;
}

.np24-tp-stars span {
	display: inline-flex;
}

.np24-tp-stars svg {
	width: 18px;
	height: 18px;
}

.np24-tp-stars .np24-tp-star__body {
	fill: #00b67a;
}

.np24-tp-stars .np24-tp-star__facet {
	fill: #005128;
}

.np24-tp-stars .is-off .np24-tp-star__body,
.np24-tp-stars .is-off .np24-tp-star__facet {
	fill: var(--qte-color-order-info-border, #e1e2ec);
}

/* The track spans the row like the other sections. Desktop: the arrows sit outside the row,
   vertically centered on the track (as the parent slider). Mobile: arrows centered below. */
.np24-rev__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.np24-rev__track {
	display: flex;
	gap: 20px;
	min-width: 0;
	padding: 4px 2px 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.np24-rev__track::-webkit-scrollbar {
	display: none;
}

.np24-rev__track:focus-visible {
	outline: 2px solid var(--qte-color-primary);
	outline-offset: 2px;
	border-radius: 16px;
}

/* Whole cards only: 2 per view on tablet, 3 on narrow desktop, 4 from 1280px. Mobile shows 82%. */
.np24-rev__card {
	flex: 0 0 calc((100% - 20px) / 2);
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 232px;
	padding: 24px 24px 22px;
	border-radius: 16px;
	background: var(--qte-color-white, #fff);
	scroll-snap-align: start;
}

.np24-rev .np24-rev__card p {
	flex: 1;
	margin: 0;
	font-family: var(--qte-ff-text);
	font-size: 15px;
	line-height: 1.55;
	color: var(--qte-color-text-body);
}

.np24-rev__who {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--qte-color-text-details);
}

.np24-rev__who b {
	font-weight: 600;
	color: var(--qte-color-text-dark);
}

.np24-rev__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}

/* As the parent slider's arrows: white circle, soft shadow, chevron in the secondary blue,
   hover adds a thin ring in the secondary blue. Nothing else changes on click or focus. */
.np24-rev__nav button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--qte-color-background-main, #fdfeff);
	color: var(--qte-color-secondary, #2081f2);
	box-shadow: 0 5px 16px 0 rgba(8, 15, 52, 0.06);
	cursor: pointer;
	transition: box-shadow var(--transition, 0.2s);
	-webkit-tap-highlight-color: transparent;
}

.np24-rev__nav button:hover {
	box-shadow: 0 5px 16px 0 rgba(8, 15, 52, 0.06), 0 0 0 var(--qte-spacing-bw, 1px) var(--qte-color-secondary, #2081f2);
}

.np24-rev__nav button:active,
.np24-rev__nav button:focus {
	background: var(--qte-color-background-main, #fdfeff);
	color: var(--qte-color-secondary, #2081f2);
	outline: none;
}

.np24-rev__nav button:focus-visible {
	outline: 2px solid var(--qte-color-primary);
	outline-offset: 2px;
}

.np24-rev__nav svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 1023px) {
	.np24-rev__nav--prev {
		display: none;
	}
}

@media (min-width: 1024px) {
	.np24-rev__card {
		flex-basis: calc((100% - 40px) / 3);
	}

	.np24-rev__nav {
		position: absolute;
		top: 50%;
		margin: 0;
		transform: translateY(-50%);
	}

	.np24-rev__nav--prev {
		right: 100%;
		margin-right: 12px;
	}

	.np24-rev__nav--next {
		left: 100%;
		margin-left: 12px;
	}

	.np24-rev__nav button.np24-only-mobile {
		display: none;
	}
}

@media (min-width: 1280px) {
	.np24-rev__card {
		flex-basis: calc((100% - 60px) / 4);
	}
}

/* ---------- 2. How it works ---------- */

.np24-hiw__top {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}

.np24-hiw__head {
	max-width: 640px;
}

.np24-hiw .np24-hiw__head h2 {
	margin: 0;
	font-family: var(--qte-ff-heading);
	font-size: var(--qte-fs-h2);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--qte-color-text-dark);
}

.np24-hiw .np24-hiw__head p {
	margin: 12px 0 0;
	font-family: var(--qte-ff-text);
	font-size: 17px;
	line-height: 1.55;
	color: var(--qte-color-text-body);
}

/* Preambles share one grid cell, so the head is always as tall as the longest text and nothing below
   moves when the switch changes the text. The inactive one is faded out and hidden from readers. */
.np24-hiw__pre {
	display: grid;
}

.np24-hiw__pre p {
	grid-area: 1 / 1;
}

.np24-hiw__pre p:not(.is-active) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.np24-hiw__controls {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* Segmented control: white pill on the page background, selected = light grey with blue text.
   The light grey plate (.np24-seg__pill) slides to the pressed button; JS sets its width and position.
   Without JS the pressed button carries the grey itself (.np24-seg.no-js). */
.np24-seg {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--qte-color-white, #fff);
}

.np24-seg__pill {
	position: absolute;
	top: 4px;
	left: 0;
	z-index: -1;
	width: 0;
	height: calc(100% - 8px);
	border-radius: 999px;
	background: var(--qte-color-background-light-grey, #f9fafb);
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.np24-seg button {
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-family: var(--qte-ff-text);
	font-size: 15px;
	font-weight: 600;
	color: var(--qte-color-text-body);
	cursor: pointer;
	transition: background-color var(--transition, 0.2s), color var(--transition, 0.2s);
}

.np24-seg button[aria-pressed="true"] {
	color: var(--qte-color-primary);
}

.np24-seg.no-js button[aria-pressed="true"] {
	background: var(--qte-color-background-light-grey, #f9fafb);
}

.np24-seg button:hover:not([aria-pressed="true"]) {
	color: var(--qte-color-text-dark);
}

.np24-hiw__tracks {
	position: relative;
	transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.np24-hiw__tracks.is-animating {
	overflow: hidden;
}

.np24-hiw .np24-hiw__grid {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Switch transition ("zoom with focus", Filip 2026-11-25): the leaving cards blur, shrink and fade
   out; the entering cards come into focus and grow into place one after another (inline
   transition-delay from JS). The container animates its height; preamble and CTA crossfade. */
.np24-hiw .np24-hiw__card {
	will-change: transform, opacity;
	transition: opacity 0.68s ease, transform 0.68s cubic-bezier(0.16, 1, 0.3, 1), filter 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.np24-hiw__grid.is-leaving .np24-hiw__card {
	opacity: 0;
	transform: scale(0.94);
	filter: blur(6px);
	transition-duration: 0.24s;
	transition-timing-function: ease-in;
	transition-delay: 0ms !important;
}

.np24-hiw__grid.is-entering .np24-hiw__card {
	opacity: 0;
	transform: scale(0.88) translateY(14px);
	filter: blur(10px);
	transition: none;
}

/* Preamble: plain crossfade in place (Filip 2026-11-25). The leaving text fades out at once, the
   entering text fades in slightly after, so they cross. Visibility flips when the fade is done. */
.np24-hiw__pre p {
	transition: opacity 0.42s ease, visibility 0s linear 0.42s;
}

.np24-hiw__pre p.is-active {
	transition: opacity 0.42s ease 0.12s;
}

/* CTA (mobile only): simple fade with the cards */
.np24-hiw__cta a[data-np24-track] {
	transition: opacity 0.3s ease;
}

.np24-hiw.is-switching .np24-hiw__cta a[data-np24-track] {
	opacity: 0;
	transition-duration: 0.24s;
}

.np24-hiw__cta a[data-np24-track].is-entering {
	opacity: 0;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.np24-hiw__tracks,
	.np24-hiw .np24-hiw__card,
	.np24-hiw__pre p,
	.np24-hiw__cta a[data-np24-track],
	.np24-seg__pill {
		transition: none;
	}
}

.np24-hiw__grid[data-n="1"],
.np24-hiw__grid[data-n="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.np24-hiw__grid[data-n="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np24-hiw__grid[data-n="4"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np24-hiw__grid[data-n="5"],
.np24-hiw__grid[data-n="6"] {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.np24-hiw .np24-hiw__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 24px;
	border-radius: 16px;
	background: var(--qte-color-white, #fff);
}

.np24-hiw__num {
	font-family: var(--qte-ff-heading);
	font-size: 60px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--qte-color-text-details);
	font-variant-numeric: tabular-nums;
}

.np24-hiw__grid[data-n="5"] .np24-hiw__num,
.np24-hiw__grid[data-n="6"] .np24-hiw__num {
	font-size: 52px;
}

.np24-hiw .np24-hiw__card h3 {
	margin: 24px 0 0;
	font-family: var(--qte-ff-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--qte-color-text-dark);
}

.np24-hiw__grid[data-n="5"] .np24-hiw__card h3,
.np24-hiw__grid[data-n="6"] .np24-hiw__card h3 {
	font-size: 17px;
}

.np24-hiw .np24-hiw__card p {
	margin: 6px 0 0;
	font-family: var(--qte-ff-text);
	font-size: 15px;
	line-height: 1.55;
	color: var(--qte-color-text-body);
}

.np24-hiw__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 36px;
}

@media (min-width: 1024px) {
	.np24-hiw__top {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 40px;
	}

	.np24-hiw__controls {
		flex: none;
		align-items: flex-end;
	}

	/* No CTAs under How it works on desktop (Filip 2026-11-24) */
	.np24-hiw__cta {
		display: none;
	}
}

@media (max-width: 1024px) {
	.np24-hiw__grid[data-n="3"],
	.np24-hiw__grid[data-n="4"],
	.np24-hiw__grid[data-n="5"],
	.np24-hiw__grid[data-n="6"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.np24-hiw__grid[data-n="5"] .np24-hiw__num,
	.np24-hiw__grid[data-n="6"] .np24-hiw__num {
		font-size: 60px;
	}
}

@media (max-width: 640px) {
	.np24-rev__top {
		align-items: flex-start;
	}

	.np24-rev__score {
		flex-wrap: wrap;
		white-space: normal;
	}

	.np24-rev__card {
		flex-basis: 82%;
	}

	.np24-hiw__grid[data-n="1"],
	.np24-hiw__grid[data-n="2"],
	.np24-hiw__grid[data-n="3"],
	.np24-hiw__grid[data-n="4"],
	.np24-hiw__grid[data-n="5"],
	.np24-hiw__grid[data-n="6"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.np24-hiw__num {
		font-size: 48px;
	}

	.np24-hiw .np24-hiw__card h3 {
		margin-top: 16px;
	}

	.np24-seg button {
		padding: 9px 14px;
		font-size: 14px;
	}

	.np24-hiw__controls {
		align-items: center;
		width: 100%;
	}

	.np24-hiw .np24-btn {
		width: 100%;
	}

	/* The contact button is desktop only */
	.np24-hiw .np24-btn--secondary {
		display: none;
	}
}
