/*
 * Video testimonial tiles + their inline YouTube player (reviews.js), shared by the watch and
 * thank-you pages. Section spacing stays in each page's stylesheet.
 */

/*
 * Testimonial tiles: 9:16 (340×604), bigger than the 221×408 boxes in Figma, without the black
 * outline, on request. Videos play inside the tile.
 */
.sqp .sqp-w-reviews {
	display: grid;
	grid-template-columns: 340px 340px;
	gap: 40px;
	width: 720px;
	margin: 30px auto 0;
}
.sqp .sqp-w-review {
	position: relative;
	width: 340px;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	isolation: isolate;
	background: #e6eddc;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(45, 62, 45, 0.18);
}
.sqp .sqp-w-review.has-video {
	background: #000;
}
.sqp .sqp-w-review__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.sqp .sqp-w-review__btn:focus-visible {
	outline: 3px solid #b6cd96;
	outline-offset: -3px;
}
.sqp .sqp-w-review__thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sqp-focus, 50%) center;
	transition: transform 0.4s ease;
}
/* YouTube's 4:3 poster frames carry black bars above and below the 16:9 picture: crop them off. */
.sqp .sqp-w-review__thumb.is-boxed {
	top: -16.667%;
	height: 133.333%;
}
.sqp .sqp-w-review:hover .sqp-w-review__thumb {
	transform: scale(1.03);
}

/* Play button: brand light green with a white ring, readable on any photo. */
.sqp .sqp-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #b6cd96;
	box-shadow:
		0 0 0 4px rgba(255, 255, 255, 0.9),
		0 8px 22px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
	pointer-events: none;
}
.sqp .sqp-play svg {
	margin-left: 4px; /* optical centre of the triangle */
	fill: #2d3e2d;
}
.sqp .sqp-w-review:hover .sqp-play {
	background: #c5dba7;
	transform: translate(-50%, -50%) scale(1.07);
}
.sqp .sqp-w-review:not(.has-video) .sqp-play {
	opacity: 0.6;
}

/* Inline player: the YouTube player sits behind the poster button; the poster fades out while playing. */
.sqp .sqp-w-review__stage {
	position: absolute;
	top: 0;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translateX(-50%);
	pointer-events: none;
}
/* Phone videos are uploaded inside a 16:9 frame; widen the player so its 9:16 middle fills the tile. */
.sqp .sqp-w-review[data-mode="crop"] .sqp-w-review__stage {
	width: 316.05%;
}
.sqp .sqp-w-review__stage iframe,
.sqp .sqp-w-review__stage video,
.sqp .sqp-w-review__stage > div {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.sqp .sqp-w-review__stage video {
	object-fit: cover;
}
.sqp .sqp-w-review[data-mode="fit"] .sqp-w-review__stage video {
	object-fit: contain;
}
.sqp .sqp-w-review.has-video .sqp-w-review__btn {
	z-index: 1;
}
/* Once the player is ready the poster is only a picture: taps go straight to YouTube. */
.sqp .sqp-w-review.is-ready .sqp-w-review__btn {
	pointer-events: none;
}
.sqp .sqp-w-review.is-ready .sqp-w-review__stage {
	pointer-events: auto;
}
.sqp .sqp-w-review__thumb,
.sqp .sqp-w-review .sqp-play {
	transition: opacity 0.15s ease, transform 0.2s ease;
}
.sqp .sqp-w-review.is-live .sqp-w-review__thumb,
.sqp .sqp-w-review.is-live .sqp-play,
.sqp .sqp-w-review.is-playing .sqp-w-review__thumb,
.sqp .sqp-w-review.is-playing .sqp-play {
	opacity: 0;
}
.sqp .sqp-w-review.is-loading .sqp-play {
	animation: sqp-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes sqp-pulse {
	to {
		transform: translate(-50%, -50%) scale(0.88);
		opacity: 0.7;
	}
}
.sqp .sqp-w-review.is-started::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 84px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
	pointer-events: none;
}
.sqp .sqp-w-review__bar {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 3;
	display: none;
	align-items: center;
	gap: 12px;
	direction: ltr;
}
.sqp .sqp-w-review.is-started .sqp-w-review__bar {
	display: flex;
}
.sqp .sqp-w-review__unmute {
	position: absolute;
	bottom: 44px;
	left: 50%;
	display: none;
	padding: 8px 14px;
	border: 0;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 20px;
	white-space: nowrap;
	transform: translateX(-50%);
	cursor: pointer;
}
.sqp .sqp-w-review.is-automuted.is-muted .sqp-w-review__unmute {
	display: block;
}
.sqp .sqp-w-review__sound {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}
.sqp .sqp-w-review__sound svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}
.sqp .sqp-w-review__sound:hover,
.sqp .sqp-w-review__sound:focus-visible {
	background: rgba(0, 0, 0, 0.7);
	outline: none;
}
.sqp .sqp-w-review__sound .icon-muted,
.sqp .sqp-w-review.is-muted .sqp-w-review__sound .icon-sound {
	display: none;
}
.sqp .sqp-w-review.is-muted .sqp-w-review__sound .icon-muted {
	display: block;
}
.sqp .sqp-w-review__progress {
	position: relative;
	flex: 1;
	height: 16px;
	cursor: pointer;
}
.sqp .sqp-w-review__progress::before,
.sqp .sqp-w-review__fill {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	height: 4px;
	border-radius: 2px;
}
.sqp .sqp-w-review__progress::before {
	right: 0;
	background: rgba(255, 255, 255, 0.35);
}
.sqp .sqp-w-review__fill {
	width: 0;
	background: #b6cd96;
}
