/* WP Shoppable Video Slider — all rules scoped under .wpsvs-wrapper to avoid theme/plugin conflict */

.wpsvs-wrapper {
	box-sizing: border-box;
	width: 100%;
	--wpsvs-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--wpsvs-ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wpsvs-wrapper *,
.wpsvs-wrapper *::before,
.wpsvs-wrapper *::after {
	box-sizing: border-box;
}

/* hard reset so theme's default `button{border:...}` styles can never
   turn our round icon buttons into square/outlined boxes. Modal buttons
   live in document.body (outside .wpsvs-wrapper), so they're listed too. */
.wpsvs-nav,
.wpsvs-modal-close,
.wpsvs-modal-mute,
.wpsvs-modal-arrow,
.wpsvs-modal-gallery-prev,
.wpsvs-modal-gallery-next,
.wpsvs-modal-addcart,
.wpsvs-modal-addcart-desktop,
.wpsvs-modal-cart-link,
.wpsvs-modal-desc-more {
	border: none !important;
	outline: none !important;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}
/* these two keep a real border by design, only strip theme's default one */
.wpsvs-modal-moreinfo,
.wpsvs-modal-size-pill {
	outline: none !important;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}

.wpsvs-heading {
	margin: 0 0 20px 0;
	letter-spacing: -0.2px;
}

.wpsvs-slider {
	position: relative;
	display: flex;
	align-items: center;
}

.wpsvs-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain; /* end of row never triggers browser back-swipe / rubber-band the page */
	padding: 0;
	width: 100%;
	scrollbar-width: none; /* minimal: no visible scrollbar, drag / arrows / swipe still work */
}
.wpsvs-track::-webkit-scrollbar { display: none; }
/* mouse drag writes scrollLeft every move: smooth-scroll + snap would fight it and feel laggy */
.wpsvs-track.wpsvs-dragging {
	scroll-behavior: auto;
	scroll-snap-type: none;
	cursor: grabbing;
}

/* ---------- card: full-bleed video, product chip floats at the bottom ---------- */
.wpsvs-card {
	position: relative;
	flex: 0 0 auto;
	width: 260px;
	height: 460px;
	border-radius: 16px;
	overflow: hidden;
	background: #111;
	scroll-snap-align: start;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transform: translateZ(0); /* own GPU layer: video + product chip scroll as one piece */
	contain: layout style;
	transition: transform 0.3s var(--wpsvs-ease);
	animation: wpsvs-card-in 0.5s var(--wpsvs-ease) backwards;
}
@keyframes wpsvs-card-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.wpsvs-track .wpsvs-card:nth-child(1) { animation-delay: 0.02s; }
.wpsvs-track .wpsvs-card:nth-child(2) { animation-delay: 0.06s; }
.wpsvs-track .wpsvs-card:nth-child(3) { animation-delay: 0.1s; }
.wpsvs-track .wpsvs-card:nth-child(4) { animation-delay: 0.14s; }
.wpsvs-track .wpsvs-card:nth-child(n+5) { animation-delay: 0.16s; }
.wpsvs-card:active { transform: scale(0.985); }

.wpsvs-video,
.wpsvs-poster-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* soft fade only behind the chip so the video stays clean */
.wpsvs-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 110px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
	pointer-events: none;
}

.wpsvs-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	padding: 4px 8px;
	border-radius: 6px;
}

/* ---------- product chip ---------- */
.wpsvs-tag {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 8px 10px 8px 8px;
	background: #fff;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.25s var(--wpsvs-ease);
}
@media (hover: hover) and (pointer: fine) {
	.wpsvs-tag:hover { transform: translateY(-2px); }
}

.wpsvs-tag-thumb {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #f2f2f2;
}

.wpsvs-tag-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.wpsvs-tag-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wpsvs-tag-price {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #777;
}

.wpsvs-cart-icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.wpsvs-cart-icon svg {
	width: 14px;
	height: 14px;
	stroke: #1a1a1a;
	stroke-width: 2;
	transition: stroke 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
	.wpsvs-tag:hover .wpsvs-cart-icon { background: #1a1a1a; box-shadow: none; }
	.wpsvs-tag:hover .wpsvs-cart-icon svg { stroke: #fff; }
}

/* ---------- slider arrows: small, white, show on hover ---------- */
.wpsvs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 36px;
	height: 36px;
	border-radius: 50% !important;
	border: none !important;
	outline: none !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1a1a1a;
	padding: 0 !important;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s var(--wpsvs-ease);
}
.wpsvs-nav svg { width: 16px; height: 16px; stroke-width: 2; }
.wpsvs-nav-prev { left: 8px; }
.wpsvs-nav-next { right: 8px; }
.wpsvs-slider:hover .wpsvs-nav { opacity: 1; }
.wpsvs-nav:active { transform: translateY(-50%) scale(0.94); }

@media (min-width: 768px) and (max-width: 1024px) {
	.wpsvs-card { width: 240px; height: 420px; }
}

/* mobile: ~1.5 cards per screen width (1 full + half peek) */
@media (max-width: 767px) {
	.wpsvs-nav { display: none; }
	.wpsvs-track {
		scroll-snap-type: x mandatory;
		scroll-padding: 0;
		/* equal side padding = first and last card can also sit in the exact centre */
		padding: 0 calc((100% - min(66vw, 260px)) / 2);
	}
	.wpsvs-card {
		width: 66vw;
		max-width: 260px;
		height: auto;
		aspect-ratio: 3 / 4.4;
		scroll-snap-align: center;
		scroll-snap-stop: always; /* one swipe = exactly one card, never skips */
		transition: transform 0.3s var(--wpsvs-ease), opacity 0.3s ease, filter 0.3s ease;
	}
	/* cards peeking at the sides: faded + soft blur; centred card stays sharp */
	.wpsvs-card.wpsvs-card-side {
		opacity: 0.55;
		filter: blur(2.5px);
		transform: translateZ(0) scale(0.94);
	}
	.wpsvs-tag { left: 6px; right: 6px; bottom: 6px; min-height: 50px; padding: 6px 8px 6px 6px; gap: 8px; }
	.wpsvs-tag-thumb { width: 36px; height: 36px; }
	.wpsvs-cart-icon { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
	.wpsvs-tag-title { font-size: 12px; }
	.wpsvs-tag-price { font-size: 11px; }
}

/* ================= FULLSCREEN REEL MODAL (mobile) / CENTERED POPUP (desktop) ================= */
.wpsvs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #000;
	display: none;
	overflow: hidden;
	overscroll-behavior: contain;
	-webkit-tap-highlight-color: transparent;
}
.wpsvs-modal.wpsvs-modal-open { display: block; }
.wpsvs-modal.wpsvs-modal-open .wpsvs-modal-stage { animation: wpsvs-modal-stage-in 0.4s var(--wpsvs-ease); }

.wpsvs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
	animation: wpsvs-fade-in-full 0.3s ease forwards;
}

@keyframes wpsvs-fade-in-full {
	to { opacity: 1; }
}
@keyframes wpsvs-modal-stage-in {
	from { opacity: 0; transform: translateY(24px) scale(0.94); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.wpsvs-modal-stage {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 480px;
	margin: 0 auto;
	overflow: hidden;
	background: #000;
}

.wpsvs-modal-video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden; /* clip the sliding pair so it never bleeds past the frame */
	touch-action: none; /* stop native scroll fighting JS-driven swipe transform */
	overscroll-behavior: none;
}

/* one slide = video + badge + product bar. JS moves the whole slide during a swipe,
   so the product bar scrolls together with its video. */
.wpsvs-modal-slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #000;
	transform: translate3d(0, 0, 0); /* GPU layer, base state; JS drives reel push transition inline */
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.wpsvs-modal-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
	display: block;
}

/* desktop-only chrome, off by default */
.wpsvs-modal-arrow { display: none; }
.wpsvs-modal-panel { display: none; }
.wpsvs-modal-gallery-scrollbar { display: none; }
.wpsvs-modal-videolist { display: none; }

.wpsvs-modal-close {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.25s var(--wpsvs-ease-snap), background 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
	.wpsvs-modal-close:hover { transform: rotate(90deg) scale(1.08); }
}
.wpsvs-modal-close:active { transform: scale(0.88); }

.wpsvs-modal-badge {
	position: absolute;
	top: max(18px, env(safe-area-inset-top));
	left: 16px;
	z-index: 3;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.wpsvs-modal-side {
	position: absolute;
	right: 14px;
	bottom: 150px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.wpsvs-modal-side button {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s var(--wpsvs-ease-snap), background 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
	.wpsvs-modal-side button:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.08); }
}
.wpsvs-modal-side button:active { transform: scale(0.88); }

.wpsvs-modal-product {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	background: rgba(10, 10, 10, 0.75);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px max(14px, env(safe-area-inset-bottom));
}
.wpsvs-modal-thumb {
	width: 46px;
	height: 46px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #111;
}
.wpsvs-modal-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.wpsvs-modal-title {
	font-size: 14px;
	font-weight: 700;
	color: #f2f2f2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wpsvs-modal-price {
	font-size: 13px;
	font-weight: 600;
	color: #bbb;
}
.wpsvs-modal-addcart {
	flex: 0 0 auto;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #f2f2f2, #c2c2c2);
	color: #111;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	padding: 10px 16px;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
	transition: transform 0.2s var(--wpsvs-ease-snap), opacity 0.2s ease;
}
.wpsvs-modal-addcart:hover,
.wpsvs-modal-addcart:focus { color: #111; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.wpsvs-modal-addcart:hover { transform: translateY(-2px); }
}
.wpsvs-modal-addcart:active { transform: scale(0.96); }
.wpsvs-modal-addcart svg,
.wpsvs-modal-addcart-desktop svg { flex: 0 0 auto; stroke: currentColor; }

/* ===== mute / unmute button (fullscreen player) ===== */
.wpsvs-modal-mute {
	position: absolute;
	right: 14px;
	bottom: calc(var(--wpsvs-modal-product-h, 90px) + 14px);
	z-index: 5;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}
.wpsvs-modal-mute svg { display: block; pointer-events: none; }
.wpsvs-modal-mute .wpsvs-ico-off { display: none; }
.wpsvs-modal-mute.wpsvs-muted .wpsvs-ico-on { display: none; }
.wpsvs-modal-mute.wpsvs-muted .wpsvs-ico-off { display: block; }
.wpsvs-modal-mute.wpsvs-muted { background: rgba(0, 0, 0, 0.7); }
@media (hover: hover) and (pointer: fine) {
	.wpsvs-modal-mute:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.08); }
}
.wpsvs-modal-mute:active { transform: scale(0.88); }
.wpsvs-modal-mute:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
.wpsvs-modal:focus { outline: none; }

/* spinner while a fullscreen video has nothing to show yet (appears only if it takes >0.35s) */
.wpsvs-modal-slide.wpsvs-loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	z-index: 1;
	pointer-events: none;
	animation: wpsvs-spin 0.8s linear infinite, wpsvs-fade 0.2s ease 0.35s both;
}
@keyframes wpsvs-spin { to { transform: rotate(360deg); } }
@keyframes wpsvs-fade { from { opacity: 0; } to { opacity: 1; } }

.wpsvs-modal-nav-hit {
	position: absolute;
	left: 0;
	right: 0;
	height: 40%;
	z-index: 2;
}
.wpsvs-modal-nav-up { top: 0; }
.wpsvs-modal-nav-down { bottom: var(--wpsvs-modal-product-h, 90px); }

/* ================= DESKTOP POPUP: video card + product panel ================= */
@media (min-width: 1025px) {
	.wpsvs-modal {
		background: transparent;
	}
	.wpsvs-modal.wpsvs-modal-open {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0;
	}

	.wpsvs-modal-backdrop {
		background: rgba(0, 0, 0, 0.55);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}

	.wpsvs-modal-close {
		top: 20px;
		right: 20px;
		width: 36px;
		height: 36px;
		background: #1c1c1c;
		color: #eee;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 10px rgba(0, 0, 0, 0.35);
		transition: transform 0.25s var(--wpsvs-ease-snap), box-shadow 0.25s ease, background 0.25s ease;
	}
	.wpsvs-modal-close:hover {
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.25);
	}

	/* round chrome nav arrows pinned to the viewport edges, like the main slider nav */
	.wpsvs-modal-arrow {
		display: flex;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 5;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: #1c1c1c;
		color: #eee;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 10px rgba(0, 0, 0, 0.35);
		transition: transform 0.25s var(--wpsvs-ease-snap), box-shadow 0.25s ease;
	}
	.wpsvs-modal-arrow:hover {
		transform: translateY(-50%) scale(1.1);
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.25);
	}
	.wpsvs-modal-arrow-prev { left: 24px; }
	.wpsvs-modal-arrow-next { right: 24px; }

	.wpsvs-modal-stage {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		display: flex;
		flex-direction: row;
		width: auto;
		height: min(760px, 90vh);
		max-width: none;
		border-radius: 18px;
		overflow: hidden;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.6);
		flex: 0 0 auto;
		background: transparent;
	}

	.wpsvs-modal-video-wrap {
		position: relative;
		inset: auto;
		width: 360px;
		height: 100%;
		flex: 0 0 auto;
		background: #000;
	}

	/* swipe hitzones only matter on touch/mobile */
	.wpsvs-modal-video-wrap .wpsvs-modal-nav-hit { display: none; }

	.wpsvs-modal-video-wrap .wpsvs-modal-product-mobile { display: none; }

	.wpsvs-modal-video-wrap .wpsvs-modal-mute { bottom: 16px; }

	.wpsvs-modal-video-wrap .wpsvs-modal-side {
		flex-direction: row;
		top: 14px;
		right: auto;
		left: 14px;
		bottom: auto;
	}
	.wpsvs-modal-panel {
		display: flex;
		flex-direction: column;
		width: 340px;
		flex: 0 0 auto;
		background: #121212;
		padding: 20px 22px;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: #555 transparent;
	}
	.wpsvs-modal-panel::-webkit-scrollbar { width: 6px; }
	.wpsvs-modal-panel::-webkit-scrollbar-track { background: transparent; }
	.wpsvs-modal-panel::-webkit-scrollbar-thumb {
		background: linear-gradient(180deg, #5a5a5a, #b0b0b0);
		border-radius: 10px;
	}
	.wpsvs-modal-gallery-scrollbar { display: block; }

	/* right-side "up next" neighbour videos, vertical scroll, click to jump */
	.wpsvs-modal-videolist {
		display: block;
		width: 130px;
		flex: 0 0 auto;
		height: 100%;
		background: transparent;
		border-left: 1px solid #2a2a2a;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: #555 transparent;
	}
	.wpsvs-modal-videolist::-webkit-scrollbar { width: 5px; }
	.wpsvs-modal-videolist::-webkit-scrollbar-track { background: transparent; }
	.wpsvs-modal-videolist::-webkit-scrollbar-thumb {
		background: linear-gradient(180deg, #5a5a5a, #b0b0b0);
		border-radius: 10px;
	}
	.wpsvs-modal-videolist-track {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 16px 10px;
		background: transparent;
	}
	.wpsvs-modal-videolist-item {
		position: relative;
		width: 100%;
		aspect-ratio: 9 / 16;
		border: 2px solid transparent;
		border-radius: 8px;
		overflow: hidden;
		background: transparent;
		cursor: pointer;
		padding: 0;
		-webkit-appearance: none;
		appearance: none;
	}
	.wpsvs-modal-videolist-item {
		opacity: 0.4;
		transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s var(--wpsvs-ease-snap);
	}
	.wpsvs-modal-videolist-item:hover {
		opacity: 0.75;
		transform: scale(1.03);
	}
	.wpsvs-modal-videolist-item-active {
		border-color: #e8e8e8;
		opacity: 1;
		transform: scale(1.03);
	}
	.wpsvs-modal-videolist-thumb {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.wpsvs-modal-videolist-label {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 4px 6px;
		font-size: 11px;
		font-weight: 700;
		color: #fff;
		text-align: center;
		background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
	}

	.wpsvs-modal-gallery {
		position: relative;
		width: 100%;
		aspect-ratio: 4 / 3;
		flex: 0 0 auto;
	}
	.wpsvs-modal-gallery-track {
		display: flex;
		gap: 6px;
		width: 100%;
		height: 100%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
	}
	.wpsvs-modal-gallery-track::-webkit-scrollbar { display: none; }
	.wpsvs-modal-gallery-img {
		flex: 0 0 88%;
		height: 100%;
		object-fit: cover;
		border-radius: 10px;
		background: #1a1a1a;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
		scroll-snap-align: start;
		display: block;
	}
	.wpsvs-modal-gallery-scrollbar {
		position: relative;
		height: 3px;
		margin-top: 8px;
		border-radius: 2px;
		background: #2a2a2a;
		overflow: hidden;
	}
	.wpsvs-modal-gallery-scrollbar-thumb {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		border-radius: 2px;
		background: #666;
	}

	.wpsvs-modal-panel-body { padding-top: 16px; flex: 1 1 auto; }

	.wpsvs-modal-panel-title {
		margin: 0 0 6px;
		font-size: 18px;
		font-weight: 800;
		color: #f2f2f2;
		line-height: 1.3;
		letter-spacing: -0.2px;
	}

	.wpsvs-modal-panel-price {
		display: flex;
		align-items: baseline;
		gap: 8px;
		margin-bottom: 14px;
	}
	.wpsvs-modal-panel-price-current {
		font-size: 18px;
		font-weight: 800;
		background: linear-gradient(90deg, #e8e8e8, #ffffff);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
	.wpsvs-modal-panel-price-original {
		font-size: 13px;
		color: #999;
		text-decoration: line-through;
	}

	.wpsvs-modal-sizes { margin-bottom: 14px; }
	.wpsvs-modal-sizes-label {
		font-size: 13px;
		font-weight: 600;
		color: #ddd;
		margin-bottom: 8px;
	}
	.wpsvs-modal-sizes-row { display: flex; gap: 8px; flex-wrap: wrap; }
	.wpsvs-modal-size-pill {
		border: 1.5px solid #3a3a3a !important;
		background: #1a1a1a;
		color: #eee;
		border-radius: 20px;
		padding: 6px 16px;
		font-size: 13px;
		font-weight: 600;
		cursor: pointer;
		transition: transform 0.2s var(--wpsvs-ease-snap), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}
	.wpsvs-modal-size-pill:hover { border-color: #eee !important; }
	.wpsvs-modal-size-pill:active { transform: scale(0.92); }
	.wpsvs-modal-size-pill-active {
		background: linear-gradient(135deg, #f0f0f0, #bdbdbd);
		border-color: #e8e8e8;
		color: #111;
		box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
		transform: scale(1.05);
	}

	.wpsvs-modal-desc { border-top: 1px solid #2a2a2a; padding-top: 12px; }
	.wpsvs-modal-desc-label {
		font-size: 13px;
		font-weight: 700;
		color: #eee;
		margin-bottom: 6px;
	}
	.wpsvs-modal-desc-text {
		margin: 0;
		font-size: 13px;
		line-height: 1.5;
		color: #bbb;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.wpsvs-modal-desc-text.wpsvs-modal-desc-expanded {
		-webkit-line-clamp: unset;
		overflow: visible;
	}
	.wpsvs-modal-desc-more {
		border: none;
		background: none;
		color: #eee;
		font-weight: 700;
		font-size: 13px;
		text-decoration: underline;
		cursor: pointer;
		padding: 6px 0 0;
	}

	.wpsvs-modal-panel-actions {
		display: flex;
		align-items: center;
		gap: 10px;
		padding-top: 16px;
		border-top: 1px solid #2a2a2a;
		margin-top: 14px;
	}
	.wpsvs-modal-moreinfo {
		flex: 0 0 auto;
		border: 1.5px solid #eee !important;
		border-radius: 6px;
		padding: 10px 16px;
		font-size: 13px;
		font-weight: 700;
		color: #eee;
		text-decoration: none;
		text-align: center;
		transition: background 0.2s ease, color 0.2s ease;
	}
	.wpsvs-modal-moreinfo:hover { background: #eee; color: #111; }
	.wpsvs-modal-addcart-desktop {
		position: relative;
		overflow: hidden;
		flex: 1 1 auto;
		border: none;
		border-radius: 8px;
		background: linear-gradient(135deg, #f2f2f2, #c2c2c2);
		color: #111;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.4px;
		text-transform: uppercase;
		padding: 11px 16px;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		text-decoration: none;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
		transition: transform 0.2s var(--wpsvs-ease-snap), box-shadow 0.2s ease;
	}
	.wpsvs-modal-addcart-desktop:hover,
.wpsvs-modal-addcart-desktop:focus { color: #111; text-decoration: none; }
	.wpsvs-modal-addcart-desktop:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 22px rgba(0,0,0,0.4), 0 0 16px rgba(255,255,255,0.25); }
	.wpsvs-modal-addcart-desktop:active { transform: scale(0.97); }
	.wpsvs-modal-cart-link {
		flex: 0 0 auto;
		width: 38px;
		height: 38px;
		border: 1.5px solid #3a3a3a;
		border-radius: 6px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #eee;
	}
}

/* blur/dim the slider peeking behind the popup, like the reference recording */
.wpsvs-wrapper.wpsvs-slider-dimmed .wpsvs-slider {
	filter: brightness(0.8);
	pointer-events: none;
	transition: filter 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
	.wpsvs-track { scroll-behavior: auto; }
	.wpsvs-heading { animation: none !important; }
	.wpsvs-card::after { display: none !important; }
	.wpsvs-card,
	.wpsvs-badge,
	.wpsvs-modal-backdrop,
	.wpsvs-modal-stage,
	.wpsvs-video,
	.wpsvs-poster-img,
	.wpsvs-cart-icon,
	.wpsvs-nav,
	.wpsvs-modal-close,
	.wpsvs-modal-side button,
	.wpsvs-modal-addcart,
	.wpsvs-modal-addcart-desktop,
	.wpsvs-modal-size-pill,
	.wpsvs-modal-videolist-item {
		animation: none !important;
		transition: none !important;
	}
}





/* ===== fullscreen player: product bar must stay dark + blurred even when the theme
   (XStore etc.) styles div/a/button with a white background ===== */
.wpsvs-modal .wpsvs-modal-product {
	background: rgba(10, 10, 10, 0.75) !important;
	background-image: none !important;
	-webkit-backdrop-filter: blur(10px) !important;
	backdrop-filter: blur(10px) !important;
	color: #f2f2f2 !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.wpsvs-modal .wpsvs-modal-product { background: rgba(10, 10, 10, 0.92) !important; }
}
.wpsvs-modal .wpsvs-modal-title { color: #f2f2f2 !important; }
.wpsvs-modal .wpsvs-modal-price { color: #bbb !important; }
.wpsvs-modal .wpsvs-modal-addcart { color: #111 !important; }

/* ===== "swipe up or down" hint, mobile player only ===== */
.wpsvs-modal-hint { display: none; }
@media (max-width: 1024px) {
	.wpsvs-modal-hint {
		position: absolute;
		left: 50%;
		top: 50%;
		z-index: 6;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		width: max-content;
		max-width: 84%;
		padding: 16px 22px;
		border-radius: 18px;
		background: rgba(20, 20, 20, 0.6);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		color: #fff;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		text-align: center;
		pointer-events: none; /* never blocks taps or swipes */
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.96);
		transition: opacity 0.35s ease, transform 0.35s var(--wpsvs-ease);
	}
	.wpsvs-modal-hint.wpsvs-hint-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	.wpsvs-modal-hint svg { display: block; stroke: #fff; }
	.wpsvs-modal-hint .wpsvs-hint-up { animation: wpsvs-hint-up 1.2s ease-in-out infinite; }
	.wpsvs-modal-hint .wpsvs-hint-down { animation: wpsvs-hint-down 1.2s ease-in-out infinite; }
}
@keyframes wpsvs-hint-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes wpsvs-hint-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (min-width: 1025px) { .wpsvs-modal-hint { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
	.wpsvs-modal-hint, .wpsvs-modal-hint svg { animation: none !important; transition: none !important; }
	.wpsvs-card { transition: none !important; }
}


/* ===== mobile/tablet player: floating rounded product card + round arrow button ===== */
@media (max-width: 1024px) {
	.wpsvs-modal .wpsvs-modal-product {
		left: 10px;
		right: 10px;
		bottom: max(12px, env(safe-area-inset-bottom));
		border-radius: 18px;
		padding: 10px 12px 10px 10px;
		gap: 12px;
		overflow: hidden;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 24px rgba(0, 0, 0, 0.35);
	}
	.wpsvs-modal .wpsvs-modal-thumb {
		width: 44px;
		height: 44px;
		border-radius: 10px;
		background: #fff;
	}
	.wpsvs-modal .wpsvs-modal-title { font-size: 15px; font-weight: 700; }
	.wpsvs-modal .wpsvs-modal-price { font-size: 13px; font-weight: 600; color: #cfcfcf !important; }

	/* text button becomes a white circle with an arrow */
	.wpsvs-modal .wpsvs-modal-addcart {
		width: 42px;
		height: 42px;
		padding: 0;
		gap: 0;
		border-radius: 50% !important;
		justify-content: center;
		background: #fff !important;
		background-image: none !important;
		color: #111 !important;
		box-shadow: none;
	}
	.wpsvs-modal .wpsvs-modal-addcart span { display: none !important; }
	.wpsvs-modal .wpsvs-modal-addcart svg { width: 18px; height: 18px; }

	/* card floats now: lift mute button + swipe zone by the extra gap */
	.wpsvs-modal-mute { bottom: calc(var(--wpsvs-modal-product-h, 90px) + 26px); }
	.wpsvs-modal-nav-down { bottom: calc(var(--wpsvs-modal-product-h, 90px) + 12px); }
}
