/* ============================================================
   Valabi Smart Offers — storefront UI
   Aesthetic: refined commerce. Theme-blending typography (we lean on
   weight / spacing / colour, never a font swap that would break Persian),
   a magenta primary on warm white, soft layered shadows, spring motion.
   Everything is scoped under .vso-* and resets its own box model so it
   survives inside arbitrary third-party themes.
   ============================================================ */

.vso-bump,
.vso-progress,
.vso-modal-backdrop,
.vso-promo,
.vso-hint,
.vso-atc-badge {
	--vso-accent: #d6336c;
	--vso-accent-deep: #a61e4d;
	--vso-accent-soft: #fdeef4;
	--vso-accent-line: #f6d3e1;
	--vso-accent-track: #f6dbe6;
	--vso-accent-mid: #f06595;
	/* Text on an accent-coloured fill: white for the saturated schemes,
	   ink for a light one such as amber. */
	--vso-on-accent: #fff;
	--vso-ink: #181219;
	--vso-mute: #5f5764;
	--vso-line: #efe6ea;
	--vso-paper: #ffffff;
	--vso-ok: #1f9d57;
	--vso-radius: 16px;
	/* The confirmation's primary button. Resolved lazily, so an accent scheme
	   (class-schemes.php) recolours it for free, and the Flatsome integration
	   can repoint it at the store's own --fs-color-primary. */
	--vso-cta: var(--vso-accent);
	--vso-cta-ink: #fff;
	--vso-shadow: 0 1px 2px rgba(29, 22, 32, .04), 0 18px 40px -16px rgba(20, 12, 18, .22);
	--vso-ring: 0 0 0 3px color-mix(in srgb, var(--vso-accent) 35%, transparent);

	font-family: inherit;
	line-height: 1.5;
	color: var(--vso-ink);
}
.vso-bump *,
.vso-progress *,
.vso-modal-backdrop *,
.vso-promo * { box-sizing: border-box; }

/* Shared bits ------------------------------------------------ */
.vso-free { color: var(--vso-ok); font-weight: 800; }
.vso-badge {
	display: inline-block;
	background: var(--vso-accent-soft);
	color: var(--vso-accent-deep);
	font-size: 11.5px;
	font-weight: 800;
	border-radius: 999px;
	padding: 3px 10px;
	letter-spacing: .01em;
}
.vso-accept,
.vso-modal__accept,
.vso-modal__continue {
	cursor: pointer;
	font-family: inherit;
	transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}
.vso-accept:focus-visible,
.vso-modal__accept:focus-visible,
.vso-modal__continue:focus-visible,
.vso-choice:focus-within { outline: none; box-shadow: var(--vso-ring); }
.loading { opacity: .6; pointer-events: none; }

/* ---------- Progress bar ----------------------------------- */
.vso-progress {
	background: linear-gradient(180deg, var(--vso-accent-soft), #fff);
	border: 1px solid var(--vso-accent-line);
	border-radius: var(--vso-radius);
	padding: 14px 18px;
	margin: 0 0 18px;
	box-shadow: var(--vso-shadow);
}
.vso-progress.is-unlocked {
	background: linear-gradient(180deg, #e9faf0, #fff);
	border-color: #bfead0;
}
.vso-progress__msg { font-weight: 700; font-size: 14.5px; margin-bottom: 9px; }
.vso-progress__track {
	height: 10px;
	background: var(--vso-accent-track);
	border-radius: 999px;
	overflow: hidden;
}
.vso-progress.is-unlocked .vso-progress__track { background: #cdeed9; }
.vso-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--vso-accent), var(--vso-accent-deep));
	background-size: 200% 100%;
	transition: width .5s cubic-bezier(.22,.9,.3,1);
	animation: vso-shimmer 2.4s linear infinite;
}
.vso-progress.is-unlocked .vso-progress__fill {
	background: linear-gradient(90deg, #2fb96a, #178a4c);
	animation: none;
}
@keyframes vso-shimmer { to { background-position: -200% 0; } }

/* Tiered ("spend more, save more") variant: the track spans the whole ladder
   and each rung gets a notch, so the shopper sees the steps past the one they
   are climbing toward. Notches must escape the track, hence overflow: visible
   — the fill keeps its own radius so it still looks clipped. */
.vso-progress.is-tiered .vso-progress__track {
	overflow: visible;
	position: relative;
}
.vso-progress__step {
	position: absolute;
	top: 50%;
	width: 3px;
	height: 16px;
	margin-inline-start: -1.5px;
	transform: translateY(-50%);
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--vso-accent-line);
}
.vso-progress__step.is-cleared {
	background: var(--vso-accent-deep);
	box-shadow: 0 0 0 1px #fff;
}
.vso-progress.is-unlocked .vso-progress__step.is-cleared {
	background: #178a4c;
}
/* Each label sits at the same inset-inline-start percentage as its dot (set
   inline by PHP) and is re-centered on that point with translateX. Note the
   sign: inset-inline-start resolves to the physical `right` property in
   RTL, so an absolutely-positioned box anchored on it grows *leftward* from
   that point — the opposite of the familiar `left:X%; translateX(-50%)`
   trick, which assumes growth rightward from the anchor. Centering on an
   RTL right-anchor needs the opposite sign, translateX(+50%); using -50%
   there shifts every label a full label-width off from its dot. This
   plugin is Persian-first (RTL default), with an LTR override for the rare
   non-Persian storefront.
   Adjacent rungs are also frequently closer together than a label is wide
   (e.g. four evenly-spaced tiers are only 25% apart) — rather than guess a
   "safe" width, alternate labels onto two staggered rows so neighbours only
   need to clear the gap to the *next* label on their own row. */
.vso-progress__steps {
	position: relative;
	height: 50px;
	margin-top: 14px;
	font-size: 11px;
}
.vso-progress__steplabel {
	position: absolute;
	top: 0;
	transform: translateX(50%);
	max-width: 108px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	color: var(--vso-mute);
}
:dir(ltr) .vso-progress__steplabel,
[dir="ltr"] .vso-progress__steplabel { transform: translateX(-50%); }
.vso-progress__steplabel:nth-child(even) { top: 19px; }
.vso-progress__steplabel.is-cleared {
	color: var(--vso-accent-deep);
	font-weight: 700;
}
.vso-progress.is-unlocked .vso-progress__steplabel.is-cleared { color: #178a4c; }

/* The LAST rung is always pinned at exactly 100%, so centering it would
   always push half its width past the card's edge; pull it fully inward
   instead (mirrors the RTL/LTR sign flip above, in the opposite direction). */
.vso-progress__steplabel.is-edge-end { transform: translateX(100%); }
:dir(ltr) .vso-progress__steplabel.is-edge-end,
[dir="ltr"] .vso-progress__steplabel.is-edge-end { transform: translateX(-100%); }

@media (max-width: 480px) {
	.vso-progress { padding: 12px 14px; }
	.vso-progress__msg { font-size: 13px; }
	.vso-progress__steps { height: 46px; font-size: 10px; }
	.vso-progress__steplabel { max-width: 78px; }
	.vso-progress__steplabel:nth-child(even) { top: 18px; }
}

/* ---------- Checkout bump ---------------------------------- */
.vso-bump {
	border: 1.5px solid var(--vso-accent-line);
	background: linear-gradient(180deg, var(--vso-accent-soft), #fff);
	border-radius: var(--vso-radius);
	padding: 14px 16px;
	margin: 0 0 18px;
	box-shadow: var(--vso-shadow);
}
.vso-bump__headline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 15px;
	margin-bottom: 12px;
}
.vso-bump__tag {
	background: var(--vso-accent);
	color: var(--vso-on-accent);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .04em;
	border-radius: 6px;
	padding: 3px 8px;
	text-transform: uppercase;
}
.vso-bump__row { display: flex; align-items: center; gap: 14px; }
.vso-bump__media img {
	width: 60px; height: 60px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--vso-line);
}
.vso-bump__body { flex: 1; min-width: 0; }
.vso-bump__name { font-weight: 700; }
.vso-bump__qty { color: var(--vso-accent-deep); font-weight: 800; margin-inline-start: 4px; }
.vso-bump__price { margin-top: 2px; }
.vso-bump__price del { color: var(--vso-mute); margin-inline-end: 8px; opacity: .85; }
.vso-bump__price ins { text-decoration: none; font-weight: 800; color: var(--vso-accent-deep); }
.vso-bump__subtext { font-size: 12.5px; color: var(--vso-mute); margin-top: 2px; }
.vso-bump__hint { font-size: 12.5px; color: var(--vso-mute); margin: 0 0 8px; font-weight: 600; }
.vso-bump__choices { display: grid; gap: 8px; }
.vso-bump .vso-accept,
.vso-bump button.vso-accept {
	margin-top: 14px;
	width: 100%;
	background: var(--vso-accent) !important;
	border: none !important;
	color: var(--vso-on-accent) !important;
	border-radius: 12px;
	padding: 13px 18px;
	font-weight: 800;
	font-size: 15px;
}
.vso-bump .vso-accept:hover { background: var(--vso-accent-deep) !important; transform: translateY(-1px); }

/* Compact style: the add-to-cart sheet's row (.vso-offer, styled below),
   so the card itself steps back to a plain wrapper. */
.vso-bump.vso-bump--compact { padding: 0; border: 0; background: none; box-shadow: none; margin: 0 0 14px; }
.vso-bump.vso-bump--compact .vso-offer__take,
.vso-bump.vso-bump--compact button.vso-accept {
	width: auto; margin: 0; padding: 0 14px; height: 38px;
	font-size: 13px; border-radius: 12px !important;
}
.vso-bump.vso-bump--compact .vso-accept:hover { transform: none; }
.vso-bump.vso-bump--compact[hidden] { display: none; }

/* ---------- Choice rows (bump + modal share this) ---------- */
.vso-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1.5px solid var(--vso-line);
	border-radius: 14px;
	padding: 10px 12px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
	position: relative;
}
.vso-choice:hover { transform: translateY(-1px); border-color: var(--vso-accent-line); }
.vso-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.vso-choice__check {
	width: 20px; height: 20px; flex: none;
	border: 2px solid var(--vso-line);
	border-radius: 50%;
	position: relative;
	transition: border-color .15s ease, background .15s ease;
}
.vso-choice input:checked ~ .vso-choice__check {
	border-color: var(--vso-accent);
	background: var(--vso-accent);
}
.vso-choice input:checked ~ .vso-choice__check::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #fff;
}
.vso-choice:has(input:checked) {
	border-color: var(--vso-accent);
	box-shadow: 0 0 0 1px var(--vso-accent), var(--vso-shadow);
}
.vso-choice__thumb img {
	width: 46px; height: 46px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--vso-line);
}
.vso-choice__name { flex: 1; font-weight: 600; min-width: 0; }
.vso-choice__price { font-weight: 800; color: var(--vso-accent-deep); white-space: nowrap; }

/* Cart: locked gift quantity */
.vso-gift-qty {
	display: inline-block;
	min-width: 2.2em;
	text-align: center;
	font-weight: 700;
	color: var(--vso-mute);
}

/* ---------- Popup modal ------------------------------------ */
.vso-modal-backdrop {
	position: fixed; inset: 0;
	background: rgba(24, 14, 20, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center;
	z-index: 99999; padding: 20px;
	animation: vso-fade .22s ease;
}
@keyframes vso-fade { from { opacity: 0; } to { opacity: 1; } }
.vso-modal {
	background: var(--vso-paper);
	border-radius: 24px;
	max-width: 520px; width: 100%;
	max-height: 92vh; overflow: auto;
	padding: 38px 32px 26px;
	position: relative; text-align: center;
	border: 1px solid rgba(20, 12, 18, .06);
	box-shadow: 0 28px 70px -28px rgba(20, 10, 16, .45), 0 2px 8px rgba(20, 10, 16, .06);
	animation: vso-pop .32s cubic-bezier(.18,.9,.28,1.2);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.vso-modal::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 5px;
	border-radius: 24px 24px 0 0;
	background: linear-gradient(90deg, var(--vso-accent), var(--vso-accent-mid), var(--vso-accent-deep));
}
@keyframes vso-pop { from { transform: scale(.92) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.vso-modal__close {
	position: absolute; top: 12px; inset-inline-end: 14px;
	width: 32px; height: 32px;
	background: transparent; border: none; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	color: var(--vso-mute); cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.vso-modal__close svg { width: 18px; height: 18px; display: block; }
.vso-modal__close:hover { background: color-mix(in srgb, var(--vso-ink) 7%, transparent); color: var(--vso-ink); }
.vso-modal__close:focus-visible { outline: none; box-shadow: var(--vso-ring); }
.vso-modal__check {
	width: 76px; height: 76px; margin: 0 auto 16px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, #e8faef, #d6f3e0);
	color: var(--vso-ok);
	box-shadow: 0 0 0 8px rgba(47, 185, 106, .12);
	animation: vso-check-pop .4s .12s both cubic-bezier(.18,.9,.28,1.4);
}
@keyframes vso-check-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.vso-modal__title { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.vso-modal__headline { color: var(--vso-accent); font-weight: 700; margin-bottom: 18px; }
.vso-modal__hint { font-size: 13px; color: var(--vso-mute); margin-bottom: 12px; text-align: start; }
.vso-modal__timer {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--vso-accent-soft);
	color: var(--vso-accent-deep);
	font-size: 13px;
	font-weight: 700;
}
.vso-modal__timer strong { font-variant-numeric: tabular-nums; }
.vso-modal__timer.is-expired { background: #f3f0f1; color: var(--vso-mute); }

.vso-modal__product {
	display: flex; align-items: center; gap: 14px; text-align: start;
	border: 1px solid var(--vso-accent-line); border-radius: 16px;
	padding: 14px; margin-bottom: 20px;
	background: var(--vso-accent-soft);
}
.vso-modal__thumb img {
	width: 84px; height: 84px; object-fit: cover; border-radius: 14px;
	border: 1px solid rgba(20, 12, 18, .08);
	background: #fff;
}
.vso-modal__info { flex: 1; min-width: 0; }
.vso-modal__name { font-weight: 800; font-size: 18px; }
.vso-modal__qty { color: var(--vso-accent-deep); margin-inline-start: 6px; }
.vso-modal__price { margin-top: 4px; }
.vso-modal__price del { color: var(--vso-mute); margin-inline-end: 8px; }
.vso-modal__price ins { text-decoration: none; font-weight: 800; color: var(--vso-accent-deep); font-size: 18px; }
.vso-modal__subtext { font-size: 13px; color: var(--vso-mute); margin-top: 4px; }

.vso-modal__choices {
	display: grid; gap: 10px; margin-bottom: 20px;
	grid-template-columns: 1fr;
	text-align: start;
}
@media (min-width: 420px) { .vso-modal__choices { grid-template-columns: 1fr 1fr; } }

.vso-modal__actions { display: flex; gap: 12px; }
.vso-modal__actions button {
	flex: 1; border-radius: 14px; padding: 14px 18px;
	font-weight: 800; font-size: 15px; border: 2px solid var(--vso-accent);
}
.vso-modal__continue { background: #fff; color: var(--vso-accent-deep); }
.vso-modal__continue:hover { background: var(--vso-accent-soft); }
.vso-modal__accept { background: var(--vso-accent); color: var(--vso-on-accent); }
.vso-modal__accept:hover { background: var(--vso-accent-deep); border-color: var(--vso-accent-deep); transform: translateY(-1px); }

.vso-shake { animation: vso-shake .4s; }
@keyframes vso-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }

@media (max-width: 480px) {
	.vso-modal { padding: 30px 20px 20px; border-radius: 22px; }
	.vso-modal__title { font-size: 23px; }
	.vso-modal__actions { flex-direction: column; }
}

/* ---------- Add-to-cart confirmation ------------------------
   A quieter, tighter relative of the offer modal: one line of news and two
   exits. On phones it stops pretending to be a dialog and becomes a bottom
   sheet, which is where a thumb already is after tapping "add to cart".
   ------------------------------------------------------------ */
.vso-modal-backdrop--confirm { background: rgba(18, 12, 16, .45); }

.vso-modal--confirm {
	max-width: 400px;
	padding: 34px 28px 24px;
	border-radius: 20px;
}
/* Solid, not the offer modal's three-stop gradient: this hairline has to agree
   with the primary button, which may be wearing the theme's colour. */
.vso-modal--confirm::before {
	height: 3px;
	border-radius: 20px 20px 0 0;
	background: var(--vso-cta);
}

/* The check draws itself: the ring sweeps round, then the tick is written. */
.vso-confirm__mark {
	width: 60px; height: 60px;
	margin: 0 auto 14px;
	color: var(--vso-ok);
}
.vso-confirm__mark svg { display: block; overflow: visible; }
.vso-confirm__ring {
	opacity: .28;
	stroke-dasharray: 145;
	stroke-dashoffset: 145;
	animation: vso-draw .55s .04s ease-out forwards;
}
.vso-confirm__tick {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: vso-draw .4s .3s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes vso-draw { to { stroke-dashoffset: 0; } }

.vso-modal--confirm .vso-modal__title {
	font-size: 22px;
	margin-bottom: 4px;
}
/* Starts empty and collapsed — there is no trustworthy client-side count to
   show right away, so it fades in once the server has actually answered
   rather than risk a wrong number for the sake of filling the gap sooner. */
.vso-confirm__count:empty { display: none; }
.vso-confirm__count {
	margin: 0 0 20px;
	font-size: 13.5px;
	color: var(--vso-mute);
	opacity: 0;
	transition: opacity .25s ease;
}
.vso-confirm__count.is-in { opacity: 1; }
.vso-confirm__count strong { color: var(--vso-ink); font-weight: 700; }

/* Product line, when the merchant turns it on. Calmer than the offer card's
   tinted panel — this is information, not a pitch. */
.vso-confirm__slot:empty { display: none; }
.vso-confirm__slot {
	opacity: 0;
	transition: opacity .25s ease;
}
.vso-confirm__slot.is-in { opacity: 1; }
.vso-modal__product--confirm {
	background: transparent;
	border-color: var(--vso-line);
	padding: 12px;
	margin-bottom: 18px;
}
.vso-modal__product--confirm .vso-modal__thumb img { width: 62px; height: 62px; border-radius: 12px; }
.vso-modal__product--confirm .vso-modal__name { font-size: 15px; font-weight: 700; }
.vso-modal__product--confirm .vso-modal__price { font-size: 14px; color: var(--vso-mute); }
.vso-modal__product--confirm .vso-modal__price ins { font-size: 15px; color: var(--vso-ink); }

/* Actions: ghost "keep shopping", solid "view cart". The cart button is an
   anchor, so it needs the button box drawn on it explicitly. */
.vso-modal--confirm .vso-modal__actions { gap: 10px; align-items: stretch; }

/* One button is an <a> and the other a <button>, and themes style those two
   very differently (Flatsome gives its buttons their own line-height and
   margin). Both boxes are therefore drawn from scratch here so they match. */
.vso-modal--confirm .vso-modal__actions > * {
	flex: 1 1 0;
	min-height: 52px;
	margin: 0;
	line-height: 1.2;
	display: flex; align-items: center; justify-content: center;
	border-radius: 14px;
	padding: 13px 16px;
	font-weight: 800; font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.vso-modal__cta {
	border: 2px solid var(--vso-cta);
	background: var(--vso-cta);
	color: var(--vso-cta-ink);
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.vso-modal__cta:hover,
.vso-modal__cta:focus {
	color: var(--vso-cta-ink);
	text-decoration: none;
	filter: brightness(.92);
	transform: translateY(-1px);
}
.vso-modal__cta:focus-visible { outline: none; box-shadow: var(--vso-ring); }
.vso-modal--confirm .vso-modal__continue { border-color: var(--vso-line); color: var(--vso-ink); }
.vso-modal--confirm .vso-modal__continue:hover { background: #faf7f8; border-color: var(--vso-mute); }

.vso-confirm__link {
	display: inline-block;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vso-mute);
	text-decoration: none;
	border-bottom: 1px solid var(--vso-line);
	padding-bottom: 1px;
}
.vso-confirm__link:hover { color: var(--vso-cta); border-bottom-color: currentColor; }

/* The grabber only means anything in sheet mode. */
.vso-modal__grabber { display: none; }

/* ---------- Phones: bottom sheet ---------------------------- */
@media (max-width: 560px) {
	.vso-modal-backdrop--confirm {
		align-items: flex-end;
		padding: 0;
	}
	.vso-modal--confirm {
		max-width: none;
		width: 100%;
		border-radius: 24px 24px 0 0;
		border-bottom: none;
		padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
		max-height: 88vh;
		animation: vso-sheet-up .34s cubic-bezier(.16, .84, .32, 1);
		transition: transform .2s ease;
		touch-action: pan-y;
	}
	.vso-modal--confirm::before { border-radius: 24px 24px 0 0; }
	.vso-modal__grabber {
		display: block;
		width: 40px; height: 4px;
		margin: 4px auto 14px;
		border-radius: 999px;
		background: var(--vso-line);
	}
	.vso-modal--confirm .vso-modal__close { top: 10px; inset-inline-end: 10px; }
	.vso-modal--confirm .vso-modal__actions { flex-direction: column-reverse; }
	.vso-confirm__mark { width: 52px; height: 52px; margin-bottom: 10px; }
	.vso-confirm__mark svg { width: 52px; height: 52px; }
	.vso-modal--confirm .vso-modal__title { font-size: 20px; }
	.vso-modal-backdrop--confirm.is-closing .vso-modal--confirm { animation: vso-sheet-down .2s ease forwards; }
}
@keyframes vso-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes vso-sheet-down { from { transform: none; } to { transform: translateY(100%); } }

.vso-modal-backdrop--confirm.is-closing { animation: vso-fade-out .2s ease forwards; }
@keyframes vso-fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.vso-modal-backdrop--confirm,
	.vso-modal--confirm,
	.vso-confirm__ring,
	.vso-confirm__tick { animation: none; }
	.vso-confirm__ring,
	.vso-confirm__tick { stroke-dashoffset: 0; }
	.vso-modal__cta:hover { transform: none; }
}

/* ---------- Compact sheet layout ----------------------------
   The opt-in second look: a one-line header instead of the drawn tick, the
   product always shown, an offer slot, and both exits side by side. Built
   from the classic confirmation's own pieces, so colours, the theme-colour
   button and the swipe-to-close gesture all carry over unchanged.
   ------------------------------------------------------------ */
.vso-modal--sheet {
	max-width: 420px;
	padding: 16px 18px 18px;
	text-align: start;
	display: flex; flex-direction: column; gap: 10px;
	overflow-y: auto;
}
.vso-modal--sheet::before { display: none; }
.vso-modal--sheet .vso-modal__grabber { background: color-mix(in srgb, var(--vso-ink) 16%, #fff); }
.vso-sheet__head { display: flex; align-items: center; gap: 8px; }
.vso-sheet__ok {
	flex: 0 0 26px; height: 26px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--vso-ok) 14%, #fff);
	color: var(--vso-ok);
}
.vso-modal--sheet .vso-sheet__head .vso-modal__title { flex: 1; margin: 0; font-size: 15px; font-weight: 900; line-height: 1.5; }
/* Themes restyle every <button> (Flatsome rounds them to its own radius and
   pads them), so the sheet's few shapes are pinned: a round close button,
   14px exits, 12px offer buttons. */
.vso-modal--sheet .vso-sheet__head .vso-modal__close {
	position: static;
	flex: 0 0 34px; width: 34px; height: 34px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 1px solid var(--vso-line) !important; border-radius: 50% !important;
	background: var(--vso-paper);
}
.vso-modal--sheet .vso-modal__close svg { flex: 0 0 16px; width: 16px; height: 16px; }

/* The product: two lines at most for the name, then one line holding the
   price (new first, the old one struck after it) and the cart count. */
.vso-modal--sheet .vso-confirm__slot .vso-modal__product--confirm {
	margin: 0; padding: 8px; gap: 10px;
	border: 0; border-radius: 14px;
	background: color-mix(in srgb, var(--vso-ink) 4%, #fff);
}
.vso-modal--sheet .vso-modal__product--confirm .vso-modal__thumb img { width: 52px; height: 52px; border-radius: 12px; }
.vso-modal--sheet .vso-modal__product--confirm .vso-modal__name {
	font-size: 12.5px; font-weight: 700; line-height: 1.55;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.vso-modal--sheet .vso-modal__product--confirm .vso-modal__price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
	margin-top: 2px; font-size: 12.5px; color: var(--vso-ink);
}
.vso-modal--sheet .vso-modal__product--confirm .vso-modal__price ins { order: -1; font-size: 12.5px; font-weight: 800; color: var(--vso-ink); text-decoration: none; }
.vso-modal--sheet .vso-modal__product--confirm .vso-modal__price del { margin: 0; font-size: 11px; color: var(--vso-mute); }
.vso-sheet__count { font-size: 11px; color: var(--vso-mute); }
.vso-sheet__count::before { content: "· "; }
.vso-sheet__count strong { color: var(--vso-mute); font-weight: 700; }
.vso-modal--sheet .vso-confirm__count { margin: 0; font-size: 12px; text-align: center; }

/* The exits stay pinned to the bottom edge, so a long offer scrolls
   underneath them instead of pushing them off screen. */
.vso-modal--sheet .vso-modal__actions {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
	position: sticky; bottom: -18px; z-index: 1;
	margin: 0 -18px -18px; padding: 8px 18px 18px;
	background: var(--vso-paper);
}
.vso-modal--sheet.is-scrolling .vso-modal__actions { box-shadow: 0 -10px 16px -14px rgba(23, 21, 15, .35); }
.vso-modal--sheet .vso-modal__actions > * {
	height: 48px; min-height: 48px; padding: 0 12px; font-size: 14px;
	border-radius: 14px !important;
}
.vso-modal--sheet .vso-modal__continue { border: 1.5px solid var(--vso-ink) !important; background: var(--vso-paper); }
.vso-modal--sheet .vso-modal__cta { border-width: 1.5px !important; }
.vso-modal--sheet .vso-confirm__link { align-self: center; margin-top: 0; }

@media (max-width: 560px) {
	.vso-modal--sheet { padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
	.vso-modal--sheet .vso-modal__actions {
		bottom: calc(-18px - env(safe-area-inset-bottom, 0px));
		margin: 0 -16px calc(-18px - env(safe-area-inset-bottom, 0px));
		padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	}
	.vso-modal--sheet .vso-modal__grabber { margin: 0 auto 2px; }
	/* Side by side on phones too: the sheet is short enough to keep both
	   exits under the thumb at once. */
	.vso-modal--sheet .vso-modal__actions { flex-direction: row; }
}

/* Floating family widgets (the sales chat launcher, the wallet gift tab)
   sit above every dialog on purpose; they step aside while this one is open. */
html.vso-confirm-open .wsb-root,
html.vso-confirm-open .vwlm { visibility: hidden !important; pointer-events: none !important; }

/* ---------- Offers inside the confirmation ------------------- */
.vso-confirm__offers:empty { display: none; }
.vso-confirm__offers { display: flex; flex-direction: column; gap: 8px; text-align: start; }
.vso-modal--confirm:not(.vso-modal--sheet) .vso-confirm__offers { margin-bottom: 18px; }

.vso-offer {
	display: flex; flex-direction: column; gap: 8px;
	padding: 10px; border-radius: 16px;
	border: 1.5px dashed var(--vso-accent);
	background: var(--vso-accent-soft);
	color: var(--vso-ink);
	transition: opacity .18s ease, transform .18s ease;
}
.vso-offer.is-leaving { opacity: 0; transform: translateY(6px); }
.vso-offer__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vso-offer__icon { flex: 0 0 auto; display: flex; color: var(--vso-ink); }
.vso-offer__icon svg { width: 16px; height: 16px; }
.vso-offer__title { font-size: 13px; font-weight: 900; line-height: 1.5; }
.vso-offer__sub { min-width: 0; font-size: 11px; color: var(--vso-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vso-offer__sub::before { content: "· "; }
.vso-offer__badge {
	flex: 0 0 auto; margin-inline-start: auto;
	padding: 1px 8px; border-radius: 999px;
	background: #fde9e7; color: #b42318;
	font-size: 10.5px; font-weight: 900; line-height: 1.6;
}
.vso-offer__picks { display: flex; flex-direction: column; gap: 6px; }

/* Thumb + (name / one price line): shared by picks and single offers. */
.vso-pick__thumb { flex: 0 0 auto; display: flex; }
.vso-pick__thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--vso-line); background: #fff; margin: 0; }
.vso-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vso-pick__name {
	font-size: 12.5px; font-weight: 700; line-height: 1.5;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.vso-pick__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 12px; line-height: 1.5; }
.vso-pick__price ins { text-decoration: none; font-weight: 800; }
.vso-pick__price del { color: var(--vso-mute); font-size: 11px; }
.vso-pick__price .vso-free { color: var(--vso-ok); font-weight: 900; }

/* A pickable row is a real button. The offer rules below are written as
   `.vso-offer .x` on purpose: themes force their own button corners with
   `button:not(.icon) { border-radius: … !important }`, which a single class
   cannot outrank. */
.vso-offer .vso-pick {
	display: flex; align-items: center; gap: 10px;
	width: 100%; min-height: 56px; margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--vso-line) !important; border-radius: 12px !important;
	background: var(--vso-paper); color: var(--vso-ink);
	font: inherit; text-align: start; text-transform: none; letter-spacing: 0;
	line-height: 1.4; box-shadow: none;
	cursor: pointer;
}
.vso-offer .vso-pick[aria-checked="true"] { border: 1.5px solid var(--vso-ink) !important; }
.vso-pick:focus-visible { outline: none; box-shadow: var(--vso-ring); }
.vso-pick .vso-pick__name { -webkit-line-clamp: 1; }
.vso-pick__dot {
	flex: 0 0 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--vso-ink);
	display: flex; align-items: center; justify-content: center;
}
.vso-pick[role="checkbox"] .vso-pick__dot { border-radius: 5px; }
.vso-pick[aria-checked="true"] .vso-pick__dot::after {
	content: ""; width: 8px; height: 8px; border-radius: inherit; background: var(--vso-ink);
}

/* One product: a single row, the button beside the price. */
.vso-offer__item { display: flex; align-items: center; gap: 10px; }
.vso-offer__acts { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.vso-offer .vso-offer__take {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	height: 38px; min-height: 0; margin: 0;
	padding: 0 14px; border: 0 !important; border-radius: 12px !important;
	background: var(--vso-accent); color: var(--vso-on-accent);
	font: inherit; font-size: 13px; font-weight: 900; line-height: 1;
	text-transform: none; letter-spacing: 0; box-shadow: none;
	white-space: nowrap; cursor: pointer;
}
.vso-offer__take svg { flex: 0 0 14px; }
.vso-offer__take:hover { background: var(--vso-accent-deep); }
.vso-offer__take:disabled { opacity: .6; cursor: progress; }
.vso-offer .vso-offer__skip {
	height: 24px; min-height: 0; margin: 0; padding: 0 6px;
	border: 0 !important; border-radius: 8px !important; background: transparent;
	color: var(--vso-mute);
	font: inherit; font-size: 11px; font-weight: 700; line-height: 1;
	text-transform: none; letter-spacing: 0; box-shadow: none;
	cursor: pointer;
}
.vso-offer__skip:hover { color: var(--vso-ink); }
.vso-offer__done {
	display: inline-flex; align-items: center; height: 38px; padding: 0 10px;
	border-radius: 12px; background: color-mix(in srgb, var(--vso-ok) 12%, #fff);
	color: var(--vso-ok); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.vso-offer__status:empty { display: none; }
.vso-offer__status { margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.6; color: var(--vso-mute); }
.vso-offer__status.is-ok { color: var(--vso-ok); }
.vso-offer.is-busy .vso-pick { cursor: progress; }

/* ---------- Product-page hint -------------------------------- */
.vso-hint {
	margin: 12px 0 16px;
	padding: 12px; border-radius: 16px;
	border: 1.5px dashed var(--vso-accent);
	background: var(--vso-accent-soft);
	color: var(--vso-ink);
	display: flex; flex-direction: column; gap: 10px;
}
.vso-hint__head { display: flex; align-items: center; gap: 8px; }
.vso-hint__head > div { display: flex; flex-direction: column; min-width: 0; }
.vso-hint__icon {
	flex: 0 0 34px; height: 34px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: var(--vso-accent); color: var(--vso-on-accent);
}
.vso-hint__title { font-size: 13.5px; font-weight: 900; line-height: 1.5; }
.vso-hint__sub { font-size: 11.5px; color: var(--vso-mute); line-height: 1.6; }
.vso-hint__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.vso-hint__item {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	margin: 0; padding: 6px 4px; border-radius: 12px;
	background: var(--vso-paper); border: 1px solid var(--vso-line);
	text-align: center;
}
.vso-hint__thumb { display: flex; }
.vso-hint__thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; margin: 0; }
.vso-hint__name {
	font-size: 11px; font-weight: 700; line-height: 1.4;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

.vso-has-badge { position: relative; overflow: visible !important; }
/* "Adding…": the label steps aside for a spinner in the button's own colour. */
.vso-busy {
	position: relative !important;
	color: transparent !important;
	pointer-events: none !important;
}
.vso-busy > * { visibility: hidden; }
.vso-busy > .vso-atc-badge { visibility: visible; }
.vso-busy::after {
	content: "";
	position: absolute; inset: 0; margin: auto;
	width: 18px; height: 18px; box-sizing: border-box;
	border: 2px solid var(--vso-spin, currentColor);
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: vso-spin .7s linear infinite;
}
@keyframes vso-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.vso-busy::after { animation-duration: 1.6s; }
}
.vso-atc-badge {
	position: absolute; top: -9px; inset-inline-end: 12px;
	padding: 2px 8px; border-radius: 999px;
	background: var(--vso-accent); color: var(--vso-on-accent);
	font-size: 10.5px; font-weight: 900; line-height: 1.5;
	text-transform: none; letter-spacing: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.vso-offer { transition: none; }
}

/* ---------- Promo card (sitewide announcement) -------------- */
.vso-promo {
	position: fixed;
	z-index: 99998;
	bottom: 24px;
	max-width: 380px;
	width: calc(100% - 48px);
	background: var(--vso-paper);
	border: 1px solid color-mix(in srgb, var(--vso-accent) 14%, #e8e3e6);
	border-radius: 22px;
	box-shadow: 0 28px 70px -28px rgba(20, 10, 16, .42), 0 8px 22px -14px rgba(20, 10, 16, .20), 0 1px 2px rgba(20, 10, 16, .04);
	padding: 18px;
	color: var(--vso-ink);
	opacity: 0;
	transform: translateY(20px) scale(.98);
	transition: opacity .32s ease, transform .38s cubic-bezier(.2,.85,.25,1.12);
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	isolation: isolate;
}
.vso-promo.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.vso-promo--left { left: 24px; transform: translate(-8px, 20px) scale(.98); }
.vso-promo--right { right: 24px; transform: translate(8px, 20px) scale(.98); }
.vso-promo--left.is-visible,
.vso-promo--right.is-visible { transform: none; }
.vso-promo::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 8px auto auto 8px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--vso-accent-soft);
	filter: blur(22px);
	opacity: .72;
	pointer-events: none;
}
.vso-promo__close {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute !important;
	z-index: 2;
	top: 12px !important;
	inset-inline-end: 12px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	min-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--vso-line) !important;
	border-radius: 50% !important;
	box-shadow: 0 1px 2px rgba(20, 10, 16, .04) !important;
	background: rgba(255,255,255,.94) !important;
	color: var(--vso-mute) !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease !important;
}
.vso-promo__close svg {
	display: block;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
}
.vso-promo__close:hover {
	transform: scale(1.05);
	border-color: var(--vso-accent-line) !important;
	background: var(--vso-accent-soft) !important;
	color: var(--vso-accent-deep) !important;
}
.vso-promo__close:focus-visible { outline: none !important; box-shadow: var(--vso-ring) !important; }
.vso-promo__layout {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-inline-end: 32px;
}
.vso-promo__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--vso-accent-line);
	border-radius: 14px;
	background: linear-gradient(145deg, #fff, var(--vso-accent-soft));
	color: var(--vso-accent);
	box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--vso-accent) 60%, transparent);
}
.vso-promo__icon svg { display: block; width: 23px; height: 23px; fill: currentColor; }
.vso-promo__content { min-width: 0; padding-top: 1px; }
.vso-promo__title {
	margin: 0 0 5px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -.01em;
	color: var(--vso-ink);
}
.vso-promo__text { font-size: 13.5px; color: var(--vso-mute); line-height: 1.65; margin: 0; }
.vso-promo__text p { margin: 0 0 6px; }
.vso-promo__text p:last-child { margin-bottom: 0; }
.vso-promo__coupon {
	display: flex; align-items: center; gap: 8px;
	background: color-mix(in srgb, var(--vso-accent-soft) 78%, #fff);
	border: 1px dashed color-mix(in srgb, var(--vso-accent) 34%, var(--vso-accent-line));
	border-radius: 13px;
	padding: 6px 6px 6px 12px;
	margin-top: 13px;
}
.vso-promo__coupon-code {
	flex: 1; min-width: 0;
	font-weight: 800; letter-spacing: .055em; font-size: 13.5px;
	color: var(--vso-accent-deep);
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	direction: ltr;
	text-align: start;
	overflow-wrap: break-word;
}
.vso-promo__copy {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	min-height: 34px;
	margin: 0;
	border: none;
	background: var(--vso-accent);
	color: var(--vso-on-accent);
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	border-radius: 9px;
	padding: 8px 12px;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.vso-promo__copy:hover { background: var(--vso-accent-deep); transform: translateY(-1px); }
.vso-promo__copy:focus-visible { outline: none; box-shadow: var(--vso-ring); }
.vso-promo__copy.is-copied { background: var(--vso-ok); transform: none; }
.vso-promo__btn-wrap {
	margin-top: 13px;
}
.vso-promo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	box-sizing: border-box;
	text-decoration: none !important;
	background: var(--vso-accent);
	color: var(--vso-on-accent) !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	border-radius: 11px;
	padding: 9px 16px;
	cursor: pointer;
	text-align: center;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.vso-promo__btn:hover {
	background: var(--vso-accent-deep);
	color: var(--vso-on-accent) !important;
	transform: translateY(-1px);
}
.vso-promo__btn:focus-visible {
	outline: none;
	box-shadow: var(--vso-ring);
}
.vso-promo__countdown {
	display: grid;
	gap: 7px;
	margin-top: 12px;
	padding: 9px;
	border: 1px solid color-mix(in srgb, var(--vso-accent) 16%, var(--vso-line));
	border-radius: 13px;
	background: color-mix(in srgb, var(--vso-accent-soft) 48%, #fff);
	color: var(--vso-mute);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
}
.vso-promo__countdown[hidden] { display: none !important; }
.vso-promo__countdown-head {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.vso-promo__countdown-head svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--vso-accent);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vso-promo__countdown-label { min-width: 0; color: var(--vso-accent-deep); }
.vso-promo__countdown-value {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 5px;
	direction: ltr;
}
.vso-promo__time-unit {
	display: grid;
	place-items: center;
	gap: 2px;
	min-width: 0;
	padding: 5px 3px 4px;
	border: 1px solid rgba(255,255,255,.9);
	border-radius: 8px;
	background: rgba(255,255,255,.82);
	box-shadow: 0 1px 4px rgba(20,10,16,.045);
}
.vso-promo__time-unit strong {
	font: 850 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-variant-numeric: tabular-nums;
	letter-spacing: .025em;
	color: var(--vso-accent-deep);
}
.vso-promo__time-unit small {
	max-width: 100%;
	overflow: hidden;
	color: var(--vso-mute);
	font-size: 8px;
	font-weight: 650;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vso-promo.is-expired .vso-promo__countdown {
	color: var(--vso-mute);
}

/* Compact: a restrained notification that takes up less storefront space. */
.vso-promo--template-compact {
	max-width: 340px;
	border-radius: 17px;
	padding: 14px;
	box-shadow: 0 20px 48px -25px rgba(20, 10, 16, .38), 0 5px 16px -12px rgba(20, 10, 16, .22);
}
.vso-promo--template-compact::before {
	width: 64px;
	height: 64px;
	filter: blur(18px);
	opacity: .58;
}
.vso-promo--template-compact .vso-promo__close {
	top: 9px !important;
	inset-inline-end: 9px !important;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
}
.vso-promo--template-compact .vso-promo__layout {
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 11px;
	padding-inline-end: 27px;
}
.vso-promo--template-compact .vso-promo__icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
}
.vso-promo--template-compact .vso-promo__icon svg { width: 20px; height: 20px; }
.vso-promo--template-compact .vso-promo__title { margin-bottom: 3px; font-size: 14.5px; }
.vso-promo--template-compact .vso-promo__text { font-size: 12.5px; line-height: 1.55; }
.vso-promo--template-compact .vso-promo__coupon {
	display: inline-flex;
	max-width: 100%;
	margin-top: 9px;
	padding: 4px 4px 4px 10px;
	border-radius: 10px;
}
.vso-promo--template-compact .vso-promo__copy {
	min-height: 29px;
	padding: 6px 9px;
	border-radius: 7px;
	font-size: 11px;
}
.vso-promo--template-compact .vso-promo__btn-wrap {
	margin-top: 8px;
}
.vso-promo--template-compact .vso-promo__btn {
	min-height: 30px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
}
.vso-promo--template-compact .vso-promo__countdown {
	margin-top: 8px;
	padding: 7px;
	font-size: 10.5px;
}
.vso-promo--template-compact .vso-promo__time-unit { padding-block: 4px 3px; }
.vso-promo--template-compact .vso-promo__time-unit strong { font-size: 11.5px; }

/* Spotlight: stronger hierarchy for a coupon or genuinely limited-time event. */
.vso-promo--template-spotlight {
	max-width: 400px;
	padding: 21px 20px 18px;
	border-color: color-mix(in srgb, var(--vso-accent) 26%, #e8e3e6);
	box-shadow: 0 30px 76px -30px color-mix(in srgb, var(--vso-accent-deep) 32%, rgba(20, 10, 16, .42)), 0 9px 24px -15px rgba(20, 10, 16, .22);
	overflow: hidden;
}
.vso-promo--template-spotlight::before {
	z-index: 0;
	inset: 0 0 auto;
	width: auto;
	height: 5px;
	border-radius: 22px 22px 0 0;
	background: linear-gradient(90deg, var(--vso-accent), var(--vso-accent-mid));
	filter: none;
	opacity: 1;
}
.vso-promo--template-spotlight .vso-promo__layout {
	position: relative;
	z-index: 1;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 15px;
}
.vso-promo--template-spotlight .vso-promo__icon {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--vso-accent-mid), var(--vso-accent));
	color: var(--vso-on-accent);
	box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--vso-accent-deep) 75%, transparent);
}
.vso-promo--template-spotlight .vso-promo__icon svg { width: 25px; height: 25px; }
.vso-promo--template-spotlight .vso-promo__title {
	margin-bottom: 6px;
	font-size: 17px;
	color: var(--vso-accent-deep);
}
.vso-promo--template-spotlight .vso-promo__coupon {
	margin-top: 14px;
	padding: 7px 7px 7px 13px;
	border-style: solid;
	background: linear-gradient(135deg, var(--vso-accent-soft), #fff);
}
.vso-promo--template-spotlight .vso-promo__copy { min-height: 36px; }
.vso-promo--template-spotlight .vso-promo__btn-wrap { margin-top: 14px; }
.vso-promo--template-spotlight .vso-promo__btn {
	min-height: 38px;
	border-radius: 13px;
	font-size: 13.5px;
	box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--vso-accent-deep) 65%, transparent);
}
.vso-promo--template-spotlight .vso-promo__btn:hover {
	box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--vso-accent-deep) 75%, transparent);
}
.vso-promo--template-spotlight .vso-promo__countdown {
	margin-top: 13px;
	padding: 10px 12px;
	border-color: var(--vso-accent-line);
	border-radius: 12px;
	background: color-mix(in srgb, var(--vso-accent-soft) 70%, #fff);
	color: var(--vso-accent-deep);
}

@media (max-width: 480px) {
	.vso-promo {
		inset-inline: auto;
		left: 50%;
		right: auto;
		bottom: max(12px, env(safe-area-inset-bottom));
		width: calc(100% - 24px);
		max-width: 380px;
		border-radius: 20px;
		padding: 16px;
		transform: translate(-50%, 20px) scale(.98);
	}
	.vso-promo.is-visible { transform: translate(-50%, 0); }
	.vso-promo__layout { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-inline-end: 30px; }
	.vso-promo__icon { width: 40px; height: 40px; border-radius: 13px; }
	.vso-promo__title { font-size: 15px; }
	.vso-promo--template-compact { width: calc(100% - 24px); padding: 14px; }
	.vso-promo--template-compact .vso-promo__layout { grid-template-columns: 36px minmax(0, 1fr); }
	.vso-promo--template-compact .vso-promo__icon { width: 36px; height: 36px; }
	.vso-promo--template-spotlight { width: calc(100% - 24px); padding: 19px 16px 16px; }
	.vso-promo--template-spotlight .vso-promo__layout { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
	.vso-promo--template-spotlight .vso-promo__icon { width: 42px; height: 42px; border-radius: 14px; }
	.vso-promo--template-spotlight .vso-promo__title { font-size: 16px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.vso-modal, .vso-modal__check, .vso-modal-backdrop,
	.vso-progress__fill, .vso-choice, .vso-accept,
	.vso-shake, .vso-promo {
		animation: none !important;
		transition: none !important;
	}
}
