/* Shared purchase controls: cream surfaces, olive actions, progressive color selection. */
.emm-purchase-view,.emm-purchase-view *,.emm-premium-dialog,.emm-color-picker{box-sizing:border-box}
.emm-purchase-view{--buy-cream:#fcf5ed;--buy-line:#e6d7c8;--buy-olive:#53651e;--buy-ink:#302b22;display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.65fr);gap:16px;direction:rtl;color:var(--buy-ink);font-family:inherit}
.emm-purchase-view :is(button,input),.emm-color-picker :is(button,input),.emm-qb-header button{font:inherit;color:inherit}
.emm-purchase-view button,.emm-color-picker button,.emm-qb-header button{border:1px solid var(--buy-line,#dfd0bf);background:#fffaf3;border-radius:16px;min-height:44px;cursor:pointer;padding:8px 12px;box-shadow:2px 3px 7px #67401b0d}
.emm-purchase-view button:disabled,.emm-color-picker button:disabled{opacity:.45;cursor:not-allowed}
.emm-purchase-view :is(button,input,summary):focus-visible,.emm-color-picker :is(button,input):focus-visible,.emm-qb-header button:focus-visible{outline:3px solid #7d8b3d;outline-offset:3px}
.emm-purchase-selection,.emm-purchase-summary{min-width:0}.emm-purchase-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.emm-purchase-section-title h2{font-size:1rem;margin:0}.emm-purchase-section-title button{font-size:.85rem;color:#53651e;border-color:#a7ae71;border-radius:30px}
.emm-purchase-swatches{display:flex;gap:8px;flex-wrap:wrap;margin-block:12px 16px}.emm-purchase-swatches button{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:90px;border:0;box-shadow:none;background:transparent;padding:4px;font-size:.75rem;overflow-wrap:anywhere}
.emm-color-dot{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--swatch,#eee5da);border:2px solid #fff;box-shadow:0 0 0 1px #cdbda8,2px 3px 5px #533d2520}.emm-color-dot.is-unset{background:repeating-linear-gradient(45deg,#fffaf3 0 4px,#e1d4c2 4px 6px)}
[aria-pressed=true]>.emm-color-dot{outline:2px solid #677730;outline-offset:3px}[aria-pressed=true]>.emm-color-dot:after{content:'✓';color:#fff;font-size:18px;text-shadow:0 1px 3px #000,0 0 3px #000}
.emm-purchase-empty{padding:24px 16px;border:1px dashed #cfc0ab;border-radius:18px;color:#736450;line-height:1.9;font-size:.9rem}
.emm-color-group{position:relative;background:linear-gradient(135deg,#fffaf5,#f8ebe3);border:1px solid #eed8ce;border-radius:20px;box-shadow:2px 4px 8px #8d583017;padding:8px 12px;margin-block:10px;min-width:0}
.emm-color-group summary{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:46px;list-style:none;font-size:.95rem}.emm-color-group summary:after{content:'⌄';margin-inline-start:auto;color:#6f633e}.emm-color-group[open] summary:after{transform:rotate(180deg)}.emm-color-group summary::-webkit-details-marker{display:none}.emm-group-count{font-size:.75rem;color:#7b6c58}
.emm-color-group .emm-remove-color{font-size:.75rem;min-height:32px;padding:2px 8px;box-shadow:none;float:left}.emm-size-row{clear:both;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #ebded1;min-width:0}.emm-size-description{min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.emm-size-description strong{font-size:.9rem}.emm-size-description small{font-size:.75rem;color:#786b5b;line-height:1.6}.emm-size-row.is-unavailable{opacity:.55}
.emm-quantity-stepper{display:flex;align-items:center;direction:rtl;background:#fffaf5;border:1px solid #e6d4c1;border-radius:24px;padding:2px;box-shadow:inset 1px 2px 4px #65442113}.emm-quantity-stepper button{min-width:38px;min-height:40px;border:0;border-radius:50%;padding:0;box-shadow:none;font-size:1.2rem}.emm-quantity-stepper input{width:44px;min-width:0;min-height:40px;border:0!important;background:transparent;text-align:center;font-size:16px;font-weight:700;padding:0;direction:ltr;color:#302b22}.emm-quantity-stepper input::-webkit-inner-spin-button{appearance:none}.emm-quantity-stepper input[type=number]{-moz-appearance:textfield}
.emm-purchase-summary{background:#fff8ef;border:1px solid #ecdfcf;border-radius:22px;padding:16px;align-self:start;box-shadow:3px 5px 14px #70502e14;position:sticky;top:16px}.emm-purchase-prices{display:flex;gap:8px}.emm-purchase-prices>section{min-width:0;flex:1;padding:12px 8px;border:1px solid #eadac8;border-radius:18px;text-align:center;background:#fffaf3}.emm-purchase-prices small{display:block;line-height:1.8;font-size:.78rem}.emm-purchase-prices strong{display:block;line-height:1.8;font-size:1.1rem;overflow-wrap:anywhere}.emm-purchase-prices .is-wholesale{background:#eef0c8;border-color:#d6dc9e;color:#465916}.emm-purchase-progress-text{font-size:.83rem;color:#53651e;font-weight:700;line-height:1.8;margin-block:14px 6px}.emm-purchase-progress{width:100%;height:10px;border:0;border-radius:12px;appearance:none;background:#ece3d6}.emm-purchase-progress::-webkit-progress-bar{background:#ece3d6;border-radius:12px}.emm-purchase-progress::-webkit-progress-value{background:#667d2a;border-radius:12px}.emm-purchase-progress::-moz-progress-bar{background:#667d2a;border-radius:12px}.emm-purchase-count{font-size:.88rem;line-height:1.8}.emm-purchase-amount{display:block;font-size:1.2rem;overflow-wrap:anywhere}.emm-purchase-note{background:#f5eadd;border-radius:14px;padding:10px;font-size:.8rem;line-height:1.9;color:#74614b}.emm-purchase-status{font-size:.8rem;line-height:1.8;min-height:2.8em;margin-block:10px}.emm-purchase-actions{display:flex;flex-direction:column;gap:8px}.emm-purchase-actions button{min-height:50px;font-size:.9rem;font-weight:700;border-color:#788348}.emm-purchase-view .emm-purchase-primary,.emm-color-picker .emm-purchase-primary{color:#fff;background:linear-gradient(135deg,#657b2d,#465812);border-color:#65732c;box-shadow:2px 5px 10px #4c5e2025}
.emm-premium-dialog{border:1px solid #fff8ee;border-radius:28px;padding:0;width:min(1120px,94vw);max-width:94vw;max-height:92dvh;background:#fcf4eb;color:#302b22;box-shadow:12px 20px 60px #241c1644;overflow:hidden;font-family:inherit}.emm-premium-dialog[open]{display:flex;flex-direction:column}.emm-premium-dialog::backdrop,.emm-color-picker::backdrop{background:#2b241d80;backdrop-filter:blur(5px)}.emm-qb-header{display:flex;justify-content:space-between;align-items:start;padding:18px 24px;gap:12px;flex:none;border-bottom:1px solid #eadfd3}.emm-qb-header h2{font-size:1.3rem;margin:4px 0;line-height:1.5}.emm-qb-header p{font-size:.8rem;margin:0;color:#796a55}.emm-eyebrow{font-size:.75rem;color:#68782c}.emm-qb-header button{width:44px;flex:none}.emm-qb-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:18px 24px;display:grid;grid-template-columns:minmax(140px,.35fr) minmax(0,1fr);align-items:start;gap:20px}.emm-qb-preview{min-width:0}.emm-qb-preview img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:18px;background:#f5e7da}.emm-qb-preview p{font-size:.85rem;line-height:1.8;overflow-wrap:anywhere}.emm-qb-loading{padding:0 24px;margin:8px 0;font-size:.9rem;line-height:1.9}.emm-qb-loading:empty{display:none}
.emm-color-picker{box-sizing:border-box;width:min(520px,94vw);max-height:85dvh;overflow:auto;border:1px solid #fff9f0;border-radius:26px;background:#fcf4eb;color:#302b22;padding:20px;font-family:inherit}.emm-color-picker header{display:flex;justify-content:space-between;align-items:center;gap:12px}.emm-color-picker h2{font-size:1.2rem}.emm-color-picker input{width:100%;padding:12px;border:1px solid #dacbb8;border-radius:16px;background:#fffaf3;font-size:16px}.emm-color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-block:16px;max-height:45dvh;overflow:auto;padding:5px}.emm-color-grid button{min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:100px;font-size:.85rem}.emm-color-grid button[hidden]{display:none}.emm-color-grid .emm-color-dot{width:40px;height:40px}.emm-color-choice[aria-pressed=true]{border-color:#718133;background:#f1efda}.emm-color-picker>.emm-purchase-primary{position:sticky;bottom:0;width:100%;min-height:50px}
@media(min-width:1280px){.emm-color-group[open]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}.emm-color-group summary{grid-column:1/-1}.emm-color-group .emm-remove-color{grid-column:1/-1;justify-self:end}.emm-size-row{display:flex;flex-direction:column;align-items:stretch}.emm-size-row .emm-quantity-stepper{align-self:center}}
@media(max-width:1100px){.emm-premium-dialog .emm-qb-scroll{grid-template-columns:120px minmax(0,1fr)}.emm-premium-dialog .emm-purchase-view{grid-template-columns:minmax(0,1fr) 220px}.emm-purchase-view[data-mode=inline]{grid-template-columns:minmax(0,1fr)}.emm-purchase-view[data-mode=inline] .emm-purchase-summary{position:static}}
@media(max-width:767px){.emm-premium-dialog{width:100%;max-width:100%;max-height:96dvh;margin:auto 0 0;border-radius:26px 26px 0 0}.emm-qb-header{padding:14px 16px}.emm-qb-header h2{font-size:1.05rem}.emm-qb-scroll,.emm-premium-dialog .emm-qb-scroll{display:block;padding:12px 16px}.emm-qb-preview{display:flex;gap:12px;align-items:center;margin-bottom:16px}.emm-qb-preview img{width:86px;height:86px;flex:none}.emm-qb-preview p{margin:0;font-size:.8rem;max-height:5.4em;overflow:hidden}.emm-purchase-view,.emm-premium-dialog .emm-purchase-view{display:flex;flex-direction:column;gap:0}.emm-purchase-selection{order:2}.emm-purchase-summary{display:contents}.emm-purchase-prices{order:0;margin-bottom:10px}.emm-purchase-progress-text{order:0;margin:8px 0}.emm-purchase-progress{order:0;margin-bottom:14px}.emm-purchase-count{order:3;margin:10px 0 4px}.emm-purchase-amount{order:3}.emm-purchase-note{order:3;margin-bottom:4px}.emm-purchase-status{order:3;min-height:0}.emm-purchase-actions{order:4;position:sticky;bottom:-12px;z-index:5;flex-direction:row;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#fcf4eb;border-top:1px solid #e7d5c2;margin-top:10px}.emm-purchase-actions button{min-width:0;flex:1;font-size:.8rem;line-height:1.5;padding:8px}.emm-purchase-actions button:first-child{flex:1.5}.emm-purchase-view[data-mode=inline] .emm-purchase-actions{position:fixed;left:0;right:0;bottom:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #755c2420;z-index:25}.emm-purchase-view[data-mode=inline]{padding-bottom:90px}.emm-color-picker{width:100%;max-width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;padding:18px}.emm-color-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.emm-color-grid button{padding:8px 4px;font-size:.8rem}.emm-color-group .emm-color-dot{width:26px;height:26px}.emm-size-row{grid-template-columns:minmax(0,1fr) auto}.emm-quantity-stepper button{min-width:38px;min-height:44px}.emm-purchase-view [hidden]{display:none!important}}
@media(max-width:359px){.emm-color-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.emm-quantity-stepper button{min-width:34px}.emm-quantity-stepper input{width:36px}.emm-size-description small{font-size:.72rem}}
@media(prefers-reduced-motion:no-preference){.emm-premium-dialog[open],.emm-color-picker[open]{animation:emm-buy-in .18s ease-out}@keyframes emm-buy-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
/* An explicit inner grid keeps native <details> content compact across browsers. */
.emm-size-list{clear:both;display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
@media(min-width:1280px){.emm-color-group[open]{display:block}.emm-size-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.emm-size-description small{font-size:.75rem}.emm-size-row .emm-quantity-stepper button{min-width:32px}.emm-size-row .emm-quantity-stepper input{width:34px}}
.emm-color-group summary .emm-remove-color{float:none;margin-inline-start:auto;min-width:32px;border:0;font-size:1.2rem}.emm-color-group summary:has(.emm-remove-color):after{margin-inline-start:0}
@media(min-width:1280px){.emm-size-row{padding:6px 0;gap:6px}.emm-size-description strong{line-height:1.5}.emm-size-description small{line-height:1.4}.emm-size-note{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emm-size-description{gap:2px}}
@media(min-width:768px) and (max-width:1100px){.emm-purchase-view[data-mode=inline]{display:flex;flex-direction:column}.emm-purchase-view[data-mode=inline] .emm-purchase-summary{display:contents}.emm-purchase-view[data-mode=inline] .emm-purchase-prices{order:0}.emm-purchase-view[data-mode=inline] .emm-purchase-progress-text,.emm-purchase-view[data-mode=inline] .emm-purchase-progress{order:1}.emm-purchase-view[data-mode=inline] .emm-purchase-selection{order:2}.emm-purchase-view[data-mode=inline] :is(.emm-purchase-count,.emm-purchase-amount,.emm-purchase-note,.emm-purchase-status,.emm-purchase-actions){order:3}}
.emm-premium-dialog{max-height:92vh;max-height:calc(var(--emm-buy-viewport,100dvh)*.92)}.emm-color-picker{max-height:85vh;max-height:calc(var(--emm-buy-viewport,100dvh)*.85)}
@media(max-width:767px){.emm-premium-dialog{max-height:calc(var(--emm-buy-viewport,100dvh)*.96)}.emm-purchase-view[data-mode=inline] .emm-purchase-actions{bottom:var(--emm-buy-keyboard-offset,0px)}}
.emm-buy-keyboard :is(.emm-premium-dialog,.emm-color-picker){margin-top:auto;margin-bottom:var(--emm-buy-keyboard-offset,0px)}
.emm-qb-preview img[hidden]{display:none}
.emm-quantity-stepper button,.emm-size-row .emm-quantity-stepper button{min-width:44px;min-height:44px}

/* Tier feedback shared by the existing purchase view; no second pricing engine. */
.emm-purchase-progress-text{padding:9px 10px;border-radius:12px;background:#fbe3de;color:#8a3436;text-align:center;margin-block:10px 7px}
.emm-purchase-progress-text.is-reached{background:#e8edcf;color:#465a24}
.emm-purchase-progress{height:12px;direction:rtl}
.emm-purchase-progress-meta,.emm-purchase-limit{font-size:.74rem;line-height:1.65;color:#66553d;margin:6px 0}
.emm-purchase-limit{color:#53651e;font-weight:700}
.emm-purchase-summary [hidden]{display:none!important}
@media(max-width:767px){.emm-purchase-progress-meta,.emm-purchase-limit{order:0}}

/* RC15 — compact Quick Buy composition of the same RC14 purchase view. */
.emm-premium-dialog{--qb-cream:#fff8f0;--qb-olive:#405c1e;--qb-pink:#f9dfe2;box-sizing:border-box;width:min(1260px,96vw);max-width:96vw;max-height:calc(var(--emm-buy-viewport,100dvh)*.94);margin:auto;background:linear-gradient(145deg,#fff9f3,#f4e8dc);border:1px solid #fff;border-radius:28px;overflow:hidden}
.emm-premium-dialog [hidden]{display:none!important}
.emm-premium-dialog .emm-qb-header{padding:12px 20px;align-items:center;background:#fff8f1;box-shadow:0 3px 12px #7852320c;z-index:1}
.emm-premium-dialog .emm-qb-header h2{font-size:clamp(1.05rem,1.6vw,1.4rem);margin:2px 0;overflow-wrap:anywhere}
.emm-premium-dialog .emm-qb-header button{border-radius:50%;width:44px;height:44px;padding:0;color:#785132}
.emm-premium-dialog .emm-qb-scroll{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.28fr);grid-template-areas:'controls preview';gap:12px;padding:12px 15px;overflow:auto;scrollbar-width:none;align-items:start;direction:rtl}
.emm-premium-dialog .emm-qb-scroll::-webkit-scrollbar{display:none}
.emm-premium-dialog [data-qb-content]{grid-area:controls;min-width:0}
.emm-premium-dialog .emm-qb-preview{grid-area:preview;position:sticky;top:0;background:linear-gradient(145deg,#fffaf5,#f6e8db);border:1px solid #fff;border-radius:20px;padding:9px;box-shadow:0 7px 18px #78523210;min-width:0}
.emm-premium-dialog .emm-qb-preview img{aspect-ratio:1;object-fit:contain;border-radius:15px;width:100%;background:#f1e3d7}
.emm-premium-dialog .emm-qb-preview p{margin:8px 2px 0;font-size:.79rem;color:#675747;line-height:1.8}
.emm-premium-dialog .emm-qb-preview p:empty{display:none}
.emm-premium-dialog .emm-purchase-view[data-mode=modal]{display:grid;grid-template-columns:minmax(0,.80fr) minmax(0,1.2fr);grid-template-areas:'price selection';gap:12px;direction:rtl;align-items:start;min-width:0}
.emm-premium-dialog .emm-purchase-selection,.emm-premium-dialog .emm-purchase-summary{background:linear-gradient(145deg,#fffaf5,#f8ece2);border:1px solid #fff;border-radius:22px;padding:12px;box-shadow:0 6px 15px #78523212;min-width:0}
.emm-premium-dialog .emm-purchase-selection{grid-area:selection}
.emm-premium-dialog .emm-purchase-summary{grid-area:price;position:static;display:flex;flex-direction:column;gap:9px}
.emm-premium-dialog .emm-hero-icon{width:21px;height:21px;flex:0 0 auto;color:#90632d;vertical-align:middle}
.emm-premium-dialog .emm-purchase-section-title h2{display:flex;align-items:center;gap:7px;line-height:1.6;font-size:1rem}
.emm-premium-dialog .emm-hero-tier-panel,.emm-premium-dialog .emm-hero-order-panel{display:flex;flex-direction:column;gap:9px;min-width:0}
.emm-premium-dialog .emm-purchase-prices{display:flex;flex-direction:column;gap:8px;margin:0}
.emm-premium-dialog .emm-purchase-prices>section{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label current' 'threshold old';gap:4px 8px;align-items:center;min-width:0;background:linear-gradient(145deg,#fff9f3,#f7e9de);border:1px solid #fff;border-radius:15px;padding:10px;box-shadow:0 3px 8px #7852320f;text-align:right}
.emm-premium-dialog .emm-purchase-prices .is-wholesale{background:linear-gradient(145deg,#fbf9e9,#edf0d6);border-color:#e7e9d3}
.emm-premium-dialog .emm-hero-price-label{grid-area:label;display:flex;align-items:center;gap:5px;font-weight:800;font-size:.79rem;line-height:1.5;color:#473329}
.emm-premium-dialog .emm-purchase-prices strong{grid-area:current;justify-self:end;color:#405c1e;font-size:clamp(1rem,1.35vw,1.35rem);font-weight:900;line-height:1.4;min-width:0}
.emm-premium-dialog .emm-purchase-prices del{grid-area:old;justify-self:end;font-size:.73rem;color:#877767}
.emm-premium-dialog .emm-purchase-prices small:last-child:not(.emm-hero-price-label){grid-area:threshold;justify-self:start;background:#e7ebd2;border-radius:999px;padding:3px 8px;color:#435923;font-size:.71rem}
.emm-premium-dialog .emm-money{display:inline-flex!important;direction:rtl;align-items:baseline;justify-content:flex-end;gap:.28em;max-width:100%;min-width:0;unicode-bidi:isolate;flex-wrap:nowrap}
.emm-premium-dialog .emm-money-number{font-variant-numeric:tabular-nums;unicode-bidi:isolate;min-width:0;overflow-wrap:normal;white-space:nowrap}
.emm-premium-dialog .emm-money-unit{font-size:.63em;font-weight:650;white-space:nowrap;unicode-bidi:isolate}
.emm-premium-dialog .emm-purchase-progress-text{margin:0;padding:10px 6px;background:#f9dfe2;color:#a91f46;font-size:.85rem;line-height:1.6}
.emm-premium-dialog .emm-purchase-progress-text.is-reached{background:#e6edcc;color:#415d1e}
.emm-premium-dialog .emm-purchase-progress{height:11px;margin:0}
.emm-premium-dialog .emm-purchase-progress-meta,.emm-premium-dialog .emm-purchase-limit{margin:0;font-size:.73rem;line-height:1.65}
.emm-premium-dialog .emm-hero-order-summary{background:linear-gradient(145deg,#fffaf4,#f8ebdf);border:1px solid #fff;border-radius:15px;padding:4px 10px;min-width:0}
.emm-premium-dialog .emm-hero-order-row{display:flex;align-items:center;justify-content:space-between;gap:6px 8px;flex-wrap:wrap;border-bottom:1px solid #eadacf;padding:8px 0;min-height:42px}
.emm-premium-dialog .emm-hero-order-row:last-of-type{border:0}
.emm-premium-dialog .emm-hero-order-label{display:flex;align-items:center;gap:5px;font-size:.8rem;font-weight:700;color:#473329}
.emm-premium-dialog .emm-hero-order-value,.emm-premium-dialog .emm-purchase-amount{font-size:.86rem;font-weight:800;margin:0;color:#405c1e;line-height:1.5}
.emm-premium-dialog .emm-purchase-amount{font-size:1.25rem}
.emm-premium-dialog .emm-hero-cart-info{font-size:.73rem;color:#675747;margin:5px 0;line-height:1.5}
.emm-premium-dialog .emm-purchase-note,.emm-premium-dialog .emm-purchase-status{margin:0;font-size:.73rem;line-height:1.8;min-height:0}
.emm-premium-dialog .emm-purchase-status:empty{display:none}
.emm-premium-dialog .emm-color-group[open]{display:block;margin:0}
.emm-premium-dialog .emm-color-group{background:linear-gradient(145deg,#fff7f2,#f8e7e1);border:1px solid #fff;border-radius:17px;padding:8px 10px;box-shadow:0 3px 9px #78523212}
.emm-premium-dialog .emm-color-group summary{min-height:42px;gap:8px;font-size:.85rem}
.emm-premium-dialog .emm-color-group summary .emm-remove-color{margin-inline-start:auto;width:32px;height:32px;min-width:32px;min-height:32px;border-radius:50%;border:1px solid #ead0c3;color:#9e5148;padding:0;display:grid;place-items:center}
.emm-premium-dialog .emm-size-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0}
.emm-premium-dialog .emm-size-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;min-width:0}
.emm-premium-dialog .emm-size-description{gap:3px;align-items:flex-start;min-width:0}
.emm-premium-dialog .emm-hero-size-name{display:flex;align-items:center;gap:5px;font-size:.85rem;line-height:1.5}
.emm-premium-dialog .emm-hero-size-name svg{width:18px;height:18px}
.emm-premium-dialog .emm-size-description small{font-size:.72rem;line-height:1.55;overflow-wrap:break-word;white-space:normal}
.emm-premium-dialog .emm-size-price{color:#435d20;font-weight:800}
.emm-premium-dialog .emm-hero-stock-chip{display:inline-flex;align-items:center;gap:4px;background:#e8edcf;color:#445c20!important;border-radius:999px;padding:2px 7px;font-weight:700}
.emm-premium-dialog .emm-hero-stock-chip:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.emm-premium-dialog .is-unavailable .emm-hero-stock-chip{background:#f4dfdb;color:#a14242!important}
.emm-premium-dialog .emm-quantity-stepper{gap:0;min-height:44px;padding:1px;align-self:center;flex:none}
.emm-premium-dialog .emm-quantity-stepper button{width:42px;min-width:42px;height:44px;min-height:44px;box-shadow:none;padding:0;border:0}
.emm-premium-dialog .emm-quantity-stepper input{width:32px;min-width:32px;font-size:16px}
.emm-premium-dialog .emm-qb-footer{flex:none;padding:9px 15px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #fff;background:linear-gradient(145deg,#fff9f3,#f4e6d8);box-shadow:0 -4px 16px #78523214;z-index:3;min-width:0}
.emm-premium-dialog .emm-qb-footer .emm-purchase-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr);align-items:center;gap:9px;margin:0;padding:0;border:0;position:static;background:none}
.emm-premium-dialog .emm-qb-footer .emm-purchase-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:15px;border:1px solid #7a8b49;padding:8px;font:inherit;font-weight:800;font-size:.86rem;background:#fff9f1;color:#435923;line-height:1.5;min-width:0;box-shadow:0 3px 10px #78523212}
.emm-premium-dialog .emm-qb-footer .emm-purchase-actions .emm-purchase-primary{background:linear-gradient(145deg,#829749,#405c1e);color:#fff;border-color:#647b35;box-shadow:0 5px 12px #405c1e25}
.emm-premium-dialog .emm-qb-footer .emm-purchase-actions button:disabled{opacity:.5;cursor:not-allowed}
.emm-premium-dialog .emm-qb-footer .emm-purchase-actions .emm-hero-action-icon{width:22px;height:22px;color:currentColor}
.emm-premium-dialog .emm-purchase-sticky-info{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:0;color:#405c1e;font-weight:800;font-size:.82rem;text-align:center}
.emm-premium-dialog .emm-ui-toast{position:absolute;inset:auto 12px 90px;z-index:6;max-width:440px;margin:auto;background:#fff8f1;color:#4b392c;padding:12px 16px;border:1px solid #fff;border-radius:16px;box-shadow:0 7px 24px #78523235;font-size:.86rem;font-weight:700;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
.emm-premium-dialog .emm-ui-toast.is-visible{opacity:1;transform:none}.emm-premium-dialog .emm-ui-toast.is-error{background:#f9dfe2;color:#a91f46}.emm-premium-dialog .emm-ui-toast.is-success{background:#e6edcc;color:#415d1e}
.emm-premium-dialog .emm-needs-attention{outline:2px solid #b4866b;outline-offset:1px}
@media(max-width:1050px){.emm-premium-dialog .emm-qb-scroll{grid-template-columns:minmax(0,1fr) minmax(110px,.21fr);gap:10px}.emm-premium-dialog .emm-purchase-view[data-mode=modal]{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:10px}.emm-premium-dialog .emm-purchase-prices>section{grid-template-columns:minmax(0,1fr);grid-template-areas:'label' 'current' 'old' 'threshold';justify-items:start}.emm-premium-dialog .emm-purchase-prices strong,.emm-premium-dialog .emm-purchase-prices del{justify-self:end}}
@media(max-width:899px){.emm-premium-dialog{width:min(620px,100%);max-width:100%;max-height:calc(var(--emm-buy-viewport,100dvh)*.96);margin:auto auto 0;border-radius:25px 25px 0 0}.emm-premium-dialog .emm-qb-header{padding:9px 13px}.emm-premium-dialog .emm-qb-scroll{display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:10px}.emm-premium-dialog .emm-qb-preview{position:static;display:flex;align-items:center;gap:10px;margin:0;padding:7px}.emm-premium-dialog .emm-qb-preview img{width:96px;height:96px;flex:none;object-fit:contain}.emm-premium-dialog .emm-qb-preview p{margin:0;max-height:none}.emm-premium-dialog .emm-purchase-view[data-mode=modal]{display:flex;flex-direction:column;gap:10px;min-width:0}.emm-premium-dialog .emm-purchase-summary{display:contents}.emm-premium-dialog .emm-hero-tier-panel,.emm-premium-dialog .emm-hero-order-panel{background:linear-gradient(145deg,#fffaf5,#f8ece2);border:1px solid #fff;border-radius:18px;padding:10px;box-shadow:0 4px 12px #78523210}.emm-premium-dialog .emm-hero-tier-panel{order:0}.emm-premium-dialog .emm-purchase-selection{order:1;padding:10px}.emm-premium-dialog .emm-hero-order-panel{order:2}.emm-premium-dialog .emm-purchase-prices>section{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label current' 'threshold old'}.emm-premium-dialog .emm-qb-footer{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.emm-premium-dialog .emm-qb-footer .emm-purchase-actions{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:7px}.emm-premium-dialog .emm-purchase-sticky-info{grid-column:1/-1}.emm-premium-dialog .emm-ui-toast{bottom:108px}.emm-premium-dialog .emm-qb-footer .emm-purchase-actions button{font-size:.78rem;gap:5px}.emm-premium-dialog .emm-qb-footer .emm-hero-action-icon{width:19px;height:19px}}
@media(max-width:359px){.emm-premium-dialog .emm-qb-scroll{padding:7px}.emm-premium-dialog .emm-purchase-selection{padding:7px}.emm-premium-dialog .emm-quantity-stepper button{min-width:36px;width:36px}.emm-premium-dialog .emm-quantity-stepper input{width:28px;min-width:28px}.emm-premium-dialog .emm-qb-footer .emm-purchase-actions button{font-size:.72rem}.emm-premium-dialog .emm-purchase-prices strong{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.emm-premium-dialog .emm-ui-toast{transition:none}.emm-premium-dialog .emm-swatch-option,.emm-premium-dialog .emm-color-dot,.emm-premium-dialog .emm-color-dot::after{animation:none!important;transition:none!important}}

.emm-premium-dialog .emm-color-palette{position:relative;isolation:isolate;min-width:0;border:1px solid #fff;border-radius:17px;padding:8px;background:linear-gradient(145deg,#fffaf5,#f7ede3);box-shadow:inset 0 1px 0 #fff}
.emm-premium-dialog .emm-color-palette[hidden],.emm-premium-dialog .emm-color-unlock[hidden],.emm-premium-dialog .emm-palette-hint[hidden],.emm-premium-dialog .emm-swatch-quantity[hidden],.emm-premium-dialog .emm-selected-colors[hidden],.emm-premium-dialog .emm-purchase-section-title button[hidden]{display:none!important}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;width:100%;min-width:0;max-width:88px;min-height:73px;padding:6px 3px;border:1px solid transparent;border-radius:14px;background:transparent;box-shadow:none;transition:background .15s ease,border-color .15s ease;overflow:visible;cursor:pointer}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option .emm-color-name{font-size:.75rem;line-height:1.5;white-space:normal;overflow-wrap:anywhere;min-width:0;color:#49392d;text-align:center;max-width:100%}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option .emm-color-dot{position:relative;display:grid;place-items:center;flex:0 0 auto;width:39px;height:39px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #bba891,0 3px 7px #62482e22;outline:none;transform:none;transition:transform .16s ease,box-shadow .16s ease}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option[aria-pressed=true]{background:#f0f2df;border-color:#dce4c2;box-shadow:none}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option.is-current{background:#e6ecd0;border-color:#7f924d}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option[aria-pressed=true] .emm-color-dot{outline:none;box-shadow:0 0 0 2px #71823f,0 4px 8px #53632d24;transform:none}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option[aria-pressed=true] .emm-color-dot::after{content:'';position:absolute;inset:auto auto -5px -5px;display:block;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#526b29 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8 2.5 2.5L12 5'/%3E%3C/svg%3E") center/12px 12px no-repeat;box-shadow:0 2px 5px #40551f40;text-shadow:none;transform:none;animation:emmCheckIn .16s ease-out}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option:disabled{opacity:.42;cursor:not-allowed}
.emm-premium-dialog .emm-color-palette.is-locked .emm-purchase-swatches{opacity:.48;pointer-events:none}
.emm-premium-dialog .emm-color-unlock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;min-width:132px;max-width:90%;padding:9px 17px;white-space:normal;border:1px solid #fff;border-radius:16px;background:linear-gradient(145deg,#829749,#4c6426);color:#fff;font-weight:800;font-size:.9rem;box-shadow:0 5px 16px #475d3440;z-index:1;cursor:pointer}
.emm-premium-dialog .emm-color-unlock .emm-hero-icon{color:#fff;width:20px;height:20px}
.emm-premium-dialog .emm-palette-hint{color:#6c604d;font-size:.74rem;line-height:1.8;margin:7px 2px 10px}
.emm-premium-dialog .emm-purchase-selection:has(.emm-color-palette.is-locked) .emm-purchase-empty{display:none}
.emm-premium-dialog .emm-color-unlock:focus-visible,.emm-premium-dialog .emm-purchase-swatches .emm-swatch-option:focus-visible{outline:2px solid #526b29;outline-offset:2px}
@media(hover:hover) and (pointer:fine){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option:not(:disabled):hover .emm-color-dot{transform:translateY(-2px) scale(1.06)}.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches .emm-swatch-option:not(:disabled):hover{background:#f6eadf}}
@media(prefers-reduced-motion:reduce){.emm-premium-dialog .emm-purchase-swatches .emm-swatch-option,.emm-premium-dialog .emm-purchase-swatches .emm-color-dot,.emm-premium-dialog .emm-purchase-swatches .emm-color-dot::after{transition:none!important;animation:none!important}}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;max-width:100%;align-items:stretch;isolation:isolate}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-option{flex:none;display:flex;position:relative;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:108px;height:100%;padding:20px 5px 6px;overflow:visible;white-space:normal;word-break:normal;overflow-wrap:normal;border-radius:15px}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-option .emm-color-name{width:100%;max-width:100%;min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.45;font-size:.75rem}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-option .emm-swatch-quantity{width:100%;white-space:nowrap;line-height:1.35;font-size:.68rem}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-remove{position:absolute;inset:auto;top:2px;inset-inline-start:2px;z-index:2;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;min-width:28px;max-width:28px;min-height:28px;max-height:28px;padding:0;margin:0;border-radius:50%;border:1px solid #e5c9c3;background:#fff7f1;color:#9e5148;font-size:19px;font-weight:700;line-height:1;box-shadow:0 2px 5px #6b44351a;cursor:pointer;transition:background .15s ease,color .15s ease}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-remove:focus-visible{outline:2px solid #526b29;outline-offset:1px}
@media(hover:hover) and (pointer:fine){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-remove:hover{background:#f8ded9;color:#8d3834}}
@media(max-width:767px){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches{grid-template-columns:repeat(auto-fit,minmax(min(100%,68px),1fr));gap:7px 4px}.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-option{padding:20px 3px 5px;min-height:102px}.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-option .emm-color-name{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-remove{transition:none}}

@media(max-width:899px){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches{grid-template-columns:repeat(auto-fit,minmax(min(100%,68px),1fr));gap:7px 4px}.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-swatch-card > .emm-swatch-option{min-height:102px;padding:20px 3px 5px}}
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-color-dot::after{box-sizing:border-box}
/* Explicit grid display: legacy flex palette must not leak into the modal. */
.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,74px),1fr));gap:9px 6px;align-items:stretch;justify-items:stretch;margin:0;padding:4px;max-width:100%;min-width:0;overflow:visible;scrollbar-width:none}
@media(max-width:899px){.emm-premium-dialog .emm-purchase-view[data-mode=modal] .emm-purchase-swatches{grid-template-columns:repeat(auto-fit,minmax(min(100%,68px),1fr));gap:7px 4px}}

.emm-premium-dialog .emm-qb-preview-info{min-width:0;flex:1}
.emm-premium-dialog [data-qb-product-link]{display:block;margin:7px 0 0;padding:7px 4px;font-size:.76rem;font-weight:700;color:#526b29;text-align:center;border:1px solid #d7dfb9;border-radius:11px;background:#f1f3df;text-decoration:none;overflow-wrap:break-word}
.emm-premium-dialog [data-qb-product-link]:focus-visible{outline:2px solid #526b29;outline-offset:2px}
.emm-premium-dialog .emm-purchase-prices>section{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr)}
.emm-premium-dialog .emm-money-number{white-space:normal;overflow-wrap:normal}
@media(min-width:900px) and (max-width:1050px){.emm-premium-dialog .emm-purchase-prices>section{grid-template-columns:minmax(0,1fr)}}
@keyframes emmCheckIn{from{scale:.72;opacity:.45}to{scale:1;opacity:1}}

/* RC16: roomy desktop dialog and genuine full-width mobile purchase flow. */
.emm-premium-dialog{width:calc(100vw - 24px);max-width:1800px;max-height:calc(var(--emm-buy-viewport,100dvh) - 24px)}
.emm-premium-dialog .emm-qb-scroll{grid-template-columns:minmax(0,1fr) minmax(0,.36fr);gap:14px}
.emm-premium-dialog .emm-purchase-view[data-mode=modal]{grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr)}
@media(max-width:899px){.emm-premium-dialog{width:100%;max-width:100%;height:var(--emm-buy-viewport,100dvh);max-height:var(--emm-buy-viewport,100dvh);margin:0;border-radius:0}.emm-premium-dialog .emm-qb-scroll{display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:10px}.emm-premium-dialog .emm-qb-preview{flex:none}.emm-premium-dialog [data-qb-content]{width:100%}.emm-premium-dialog .emm-purchase-view[data-mode=modal]{display:flex;flex-direction:column;gap:10px}.emm-premium-dialog .emm-purchase-summary{display:contents}.emm-premium-dialog .emm-hero-tier-panel{order:0}.emm-premium-dialog .emm-purchase-selection{order:1}.emm-premium-dialog .emm-hero-order-panel{order:2}.emm-premium-dialog .emm-qb-footer{flex:none}}
/* Cart edit shares the existing purchase dialog and commits an absolute selection. */
.emm-premium-dialog [data-purchase-add][hidden]{display:none!important}
.emm-premium-dialog:has([data-purchase-add][hidden]) .emm-qb-footer .emm-purchase-actions{grid-template-columns:minmax(0,1fr)}
