.sos-gift-widget{position:fixed;z-index:999991;bottom:20px;right:20px;--sos-gift-bg:#2056b6;--sos-gift-fg:#fff;opacity:0;visibility:hidden;transform:translateY(15px);transition:opacity .3s,transform .3s,visibility .3s;font-family:inherit}.sos-gift-widget.sos-gift-visible{opacity:1;visibility:visible;transform:translateY(0)}.sos-gift-widget[data-position="bottom-left"]{left:20px;right:auto}.sos-gift-widget[data-position="top-left"]{top:20px;bottom:auto;left:20px;right:auto}.sos-gift-widget[data-position="top-right"]{top:20px;bottom:auto;right:20px}.sos-gift-launch{display:flex;align-items:center;gap:7px;background:var(--sos-gift-bg);color:var(--sos-gift-fg);border:2px solid rgba(255,255,255,.5);border-radius:18px;padding:12px 15px;box-shadow:0 8px 28px #0003;cursor:pointer;font:600 13px/1.3 inherit;max-width:210px;animation:sos-gift-nudge 3.5s ease-in-out infinite}.sos-gift-launch>span{font-size:34px;line-height:1}.sos-gift-launch>img{width:46px;height:46px;object-fit:contain}.sos-gift-launch small{color:inherit;font-size:13px}.sos-gift-launch:hover{filter:brightness(1.08)}.sos-gift-reveal{position:absolute;bottom:calc(100% + 10px);right:0;width:min(330px,calc(100vw - 30px));max-height:min(550px,80vh);overflow:auto;background:#fff;color:#172136;border-radius:16px;box-shadow:0 14px 50px #0004;padding:24px 20px;text-align:center;border:1px solid #e5e7eb;box-sizing:border-box}.sos-gift-reveal[hidden]{display:none!important}.sos-gift-widget[data-position="bottom-left"] .sos-gift-reveal,.sos-gift-widget[data-position="top-left"] .sos-gift-reveal{right:auto;left:0}.sos-gift-widget[data-position^="top-"] .sos-gift-reveal{bottom:auto;top:calc(100% + 10px)}.sos-gift-close{position:absolute;top:7px;right:8px;width:34px;height:34px;border:0;border-radius:50%;background:#eef1f6;color:#172136;cursor:pointer;font-size:22px}.sos-gift-big{font-size:67px;animation:sos-gift-pop .7s ease both}.sos-gift-reveal h3{margin:8px 0;color:#172136;font-size:23px}.sos-gift-reveal p{font-size:14px;color:#475569;line-height:1.5}.sos-gift-open,.sos-gift-copy{background:var(--sos-gift-bg);color:var(--sos-gift-fg);border:0;padding:10px 18px;border-radius:9px;font-weight:700;cursor:pointer}.sos-gift-open:disabled{opacity:.6}.sos-gift-result{display:grid;justify-items:center;gap:8px;margin-top:12px}.sos-gift-result code{color:#144e36;background:#e6f7ed;padding:11px 14px;font-weight:bold;font-size:19px;letter-spacing:.08em;word-break:break-all;border:2px dashed #80bf99;border-radius:6px}.sos-gift-result small{color:#475569}.sos-gift-result a{font-size:13px;text-decoration:underline;color:#2056b6}.sos-gift-unwrapped .sos-gift-big{animation:sos-gift-pop .55s ease}.sos-gift-widget *{box-sizing:border-box}@keyframes sos-gift-nudge{0%,85%,100%{transform:rotate(0)}89%{transform:rotate(-5deg)}93%{transform:rotate(4deg)}}@keyframes sos-gift-pop{0%{transform:scale(.6) rotate(-12deg);opacity:.1}70%{transform:scale(1.15) rotate(5deg)}100%{transform:scale(1) rotate(0);opacity:1}}@media(max-width:600px){.sos-gift-widget{bottom:15px;right:12px}.sos-gift-widget[data-position="bottom-left"]{left:12px}.sos-gift-launch{padding:7px 10px;border-radius:14px}.sos-gift-launch>span{font-size:27px}.sos-gift-launch small{font-size:11px}.sos-gift-reveal{width:min(310px,calc(100vw - 24px))}}@media(prefers-reduced-motion:reduce){.sos-gift-widget,.sos-gift-launch,.sos-gift-big{animation:none!important;transition:none!important}}

/* v0.7.4 floating gift positioning: per-campaign position, desktop/mobile sizing and insets. */
.sos-gift-widget{top:auto;left:auto;right:var(--sos-gift-effective-x,var(--sos-gift-x-desktop,20px));bottom:var(--sos-gift-effective-y,var(--sos-gift-y-desktop,20px))}
.sos-gift-widget[data-position="bottom-right"]{left:auto;top:auto;right:var(--sos-gift-effective-x,var(--sos-gift-x-desktop,20px));bottom:var(--sos-gift-effective-y,var(--sos-gift-y-desktop,20px))}
.sos-gift-widget[data-position="bottom-left"]{left:var(--sos-gift-effective-x,var(--sos-gift-x-desktop,20px));top:auto;right:auto;bottom:var(--sos-gift-effective-y,var(--sos-gift-y-desktop,20px))}
.sos-gift-widget[data-position="top-right"]{left:auto;bottom:auto;right:var(--sos-gift-effective-x,var(--sos-gift-x-desktop,20px));top:var(--sos-gift-effective-y,var(--sos-gift-y-desktop,20px))}
.sos-gift-widget[data-position="top-left"]{right:auto;bottom:auto;left:var(--sos-gift-effective-x,var(--sos-gift-x-desktop,20px));top:var(--sos-gift-effective-y,var(--sos-gift-y-desktop,20px))}
.sos-gift-launch{max-width:min(calc(100vw - 16px),calc(var(--sos-gift-img-w,46px) + 180px))}
.sos-gift-launch>img{width:var(--sos-gift-img-w,46px);height:var(--sos-gift-img-h,46px);max-width:none;max-height:none;flex:0 0 auto;object-fit:contain}
.sos-gift-launch>span{font-size:var(--sos-gift-emoji-size,34px);display:inline-flex;align-items:center;justify-content:center;width:var(--sos-gift-img-w,46px);height:var(--sos-gift-img-h,46px);flex:0 0 auto}
.sos-gift-launch>small{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){
 .sos-gift-widget[data-position="bottom-right"]{right:var(--sos-gift-effective-x,var(--sos-gift-x-mobile,12px));bottom:var(--sos-gift-effective-y,var(--sos-gift-y-mobile,15px))}
 .sos-gift-widget[data-position="bottom-left"]{left:var(--sos-gift-effective-x,var(--sos-gift-x-mobile,12px));bottom:var(--sos-gift-effective-y,var(--sos-gift-y-mobile,15px))}
 .sos-gift-widget[data-position="top-right"]{right:var(--sos-gift-effective-x,var(--sos-gift-x-mobile,12px));top:var(--sos-gift-effective-y,var(--sos-gift-y-mobile,15px))}
 .sos-gift-widget[data-position="top-left"]{left:var(--sos-gift-effective-x,var(--sos-gift-x-mobile,12px));top:var(--sos-gift-effective-y,var(--sos-gift-y-mobile,15px))}
 .sos-gift-launch{max-width:min(calc(100vw - 16px),calc(var(--sos-gift-mobile-img-w,46px) + 145px))}
 .sos-gift-launch>img{width:var(--sos-gift-mobile-img-w,46px);height:var(--sos-gift-mobile-img-h,46px)}
 .sos-gift-launch>span{font-size:var(--sos-gift-mobile-emoji-size,27px);width:var(--sos-gift-mobile-img-w,46px);height:var(--sos-gift-mobile-img-h,46px)}
}

/* v0.7.5 — interactive coupon reveals. All reveal interactions stay inside the same sized popup. */
.sos-gift-reveal{--sos-game-accent:#f8b32d;--sos-game-bg:#edf2ff}
.sos-game-box{height:125px;display:grid;place-items:center;perspective:320px;position:relative;margin:5px auto 10px;max-width:180px}
.sos-game-box-base{font-size:83px;transform-origin:center bottom;filter:drop-shadow(0 8px 6px #0002);transition:transform .8s cubic-bezier(.18,.8,.25,1)}
.sos-game-box-lid{position:absolute;z-index:2;width:94px;height:17px;background:var(--sos-game-accent);border-radius:4px;top:16px;left:calc(50% - 47px);transition:transform .8s ease,opacity .8s ease;transform-origin:left bottom;box-shadow:0 3px 8px #0002}
.sos-box-opened .sos-game-box-lid{transform:translate(-20px,-54px) rotate(-23deg);opacity:.15}
.sos-box-opened .sos-game-box-base{transform:translateY(-12px) scale(1.12) rotate(8deg)}
.sos-game-wheel-shell{width:228px;height:228px;margin:8px auto 18px;position:relative;display:grid;place-items:center}
.sos-game-wheel{position:relative;width:210px;height:210px;border-radius:50%;border:6px solid #fff;box-shadow:0 0 0 3px var(--sos-game-accent),0 8px 20px #0003;overflow:hidden;background:conic-gradient(from 0deg,var(--sos-game-accent) 0deg 90deg,var(--sos-game-bg) 90deg 180deg,#c6e7e0 180deg 270deg,#efb6d4 270deg 360deg);will-change:transform}
.sos-game-wheel:after{content:'🎁';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border:3px solid white;border-radius:50%;background:#fff;width:43px;height:43px;font-size:21px;z-index:2}
.sos-wheel-segment{position:absolute;left:50%;top:50%;font-weight:800;font-size:13px;color:#192337;text-shadow:0 1px 0 #fff7;white-space:nowrap;max-width:60px;overflow:hidden;text-overflow:ellipsis}
.sos-wheel-segment-0{transform:rotate(45deg) translateY(-64px) rotate(-45deg)}
.sos-wheel-segment-1{transform:rotate(135deg) translateY(-64px) rotate(-135deg)}
.sos-wheel-segment-2{transform:rotate(225deg) translateY(-64px) rotate(-225deg)}
.sos-wheel-segment-3{transform:rotate(315deg) translateY(-64px) rotate(-315deg)}
.sos-game-pointer{position:absolute;z-index:4;top:-8px;left:calc(50% - 12px);font-size:29px;color:#a9232a;text-shadow:0 1px 2px #fff}
.sos-game-scratch{position:relative;width:100%;max-width:280px;height:114px;margin:9px auto;background:var(--sos-game-bg);border-radius:12px;overflow:hidden;border:2px solid var(--sos-game-accent)}
.sos-game-scratch[hidden]{display:none!important}
.sos-scratch-under{position:absolute;inset:0;display:grid;place-items:center;padding:14px;font-size:16px;font-weight:800;color:#263e59;text-align:center}
.sos-game-scratch canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;display:block}
.sos-scratch-cleared canvas{opacity:0;pointer-events:none;transition:opacity .4s}
.sos-scratch-skip{font-size:12px;border:0;background:transparent;color:#2356a5;text-decoration:underline;cursor:pointer;padding:3px 5px}
.sos-gift-game-settings{padding:12px 15px;margin:14px 0;border:1px solid #d2dae6;border-radius:9px;background:#fafcff}
.sos-gift-game-settings h4{margin-top:3px}
.sos-gift-prize-input{display:inline-flex;align-items:center;gap:5px;padding:4px 5px}
.sos-gift-prize-input input{max-width:100px}
.sos-gift-game-preview{border:1px dashed #aab6c8;border-radius:12px;padding:12px;text-align:center;background:white;margin-top:12px}
.sos-gift-game-demo{display:grid;place-items:center;min-height:100px;margin:8px auto;max-width:210px;border-radius:13px;background:#edf2ff;color:#1c2941;font-size:45px}
.sos-gift-game-demo.is-playing{animation:sos-gift-game-demo .95s ease 1}
@keyframes sos-gift-game-demo{0%{transform:scale(.85) rotate(-12deg)}60%{transform:scale(1.11) rotate(12deg)}100%{transform:scale(1) rotate(0)}}
@media(max-width:390px){.sos-game-wheel-shell{width:200px;height:200px}.sos-game-wheel{width:190px;height:190px}.sos-game-wheel .sos-wheel-segment{font-size:12px}}
@media(prefers-reduced-motion:reduce){.sos-game-wheel,.sos-game-box-lid,.sos-game-box-base,.sos-gift-game-demo{transition:none!important;animation:none!important}}

/* 0.7.7: accurately-sized prize wheel sectors and reveal templates. */
.sos-game-wheel .sos-wheel-segment{left:50%;top:50%;transform-origin:center;z-index:1;max-width:78px;font-size:12px;line-height:1.1}
.sos-gift-wheel-odds{display:block;font-size:11px;margin:9px 0;color:#475569;line-height:1.4}
.sos-gift-reveal[data-theme="royal"]{background:linear-gradient(145deg,#201a3e,#4d2b56);border:2px solid #e8c466;color:#fff7d8;box-shadow:0 16px 50px #08071777}
.sos-gift-reveal[data-theme="royal"] h3,.sos-gift-reveal[data-theme="royal"] p,.sos-gift-reveal[data-theme="royal"] .sos-gift-wheel-odds{color:#fff1c5}
.sos-gift-reveal[data-theme="neon"]{background:linear-gradient(140deg,#070d24,#102851);border:2px solid #20dbdb;color:#e5faff;box-shadow:0 14px 46px #19aabb55}
.sos-gift-reveal[data-theme="neon"] h3,.sos-gift-reveal[data-theme="neon"] p,.sos-gift-reveal[data-theme="neon"] .sos-gift-wheel-odds{color:#e5faff}
.sos-gift-reveal[data-theme="festive"]{background:radial-gradient(circle at 85% 10%,#ffe39b 0,#ffe39b00 45%),linear-gradient(135deg,#fff2eb,#ffcad4);border:2px solid #e65e80;color:#7a1838}
.sos-gift-reveal[data-theme="festive"] h3,.sos-gift-reveal[data-theme="festive"] p{color:#7a1838}
.sos-gift-reveal[data-theme="pastel"]{background:linear-gradient(120deg,#eeecff,#e3fff2);border:2px solid #b8a8ec;color:#34326a}
.sos-gift-reveal[data-theme="pastel"] h3,.sos-gift-reveal[data-theme="pastel"] p{color:#34326a}
.sos-gift-reveal[data-theme="royal"] .sos-gift-result,.sos-gift-reveal[data-theme="neon"] .sos-gift-result{color:#fff}
.sos-gift-reveal[data-theme="royal"] .sos-gift-result code,.sos-gift-reveal[data-theme="neon"] .sos-gift-result code{color:#162132}

/* v0.7.8: Midnight Neon contrast in both storefront and the visual editor. */
.sos-gift-reveal[data-theme="neon"],
.sos-gift-live-stage .sos-gift-reveal[data-theme="neon"]{color:#effcff!important}
.sos-gift-reveal[data-theme="neon"] h3,
.sos-gift-reveal[data-theme="neon"] p,
.sos-gift-reveal[data-theme="neon"] .sos-gift-wheel-odds,
.sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] h3,
.sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] p,
.sos-gift-reveal[data-theme="neon"] .sos-gift-result,
.sos-gift-reveal[data-theme="neon"] .sos-gift-result small,
.sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-preview-win{color:#effcff!important}
.sos-gift-reveal[data-theme="neon"] .sos-gift-result a,
.sos-gift-reveal[data-theme="neon"] .sos-scratch-skip{color:#78f7f5!important}
.sos-gift-reveal[data-theme="neon"] .sos-gift-result code{background:#e6f7ed;color:#153728!important}
.sos-gift-reveal[data-theme="neon"] .sos-game-wheel .sos-wheel-segment{color:#10243c!important;text-shadow:0 1px 1px #ffffffb3}
.sos-gift-reveal[data-theme="neon"] .sos-scratch-under{color:#162639}
/* Make result labels readable on dark themes, and show a neutral demo result after spinning. */
.sos-gift-reveal[data-theme="royal"] .sos-gift-result small,
.sos-gift-live-stage .sos-gift-reveal[data-theme="royal"] .sos-gift-preview-win{color:#fff1c5!important}

/* v0.7.9 — time-limited Gift Voucher dismissal, including an open reveal. */
.sos-gift-widget .sos-gift-launch[hidden]{display:none!important}
.sos-gift-expired-note{background:var(--sos-gift-bg,#2056b6);color:var(--sos-gift-fg,#fff);padding:12px 16px;border-radius:14px;box-shadow:0 7px 22px #0003;font:600 14px/1.5 inherit;max-width:min(300px,calc(100vw - 20px));text-align:center;overflow-wrap:anywhere}
.sos-gift-reveal .sos-gift-expired-note{position:static;background:#f8fafc;color:#a12a35;border:1px solid #e2e8f0;box-shadow:none;font-size:15px}

/* v0.8.2: Strong contrast for the Midnight Neon result footer, including
   WooCommerce/WoodMart theme rules and both live editor + public popup. */
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result > :is(strong,div,span,small),
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-result > :is(strong,div,span,small),
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-wheel-odds,
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-wheel-odds,
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result .sos-gift-code-heading {
 color:#effcff!important;opacity:1!important;
}
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result a,
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-result a {
 color:#7af5f2!important;text-decoration:underline!important;
}
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result code,
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-result code {
 color:#163b32!important;background:#e5fff6!important;
}
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result .sos-gift-copy,
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] .sos-gift-result .sos-gift-copy {
 background:#20dbdb!important;color:#06142b!important;border-color:#20dbdb!important;
}

/* v0.8.3: distinguish an already-issued coupon from a real first-time spin.
   WoodMart button styles can override the browser's built-in [hidden] rule. */
.sos-gift-widget .sos-gift-open[hidden],
.sos-gift-widget.sos-gift-unwrapped .sos-gift-open,
.sos-gift-live-stage .sos-gift-open[hidden]{display:none!important}
.sos-gift-widget .sos-gift-existing-note{font-size:12px;line-height:1.5;margin:10px 0;color:#39475e;font-weight:600;overflow-wrap:anywhere}
/* Both dark skins require bright text and links, not only Midnight Neon.
   Retain the intentional dark-on-light coupon-code panel and wheel labels. */
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"],
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"],
body .sos-gift-live-stage .sos-gift-reveal[data-theme="royal"],
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"]{color:#effcff!important}
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"] :is(h3,p.sos-gift-existing-note,.sos-gift-result,.sos-gift-result small,.sos-gift-result .sos-gift-code-heading,.sos-gift-wheel-odds),
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] :is(h3,p.sos-gift-existing-note,.sos-gift-result,.sos-gift-result small,.sos-gift-result .sos-gift-code-heading,.sos-gift-wheel-odds),
body .sos-gift-live-stage .sos-gift-reveal[data-theme="royal"] :is(h3,p,.sos-gift-result,.sos-gift-result small,.sos-gift-preview-win),
body .sos-gift-live-stage .sos-gift-reveal[data-theme="neon"] :is(h3,p,.sos-gift-result,.sos-gift-result small,.sos-gift-preview-win){color:#effcff!important;opacity:1!important}
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"] .sos-gift-result a,
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result a{color:#80f6f1!important;text-decoration:underline!important;opacity:1!important}
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"] .sos-gift-result code,
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-result code{color:#183b32!important;background:#e5fff6!important}

/* v0.8.4 - optional one-click redemption after a real gift reveal. */
.sos-gift-widget .sos-gift-apply,.sos-gift-live-stage .sos-gift-apply{display:block;max-width:100%;width:100%;border:0;border-radius:10px;padding:12px 14px;background:#13794c;color:#fff;font-weight:750;line-height:1.4;text-align:center;cursor:pointer}
.sos-gift-widget .sos-gift-apply:disabled,.sos-gift-live-stage .sos-gift-apply:disabled{opacity:.82;cursor:default}
.sos-gift-widget .sos-gift-apply-feedback{max-width:280px;margin:0 auto;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.sos-gift-widget .sos-gift-cart-link{display:block;border-radius:9px;border:1px solid currentColor;padding:8px 10px;text-align:center;font-weight:700}
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"] .sos-gift-apply,
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-apply{color:#fff!important;background:#14744b!important;text-decoration:none!important}
body .sos-gift-widget .sos-gift-reveal[data-theme="royal"] .sos-gift-apply-feedback,
body .sos-gift-widget .sos-gift-reveal[data-theme="neon"] .sos-gift-apply-feedback{color:#effcff!important}

/* v0.8.6 — applied voucher status inside WoodMart/Woo mini-cart. */
.sos-gift-mini-coupon{display:block;clear:both;margin:10px 0;padding:12px 13px;border:1px solid #badfc9;border-radius:9px;background:#f1faf4;color:#16472a;line-height:1.45;font-size:13px}
.sos-gift-mini-coupon-title{display:block;margin-bottom:6px;font-size:13px;color:#16502b;font-weight:700}
.sos-gift-mini-coupon-row{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;overflow-wrap:anywhere}
.sos-gift-mini-coupon-amount{color:#146a36;font-weight:700;white-space:nowrap}
.sos-gift-mini-coupon-note{display:block;margin-top:6px;color:#416a50;font-size:11px;line-height:1.45}
/* WoodMart's dark side drawer may override inherited label colours. */
.cart-widget-side .sos-gift-mini-coupon,.wd-side-hidden .sos-gift-mini-coupon{background:#edf9f1!important;color:#16472a!important;border-color:#badfc9!important}
.cart-widget-side .sos-gift-mini-coupon-title,.cart-widget-side .sos-gift-mini-coupon-row,.cart-widget-side .sos-gift-mini-coupon-note,.wd-side-hidden .sos-gift-mini-coupon-title,.wd-side-hidden .sos-gift-mini-coupon-row,.wd-side-hidden .sos-gift-mini-coupon-note{color:#16472a!important}
.sos-gift-mini-coupon-after{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid #cadccb;font-size:12px;font-weight:600}
.sos-gift-mini-coupon-after strong{font-size:14px;white-space:nowrap;color:#14572e}
.cart-widget-side .sos-gift-mini-coupon-after,.cart-widget-side .sos-gift-mini-coupon-after strong,.wd-side-hidden .sos-gift-mini-coupon-after,.wd-side-hidden .sos-gift-mini-coupon-after strong{color:#16472a!important}
