.stas-eg{--eg-purple:#681fdb;--eg-ink:#241c32;--eg-muted:#756b82;direction:rtl;text-align:right;color:var(--eg-ink);font-family:Arial,"Helvetica Neue",sans-serif;max-width:1240px;margin:28px auto 42px;box-sizing:border-box;background:#f8f6fc;border:1px solid #ece6f5;border-radius:26px;overflow:hidden;line-height:1.55;isolation:isolate}.stas-eg *{box-sizing:border-box}.stas-eg button{font:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;box-shadow:none;line-height:1.4;margin:0}.stas-eg button:focus-visible{outline:3px solid #371275;outline-offset:4px}.stas-eg button:disabled{cursor:default;opacity:.52}.stas-eg h2,.stas-eg h3,.stas-eg p{margin:0}.stas-eg h2{font-size:clamp(26px,3vw,40px);font-weight:800;color:#fff;line-height:1.2;margin:10px 0 12px}.stas-eg h3{font-size:18px;line-height:1.4;font-weight:700;color:var(--eg-ink);margin-bottom:22px}.stas-eg .eg-header{padding:34px 38px;background:radial-gradient(ellipse at 0 15%,#673098,transparent 55%),linear-gradient(115deg,#20172e,#14101c);color:#e4dbed;display:flex;align-items:center;justify-content:space-between;gap:30px}.stas-eg .eg-eyebrow{color:#d4b3ff;font-size:12px;font-weight:700;letter-spacing:1.5px}.stas-eg .eg-header p{font-size:15px;max-width:630px}.stas-eg .eg-counter{border:1px solid #ffffff35;background:#ffffff0c;min-width:128px;border-radius:18px;padding:15px 20px;text-align:center;display:flex;flex-direction:column;flex-shrink:0}.stas-eg .eg-counter strong{font-size:32px;color:#fff;direction:ltr}.stas-eg .eg-counter span{font-size:12px}.stas-eg .eg-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:28px}.stas-eg .eg-controls{display:flex;flex-direction:column;gap:20px}.stas-eg .eg-card{background:#fff;border:1px solid #ede7f4;border-radius:18px;padding:24px}.stas-eg .eg-wood-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stas-eg .eg-swatch{background:transparent;border:2px solid transparent;padding:6px;border-radius:12px;color:var(--eg-ink);min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;font-weight:600;transition:background .16s,border-color .16s}.stas-eg .eg-swatch:hover{background:#f6f0ff}.stas-eg .eg-swatch.is-active{border-color:var(--eg-purple);background:#faf6ff}.stas-eg .eg-swatch img{width:100%;aspect-ratio:1;object-fit:cover;display:block;margin:0;max-width:100%;height:auto}.stas-eg .eg-wood img{border-radius:8px}.stas-eg .eg-color-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 8px}.stas-eg .eg-color img{border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #e6dfed,0 4px 10px #241c3212}.stas-eg .eg-check{position:absolute;top:3px;left:3px;background:var(--eg-purple);color:white;border:2px solid white;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-size:12px;font-style:normal}.stas-eg .eg-caption{font-size:12px;color:var(--eg-muted);margin-top:18px;line-height:1.7}.stas-eg .eg-preview-panel{align-self:start;position:sticky;top:24px}.stas-eg .eg-figure{position:relative;margin:0 0 18px;background:#ede7f4;border-radius:20px;overflow:hidden;aspect-ratio:1 / 1.05}.stas-eg .eg-result{width:100%;height:100%;display:block;object-fit:cover}.stas-eg .eg-result-label{position:absolute;bottom:18px;right:18px;left:18px;padding:14px 18px;background:#160d23d9;border:1px solid #ffffff35;color:white;border-radius:13px;display:flex;flex-direction:column;backdrop-filter:blur(10px)}.stas-eg .eg-result-label small{color:#dbc9ee;font-size:12px}.stas-eg .eg-result-label strong{font-size:20px}.stas-eg .eg-primary{width:100%;padding:17px 20px;border:none;border-radius:12px;background:linear-gradient(105deg,#7d2bed,#5413c0);color:white;font-weight:700;font-size:17px;box-shadow:0 8px 20px #681fdb25;min-height:54px}.stas-eg .eg-primary:hover:not(:disabled){background:#5513be}.stas-eg .eg-selection{margin:0 28px 28px;background:#fff;padding:24px;border:1px solid #e5d9f7;border-radius:18px}.stas-eg .eg-selection-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.stas-eg .eg-selection-header h3{margin:0}.stas-eg .eg-free{font-size:12px;color:#6324b8;background:#f3eafd;padding:5px 11px;border-radius:20px}.stas-eg .eg-chosen-grid{display:flex;gap:12px;flex-wrap:wrap}.stas-eg .eg-chosen-item,.stas-eg .eg-slot{width:90px;min-height:103px;border:1px solid #e7d9f7;border-radius:13px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;gap:8px;font-size:11px;text-align:center}.stas-eg .eg-chosen-item img{width:47px;height:47px;border-radius:50%;object-fit:cover}.stas-eg .eg-remove{position:absolute;top:-8px;left:-7px;border:1px solid #e3d6f2;background:white;border-radius:50%;color:#6725bf;width:28px;height:28px;padding:0;font-size:20px;display:grid;place-items:center}.stas-eg .eg-slot{border:1px dashed #d8c7ec;background:#fbf9fe;font-size:25px;color:#b9a6cd}.stas-eg .eg-status{font-size:14px;margin-top:20px;font-weight:600}.stas-eg .eg-message{color:#75224d;font-size:14px;min-height:22px;margin-top:8px}.stas-eg .eg-loading,.stas-eg .eg-no-gift,.stas-eg .eg-empty{padding:26px}.stas-eg-order{clear:both;padding:16px 0}.stas-eg-order li{margin:3px 0}.stas-eg-product{padding:12px;border-right:3px solid #681fdb;background:#f8f3ff}
@media(max-width:850px){.stas-eg .eg-layout{grid-template-columns:1fr;padding:18px}.stas-eg .eg-preview-panel{position:static;display:flex;flex-direction:column}.stas-eg .eg-figure{aspect-ratio:4/3;max-height:460px}.stas-eg .eg-header{padding:26px 22px;gap:16px}.stas-eg .eg-counter{min-width:95px;padding:12px}.stas-eg .eg-selection{margin:0 18px 18px}.stas-eg .eg-color-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.stas-eg .eg-wood-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:480px){.stas-eg{border-radius:18px;margin:16px auto}.stas-eg .eg-header{align-items:flex-start;padding:23px 18px;flex-direction:column}.stas-eg .eg-counter{flex-direction:row;align-items:center;gap:12px;padding:6px 15px;min-width:0}.stas-eg .eg-counter strong{font-size:23px}.stas-eg .eg-layout{padding:12px;gap:16px}.stas-eg .eg-card{padding:18px 12px}.stas-eg .eg-wood-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stas-eg .eg-color-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 4px}.stas-eg .eg-swatch{font-size:11px;padding:5px}.stas-eg .eg-selection{margin:0 12px 12px;padding:18px 12px}.stas-eg .eg-selection-header{align-items:flex-start;flex-direction:column;gap:8px}.stas-eg .eg-chosen-grid{gap:10px}.stas-eg .eg-chosen-item,.stas-eg .eg-slot{width:calc((100% - 30px)/4);min-height:90px}.stas-eg .eg-result-label strong{font-size:17px}.stas-eg .eg-primary{font-size:15px}.stas-eg .eg-chosen-item img{width:39px;height:39px}}
@media(prefers-reduced-motion:reduce){.stas-eg *{transition:none!important;scroll-behavior:auto!important}}
.stas-eg .eg-quantity{color:var(--eg-purple);font-size:14px;direction:ltr;line-height:1.1}
/* Optional, click-to-open gift picker. Native dialog enters the top layer. */
.stas-eg-launcher{direction:rtl;box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;max-width:1240px;margin:24px auto;padding:22px 26px;border:1px solid #e0cef7;border-radius:18px;background:linear-gradient(110deg,#faf7ff,#f0e6ff);color:#241c32;text-align:right;font-family:Arial,sans-serif;line-height:1.6}.stas-eg-launcher[hidden]{display:none}.stas-eg-launcher .eg-launcher-copy{flex:1;min-width:220px}.stas-eg-launcher strong{font-size:19px}.stas-eg-launcher p{font-size:14px;margin:5px 0 0}.stas-eg-launcher .eg-open{border:0;border-radius:12px;background:#641bd3;color:#fff;font:700 16px Arial,sans-serif;padding:15px 24px;min-height:48px;cursor:pointer}.stas-eg-launcher .eg-open:focus-visible{outline:3px solid #351063;outline-offset:3px}.stas-eg-launcher .eg-launcher-message{width:100%;margin:0;color:#63224b}.stas-eg-launcher .eg-launcher-message:empty{display:none}
.stas-eg-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1140px,calc(100vw - 32px));max-width:none;max-height:92vh;max-height:92dvh;height:fit-content;padding:0;border:0;border-radius:22px;background:#f8f6fc;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 90px #150b3155;z-index:2147483646}.stas-eg-dialog:not([open]){display:none}.stas-eg-dialog::backdrop{background:#160c2bbc;backdrop-filter:blur(4px)}.stas-eg-dialog>.stas-eg{max-width:none;margin:0;border:0;border-radius:0;overflow:visible}.stas-eg-dialog .eg-modal-topbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px;background:#fff;border-bottom:1px solid #e8dff2;color:#6224b4;font-size:13px;font-weight:700}.stas-eg-dialog .eg-close{width:44px;height:44px;min-width:44px;border:1px solid #e1d5ec;border-radius:50%;background:#f7f2fc;color:#402353;font-size:28px;padding:0;line-height:1}.stas-eg-dialog .eg-modal-footer{padding:18px 28px 24px;background:#fff;border-top:1px solid #e4d8f1}.stas-eg-dialog .eg-free-reminder{font-size:14px;color:#665375;margin-bottom:14px}.stas-eg-dialog .eg-modal-actions{display:flex;gap:12px;flex-wrap:wrap}.stas-eg-dialog .eg-done,.stas-eg-dialog .eg-skip{min-height:48px;border-radius:10px;padding:12px 22px;font-weight:700;font-size:15px}.stas-eg-dialog .eg-done{background:#641bd3;color:#fff;border:1px solid #641bd3}.stas-eg-dialog .eg-skip{background:#fff;color:#563d6c;border:1px solid #d7c8e5}.stas-eg-dialog .eg-preview-panel{position:static}.stas-eg-dialog .eg-header{padding:24px 30px}.stas-eg-fallback-shade{position:fixed;inset:0;background:#160c2bbc;z-index:2147483645}.stas-eg-fallback-shade[hidden]{display:none}
@media(max-width:600px){.stas-eg-launcher{padding:18px;gap:14px}.stas-eg-launcher .eg-open{width:100%}.stas-eg-launcher strong{font-size:17px}.stas-eg-dialog{width:100%;height:100%;max-height:100vh;max-height:100dvh;border-radius:0}.stas-eg-dialog .eg-modal-topbar{padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top))}.stas-eg-dialog .eg-header{padding:20px 16px}.stas-eg-dialog .eg-modal-footer{padding:18px 16px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.stas-eg-dialog .eg-modal-actions{flex-direction:column}.stas-eg-dialog .eg-modal-actions button{width:100%;min-height:50px}.stas-eg-dialog .eg-figure{max-height:340px;aspect-ratio:4/3}}
.stas-eg-launcher.stas-eg-floating{position:fixed;bottom:22px;inset-inline-start:22px;z-index:99990;padding:0;border:0;background:transparent;margin:0;max-width:min(360px,calc(100vw - 32px));gap:8px;box-shadow:0 6px 24px #37126830;border-radius:14px}.stas-eg-floating .eg-launcher-copy[hidden]{display:none}.stas-eg-floating .eg-launcher-message:not(:empty){background:#fff;border-radius:10px;padding:10px;border:1px solid #e0cef7}.stas-eg-floating .eg-open{border-radius:14px}.stas-eg-floating:has(.eg-loading){display:none}
@media(max-width:600px){.stas-eg-launcher.stas-eg-floating{bottom:max(12px,env(safe-area-inset-bottom));inset-inline-start:12px;max-width:calc(100vw - 24px)}.stas-eg-floating .eg-open{font-size:14px;padding:13px 18px}}

/* Product-page gift access and persisted cart-wide selection. */
.stas-eg-launcher .eg-locked-card{position:relative;min-height:190px;width:100%;border-radius:18px;overflow:hidden;background:#f6f3fb;border:1px solid #ded6ec;text-align:center}
.stas-eg-launcher .eg-locked-samples{display:flex;justify-content:center;gap:12px;padding:40px 12px;filter:blur(2px);opacity:.3;pointer-events:none}
.stas-eg-launcher .eg-locked-samples img{width:52px;height:52px;object-fit:cover;border-radius:50%}
.stas-eg-launcher .eg-lock-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px;background:#ffffffb8;line-height:1.6}
.stas-eg-launcher .eg-lock-overlay p{margin:5px 0}
.stas-eg-launcher .eg-product-selection{display:flex;flex-wrap:wrap;gap:8px;flex-basis:100%}
.stas-eg-launcher .eg-product-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;background:#f5f1fa;border-radius:24px;font-size:13px}
.stas-eg-launcher .eg-product-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.stas-eg-launcher.has-excess{border:2px solid #a33a27}
.stas-eg-launcher.has-excess .eg-launcher-copy p{color:#922b1b;font-weight:700}
@media(max-width:600px){.stas-eg-launcher .eg-locked-card{min-height:220px}.stas-eg-launcher .eg-locked-samples{gap:6px}.stas-eg-launcher .eg-locked-samples img{width:40px;height:40px}}

/* Compact product swatches. A click previews; only the modal Add saves a unit. */
.stas-eg-launcher .eg-product-instruction{flex-basis:100%;margin:0;font-weight:700}
.stas-eg-launcher .eg-product-colors{display:flex;gap:12px;overflow-x:auto;max-width:100%;width:100%;padding:8px 4px 12px;scrollbar-width:thin}
.stas-eg-launcher .eg-product-swatch{position:relative;display:flex;flex:0 0 62px;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;color:inherit;padding:3px;min-height:86px;cursor:pointer;font:inherit}
.stas-eg-launcher .eg-product-swatch img{width:56px;height:56px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #d8cbe5}
.stas-eg-launcher .eg-product-swatch.is-chosen img{box-shadow:0 0 0 3px #7130cb}
.stas-eg-launcher .eg-product-swatch:focus-visible{outline:3px solid #7130cb;outline-offset:1px;border-radius:9px}
.stas-eg-launcher .eg-product-color-name{font-size:12px;line-height:1.35;max-width:70px;overflow-wrap:anywhere;text-align:center}
.stas-eg-launcher .eg-product-badge{position:absolute;top:0;right:0;min-width:22px;height:22px;padding:0 4px;border-radius:20px;background:#7130cb;color:#fff;font:700 12px/22px Arial,sans-serif;box-shadow:0 0 0 2px #fff}
.stas-eg-launcher .eg-product-swatch:disabled{cursor:default}
.stas-eg-launcher .eg-locked-card{min-height:0;padding:12px}
.stas-eg-launcher .eg-locked-card .eg-product-colors{opacity:.55;pointer-events:none;padding-bottom:5px}
.stas-eg-launcher .eg-lock-overlay{position:relative;inset:auto;padding:8px;background:#ffffffb8;border-radius:10px}
.stas-eg-launcher .eg-lock-overlay small{font-size:12px}
.stas-eg.eg-excess-mode .eg-header{background:#fff4f1}
.stas-eg.eg-excess-mode .eg-status{color:#922b1b;font-weight:700}
.stas-eg.eg-excess-mode .eg-chosen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.stas-eg.eg-excess-mode .eg-chosen-item{display:flex;flex-direction:column;padding:16px;gap:10px}
.stas-eg.eg-excess-mode .eg-chosen-item img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.stas-eg.eg-excess-mode .eg-remove{position:static;min-width:44px;min-height:44px}
@media(max-width:600px){.stas-eg-launcher .eg-product-colors{gap:8px}.stas-eg-launcher .eg-product-swatch{flex-basis:54px}.stas-eg-launcher .eg-product-swatch img{width:48px;height:48px}}

/* Product template integration: full-width inline block above the purchase form. */
.stas-eg[data-product]:not([data-product="0"]),
.stas-eg-launcher[data-product]:not([data-product="0"]):not(.eg-product-mounted){display:none!important}
.stas-eg-launcher.eg-product-inline{position:static!important;inset:auto!important;float:none!important;clear:both;transform:none!important;z-index:auto!important;width:100%;max-width:100%;min-width:0;flex:0 0 100%;grid-column:1 / -1;margin:18px 0!important;padding:18px!important;box-shadow:none!important;background:linear-gradient(110deg,#faf7ff,#f0e6ff)!important;border:1px solid #e0cef7!important;border-radius:16px;gap:12px;align-items:stretch}
.stas-eg-launcher.eg-product-inline[hidden]{display:none!important}
.stas-eg-launcher.eg-product-inline .eg-launcher-copy{flex-basis:100%;min-width:0}
.stas-eg-launcher.eg-product-inline .eg-open{width:100%;white-space:normal;line-height:1.5;min-height:46px}
.stas-eg-launcher.eg-product-inline .eg-product-colors{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:12px 8px;overflow:visible;padding:8px 4px;max-height:none}
.stas-eg-launcher.eg-product-inline .eg-product-swatch{width:100%;min-width:0;max-width:90px;justify-self:center}
.stas-eg-launcher.eg-product-inline .eg-product-color-name{max-width:100%}
.stas-eg-launcher.eg-product-inline .eg-locked-card{background:transparent;border:0;padding:0}
.stas-eg-launcher.eg-product-inline.has-excess{border:2px solid #a33a27!important}
@media(max-width:600px){.stas-eg-launcher.eg-product-inline{padding:14px!important}.stas-eg-launcher.eg-product-inline .eg-product-colors{grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:10px 6px}}

/* 0.6: compact viewport-bound picker with always-visible actions. */
.stas-eg-dialog{width:min(860px,calc(100vw - 24px));height:auto;max-height:94vh;max-height:94dvh;overflow:hidden;border-radius:18px}
.stas-eg-dialog>.stas-eg{display:flex;flex-direction:column;max-height:94vh;max-height:94dvh;min-height:0}
.stas-eg-dialog .eg-modal-topbar{position:static;flex-shrink:0;padding:4px 14px;gap:8px}
.stas-eg-dialog .eg-close{width:44px;height:44px}
.stas-eg-dialog .eg-header{flex-shrink:0;padding:10px 16px;gap:12px;flex-direction:row;align-items:center}
.stas-eg-dialog h2{font-size:23px;margin:3px 0 5px}
.stas-eg-dialog .eg-eyebrow{font-size:10px;letter-spacing:.5px}
.stas-eg-dialog .eg-header p{font-size:12px;line-height:1.45}
.stas-eg-dialog .eg-counter{min-width:76px;padding:7px 10px;gap:0;flex-direction:column;border-radius:12px}
.stas-eg-dialog .eg-counter strong{font-size:24px}
.stas-eg-dialog .eg-counter span{font-size:10px}
.stas-eg-dialog .eg-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.stas-eg-dialog .eg-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px}
.stas-eg-dialog .eg-controls{gap:10px;min-width:0}
.stas-eg-dialog .eg-card{padding:10px;border-radius:12px;min-width:0}
.stas-eg-dialog h3{font-size:14px;margin-bottom:8px}
.stas-eg-dialog .eg-wood-grid,.stas-eg-dialog .eg-color-grid{display:flex;gap:6px;overflow:auto;max-height:180px;flex-wrap:wrap;align-content:flex-start}
.stas-eg-dialog .eg-swatch{flex:0 0 54px;width:54px;padding:3px;gap:3px;font-size:11px;line-height:1.3}
.stas-eg-dialog .eg-swatch img{width:44px;height:44px;aspect-ratio:1}
.stas-eg-dialog .eg-swatch span{max-width:100%;overflow-wrap:anywhere}
.stas-eg-dialog .eg-caption{font-size:11px;margin-top:6px;line-height:1.4}
.stas-eg-dialog .eg-preview-panel{min-width:0;display:block}
.stas-eg-dialog .eg-figure{height:clamp(180px,30vh,280px);height:clamp(180px,30dvh,280px);max-height:none;aspect-ratio:auto;margin:0;border-radius:12px}
.stas-eg-dialog .eg-result{object-fit:contain}
.stas-eg-dialog .eg-result-label{bottom:7px;right:7px;left:7px;padding:5px 9px;border-radius:8px}
.stas-eg-dialog .eg-result-label small{display:none}
.stas-eg-dialog .eg-result-label strong{font-size:14px}
.stas-eg-dialog .eg-selection{margin:0 12px 10px;padding:10px;border-radius:12px}
.stas-eg-dialog .eg-selection-header{margin-bottom:6px;gap:8px;flex-direction:row;align-items:center}
.stas-eg-dialog .eg-selection-header h3{margin:0;font-size:13px}
.stas-eg-dialog .eg-chosen-grid{gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:5px 3px}
.stas-eg-dialog .eg-chosen-item,.stas-eg-dialog .eg-slot{flex:0 0 72px;width:72px;min-height:54px;padding:5px;gap:2px;font-size:10px}
.stas-eg-dialog .eg-chosen-item img{width:28px;height:28px}
.stas-eg-dialog .eg-chosen-item{padding-left:27px}
.stas-eg-dialog .eg-remove{left:0;top:50%;transform:translateY(-50%);width:30px;height:44px;border-radius:8px}
.stas-eg-dialog .eg-status{font-size:12px;margin-top:5px;line-height:1.4}
.stas-eg-dialog .eg-message{font-size:12px;min-height:0;margin-top:4px}
.stas-eg-dialog .eg-message:empty{display:none}
.stas-eg-dialog .eg-modal-footer{flex-shrink:0;padding:8px 12px;background:#fff}
.stas-eg-dialog .eg-free-reminder{font-size:11px;line-height:1.4;margin-bottom:6px}
.stas-eg-dialog .eg-modal-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
.stas-eg-dialog .eg-modal-actions button{width:auto;min-height:44px;padding:9px 12px;font-size:13px;flex:1}
.stas-eg-dialog .eg-modal-actions .eg-primary{flex:2;box-shadow:none}
.stas-eg-dialog .eg-excess-mode h2,.stas-eg-dialog .eg-excess-mode .eg-header p{color:#722a1f}
.stas-eg-dialog .eg-excess-mode .eg-counter strong{color:#722a1f}
.stas-eg-dialog .eg-excess-mode .eg-counter{background:#fff;border-color:#e9c4bc;color:#722a1f}
.stas-eg-dialog .eg-excess-mode .eg-chosen-grid{display:flex;flex-wrap:wrap}
.stas-eg-dialog .eg-excess-mode .eg-chosen-item{flex:0 0 100px;width:100px;padding:8px;gap:4px}
.stas-eg-dialog .eg-excess-mode .eg-remove{position:static;transform:none;width:44px;height:44px}
@media(max-width:600px){
 .stas-eg-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);height:auto;border-radius:14px}
 .stas-eg-dialog>.stas-eg{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}
 .stas-eg-dialog .eg-header{padding:8px 10px}
 .stas-eg-dialog h2{font-size:19px}
 .stas-eg-dialog .eg-header p{font-size:11px}
 .stas-eg-dialog .eg-eyebrow{display:none}
 .stas-eg-dialog .eg-layout{display:flex;flex-direction:column;gap:6px;padding:8px}
 .stas-eg-dialog .eg-preview-panel{order:-1}
 .stas-eg-dialog .eg-figure{height:clamp(90px,19dvh,150px)}
 .stas-eg-dialog .eg-preview-panel>.eg-caption{font-size:10px;margin-top:3px}
 .stas-eg-dialog .eg-controls{gap:5px}
 .stas-eg-dialog .eg-card{padding:6px 8px}
 .stas-eg-dialog h3{font-size:12px;margin-bottom:3px}
 .stas-eg-dialog .eg-wood-grid,.stas-eg-dialog .eg-color-grid{flex-wrap:nowrap;max-height:none;padding-bottom:2px}
 .stas-eg-dialog .eg-swatch{flex-basis:49px;width:49px;font-size:10px}
 .stas-eg-dialog .eg-swatch img{width:36px;height:36px}
 .stas-eg-dialog .eg-card .eg-caption{display:none}
 .stas-eg-dialog .eg-selection{margin:0 8px 6px;padding:6px 8px}
 .stas-eg-dialog .eg-free{font-size:10px;padding:2px 5px}
 .stas-eg-dialog .eg-modal-footer{padding:7px 10px;padding-bottom:max(7px,env(safe-area-inset-bottom))}
 .stas-eg-dialog .eg-modal-actions{gap:6px}
 .stas-eg-dialog .eg-modal-actions .eg-primary{flex:0 0 100%}
 .stas-eg-dialog .eg-modal-actions button{font-size:12px;padding:7px}
}
/* Replace the corner bubble with a slim, centered scroll-down bar. */
.stas-eg-launcher.stas-eg-floating{inset: auto 0 0;inset-inline-start:0;width:100%;max-width:none;margin:0;border:0;border-top:1px solid #e3d8f1;border-radius:0;background:#fffffff5;box-shadow:0 -3px 16px #241c3214;padding:6px 64px;padding-bottom:max(6px,env(safe-area-inset-bottom));display:flex;justify-content:center;gap:0;transform:translateY(110%);visibility:hidden;transition:transform .2s,visibility .2s;z-index:99990}
.stas-eg-launcher.stas-eg-floating.eg-bar-visible,.stas-eg-launcher.stas-eg-floating:focus-within{transform:translateY(0);visibility:visible}
.stas-eg-launcher.stas-eg-floating[hidden]{display:none}
.stas-eg-floating .eg-open{width:auto;max-width:100%;min-height:44px;padding:9px 18px;font-size:14px;border-radius:10px;line-height:1.3}
.stas-eg-floating .eg-launcher-message{position:absolute;bottom:100%;left:64px;right:64px;width:auto;font-size:12px}
@media(max-width:600px){.stas-eg-launcher.stas-eg-floating{inset:auto 0 0;inset-inline-start:0;max-width:none;padding-left:58px;padding-right:58px}.stas-eg-floating .eg-open{font-size:12px;padding:8px 10px}.stas-eg-floating .eg-launcher-message{left:58px;right:58px}}

/* 0.6.1: six swatches per row; center every incomplete row. */
.stas-eg-launcher.eg-product-inline .eg-product-colors,
.stas-eg-dialog .eg-color-grid{
 display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;
 gap:10px 8px;width:100%;max-height:none;overflow:visible;padding:6px 0;
}
.stas-eg-launcher.eg-product-inline .eg-product-colors>.eg-product-swatch,
.stas-eg-dialog .eg-color-grid>.eg-color{
 box-sizing:border-box;flex:0 0 calc((100% - 40px)/6);width:calc((100% - 40px)/6);
 min-width:0;max-width:none;margin:0;padding:3px;align-items:center;
}
.stas-eg-launcher.eg-product-inline .eg-product-swatch img{max-width:100%;height:auto;aspect-ratio:1;width:56px}
.stas-eg-dialog .eg-color-grid>.eg-color img{max-width:100%;height:auto;aspect-ratio:1;width:44px}
.stas-eg-launcher.eg-product-inline .eg-product-color-name{width:100%;overflow-wrap:anywhere}
.stas-eg-dialog .eg-color-grid>.eg-color span{width:100%;overflow-wrap:anywhere}
/* Override theme hover/focus/active pink, scoped to this plugin only. */
.stas-eg button:hover,.stas-eg button:focus,.stas-eg button:active,
.stas-eg-launcher button:hover,.stas-eg-launcher button:focus,.stas-eg-launcher button:active{
 background:#e5e5e5!important;background-image:none!important;color:#262626!important;border-color:#999!important;
}
.stas-eg .eg-swatch.is-active{background:#eee;border-color:#686868}
.stas-eg .eg-message,.stas-eg-launcher .eg-launcher-message{color:#454545}
.stas-eg.eg-excess-mode .eg-header{background:#eee}
@media(max-width:600px){
 .stas-eg-launcher.eg-product-inline .eg-product-colors,.stas-eg-dialog .eg-color-grid{gap:8px 4px}
 .stas-eg-launcher.eg-product-inline .eg-product-colors>.eg-product-swatch,
 .stas-eg-dialog .eg-color-grid>.eg-color{flex-basis:calc((100% - 20px)/6);width:calc((100% - 20px)/6);padding:2px}
 .stas-eg-launcher.eg-product-inline .eg-product-swatch img{width:48px}
 .stas-eg-dialog .eg-color-grid>.eg-color img{width:36px}
}

/* 0.6.3: contained close control and caption below the complete image. */
.stas-eg-dialog .eg-modal-topbar{padding:6px 14px}
.stas-eg-dialog .stas-eg .eg-close{
 display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;
 padding:0;margin:0;border:1px solid #d6d6d6;border-radius:8px;background:#f3f3f3;color:#333;
 font:400 20px/1 Arial,sans-serif;box-shadow:none;outline:none;transform:none;
}
.stas-eg-dialog .stas-eg .eg-close:focus-visible{outline:2px solid #555;outline-offset:-4px}
.stas-eg-dialog .eg-figure{display:grid;grid-template-rows:minmax(0,1fr) auto;background:#f1f1f1}
.stas-eg-dialog .eg-figure .eg-result{min-height:0;width:100%;height:100%;object-fit:contain}
.stas-eg-dialog .eg-figure .eg-result-label{
 position:static;inset:auto;display:block;margin:0;padding:7px 10px;border:0;border-top:1px solid #e0e0e0;
 border-radius:0;background:#f5f5f5;color:#333;text-align:center;backdrop-filter:none;
 font-style:normal!important;transform:none!important;line-height:1.4;
}
.stas-eg-dialog .eg-result-label strong{font-size:13px;font-weight:600;font-style:normal!important;transform:none!important}
@media(max-width:600px){
 .stas-eg-dialog .stas-eg .eg-close{flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px;font-size:20px}
 .stas-eg-dialog .eg-figure{height:clamp(120px,23dvh,180px)}
 .stas-eg-dialog .eg-figure .eg-result-label{padding:5px 8px}
}

/* 0.6.4: equally sized before/after images, original wood above the preview. */
.stas-eg-dialog .eg-preview-panel .eg-original-figure{margin-bottom:10px}
.stas-eg-dialog .eg-figure .eg-wood-original{display:block;min-height:0;width:100%;height:100%;object-fit:contain}

/* 0.6.5: image-only previews; chosen gifts stay above the action footer. */
.stas-eg-dialog .eg-figure{grid-template-rows:minmax(0,1fr);height:clamp(150px,24vh,220px);height:clamp(150px,24dvh,220px)}
.stas-eg-dialog>.stas-eg>.eg-selection{flex-shrink:0;margin:0 12px 6px;padding:8px 10px}
.stas-eg-dialog>.stas-eg>.eg-selection .eg-selection-header{margin-bottom:3px}
.stas-eg-dialog>.stas-eg>.eg-selection .eg-chosen-grid{padding:3px;max-height:100px}
.stas-eg-dialog>.stas-eg>.eg-selection .eg-status{margin-top:3px}
@media(max-width:600px){
 .stas-eg-dialog .eg-figure{height:clamp(100px,18dvh,150px)}
 .stas-eg-dialog>.stas-eg>.eg-selection{margin:0 8px 5px;padding:6px 8px}
}
