/**
 * Woodmart Child — Product Videos
 * Mobile: full-screen TikTok feed
 * Desktop: centered stage, iOS-like glass chrome
 */

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
.wd-videos-body {
	margin: 0;
	padding: 0;
	background: #000;
	color: #fff;
	overflow: hidden;
	height: 100%;
	height: 100dvh;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Woodmart a11y skip-links — hide if still injected (theme/cache). */
body.wd-videos-body .wd-skip-links,
body.wd-videos-body .wd-skip-links.wd-deferred,
body.wd-videos-body a.wd-skip-navigation,
body.wd-videos-body a.wd-skip-content {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.wd-videos-body.admin-bar .wd-videos-shell {
	height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	.wd-videos-body.admin-bar .wd-videos-shell {
		height: calc(100dvh - 46px);
	}
}

.wd-videos-shell {
	position: relative;
	width: 100%;
	height: 100dvh;
	margin: 0 auto;
	background: #000;
	overflow: hidden;
}

.wd-videos-stage {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 480px;
	margin: 0 auto;
	background: #000;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------------- */
.wd-videos-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	/* Equal side columns → back / brand / cart stay aligned (no flex skew). */
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	column-gap: 10px;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
	overflow: visible;
	box-sizing: border-box;
}

.wd-videos-topbar a,
.wd-videos-topbar button {
	pointer-events: auto;
}

/*
 * Liquid glass tokens — cart / mute / share / add to cart
 * Bo tròn · glass mờ · viền mỏng · highlight · blur cao
 */
.wd-videos-back,
.wd-videos-cart,
.wd-videos-btn,
.wd-videos-nav-btn,
.wd-videos-add-cart {
	--wd-glass-bg:
		linear-gradient(
			155deg,
			rgba(255, 255, 255, 0.48) 0%,
			rgba(255, 255, 255, 0.16) 36%,
			rgba(255, 255, 255, 0.07) 72%,
			rgba(255, 255, 255, 0.04) 100%
		);
	--wd-glass-bg-hover:
		linear-gradient(
			155deg,
			rgba(255, 255, 255, 0.58) 0%,
			rgba(255, 255, 255, 0.22) 40%,
			rgba(255, 255, 255, 0.1) 100%
		);
	--wd-glass-border: rgba(255, 255, 255, 0.52);
	--wd-glass-blur: blur(36px) saturate(190%);
	--wd-glass-shadow:
		0 10px 32px rgba(0, 0, 0, 0.28),
		0 1.5px 0 rgba(255, 255, 255, 0.48) inset,
		0 -1px 0 rgba(0, 0, 0, 0.14) inset,
		0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

/* Back + Cart — circle glass */
.wd-videos-back,
.wd-videos-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	isolation: isolate;
	background: var(--wd-glass-bg);
	border: 0.5px solid var(--wd-glass-border);
	backdrop-filter: var(--wd-glass-blur);
	-webkit-backdrop-filter: var(--wd-glass-blur);
	box-shadow: var(--wd-glass-shadow);
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}

/* Clip glass highlight on back only; cart must stay overflow:visible for badge */
.wd-videos-back {
	overflow: hidden;
}

.wd-videos-cart {
	overflow: visible !important;
}

.wd-videos-back::before,
.wd-videos-cart::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 68%);
	pointer-events: none;
	z-index: 0;
}

/* Soft specular glint */
.wd-videos-back::after,
.wd-videos-cart::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 18%;
	right: 18%;
	height: 38%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
	opacity: 0.55;
	pointer-events: none;
	z-index: 0;
}

.wd-videos-back svg,
.wd-videos-cart svg {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.wd-videos-back:hover,
.wd-videos-cart:hover {
	background: var(--wd-glass-bg-hover);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.62);
	box-shadow:
		0 12px 36px rgba(0, 0, 0, 0.32),
		0 1.5px 0 rgba(255, 255, 255, 0.55) inset,
		0 -1px 0 rgba(0, 0, 0, 0.12) inset;
	transform: scale(1.04);
}

.wd-videos-back:active,
.wd-videos-cart:active {
	transform: scale(0.93);
}

.wd-videos-brand {
	grid-column: 2;
	justify-self: center;
	text-align: center;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	line-height: 1.2;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff;
	text-decoration: none;
	pointer-events: auto;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 999px;
	transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.wd-videos-brand:hover,
.wd-videos-brand:focus {
	color: #fff;
	opacity: 0.92;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
	text-decoration: none;
}

.wd-videos-brand:active {
	transform: scale(0.97);
	opacity: 0.85;
}

.wd-videos-back {
	grid-column: 1;
	justify-self: start;
	flex-shrink: 0;
}

/* Cart button: allow badge to stick outside the circle */
.wd-videos-cart {
	grid-column: 3;
	justify-self: end;
	position: relative !important;
	overflow: visible !important;
	flex-shrink: 0;
	box-sizing: border-box;
}

.wd-videos-topbar-spacer {
	grid-column: 3;
	justify-self: end;
}

/* Glass highlight must not cover badge */
.wd-videos-cart::before,
.wd-videos-cart::after {
	z-index: 0;
	pointer-events: none;
}

.wd-videos-cart > svg {
	position: relative;
	z-index: 1;
}

.wd-videos-cart-count {
	position: absolute !important;
	top: -5px !important;
	right: -5px !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 5 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #ff453a 0%, #ff2d55 100%) !important;
	background-color: #ff2d55 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center;
	border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
	box-shadow: 0 3px 10px rgba(255, 45, 85, 0.45);
	pointer-events: none;
	transform-origin: center center;
}

.wd-videos-cart-count[hidden] {
	display: none !important;
}

.wd-videos-topbar-spacer {
	width: 44px;
	height: 44px;
}

.wd-videos-main {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------------------------
   Feed
   ------------------------------------------------------------------------- */
.wd-videos-app {
	width: 100%;
	height: 100%;
	position: relative;
}

.wd-videos-feed {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	scrollbar-width: none;
	background: #000;
	/* GPU-friendly scrolling */
	transform: translateZ(0);
	will-change: scroll-position;
}

.wd-videos-feed::-webkit-scrollbar {
	display: none;
}

.wd-videos-slide {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow: hidden;
	background: #0a0a0a;
	/* Prevent layout thrash when switching */
	contain: layout paint style;
	transform: translateZ(0);
}

/* -------------------------------------------------------------------------
   Media
   ------------------------------------------------------------------------- */
.wd-videos-media {
	position: absolute;
	inset: 0;
	background: #000;
}

.wd-videos-poster,
.wd-videos-video,
.wd-videos-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	/* Critical: iOS swallows the first tap on <video> for native controls.
	   All play/pause goes through .wd-videos-tap-layer instead. */
	pointer-events: none !important;
}

.wd-videos-iframe {
	pointer-events: none !important;
}

.wd-videos-video {
	z-index: 2;
	background: #000;
}

.wd-videos-poster {
	z-index: 1;
	transition: opacity 0.35s ease;
}

/* Full-area play/pause hit target (under side + product overlay) */
body.wd-videos-body button.wd-videos-tap-layer,
.wd-videos-tap-layer {
	position: absolute !important;
	inset: 0 !important;
	z-index: 6 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	-ms-touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}

.wd-videos-slide.is-playing .wd-videos-poster {
	opacity: 0;
	pointer-events: none;
}

.wd-videos-gradient {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 18%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.32) 28%, transparent 48%);
}

/* -------------------------------------------------------------------------
   Side actions + nav — iOS liquid glass
   ------------------------------------------------------------------------- */
.wd-videos-side {
	position: absolute;
	right: 12px;
	bottom: calc(150px + env(safe-area-inset-bottom, 0px));
	/* Above tap-layer (6) + play-hint visual (7) so share/mute always receive first tap */
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	pointer-events: auto;
}

/* Mute / Share / ↑↓ — circle glass (same system as cart) */
.wd-videos-btn,
.wd-videos-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0.5px solid var(--wd-glass-border, rgba(255, 255, 255, 0.52));
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	line-height: 0;
	-webkit-tap-highlight-color: transparent;
	/* Avoid iOS double-tap: first tap was "hover", second was click */
	touch-action: manipulation;
	-ms-touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	background: var(--wd-glass-bg);
	backdrop-filter: var(--wd-glass-blur, blur(36px) saturate(190%));
	-webkit-backdrop-filter: var(--wd-glass-blur, blur(36px) saturate(190%));
	box-shadow: var(--wd-glass-shadow);
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		opacity 0.2s ease;
}

.wd-videos-btn::before,
.wd-videos-nav-btn::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 68%);
	pointer-events: none;
	z-index: 0;
}

.wd-videos-btn::after,
.wd-videos-nav-btn::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 18%;
	right: 18%;
	height: 38%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
}

.wd-videos-btn svg,
.wd-videos-nav-btn svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	pointer-events: none;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

/* Hover only on real hover devices — sticky :hover on iOS forces double-tap */
@media (hover: hover) and (pointer: fine) {
	.wd-videos-btn:hover,
	.wd-videos-nav-btn:hover:not(:disabled) {
		background: var(--wd-glass-bg-hover);
		color: #fff;
		border-color: rgba(255, 255, 255, 0.62);
		box-shadow:
			0 12px 36px rgba(0, 0, 0, 0.32),
			0 1.5px 0 rgba(255, 255, 255, 0.55) inset,
			0 -1px 0 rgba(0, 0, 0, 0.12) inset;
		transform: scale(1.05);
	}
}

.wd-videos-btn:active,
.wd-videos-nav-btn:active:not(:disabled) {
	transform: scale(0.93);
}

.wd-videos-btn:focus-visible,
.wd-videos-nav-btn:focus-visible {
	outline: 2px solid rgba(10, 132, 255, 0.85);
	outline-offset: 3px;
}

/* Mute: icon swap */
.wd-videos-mute {
	position: relative;
}

.wd-videos-mute .icon-mute,
.wd-videos-mute .icon-unmute {
	width: 22px;
	height: 22px;
}

.wd-videos-mute .icon-unmute {
	display: none !important;
}

.wd-videos-mute.is-unmuted .icon-mute {
	display: none !important;
}

.wd-videos-mute.is-unmuted .icon-unmute {
	display: block !important;
}

/* -------------------------------------------------------------------------
   Bottom product overlay
   ------------------------------------------------------------------------- */
.wd-videos-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	/* Above tap-layer so product links / buy receive taps */
	z-index: 35;
	padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.wd-videos-overlay a,
.wd-videos-overlay button {
	pointer-events: auto;
}

.wd-videos-product {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 60px);
}

.wd-videos-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.wd-videos-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wd-videos-info {
	min-width: 0;
	flex: 1;
}

.wd-videos-title {
	display: block;
	color: #fff;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wd-videos-title:hover {
	color: #fff;
	text-decoration: underline;
}

.wd-videos-price {
	margin-top: 3px;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Hide WC a11y-only price text (standalone Videos has no core screen-reader CSS). */
.wd-videos-body .screen-reader-text,
.wd-videos-price .screen-reader-text,
.wd-videos-product-sheet-price .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Override Woodmart/Woo price colors (often black) */
.wd-videos-price,
.wd-videos-price .amount,
.wd-videos-price .woocommerce-Price-amount,
.wd-videos-price .woocommerce-Price-currencySymbol,
.wd-videos-price bdi {
	color: #fff !important;
}

.wd-videos-price del,
.wd-videos-price del .amount,
.wd-videos-price del .woocommerce-Price-amount,
.wd-videos-price del bdi {
	opacity: 0.75;
	font-weight: 500;
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.72) !important;
	text-decoration: line-through;
}

.wd-videos-price ins,
.wd-videos-price ins .amount,
.wd-videos-price ins .woocommerce-Price-amount,
.wd-videos-price ins bdi {
	text-decoration: none;
	color: #ffd666 !important;
}

.wd-videos-actions {
	display: flex;
	gap: 8px;
	width: 100%;
}

.wd-videos-buy {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	/* Compact pill — match typical Woodmart CTA height (~40–42px) */
	min-height: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 650;
	line-height: 1.1;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		opacity 0.2s ease;
}

.wd-videos-buy:active {
	transform: scale(0.97);
}

.wd-videos-buy-label {
	position: relative;
	z-index: 1;
	font-size: 13px;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
}

/* Add to cart — pill glass mờ */
.wd-videos-add-cart {
	color: #fff;
	background: var(--wd-glass-bg);
	border: 0.5px solid var(--wd-glass-border, rgba(255, 255, 255, 0.52));
	backdrop-filter: var(--wd-glass-blur, blur(36px) saturate(190%));
	-webkit-backdrop-filter: var(--wd-glass-blur, blur(36px) saturate(190%));
	box-shadow: var(--wd-glass-shadow);
}

.wd-videos-add-cart::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.wd-videos-add-cart::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 12%;
	right: 12%;
	height: 42%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
	opacity: 0.45;
	pointer-events: none;
	z-index: 0;
}

.wd-videos-add-cart:hover {
	background: var(--wd-glass-bg-hover);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.62);
	box-shadow:
		0 12px 36px rgba(0, 0, 0, 0.32),
		0 1.5px 0 rgba(255, 255, 255, 0.55) inset,
		0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

.wd-videos-add-cart.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.wd-videos-add-cart.is-added {
	background: linear-gradient(155deg, rgba(52, 199, 89, 0.75) 0%, rgba(48, 176, 80, 0.55) 100%);
	border-color: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(28px) saturate(160%);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
}

/* Buy now — glass tint đỏ, cùng ngôn ngữ glass */
.wd-videos-buy-link {
	color: #fff;
	background:
		linear-gradient(
			155deg,
			rgba(255, 90, 120, 0.72) 0%,
			rgba(255, 45, 85, 0.58) 45%,
			rgba(224, 17, 58, 0.5) 100%
		);
	border: 0.5px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	box-shadow:
		0 10px 28px rgba(255, 45, 85, 0.28),
		0 1.5px 0 rgba(255, 255, 255, 0.35) inset,
		0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

.wd-videos-buy-link::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 55%);
	pointer-events: none;
	z-index: 0;
}

.wd-videos-buy-link:hover {
	color: #fff;
	filter: brightness(1.06);
	border-color: rgba(255, 255, 255, 0.5);
}

.wd-videos-actions .wd-videos-buy:only-child {
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Empty / loader / toast
   ------------------------------------------------------------------------- */
.wd-videos-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 24px;
	text-align: center;
	background: #111;
}

.wd-videos-empty-inner {
	max-width: 280px;
}

.wd-videos-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	font-size: 18px;
}

.wd-videos-empty p {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
}

.wd-videos-empty-hint {
	font-size: 13px !important;
	font-weight: 400 !important;
	opacity: 0.7;
	line-height: 1.45;
}

.wd-videos-loader {
	position: absolute;
	left: 50%;
	bottom: calc(90px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 40;
}

.wd-videos-spinner {
	display: block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wd-videos-spin 0.7s linear infinite;
}

@keyframes wd-videos-spin {
	to {
		transform: rotate(360deg);
	}
}

.wd-videos-toast {
	position: fixed;
	left: 50%;
	bottom: calc(28px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%) translateY(12px);
	z-index: 10080; /* above product sheet (10050) */
	padding: 12px 20px;
	border-radius: 999px;
	background: rgba(28, 28, 30, 0.94);
	color: #fff !important;
	font-size: 14px;
	font-weight: 650;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
}

.wd-videos-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Centered play overlay — NOT a round button (only .wd-videos-play-bubble is round) */
.wd-videos-media {
	position: absolute !important;
	inset: 0 !important;
	overflow: hidden;
}

/*
 * Full-bleed hit area. Must beat Woodmart:
 * :is(button){ position:relative; display:inline-flex; border-radius:var(--btn-brd-radius) }
 * Otherwise the overlay shrinks to a circle stuck at the corner.
 */
/* Visual-only pause overlay — never captures taps (tap-layer handles that) */
body.wd-videos-body .wd-videos-play-hint,
.wd-videos-play-hint {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	inset: 0 !important;
	z-index: 7 !important;
	display: none !important; /* only when paused/active */
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	--btn-brd-radius: 0 !important;
	background: rgba(0, 0, 0, 0.2) !important;
	box-shadow: none !important;
	color: #fff !important;
	pointer-events: none !important;
	line-height: normal !important;
	transform: none !important;
	gap: 0 !important;
}

/* Round glass bubble only — centered by flex on the full overlay */
body.wd-videos-body .wd-videos-play-bubble,
.wd-videos-play-bubble {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 76px !important;
	height: 76px !important;
	min-width: 76px !important;
	min-height: 76px !important;
	max-width: 76px !important;
	max-height: 76px !important;
	margin: 0 !important;
	padding: 0 0 0 3px !important;
	border-radius: 9999px !important;
	border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
	background:
		linear-gradient(155deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.14) 45%, rgba(255, 255, 255, 0.08) 100%) !important;
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	box-shadow:
		0 14px 40px rgba(0, 0, 0, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.45) inset !important;
	color: #fff;
	line-height: 0;
	pointer-events: none;
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.wd-videos-play-bubble svg {
	display: block;
	width: 30px;
	height: 30px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

@media (hover: hover) and (pointer: fine) {
	.wd-videos-play-hint:hover .wd-videos-play-bubble {
		transform: scale(1.05);
	}
}

.wd-videos-slide.is-playing .wd-videos-play-hint {
	display: none !important;
	pointer-events: none !important;
}

/* Only the active paused slide shows centered play (visual only) */
body.wd-videos-body .wd-videos-slide.is-active.is-paused .wd-videos-play-hint,
.wd-videos-slide.is-active.is-paused .wd-videos-play-hint {
	display: flex !important;
	pointer-events: none !important;
}

/* Fade media slightly when not active to smooth perception of switches */
.wd-videos-slide:not(.is-active) .wd-videos-video {
	opacity: 0.92;
}

.wd-videos-slide.is-active .wd-videos-video {
	opacity: 1;
	transition: opacity 0.25s ease;
}

/* -------------------------------------------------------------------------
   Desktop nav (↑ / ↓) — same circle style as share / mute
   ------------------------------------------------------------------------- */
.wd-videos-desktop-nav {
	display: none;
	position: absolute;
	z-index: 40;
	flex-direction: column;
	gap: 14px;
	pointer-events: none;
}

.wd-videos-nav-btn {
	pointer-events: auto;
}

.wd-videos-nav-btn:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
	filter: none;
}

/* -------------------------------------------------------------------------
   Desktop — centered stage, iOS glass aesthetic
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.wd-videos-body {
		display: flex;
		align-items: center;
		justify-content: center;
		/* Soft ambient canvas (iOS-like) */
		background:
			radial-gradient(ellipse 70% 55% at 50% 42%, rgba(70, 72, 88, 0.45) 0%, transparent 58%),
			radial-gradient(ellipse 45% 40% at 18% 78%, rgba(40, 44, 70, 0.35) 0%, transparent 55%),
			radial-gradient(ellipse 40% 35% at 85% 20%, rgba(55, 40, 60, 0.25) 0%, transparent 50%),
			linear-gradient(180deg, #121216 0%, #0a0a0d 55%, #07070a 100%);
	}

	.wd-videos-shell {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100dvh;
		max-width: none;
		margin: 0;
		padding: 24px 28px;
		background: transparent;
		overflow: visible;
	}

	.wd-videos-body.admin-bar .wd-videos-shell {
		height: calc(100dvh - 32px);
	}

	/* Centered group: video + up/down controls */
	.wd-videos-stage {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 18px;
		width: auto;
		height: auto;
		max-width: none;
		margin: 0;
		background: transparent;
		overflow: visible;
	}

	.wd-videos-topbar {
		/* Pin to video column only (not the up/down nav column) */
		left: 0;
		right: auto;
		width: min(420px, 34vw);
		min-width: 340px;
		padding: 14px 16px 18px;
		border-radius: 40px 40px 0 0;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 100%);
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		align-items: center;
	}

	.wd-videos-back,
	.wd-videos-cart {
		width: 44px;
		height: 44px;
	}

	.wd-videos-main {
		position: relative;
		width: min(420px, 34vw);
		min-width: 340px;
		height: min(780px, 86dvh);
		flex: 0 0 auto;
	}

	/* Stretch main to include nav beside video — group stays viewport-centered */
	.wd-videos-main {
		width: auto;
		min-width: 0;
	}

	.wd-videos-app {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: 1fr;
		align-items: center;
		justify-content: center;
		column-gap: 18px;
		width: auto;
		height: 100%;
		overflow: visible;
		background: transparent;
	}

	.wd-videos-feed {
		grid-column: 1;
		grid-row: 1;
		width: min(420px, 34vw);
		min-width: 340px;
		height: 100%;
		/* Top corners more rounded (iOS card), softer bottom */
		border-radius: 40px 40px 22px 22px;
		overflow-x: hidden;
		overflow-y: auto;
		box-shadow:
			0 0 0 1px rgba(255, 255, 255, 0.08),
			0 28px 80px rgba(0, 0, 0, 0.5),
			0 8px 24px rgba(0, 0, 0, 0.28);
		isolation: isolate;
	}

	.wd-videos-slide {
		/* Match top radius of feed for first paint clip */
		border-radius: 0;
	}

	/* Desktop nav: in-flow, vertically centered next to video */
	.wd-videos-desktop-nav {
		display: flex;
		position: static;
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		transform: none;
		left: auto;
		top: auto;
		gap: 14px;
		pointer-events: none;
	}

	.wd-videos-btn,
	.wd-videos-nav-btn {
		width: 50px;
		height: 50px;
		border-radius: 999px;
	}

	/* Toast / loader aligned to video column */
	.wd-videos-toast,
	.wd-videos-loader {
		left: calc(min(420px, 34vw) / 2);
		min-width: 0;
	}

	.wd-videos-buy {
		border-radius: 999px;
	}

	.wd-videos-thumb {
		border-radius: 16px;
	}
}

/* Keep visual center of [video + buttons] as a unit */
@media (min-width: 768px) {
	.wd-videos-shell {
		/* Center the entire stage (video + nav) in the viewport */
		justify-content: center;
		align-items: center;
	}

	.wd-videos-stage {
		/* Stage only wraps topbar+main; main grid already includes nav */
		position: relative;
	}

	/* Topbar sits over the video card only */
	.wd-videos-topbar {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 30;
		width: min(420px, 34vw);
		min-width: 340px;
		pointer-events: none;
	}
}

@media (min-width: 1200px) {
	.wd-videos-feed,
	.wd-videos-topbar {
		width: 420px;
		min-width: 420px;
	}

	.wd-videos-toast,
	.wd-videos-loader {
		left: 210px;
	}

	.wd-videos-btn,
	.wd-videos-nav-btn {
		width: 50px;
		height: 50px;
	}

	.wd-videos-btn svg,
	.wd-videos-nav-btn svg {
		width: 24px;
		height: 24px;
	}
}

/* Hide desktop nav on phones / coarse touch */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
	.wd-videos-desktop-nav {
		display: none !important;
	}
}

@media (min-width: 768px) and (hover: hover) {
	.wd-videos-desktop-nav {
		display: flex;
	}
}

/* Shortcode embed */
body:not(.wd-videos-body) .wd-videos-app {
	height: min(820px, 90vh);
	max-width: 420px;
	margin: 0 auto;
	border-radius: 28px 28px 18px 18px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

body:not(.wd-videos-body) .wd-videos-feed {
	height: 100%;
}

.wd-videos-notice {
	padding: 24px;
	text-align: center;
	color: #666;
}

/* -------------------------------------------------------------------------
   Bottom sheets (share + product options) � TikTok-style
   ------------------------------------------------------------------------- */
.wd-videos-sheet {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wd-videos-sheet.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.wd-videos-sheet[hidden] {
	display: none !important;
}

.wd-videos-sheet.is-open[hidden] {
	display: flex !important;
}

.wd-videos-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.wd-videos-sheet-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	max-height: min(78dvh, 720px);
	overflow: auto;
	padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 22px 22px 0 0;
	background: #1c1c1e;
	color: #fff;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
	transform: translateY(110%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wd-videos-sheet.is-open .wd-videos-sheet-panel {
	transform: translateY(0);
}

.wd-videos-sheet-handle {
	width: 40px;
	height: 4px;
	margin: 4px auto 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
}

.wd-videos-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.wd-videos-sheet-head strong {
	font-size: 16px;
	font-weight: 650;
}

.wd-videos-sheet-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0; /* hide raw text; use SVG */
	line-height: 1;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

/* Close X — pure SVG (no woodmart-font) */
.wd-videos-sheet-close::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}

/* Share grid */
.wd-videos-share-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px 10px;
	padding: 6px 0 10px;
}

.wd-videos-share-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
}

.wd-videos-share-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	font-size: 0;
	font-weight: 700;
	position: relative;
	overflow: hidden;
}

.wd-videos-share-icon::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.wd-videos-share-icon--facebook { background: #1877f2; }
.wd-videos-share-icon--x { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.wd-videos-share-icon--pinterest { background: #e60023; }
.wd-videos-share-icon--whatsapp { background: #25d366; }
.wd-videos-share-icon--telegram { background: #229ed9; }
.wd-videos-share-icon--messenger { background: #a033ff; }
.wd-videos-share-icon--email { background: #5ac8fa; }
.wd-videos-share-icon--copy { background: rgba(255,255,255,0.18); }

/* Brand / utility icons as inline SVG data-URIs (standalone Videos has no icon font). */
.wd-videos-share-icon--facebook::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M14 8h3V5h-3c-2.2 0-4 1.8-4 4v2H7v3h3v7h3v-7h2.5l.5-3H13V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--x::before {
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.727-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--pinterest::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12c0 4.2 2.6 7.8 6.3 9.2-.1-.8-.2-2 0-2.9.2-.8 1.3-5.4 1.3-5.4s-.3-.7-.3-1.6c0-1.5.9-2.6 2-2.6.9 0 1.4.7 1.4 1.5 0 .9-.6 2.3-.9 3.5-.3 1.1.5 1.9 1.6 1.9 1.9 0 3.2-2.4 3.2-5.3 0-2.2-1.5-3.8-4.2-3.8-3 0-4.9 2.3-4.9 4.8 0 .9.3 1.8.7 2.4.1.1.1.2.1.3l-.3 1.1c0 .2-.1.2-.3.1-1.2-.5-1.8-1.9-1.8-3.5 0-2.9 2.4-6.4 7.2-6.4 3.8 0 6.3 2.8 6.3 5.7 0 3.9-2.2 6.8-5.4 6.8-1.1 0-2.1-.6-2.4-1.3l-.7 2.5c-.2.9-.9 2-1.3 2.7 1 .3 2.1.5 3.2.5 5.5 0 10-4.5 10-10S17.5 2 12 2z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--whatsapp::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a9.9 9.9 0 00-8.5 14.9L2 22l5.3-1.4A10 10 0 1012 2zm5.8 14.1c-.2.7-1.3 1.3-2.1 1.4-.6.1-1.3.1-2.1-.1-1.3-.4-2.9-1.4-4-3-1.3-1.7-2-3.6-2.1-3.7-.1-.2-1-1.4-1-2.6s.6-1.8.9-2.1c.2-.3.5-.4.7-.4h.5c.2 0 .4 0 .6.4.2.5.7 1.8.8 1.9.1.2.1.3 0 .5-.1.2-.2.3-.3.5-.1.1-.3.3-.1.6.1.3.6 1.1 1.4 1.8 1 .9 1.8 1.1 2.1 1.3.3.1.4.1.6-.1.2-.2.7-.8.9-1.1.2-.3.4-.2.6-.1.2.1 1.5.7 1.8.9.3.1.5.2.5.3.1.2.1 1-.1 1.7z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--telegram::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.3 15.5l-.4 5.1c.5 0 .8-.2 1.1-.5l2.6-2.5 5.4 4c1 .5 1.7.3 2-.9l3.6-16.9c.3-1.4-.5-2-1.5-1.6L2.2 9.4c-1.4.5-1.3 1.3-.2 1.6l5.1 1.6L18.4 6c.6-.4 1.2-.2.7.2L9.3 15.5z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--messenger::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C6.5 2 2 6.1 2 11.2c0 2.9 1.4 5.4 3.7 7.1V22l3.4-1.9c.9.3 1.9.4 2.9.4 5.5 0 10-4.1 10-9.3S17.5 2 12 2zm1 12.5l-2.5-2.7-4.9 2.7 5.4-5.7 2.6 2.7 4.8-2.7-5.4 5.7z'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--email::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}
.wd-videos-share-icon--copy::before {
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 012-2h10'/%3E%3C/svg%3E");
}

.wd-videos-share-label {
	max-width: 72px;
	text-align: center;
	line-height: 1.2;
	opacity: 0.92;
}

/* Product options sheet */
.wd-videos-product-sheet-summary {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.wd-videos-product-sheet-thumb {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	object-fit: cover;
	background: #2c2c2e;
}

.wd-videos-product-sheet-name {
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	margin-bottom: 4px;
}

.wd-videos-product-sheet-price {
	font-size: 14px;
	font-weight: 600;
	color: #ffd666 !important;
}

.wd-videos-product-sheet-price,
.wd-videos-product-sheet-price .amount,
.wd-videos-product-sheet-price .woocommerce-Price-amount,
.wd-videos-product-sheet-price .woocommerce-Price-currencySymbol,
.wd-videos-product-sheet-price bdi {
	color: #ffd666 !important;
}

.wd-videos-product-sheet-price del,
.wd-videos-product-sheet-price del .amount,
.wd-videos-product-sheet-price del .woocommerce-Price-amount,
.wd-videos-product-sheet-price del bdi {
	opacity: 0.8;
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.75) !important;
	text-decoration: line-through;
}

.wd-videos-product-sheet-price ins,
.wd-videos-product-sheet-price ins .amount,
.wd-videos-product-sheet-price ins .woocommerce-Price-amount,
.wd-videos-product-sheet-price ins bdi {
	text-decoration: none;
	color: #ffd666 !important;
}

/* Attribute row — same layout as quantity: label | options on one line */
.wd-videos-attr-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	color: #fff !important;
}

.wd-videos-attr-label {
	flex: 0 0 auto;
	max-width: 38%;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.95;
	color: #fff !important;
	line-height: 1.3;
}

.wd-videos-attr-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.wd-videos-attr-opt {
	min-width: 40px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
	appearance: none;
	-webkit-appearance: none;
}

.wd-videos-attr-opt:hover {
	background: rgba(255, 255, 255, 0.18) !important;
	background-color: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Selected: solid light pill + dark text (override Woodmart --btn-color: #fff) */
.wd-videos-attr-opt.is-selected,
body.wd-videos-body button.wd-videos-attr-opt.is-selected,
body.wd-videos-body button.wd-videos-attr-opt.is-selected:hover,
body.wd-videos-body button.wd-videos-attr-opt.is-selected:focus {
	--btn-color: #111 !important;
	--btn-color-hover: #111 !important;
	--btn-bgcolor: #fff !important;
	--btn-bgcolor-hover: #f2f2f7 !important;
	--btn-brd-color: #fff !important;
	background: #fff !important;
	background-color: #fff !important;
	border-color: #fff !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.wd-videos-body button.wd-videos-attr-opt.is-selected:hover {
	background: #f2f2f7 !important;
	background-color: #f2f2f7 !important;
}

.wd-videos-product-sheet-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 16px;
	color: #fff !important;
}

.wd-videos-product-sheet-qty label {
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	flex-shrink: 0;
}

/* Quantity stepper: [ − ] [ 1 ] [ + ] */
.wd-videos-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	border-radius: 999px;
	border: 0.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	overflow: hidden;
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wd-videos-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.15s ease;
	user-select: none;
	-webkit-user-select: none;
}

.wd-videos-qty-btn:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.wd-videos-qty-btn:active {
	background: rgba(255, 255, 255, 0.18) !important;
}

.wd-videos-qty-btn:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.wd-videos-qty-input {
	width: 52px;
	min-width: 48px;
	height: 100% !important;
	margin: 0;
	padding: 0 4px !important;
	border: 0 !important;
	border-left: 0.5px solid rgba(255, 255, 255, 0.18) !important;
	border-right: 0.5px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	outline: none;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.wd-videos-qty-input:focus {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Hide native spinners — use − / + buttons */
.wd-videos-qty-input::-webkit-outer-spin-button,
.wd-videos-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
	display: none;
}

.wd-videos-product-sheet-submit {
	width: 100%;
	min-height: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff3b5c 0%, #ff2d55 55%, #e0113a 100%);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(255, 45, 85, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.wd-videos-product-sheet-submit:disabled {
	opacity: 0.45;
	cursor: default;
	box-shadow: none;
}

.wd-videos-product-sheet-submit.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

/* Success feedback on sheet CTA */
.wd-videos-product-sheet-submit.is-added,
body.wd-videos-body button.wd-videos-product-sheet-submit.is-added {
	--btn-color: #fff !important;
	background: linear-gradient(180deg, #34c759 0%, #30b350 100%) !important;
	background-color: #34c759 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	box-shadow: 0 8px 22px rgba(52, 199, 89, 0.4);
	opacity: 1 !important;
}

.wd-videos-product-sheet-msg {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #ffd666;
	text-align: center;
}

.wd-videos-product-sheet-msg.is-success {
	color: #34c759 !important;
}

.wd-videos-product-sheet-msg.is-error {
	color: #ff9f0a !important;
}

/* Global fixed toast success accent */
.wd-videos-toast.is-success {
	background: rgba(22, 90, 45, 0.96);
	border: 1px solid rgba(52, 199, 89, 0.55);
}

.wd-videos-toast.is-error {
	background: rgba(90, 40, 20, 0.96);
	border: 1px solid rgba(255, 159, 10, 0.5);
}

/* Cart badge pulse after add */
.wd-videos-cart-count.is-pulse {
	animation: wd-videos-badge-pulse 0.55s ease;
}

@keyframes wd-videos-badge-pulse {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.35);
	}
	100% {
		transform: scale(1);
	}
}

.wd-videos-product-sheet-loading {
	opacity: 0.7;
	text-align: center;
	padding: 20px 0;
}

/* Mini cart side (Woodmart-compatible) on Videos */
body.wd-videos-body .wd-close-side {
	position: fixed;
	inset: 0;
	z-index: 10040;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.wd-videos-body .wd-close-side.wd-close-side-opened {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/*
 * Mini-cart side panel — quiet luxury (LV / Chanel inspired).
 * Ivory panel · soft charcoal type · champagne price · black primary CTA.
 * Tuned for US fashion e-comm taste (refined, not loud promo green).
 */
body.wd-videos-body .cart-widget-side {
	--wd-side-hidden-w: 360px;
	/* Surfaces */
	--lux-ivory: #faf8f5;
	--lux-ivory-deep: #f3efe8;
	--lux-white: #fffcf8;
	--lux-border: #e6e1d8;
	--lux-border-soft: #efeae2;
	/* Type */
	--lux-ink: #1a1a1a;
	--lux-ink-soft: #3d3a36;
	--lux-taupe: #7a736a;
	--lux-muted: #9a9288;
	/* Accent */
	--lux-champagne: #b08d57;
	--lux-champagne-soft: #c4a574;
	--lux-black: #141414;
	--lux-black-hover: #2a2a2a;
	/* Map legacy tokens → luxury */
	--bgcolor-white: var(--lux-white);
	--bgcolor-gray-100: var(--lux-ivory-deep);
	--brdcolor-gray-300: var(--lux-border);
	--color-gray-300: var(--lux-muted);
	--color-gray-800: var(--lux-ink-soft);
	--color-gray-900: var(--lux-ink);
	--wd-primary-color: var(--lux-black);
	--wd-entities-title-color: var(--lux-ink);
	--wd-entities-title-color-hover: var(--lux-champagne);
	--wd-text-color: var(--lux-taupe);
	/* Buttons — fashion house proportions */
	--btn-padding: 12px 22px;
	--btn-height: 46px;
	--btn-font-size: 11px;
	--btn-font-weight: 500;
	--btn-transform: uppercase;
	--btn-brd-radius: 9999px;
	--btn-accented-padding: 12px 22px;
	--btn-accented-height: 46px;
	--btn-accented-font-size: 11px;
	--btn-accented-font-weight: 500;
	--btn-accented-transform: uppercase;
	--btn-accented-brd-radius: 9999px;
	--btn-accented-color: #fffcf8;
	--btn-accented-color-hover: #fffcf8;
	--btn-accented-bgcolor: var(--lux-black);
	--btn-accented-bgcolor-hover: var(--lux-black-hover);
	--btn-accented-box-shadow: none;
	--btn-accented-box-shadow-hover: none;
	--btn-default-color: var(--lux-ink);
	--btn-default-color-hover: var(--lux-ink);
	--btn-default-bgcolor: transparent;
	--btn-default-bgcolor-hover: var(--lux-ivory-deep);
	--btn-default-brd-radius: 9999px;
	--wd-cart-pad-x: 15px;

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10045;
	width: min(var(--wd-side-hidden-w), 100vw);
	height: 100dvh;
	max-height: 100dvh;
	background: var(--lux-ivory);
	color: var(--lux-ink);
	box-shadow: -16px 0 48px rgba(26, 26, 26, 0.12);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.01em;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

body.wd-videos-body .cart-widget-side.wd-opened {
	transform: none;
}

body.wd-videos-body .cart-widget-side .wd-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 15px;
	border-bottom: 1px solid var(--lux-border);
	flex: 0 0 auto;
	background: var(--lux-white);
}

/* Keep close X tight to the right edge (same 15px inset as content). */
body.wd-videos-body .cart-widget-side .wd-heading .close-side-widget,
body.wd-videos-body .cart-widget-side .wd-heading .wd-cross-icon {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	margin-inline-end: -2px !important; /* optical align icon to pad edge */
}

body.wd-videos-body .cart-widget-side .wd-heading .title {
	font-size: 12px;
	font-weight: 500;
	color: var(--lux-ink);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

body.wd-videos-body .cart-widget-side .close-side-widget a,
body.wd-videos-body .cart-widget-side .wd-videos-close-cart {
	color: var(--lux-ink-soft);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

body.wd-videos-body .cart-widget-side .close-side-widget a:hover,
body.wd-videos-body .cart-widget-side .wd-videos-close-cart:hover {
	color: var(--lux-ink);
	opacity: 1;
}

body.wd-videos-body .cart-widget-side .widget_shopping_cart {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body.wd-videos-body .cart-widget-side .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	overflow: hidden;
}

/* Woodmart mini-cart body (scroll) + footer */
body.wd-videos-body .cart-widget-side .shopping-cart-widget-body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
}

body.wd-videos-body .cart-widget-side .wd-scroll-content {
	position: absolute;
	inset: 0;
	max-height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

body.wd-videos-body .cart-widget-side .shopping-cart-widget-footer {
	flex: 0 0 auto;
	padding: 8px 15px 18px;
	background: var(--lux-white);
	border-top: 1px solid var(--lux-border);
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .shopping-cart-widget-footer > * {
	padding-inline: 0;
	margin-bottom: 12px;
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .shopping-cart-widget-footer > *:last-child {
	margin-bottom: 0;
}

body.wd-videos-body .cart-widget-side ul.woocommerce-mini-cart,
body.wd-videos-body .cart-widget-side ul.cart_list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Line items — Woodmart flex row (image + cart-info) */
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart > li,
body.wd-videos-body .cart-widget-side .mini_cart_item {
	position: relative;
	display: flex;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 14px 15px;
	list-style: none;
	border-bottom: 1px solid var(--brdcolor-gray-300);
	transition: background-color 0.25s ease;
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart > li:hover,
body.wd-videos-body .cart-widget-side .mini_cart_item:hover {
	background-color: var(--lux-ivory-deep);
}

body.wd-videos-body .cart-widget-side .cart-item-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	font-size: 0;
	text-indent: -9999px;
}

body.wd-videos-body .cart-widget-side .cart-item-image {
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
	margin-inline-end: 15px;
	z-index: 0;
}

body.wd-videos-body .cart-widget-side .cart-item-image img,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart-item img,
body.wd-videos-body .cart-widget-side .mini_cart_item img {
	display: block;
	width: 70px;
	height: 70px;
	max-width: 70px;
	object-fit: cover;
	border-radius: 10px;
	float: none !important;
	margin: 0 !important;
}

body.wd-videos-body .cart-widget-side .cart-info {
	flex: 1 1 auto;
	min-width: 0;
	padding-inline-end: 24px;
	position: relative;
	z-index: 2;
}

body.wd-videos-body .cart-widget-side .wd-entities-title,
body.wd-videos-body .cart-widget-side .cart-info a {
	display: block;
	color: var(--lux-ink);
	text-decoration: none;
	font-weight: 500;
	font-size: 13.5px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

body.wd-videos-body .cart-widget-side li:hover .wd-entities-title,
body.wd-videos-body .cart-widget-side li:hover .cart-info a {
	color: var(--lux-champagne);
}

body.wd-videos-body .cart-widget-side .cart-info .quantity,
body.wd-videos-body .cart-widget-side .cart-info span.quantity {
	display: block;
	margin-top: 6px;
	color: var(--lux-taupe);
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

body.wd-videos-body .cart-widget-side .cart-info .quantity .amount {
	color: var(--lux-champagne);
	font-weight: 500;
	letter-spacing: 0.03em;
}

body.wd-videos-body .cart-widget-side .variation {
	margin: 6px 0 0;
	padding: 0;
	font-size: 12px;
	color: var(--wd-text-color);
}

body.wd-videos-body .cart-widget-side .variation dt,
body.wd-videos-body .cart-widget-side .variation dd {
	display: inline;
	margin: 0;
}

body.wd-videos-body .cart-widget-side .variation dd {
	margin-inline-end: 8px;
}

body.wd-videos-body .cart-widget-side .remove,
body.wd-videos-body .cart-widget-side .remove_from_cart_button {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	z-index: 3;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: var(--color-gray-800) !important;
	text-align: center;
	font-size: 16px !important;
	line-height: 20px !important;
	text-decoration: none !important;
	background: transparent;
}

body.wd-videos-body .cart-widget-side .remove:hover,
body.wd-videos-body .cart-widget-side .remove_from_cart_button:hover {
	background-color: var(--bgcolor-white);
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
	color: var(--color-gray-900) !important;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__total,
body.wd-videos-body .cart-widget-side .total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px 16px;
	margin: 0;
	padding: 20px 0 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--lux-ink);
	border-top: 0;
	border-bottom: 0;
	box-sizing: border-box;
	width: 100%;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__total strong {
	color: var(--lux-taupe);
	font-weight: 500;
	flex: 0 1 auto;
	min-width: 0;
	font-size: 11px;
	letter-spacing: 0.16em;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__total .woocommerce-Price-amount,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__total .amount {
	flex: 0 0 auto;
	margin-inline-start: auto;
	text-align: end;
	color: var(--lux-ink);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.04em;
	padding-inline-start: 8px;
	text-transform: none;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
	padding: 6px 0 0;
	width: 100%;
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons > * {
	display: block;
	width: 100%;
	margin: 0 !important;
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons > *:last-child {
	margin-bottom: 0;
}

/* View cart — outline (quiet secondary) */
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons a,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid var(--lux-ink) !important;
	border-radius: 9999px !important;
	background: transparent !important;
	color: var(--lux-ink) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	letter-spacing: 0.16em !important;
	line-height: 1.2;
	box-shadow: none !important;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons a:hover,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons .button:hover {
	background: var(--lux-ivory-deep) !important;
	color: var(--lux-ink) !important;
	border-color: var(--lux-ink) !important;
}

/* Checkout — solid black primary (maison style) */
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons .checkout {
	background: var(--lux-black) !important;
	color: #fffcf8 !important;
	border: 1px solid var(--lux-black) !important;
	min-height: 46px;
	padding: 12px 22px;
	border-radius: 9999px !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.16em !important;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout:hover,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__buttons .checkout:hover {
	background: var(--lux-black-hover) !important;
	border-color: var(--lux-black-hover) !important;
	color: #fffcf8 !important;
}

body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__empty-message,
body.wd-videos-body .cart-widget-side .wd-empty-mini-cart {
	padding: 32px 15px;
	text-align: center;
	color: var(--lux-taupe);
	font-size: 13px;
	letter-spacing: 0.04em;
	line-height: 1.6;
}

body.wd-videos-body .cart-widget-side .wd-empty-mini-cart .title,
body.wd-videos-body .cart-widget-side .woocommerce-mini-cart__empty-message {
	font-weight: 400;
	color: var(--lux-taupe);
}

/* Empty cart icon — replace woodmart-font glyph with SVG bag */
body.wd-videos-body .cart-widget-side .wd-empty-mini-cart:before {
	content: "" !important;
	display: block !important;
	width: 72px !important;
	height: 72px !important;
	margin: 0 auto 16px !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	font-family: inherit !important;
	color: transparent !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M18 20h28l-3 30a4 4 0 01-4 3.5H25a4 4 0 01-4-3.5L18 20z' stroke='%23c4bbb0' stroke-width='2'/%3E%3Cpath d='M24 20V16a8 8 0 0116 0v4' stroke='%23c4bbb0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 72px 72px !important;
}

body.wd-videos-body .cart-widget-side .wd-empty-mini-cart .btn,
body.wd-videos-body .cart-widget-side .wd-empty-mini-cart a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	min-height: 44px;
	padding: 10px 28px;
	border-radius: 9999px !important;
	background: var(--lux-black) !important;
	color: #fffcf8 !important;
	border: 1px solid var(--lux-black) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.16em !important;
	text-decoration: none !important;
}

body.wd-videos-body .cart-widget-side .wd-empty-mini-cart .btn:hover,
body.wd-videos-body .cart-widget-side .wd-empty-mini-cart a.button:hover {
	background: var(--lux-black-hover) !important;
	border-color: var(--lux-black-hover) !important;
	color: #fffcf8 !important;
}

/* Mini-cart close (X) — compact, aligned with 15px panel padding */
body.wd-videos-body .cart-widget-side .wd-cross-icon > a,
body.wd-videos-body .cart-widget-side .close-side-widget > a,
body.wd-videos-body .cart-widget-side .wd-videos-close-cart {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
	box-sizing: border-box;
}

body.wd-videos-body .cart-widget-side .wd-cross-icon > a::before,
body.wd-videos-body .cart-widget-side .close-side-widget > a::before,
body.wd-videos-body .cart-widget-side .wd-videos-close-cart::before {
	content: "" !important;
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 0 !important;
	line-height: 0 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 14px 14px !important;
	opacity: 1 !important;
	speak: never;
}

body.wd-videos-body .cart-widget-side .wd-cross-icon > a:hover::before,
body.wd-videos-body .cart-widget-side .wd-videos-close-cart:hover::before {
	filter: none;
	opacity: 0.7 !important;
}

/* Hide redundant text label next to X (icon is enough) */
body.wd-videos-body .cart-widget-side .wd-cross-icon .wd-action-text,
body.wd-videos-body .cart-widget-side .close-side-widget .wd-action-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* Mini-cart remove item (×) without woodmart-font */
body.wd-videos-body .cart-widget-side .remove,
body.wd-videos-body .cart-widget-side .remove_from_cart_button {
	font-size: 0 !important;
	width: 22px !important;
	height: 22px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 14px 14px !important;
}

body.wd-videos-body .cart-widget-side .remove:after,
body.wd-videos-body .cart-widget-side .remove_from_cart_button:after {
	content: none !important;
	display: none !important;
}

/* Quantity in mini-cart (if enabled) */
body.wd-videos-body .cart-widget-side .cart-info div.quantity {
	display: inline-flex;
	align-items: center;
	margin: 6px 0 8px;
	--wd-form-height: 32px;
}

body.wd-videos-body .cart-widget-side .cart-info div.quantity input.qty {
	width: 40px;
	height: 32px;
	text-align: center;
	border: 1px solid var(--brdcolor-gray-300);
	background: #fff;
	color: #111;
	font-size: 13px;
}

body.wd-videos-body .wd-videos-cart {
	cursor: pointer;
	font: inherit;
	padding: 0;
}

body.wd-videos-body .wd-videos-cart-count[hidden] {
	display: none !important;
}

body.wd-videos-sheet-open,
body.wd-videos-minicart-open {
	overflow: hidden;
}

@media (min-width: 768px) {
	.wd-videos-sheet {
		align-items: center;
	}

	.wd-videos-sheet-panel {
		border-radius: 22px;
		max-width: 420px;
		max-height: min(80dvh, 720px);
		transform: translateY(24px) scale(0.98);
		opacity: 0.96;
	}

	.wd-videos-sheet.is-open .wd-videos-sheet-panel {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

/* -------------------------------------------------------------------------
   FORCE round glass � override Woodmart global:
   :is(.btn, .button, button, [type=button]) {
     border-radius: var(--btn-brd-radius, 0px);
   }
   ------------------------------------------------------------------------- */
/* Glass radius only inside Videos chrome — do NOT force on mini-cart side panel */
body.wd-videos-body .wd-videos-shell,
body.wd-videos-body .wd-videos-app,
body.wd-videos-body .wd-videos-sheet {
	--btn-brd-radius: 9999px;
	--btn-default-brd-radius: 9999px;
	--btn-accented-brd-radius: 9999px;
	--wd-brd-radius: 9999px;
}

body.wd-videos-body .cart-widget-side {
	--btn-brd-radius: 9999px;
	--btn-default-brd-radius: 9999px;
	--btn-accented-brd-radius: 9999px;
}

body.wd-videos-body button.wd-videos-back,
body.wd-videos-body button.wd-videos-cart,
body.wd-videos-body a.wd-videos-back,
body.wd-videos-body a.wd-videos-cart,
body.wd-videos-body button.wd-videos-btn,
body.wd-videos-body button.wd-videos-mute,
body.wd-videos-body button.wd-videos-share,
body.wd-videos-body a.wd-videos-share,
body.wd-videos-body button.wd-videos-nav-btn,
body.wd-videos-body button.wd-videos-nav-prev,
body.wd-videos-body button.wd-videos-nav-next,
body.wd-videos-body button.wd-videos-buy,
body.wd-videos-body button.wd-videos-add-cart,
body.wd-videos-body a.wd-videos-buy,
body.wd-videos-body a.wd-videos-buy-link,
body.wd-videos-body button.wd-videos-product-sheet-submit,
body.wd-videos-body button.wd-videos-attr-opt,
body.wd-videos-body button.wd-videos-sheet-close {
	--btn-brd-radius: 9999px !important;
	--btn-default-brd-radius: 9999px !important;
	--btn-accented-brd-radius: 9999px !important;
	border-radius: 9999px !important;
	border-top-left-radius: 9999px !important;
	border-top-right-radius: 9999px !important;
	border-bottom-left-radius: 9999px !important;
	border-bottom-right-radius: 9999px !important;
	/* Neutralize Woodmart button fill so glass shows */
	--btn-bgcolor: transparent;
	--btn-bgcolor-hover: transparent;
	--btn-brd-width: 0.5px;
	--btn-brd-color: rgba(255, 255, 255, 0.52);
	--btn-brd-color-hover: rgba(255, 255, 255, 0.62);
	--btn-color: #fff;
	--btn-color-hover: #fff;
	--btn-box-shadow: none;
	--btn-box-shadow-hover: none;
	--btn-transform: none;
	text-transform: none !important;
}

/* Play bubble only (never force-round the full-screen play overlay) */
body.wd-videos-body .wd-videos-play-bubble {
	--btn-brd-radius: 9999px !important;
	border-radius: 9999px !important;
}

/* Circle icon controls stay perfect circles */
body.wd-videos-body button.wd-videos-back,
body.wd-videos-body button.wd-videos-cart,
body.wd-videos-body a.wd-videos-back,
body.wd-videos-body a.wd-videos-cart,
body.wd-videos-body button.wd-videos-btn,
body.wd-videos-body button.wd-videos-mute,
body.wd-videos-body button.wd-videos-share,
body.wd-videos-body button.wd-videos-nav-btn,
body.wd-videos-body button.wd-videos-nav-prev,
body.wd-videos-body button.wd-videos-nav-next {
	aspect-ratio: 1 / 1;
	width: 50px !important;
	height: 50px !important;
	min-width: 50px !important;
	min-height: 50px !important;
	max-width: 50px !important;
	max-height: 50px !important;
	padding: 0 !important;
}

body.wd-videos-body button.wd-videos-back,
body.wd-videos-body button.wd-videos-cart,
body.wd-videos-body a.wd-videos-back,
body.wd-videos-body a.wd-videos-cart {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
}

/* Badge must stick out of the cart circle */
body.wd-videos-body button.wd-videos-cart,
body.wd-videos-body a.wd-videos-cart {
	overflow: visible !important;
}

body.wd-videos-body .wd-videos-cart-count {
	position: absolute !important;
	top: -5px !important;
	right: -5px !important;
	z-index: 5 !important;
	overflow: visible !important;
}

/* Pill CTAs — compact height (not tall blocks) */
body.wd-videos-body button.wd-videos-add-cart,
body.wd-videos-body a.wd-videos-buy-link,
body.wd-videos-body button.wd-videos-buy {
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	aspect-ratio: auto !important;
	padding: 0 14px !important;
	line-height: 1.1 !important;
}

body.wd-videos-body button.wd-videos-product-sheet-submit {
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	aspect-ratio: auto !important;
	padding: 0 16px !important;
}
