/* Modern storefront templates (QA). Loaded after modern-storefront.css.
   Each template is scoped to .modern-shell.template-<key> and sets its own fonts, surfaces and layout.
   Brand colors (--brand-primary, --brand-accent, --brand-button) stay in charge of actions and the card.
   Extra decorative elements (.tpl-*) are always in the markup and hidden unless a template turns them on,
   so the Store Design preview can switch templates live. */

.modern-shell{--t-display:inherit;--t-body:inherit;max-width:none}
.modern-shell .modern-workspace{max-width:1440px;margin-left:auto;margin-right:auto;width:100%}
.modern-shell[class*="template-"]{font-family:var(--t-body)}
.modern-shell[class*="template-"] .stage-copy h1,.modern-shell[class*="template-"] .panel-header h2{font-family:var(--t-display);text-wrap:balance}
.modern-shell input,.modern-shell textarea,.modern-shell button{font-family:inherit}
.tpl-marquee,.tpl-masthead,.tpl-timer,.tpl-occasions,.tpl-amount,.tpl-serial,.tpl-envelope,.tpl-note,.tpl-sticker,.tpl-trust,.preview-card-chip{display:none}
.tpl-card-stage{display:contents}
.modern-shell .purchase-action .mobile-total{display:block;white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.modern-shell .purchase-action{display:flex;align-items:center;gap:16px}
.modern-shell .purchase-action .primary-action{flex:1;width:auto;margin:0}
@keyframes tplHolo{to{transform:rotate(360deg)}}
@keyframes tplMarquee{to{transform:translateX(-50%)}}

/* ---------- 1. Signature Table: the buyer sits inside the restaurant ---------- */
body:has(.modern-shell.template-signature-split){background:#140d09}
.modern-shell.template-signature-split{--t-display:"DM Serif Display",Georgia,serif;--t-body:Manrope,system-ui,sans-serif;background:#140d09}
.modern-shell.template-signature-split .modern-topbar{background:transparent;border-bottom:1px solid #ffffff1a;color:#fbefe1}
.modern-shell.template-signature-split .brand-lockup strong,.modern-shell.template-signature-split .brand-lockup span{color:inherit}
.modern-shell.template-signature-split .modern-workspace{grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);gap:0}
.modern-shell.template-signature-split .brand-stage,
.modern-shell.template-signature-split.has-custom-hero .brand-stage{background-image:linear-gradient(100deg,#140d09f2 0%,#140d09b0 48%,#140d0926 100%),var(--template-signature-image);background-size:cover;background-position:center,var(--hero-focal-x) var(--hero-focal-y);color:#fbefe1;padding:72px 56px 40px;min-height:760px;gap:40px;border-radius:0}
.modern-shell.template-signature-split.has-custom-hero .brand-stage{background-image:linear-gradient(100deg,#140d09f2 0%,#140d09b0 48%,#140d0926 100%),var(--hero-image)}
.modern-shell.template-signature-split .store-eyebrow{color:var(--brand-accent);opacity:1}
.modern-shell.template-signature-split .stage-copy h1{font-weight:400;font-size:clamp(44px,5vw,74px);line-height:1;letter-spacing:-.01em;color:#fff6ea}
.modern-shell.template-signature-split .stage-copy p{color:#fbefe1d9;font-size:18px}
.modern-shell.template-signature-split .preview-card{max-width:440px;transform:rotate(-4deg);border-radius:18px;box-shadow:0 50px 70px -20px #000c,inset 0 0 0 1px #ffffff26}
.modern-shell.template-signature-split .preview-card:after{display:block;content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,#ffffff2e 48%,transparent 62%);pointer-events:none}
.modern-shell.template-signature-split .preview-amount{font-family:var(--t-display);font-weight:400;font-size:46px}
.modern-shell.template-signature-split .tpl-trust{display:flex;flex-wrap:wrap;gap:10px 28px;list-style:none;margin:auto 0 0;padding:20px 0 0;border-top:1px solid #ffffff1f;font-size:13px;color:#fbefe1b8;width:100%}
.modern-shell.template-signature-split .tpl-trust li:before{content:"\2713\00a0";color:var(--brand-accent)}
.modern-shell.template-signature-split .checkout-panel{background:#fffaf3;color:#2a1a10;border-radius:24px;margin:28px 28px 28px 0;padding:36px 34px 40px}
.modern-shell.template-signature-split .panel-header h2{font-weight:400;font-size:34px;letter-spacing:-.01em}
.modern-shell.template-signature-split .checkout-step{background:#f4eadb;border-color:transparent}
.modern-shell.template-signature-split .checkout-step.is-active{background:#2a1a10;color:#fff6ea;border-color:#2a1a10}
.modern-shell.template-signature-split .amount-option{border:1.5px solid #e2d3bf;border-radius:12px;font-weight:800;font-size:17px;background:#fff}
.modern-shell.template-signature-split .field-group input,.modern-shell.template-signature-split .field-group textarea{border-color:#e2d3bf;background:#fff}
.modern-shell.template-signature-split .gift-purpose button{border-color:#e2d3bf;border-radius:12px;color:#2a1a10}
.modern-shell.template-signature-split .gift-purpose button[aria-pressed=true]{background:#2a1a10;color:#fff6ea;border:2px solid #2a1a10}
.modern-shell.template-signature-split .summary-panel,.modern-shell.template-signature-split .delivery-review{background:#f4eadb;border-color:transparent}
.modern-shell.template-signature-split .primary-action{border-radius:14px;font-weight:800}

/* ---------- 2. Luxe Editorial: a magazine cover with a menu for checkout ---------- */
body:has(.modern-shell.template-luxe-editorial){background:#f6f0e6}
.modern-shell.template-luxe-editorial{--t-display:"Bodoni Moda",Didot,Georgia,serif;--t-body:Manrope,system-ui,sans-serif;--lx-ink:#3b1218;--lx-paper:#f6f0e6;--lx-rule:#d9c9b0;background:var(--lx-paper);color:var(--lx-ink)}
.modern-shell.template-luxe-editorial .modern-topbar{background:var(--lx-paper);border-bottom:0;color:var(--lx-ink)}
.modern-shell.template-luxe-editorial .modern-workspace{grid-template-columns:minmax(0,1.25fr) minmax(400px,.75fr);padding:4px 44px 56px;gap:48px;align-items:start}
.modern-shell.template-luxe-editorial .brand-stage{background:none;border-radius:0;padding:0;min-height:0;color:var(--lx-ink);display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);grid-template-areas:"mast mast" "copy copy" "arch card" "arch trust";gap:24px 40px;align-items:start;position:static;overflow:visible}
.modern-shell.template-luxe-editorial .brand-stage:before{content:"";display:block;grid-area:arch;aspect-ratio:3/4;border-radius:999px 999px 6px 6px;background:var(--template-luxe-image) center/cover no-repeat;position:static}
.modern-shell.template-luxe-editorial.has-custom-hero .brand-stage:before{background-image:var(--hero-image);background-position:var(--hero-focal-x) var(--hero-focal-y)}
.modern-shell.template-luxe-editorial .tpl-masthead{display:flex;grid-area:mast;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:3px double var(--lx-ink);padding:6px 0 10px;font:600 11px var(--t-body);letter-spacing:.24em;text-transform:uppercase}
.modern-shell.template-luxe-editorial .stage-copy{grid-area:copy;max-width:none;text-align:left}
.modern-shell.template-luxe-editorial .store-eyebrow{display:none}
.modern-shell.template-luxe-editorial .stage-copy h1{font-weight:400;font-size:clamp(56px,7.2vw,112px);line-height:.9;letter-spacing:-.045em;color:var(--lx-ink);margin:0 0 16px}
.modern-shell.template-luxe-editorial .stage-copy p{font:italic 400 22px/1.35 var(--t-display);color:#6a3b40;max-width:38ch}
.modern-shell.template-luxe-editorial .tpl-card-stage{display:block;grid-area:card;align-self:center}
.modern-shell.template-luxe-editorial .preview-card{max-width:none;border:12px solid #fbf7f0;outline:1px solid var(--lx-rule);border-radius:3px;box-shadow:0 30px 40px -24px #3b121880;transform:none;margin:0}
.modern-shell.template-luxe-editorial .preview-amount{font-family:var(--t-display);font-weight:400}
.modern-shell.template-luxe-editorial .tpl-trust{display:grid;gap:6px;grid-area:trust;list-style:none;margin:0;padding:14px 0 0;border-top:1px solid var(--lx-rule);font:italic 16px var(--t-display);color:#6a3b40}
.modern-shell.template-luxe-editorial .checkout-panel{background:#fffaf2;color:var(--lx-ink);border:1px solid var(--lx-rule);border-top:3px double var(--lx-ink);border-radius:0;padding:30px 30px 34px;margin:0;box-shadow:none}
.modern-shell.template-luxe-editorial .panel-header{text-align:center}
.modern-shell.template-luxe-editorial .panel-header h2{font-weight:400;font-size:36px;letter-spacing:-.02em}
.modern-shell.template-luxe-editorial .panel-header p{font:italic 16px var(--t-display);color:#6a3b40}
.modern-shell.template-luxe-editorial .checkout-step{background:transparent;border:0;border-bottom:1px solid var(--lx-rule);border-radius:0;color:#8a6a60}
.modern-shell.template-luxe-editorial .checkout-step.is-active{border-bottom:2px solid var(--lx-ink);color:var(--lx-ink);background:transparent}
.modern-shell.template-luxe-editorial .amount-grid{grid-template-columns:1fr;gap:0}
.modern-shell.template-luxe-editorial .amount-option{display:flex;align-items:baseline;gap:10px;background:transparent!important;border:0!important;border-bottom:1px solid #efe4d3!important;border-radius:0;color:var(--lx-ink)!important;font:400 21px var(--t-display);padding:10px 0;min-height:0;text-align:left;font-variant-numeric:tabular-nums}
.modern-shell.template-luxe-editorial .amount-option:before{content:"A gift of";order:-2;font:italic 400 17px var(--t-display)}
.modern-shell.template-luxe-editorial .amount-option:after{content:"";order:-1;flex:1;border-bottom:1.5px dotted #b8a07f;transform:translateY(-5px)}
.modern-shell.template-luxe-editorial .amount-option.is-active{color:var(--brand-button)!important}
.modern-shell.template-luxe-editorial .amount-option.is-active:before{content:"\2726\00a0 A gift of"}
.modern-shell.template-luxe-editorial .field-group input,.modern-shell.template-luxe-editorial .field-group textarea{border-radius:0;border-color:var(--lx-rule);background:#fff}
.modern-shell.template-luxe-editorial .field-group label{letter-spacing:.06em}
.modern-shell.template-luxe-editorial .gift-purpose button{border-radius:0;border-color:var(--lx-rule);color:var(--lx-ink);background:#fff}
.modern-shell.template-luxe-editorial .gift-purpose button[aria-pressed=true]{background:var(--lx-ink);color:#f6efe4;border:2px solid var(--lx-ink)}
.modern-shell.template-luxe-editorial .card-design-option{border-radius:2px}
.modern-shell.template-luxe-editorial .summary-panel,.modern-shell.template-luxe-editorial .delivery-review{background:#f6efe2;border-radius:0}
.modern-shell.template-luxe-editorial .primary-action{border-radius:0;letter-spacing:.18em;text-transform:uppercase;font-size:12px}

/* ---------- 3. Collector Card: the card as a product shot ---------- */
body:has(.modern-shell.template-card-forward){background:#0a0d12}
.modern-shell.template-card-forward{--t-display:Unbounded,system-ui,sans-serif;--t-body:Manrope,system-ui,sans-serif;background:#0a0d12;color:#e9eef5}
.modern-shell.template-card-forward .modern-topbar{background:transparent;border-bottom:1px solid #ffffff14;color:#e9eef5}
.modern-shell.template-card-forward .brand-lockup strong,.modern-shell.template-card-forward .brand-lockup span{color:inherit}
.modern-shell.template-card-forward .modern-workspace{grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr);gap:0}
.modern-shell.template-card-forward .brand-stage,.modern-shell.template-card-forward.has-custom-hero .brand-stage{background:radial-gradient(ellipse 65% 55% at 50% 42%,#2c3a4a 0,#0a0d12 72%);color:#e9eef5;align-items:center;justify-content:center;text-align:center;padding:56px 40px;min-height:780px;perspective:1400px;gap:30px;border-radius:0}
.modern-shell.template-card-forward .tpl-serial{display:block;order:-3;font:500 11px var(--t-body);letter-spacing:.32em;text-transform:uppercase;color:#8fa0b5}
.modern-shell.template-card-forward .tpl-card-stage{display:flex;justify-content:center;width:100%;order:-2;perspective:1400px}
.modern-shell.template-card-forward .preview-card{max-width:540px;width:100%;margin:0;border-radius:22px;transform:rotateX(12deg) rotateY(-16deg) rotateZ(2deg);transition:transform .7s cubic-bezier(.2,.7,.2,1);box-shadow:0 70px 90px -30px #000,inset 0 0 0 1px #ffffff22}
.modern-shell.template-card-forward .preview-card:hover{transform:rotateX(3deg) rotateY(-3deg)}
.modern-shell.template-card-forward .preview-card:after{display:block;content:"";position:absolute;inset:-50%;background:conic-gradient(from 0deg,#ff7ad940,#7af3ff40,#ffe57a40,#a07aff40,#ff7ad940);mix-blend-mode:color-dodge;animation:tplHolo 10s linear infinite;pointer-events:none}
.modern-shell.template-card-forward .preview-card>*{position:relative;z-index:1}
.modern-shell.template-card-forward .preview-card-chip{display:block;position:absolute;left:7%;top:42%;width:46px;height:34px;border-radius:7px;background:linear-gradient(135deg,#f3d48a,#a77c2c);box-shadow:inset 0 0 0 1px #0003;z-index:1}
.modern-shell.template-card-forward .preview-amount{font:900 clamp(40px,4.6vw,64px)/1 var(--t-display);letter-spacing:-.04em}
.modern-shell.template-card-forward .stage-copy{max-width:460px}
.modern-shell.template-card-forward .store-eyebrow{display:none}
.modern-shell.template-card-forward .stage-copy h1{font-weight:700;font-size:clamp(26px,2.6vw,38px);line-height:1.1;letter-spacing:-.03em;color:#fff}
.modern-shell.template-card-forward .stage-copy p{color:#aab6c5;font-size:15px;margin:0 auto}
.modern-shell.template-card-forward .checkout-panel{background:#fff;color:#14181e;border-radius:26px;margin:28px 28px 28px 0;padding:34px}
.modern-shell.template-card-forward .panel-header h2{font-weight:700;font-size:26px;letter-spacing:-.03em}
.modern-shell.template-card-forward .amount-option,.modern-shell.template-card-forward .primary-action{border-radius:999px;font-family:var(--t-display);font-weight:700;font-size:14px}
.modern-shell.template-card-forward .gift-purpose button{border-radius:999px}
.modern-shell.template-card-forward .checkout-step{border-radius:999px}
.modern-shell.template-card-forward .card-design-option{border-radius:12px;transition:transform .2s}
.modern-shell.template-card-forward .card-design-option:hover{transform:translateY(-4px) rotate(-2deg)}
.modern-shell.template-card-forward .card-design-art{border-radius:8px}

/* ---------- 4. Minimal Reserve: the amount is the hero ---------- */
body:has(.modern-shell.template-minimal-reserve){background:#fbfbf8}
.modern-shell.template-minimal-reserve{--t-display:"Instrument Serif",Georgia,serif;--t-body:Manrope,system-ui,sans-serif;background:#fbfbf8;color:#1b2420}
.modern-shell.template-minimal-reserve .modern-topbar{background:#fbfbf8;border-bottom:1px solid #e3e6df}
.modern-shell.template-minimal-reserve .modern-workspace{grid-template-columns:minmax(0,1.15fr) minmax(400px,.85fr);gap:72px;padding:56px 64px}
.modern-shell.template-minimal-reserve .brand-stage,.modern-shell.template-minimal-reserve.has-custom-hero .brand-stage{background:none;border:0;border-radius:0;padding:0;min-height:0;color:#1b2420;gap:24px;position:sticky;top:24px}
.modern-shell.template-minimal-reserve .store-eyebrow{color:#6c776f}
.modern-shell.template-minimal-reserve .stage-copy h1{font-weight:400;font-size:34px;line-height:1.1;letter-spacing:-.01em;color:#1b2420;margin-bottom:8px}
.modern-shell.template-minimal-reserve .stage-copy p{color:#6c776f;font-size:15px}
.modern-shell.template-minimal-reserve .tpl-amount{display:flex;flex-direction:column;gap:6px;border-top:1px solid #e3e6df;padding-top:22px;width:100%}
.modern-shell .tpl-amount-label{font:600 11px var(--t-body);letter-spacing:.16em;text-transform:uppercase;color:#6c776f}
.modern-shell .tpl-amount-value{font:400 clamp(120px,15vw,230px)/.85 var(--t-display);padding-top:.08em;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:#1b2420}
.modern-shell.template-minimal-reserve .preview-card{max-width:280px;border-radius:10px;padding:18px 20px;box-shadow:0 14px 30px -18px #1b242066;transform:none}
.modern-shell.template-minimal-reserve .preview-amount{font:400 30px var(--t-display)}
.modern-shell.template-minimal-reserve .preview-card-badge,.modern-shell.template-minimal-reserve .preview-card-logo{display:none}
.modern-shell.template-minimal-reserve .preview-recipient{min-height:0}
.modern-shell.template-minimal-reserve .checkout-panel{background:transparent;padding:0;border:0;margin:0}
.modern-shell.template-minimal-reserve .panel-header h2{font-weight:400;font-size:32px}
.modern-shell.template-minimal-reserve .checkout-step{background:transparent;border:0;border-top:2px solid #e3e6df;border-radius:0;padding:10px 0 0}
.modern-shell.template-minimal-reserve .checkout-step.is-active{border-top-color:var(--brand-button);background:transparent}
.modern-shell.template-minimal-reserve .checkout-step-number{display:none}
.modern-shell.template-minimal-reserve .amount-option{background:transparent!important;color:#6c776f!important;border:0!important;border-bottom:2px solid #e3e6df!important;border-radius:0;font:400 30px var(--t-display);min-height:56px}
.modern-shell.template-minimal-reserve .amount-option.is-active{color:#1b2420!important;border-bottom-color:var(--brand-button)!important}
.modern-shell.template-minimal-reserve .field-group input,.modern-shell.template-minimal-reserve .field-group textarea{border:0;border-bottom:1px solid #cfd5cd;border-radius:0;background:transparent;padding-left:0;box-shadow:none}
.modern-shell.template-minimal-reserve .field-group label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#6c776f}
.modern-shell.template-minimal-reserve .gift-purpose button{border-radius:4px;border:1px solid #cfd5cd;background:transparent}
.modern-shell.template-minimal-reserve .gift-purpose button[aria-pressed=true]{border:1px solid #1b2420;background:#1b2420;color:#fbfbf8}
.modern-shell.template-minimal-reserve .summary-panel,.modern-shell.template-minimal-reserve .delivery-review{background:transparent;border:0;border-top:1px solid #e3e6df;border-radius:0;padding-left:0;padding-right:0}
.modern-shell.template-minimal-reserve .primary-action{border-radius:4px}

/* ---------- 5. Bold Local: a gig poster for the neighborhood spot ---------- */
.modern-shell.template-bold-local{--t-display:Anton,Impact,"Arial Narrow",sans-serif;--t-body:Figtree,system-ui,sans-serif;background:var(--brand-primary);color:var(--primary-ink,#fff)}
.modern-shell.template-bold-local .tpl-marquee{display:block;background:var(--brand-accent);color:var(--accent-ink,#111);overflow:hidden;white-space:nowrap;font:400 18px var(--t-display);letter-spacing:.06em;text-transform:uppercase;padding:9px 0;border-bottom:3px solid #111}
.modern-shell.template-bold-local .tpl-marquee>div{display:inline-flex;gap:28px;padding-left:28px;animation:tplMarquee 40s linear infinite}
.modern-shell.template-bold-local .tpl-marquee span:after{content:"\2605";margin-left:28px}
.modern-shell.template-bold-local .modern-topbar{background:transparent;color:inherit;border-bottom:0}
.modern-shell.template-bold-local .modern-workspace{grid-template-columns:minmax(0,1.1fr) minmax(400px,.9fr);gap:56px;padding:40px 48px 72px}
.modern-shell.template-bold-local .brand-stage,.modern-shell.template-bold-local.has-custom-hero .brand-stage{background:transparent;color:inherit;padding:0;min-height:0;position:relative;gap:36px;overflow:visible;border-radius:0}
.modern-shell.template-bold-local .store-eyebrow{display:inline-block;align-self:flex-start;background:var(--brand-accent);color:var(--accent-ink,#111);padding:6px 10px;opacity:1;transform:rotate(-2deg);font-weight:800;border:2px solid #111}
.modern-shell.template-bold-local .stage-copy h1{font-weight:400;font-size:clamp(72px,9.5vw,150px);line-height:.86;text-transform:uppercase;letter-spacing:0;color:inherit;margin-top:14px}
.modern-shell.template-bold-local .stage-copy p{font-weight:600;font-size:19px;line-height:1.45;color:inherit;opacity:.92}
.modern-shell.template-bold-local .preview-card{border:3px solid #111;border-radius:16px;box-shadow:14px 14px 0 var(--brand-accent);max-width:420px;transform:rotate(-2deg);margin:0}
.modern-shell.template-bold-local .preview-amount{font:400 64px/1 var(--t-display)}
.modern-shell.template-bold-local .tpl-sticker{display:grid;place-items:center;text-align:center;position:absolute;right:4%;bottom:30px;width:136px;height:136px;border-radius:50%;background:var(--brand-accent);color:var(--accent-ink,#111);font:800 15px/1.1 var(--t-body);padding:20px;transform:rotate(12deg);border:3px solid #111;box-shadow:4px 4px 0 #111}
.modern-shell.template-bold-local .checkout-panel{background:#fff;color:#111;border:3px solid #111;border-radius:20px;box-shadow:10px 10px 0 #111;padding:30px;margin:0}
.modern-shell.template-bold-local .panel-header h2{font-weight:400;font-size:42px;line-height:1;text-transform:uppercase}
.modern-shell.template-bold-local .checkout-step{border:2px solid #111;border-radius:10px;background:#fff;color:#111}
.modern-shell.template-bold-local .checkout-step.is-active{background:#111;color:#fff}
.modern-shell.template-bold-local .amount-option{border:3px solid #111!important;border-radius:12px;background:#fff;color:#111;font:400 22px var(--t-display)}
.modern-shell.template-bold-local .amount-option.is-active{background:#111!important;color:#fff!important}
.modern-shell.template-bold-local .field-group input,.modern-shell.template-bold-local .field-group textarea{border:2.5px solid #111;border-radius:12px}
.modern-shell.template-bold-local .gift-purpose button{border:2.5px solid #111;border-radius:12px;color:#111;font-weight:800}
.modern-shell.template-bold-local .gift-purpose button[aria-pressed=true]{background:#111;color:#fff;border:2.5px solid #111}
.modern-shell.template-bold-local .card-design-option{border:2.5px solid #111;border-radius:12px}
.modern-shell.template-bold-local .card-design-option.is-active{box-shadow:4px 4px 0 var(--brand-accent)}
.modern-shell.template-bold-local .summary-panel,.modern-shell.template-bold-local .delivery-review{border:2px solid #111;border-radius:12px;background:#fff}
.modern-shell.template-bold-local .primary-action{background:var(--brand-button)!important;color:var(--button-ink,#fff)!important;border:3px solid #111!important;box-shadow:5px 5px 0 #111;border-radius:12px;font:400 22px var(--t-display);text-transform:uppercase;letter-spacing:.03em}

/* ---------- 6. Quick Gift: one screen, done in a minute ---------- */
body:has(.modern-shell.template-quick-gift){background:#f7f9f7}
.modern-shell.template-quick-gift{--t-display:Figtree,system-ui,sans-serif;--t-body:Figtree,system-ui,sans-serif;background:linear-gradient(180deg,#e6efe9,#f7f9f7 60%);color:#13261f;max-width:none}
.modern-shell.template-quick-gift .modern-topbar{background:transparent;border:0}
.modern-shell.template-quick-gift .modern-workspace{grid-template-columns:minmax(0,1fr) minmax(380px,430px);gap:72px;padding:40px 40px 72px;align-items:start;max-width:1100px}
.modern-shell.template-quick-gift .brand-stage,.modern-shell.template-quick-gift.has-custom-hero .brand-stage{background:transparent;color:#13261f;padding:48px 0 0;min-height:0;gap:24px;position:sticky;top:24px;border-radius:0}
.modern-shell.template-quick-gift .tpl-timer{display:inline-flex;align-items:center;gap:8px;order:-2;align-self:flex-start;background:#13261f;color:#d9f3e4;border-radius:999px;padding:7px 14px;font:600 13px var(--t-body)}
.modern-shell.template-quick-gift .tpl-timer i{width:8px;height:8px;border-radius:50%;background:#58d68d;display:block}
.modern-shell.template-quick-gift .store-eyebrow{display:none}
.modern-shell.template-quick-gift .stage-copy h1{font-weight:800;font-size:clamp(36px,4.4vw,56px);line-height:1.02;letter-spacing:-.04em;color:#13261f}
.modern-shell.template-quick-gift .stage-copy p{display:block;font-size:17px;color:#4d6158}
.modern-shell.template-quick-gift .preview-card{max-width:340px;border-radius:16px;padding:20px}
.modern-shell.template-quick-gift .checkout-panel{background:#fff;color:#13261f;border-radius:36px;padding:28px 24px 24px;margin:8px;box-shadow:0 0 0 8px #13261f,0 40px 70px -30px #13261f80}
.modern-shell.template-quick-gift .checkout-progress{display:flex}
.modern-shell.template-quick-gift .panel-header p{display:none}
.modern-shell.template-quick-gift .panel-header h2{font-weight:800;font-size:24px;letter-spacing:-.02em}
.modern-shell.template-quick-gift .amount-option{border:0;background:#eef3ef;border-radius:12px;font-weight:800}
.modern-shell.template-quick-gift .field-group input,.modern-shell.template-quick-gift .field-group textarea{background:#f4f6f4;border-color:transparent;border-radius:12px}
.modern-shell.template-quick-gift .gift-purpose button{background:#eef3ef;border:0;border-radius:12px}
.modern-shell.template-quick-gift .gift-purpose button[aria-pressed=true]{background:#13261f;color:#fff;border:0}
.modern-shell.template-quick-gift .summary-panel,.modern-shell.template-quick-gift .delivery-review{border-radius:12px}
.modern-shell.template-quick-gift .primary-action{border-radius:14px;min-height:54px;font-size:16px;font-weight:800}

/* ---------- 7. Celebration Studio: start from the occasion, end with a note ---------- */
body:has(.modern-shell.template-celebration-studio){background:#fdf6ee}
.modern-shell.template-celebration-studio{--t-display:Fraunces,Georgia,serif;--t-body:Figtree,system-ui,sans-serif;--cs-ink:#3d2a2e;--cs-line:#e6cfc2;background:#fdf6ee;color:var(--cs-ink)}
.modern-shell.template-celebration-studio .modern-topbar{background:transparent;border:0}
.modern-shell.template-celebration-studio .modern-workspace{grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:40px;padding:24px 40px 56px}
.modern-shell.template-celebration-studio .brand-stage,.modern-shell.template-celebration-studio.has-custom-hero .brand-stage{background:radial-gradient(circle at 7% 12%,#ef8f7a 0 6px,transparent 7px),radial-gradient(circle at 16% 86%,#8cc0a5 0 8px,transparent 9px),radial-gradient(circle at 92% 9%,#f2c14e 0 7px,transparent 8px),radial-gradient(circle at 86% 80%,#ef8f7a 0 5px,transparent 6px),radial-gradient(circle at 54% 5%,#8cc0a5 0 5px,transparent 6px),radial-gradient(circle at 40% 96%,#f2c14e 0 6px,transparent 7px),#fff3e6;border-radius:28px;padding:48px 40px 72px;min-height:0;color:var(--cs-ink);gap:24px;align-items:center;text-align:center;position:sticky;top:20px}
.modern-shell.template-celebration-studio .stage-copy{text-align:center;margin:0 auto}
.modern-shell.template-celebration-studio .store-eyebrow{color:#d9604a}
.modern-shell.template-celebration-studio .stage-copy h1{font-weight:800;font-size:clamp(38px,4.4vw,58px);line-height:1;letter-spacing:-.03em;color:var(--cs-ink)}
.modern-shell.template-celebration-studio .stage-copy p{color:#725d60;margin:0 auto}
.modern-shell.template-celebration-studio .tpl-occasions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.modern-shell.template-celebration-studio .tpl-occasions button{border:1.5px solid var(--cs-line);background:#fff;border-radius:999px;padding:9px 16px;font:600 14px var(--t-body);color:var(--cs-ink);cursor:pointer}
.modern-shell.template-celebration-studio .tpl-occasions button[aria-pressed=true]{background:var(--cs-ink);color:#fff;border-color:var(--cs-ink)}
.modern-shell.template-celebration-studio .tpl-card-stage{display:grid;width:min(100%,460px);margin:84px auto 36px}
.modern-shell.template-celebration-studio .tpl-envelope{display:block;grid-area:1/1;aspect-ratio:1.5;background:#f3d9c8;border-radius:12px;box-shadow:0 26px 40px -22px #3d2a2e88;position:relative;overflow:hidden}
.modern-shell.template-celebration-studio .tpl-envelope:before{content:"";position:absolute;left:0;right:0;top:0;height:58%;background:#ecc8b3;clip-path:polygon(0 0,100% 0,50% 100%)}
.modern-shell.template-celebration-studio .preview-card{grid-area:1/1;align-self:start;justify-self:center;width:84%;max-width:none;margin:0;transform:translateY(-36%) rotate(-4deg);border-radius:14px;box-shadow:0 18px 30px -12px #3d2a2e88}
.modern-shell.template-celebration-studio .preview-amount{font-family:var(--t-display);font-weight:800}
.modern-shell.template-celebration-studio .tpl-note{display:block;grid-area:1/1;align-self:end;justify-self:end;width:58%;transform:translate(12%,34%) rotate(5deg);background:#fffdf8;padding:14px 16px;box-shadow:0 10px 20px -8px #3d2a2e66;font:500 23px/1.15 Caveat,"Segoe Print",cursive;color:#2c4a6b;text-align:left;min-height:58px;position:relative;z-index:2;overflow-wrap:anywhere}
.modern-shell.template-celebration-studio .tpl-note.is-empty:before{content:"Write a note and it shows up here.";color:#9a8a86}
.modern-shell.template-celebration-studio .checkout-panel{background:#fff;color:var(--cs-ink);border-radius:24px;padding:32px;border:1.5px solid var(--cs-line);margin:0}
.modern-shell.template-celebration-studio .panel-header h2{font-weight:800;font-size:30px}
.modern-shell.template-celebration-studio .amount-option{border-radius:999px;border:1.5px solid var(--cs-line)}
.modern-shell.template-celebration-studio .gift-purpose button{border-radius:999px;border-color:var(--cs-line)}
.modern-shell.template-celebration-studio .gift-purpose button[aria-pressed=true]{background:var(--cs-ink);color:#fff;border:2px solid var(--cs-ink)}
.modern-shell.template-celebration-studio .field-group input,.modern-shell.template-celebration-studio .field-group textarea{border-radius:12px;border-color:var(--cs-line)}
.modern-shell.template-celebration-studio #giftMessage{font:500 23px/1.25 Caveat,"Segoe Print",cursive;color:#2c4a6b;min-height:104px}
.modern-shell.template-celebration-studio .purchase-fields:not([hidden]){display:flex;flex-direction:column}
.modern-shell.template-celebration-studio .purchase-fields>.gift-purpose{order:-3}
.modern-shell.template-celebration-studio .purchase-fields>.field-group:has(#giftMessage){order:-2}
.modern-shell.template-celebration-studio .card-design-option,.modern-shell.template-celebration-studio .summary-panel,.modern-shell.template-celebration-studio .delivery-review{border-radius:14px}
.modern-shell.template-celebration-studio .primary-action{border-radius:14px}

/* ---------- Phones and tablets ---------- */
@media (max-width:980px){
  .modern-shell .modern-workspace{padding:0}
  /* Keep the gift card in view on phones; it is what people are buying. */
  .modern-shell .brand-stage .preview-card{display:flex;max-width:300px;margin:4px 0 0!important}
  .modern-shell .card-preview-toggle{display:none!important}
  body.is-payment-active .modern-shell .brand-stage{display:none!important}
  .modern-shell[class] .tpl-trust,.modern-shell[class] .tpl-sticker{display:none}
  .modern-shell[class] .brand-stage .preview-amount{font-size:32px}
  .modern-shell[class] .brand-stage .preview-card-badge{font-size:11px;padding:5px 9px}
  .modern-shell .tpl-card-stage{display:contents}

  .modern-shell.template-signature-split .brand-stage{min-height:0;padding:28px 22px 40px;gap:20px}
  .modern-shell.template-signature-split .stage-copy h1{font-size:40px}
  .modern-shell.template-signature-split .preview-card{transform:rotate(-3deg);max-width:280px}
  .modern-shell.template-signature-split .checkout-panel{margin:-18px 0 0;border-radius:24px 24px 0 0;position:relative;z-index:2;padding:26px 22px 32px}
  .modern-shell.template-signature-split .modern-topbar{background:#140d09;color:#fbefe1}

  .modern-shell.template-luxe-editorial .modern-workspace{padding:0 18px 32px}
  .modern-shell.template-luxe-editorial .brand-stage{grid-template-columns:1fr;grid-template-areas:"mast" "copy" "card";gap:16px;padding:0 0 22px}
  .modern-shell.template-luxe-editorial .brand-stage:before{display:none}
  .modern-shell.template-luxe-editorial .tpl-card-stage{display:block}
  .modern-shell.template-luxe-editorial .stage-copy h1{font-size:52px}
  .modern-shell.template-luxe-editorial .stage-copy p{font-size:18px}
  .modern-shell.template-luxe-editorial .checkout-panel{border:1px solid var(--lx-rule);border-top:3px double var(--lx-ink);padding:22px 18px 28px}
  .modern-shell.template-luxe-editorial .modern-topbar{background:var(--lx-paper);color:var(--lx-ink)}

  .modern-shell.template-card-forward .brand-stage{min-height:0;padding:28px 22px 36px;gap:18px}
  .modern-shell.template-card-forward .tpl-card-stage{display:flex}
  .modern-shell.template-card-forward .preview-card{transform:rotateX(8deg) rotateY(-8deg);max-width:320px}
  .modern-shell.template-card-forward .checkout-panel{margin:0;border-radius:24px 24px 0 0;padding:26px 22px 32px}
  .modern-shell.template-card-forward .modern-topbar{background:#0a0d12;color:#e9eef5}

  .modern-shell.template-minimal-reserve .modern-workspace{padding:0 22px 32px}
  .modern-shell.template-minimal-reserve .brand-stage{position:static;padding:24px 0 8px;gap:16px}
  .modern-shell.template-minimal-reserve .tpl-amount-value{font-size:110px}
  .modern-shell.template-minimal-reserve .preview-card{display:flex}
  .modern-shell.template-minimal-reserve .checkout-panel{padding:8px 0 24px}

  .modern-shell.template-bold-local .tpl-marquee{font-size:15px;padding:7px 0}
  .modern-shell.template-bold-local .modern-topbar{background:transparent;color:inherit}
  .modern-shell.template-bold-local .brand-stage{padding:18px 20px 28px;gap:20px}
  .modern-shell.template-bold-local .stage-copy h1{font-size:64px}
  .modern-shell.template-bold-local .preview-card{max-width:270px;box-shadow:9px 9px 0 var(--brand-accent)}
  .modern-shell.template-bold-local .checkout-step{padding:6px 4px;gap:4px}
  .modern-shell.template-bold-local .checkout-step-label{display:inline;font-size:11px}
  .modern-shell.template-bold-local .checkout-panel{margin:0 14px 28px;width:auto;border:3px solid #111;border-radius:18px;box-shadow:6px 6px 0 #111;padding:22px 18px 26px}

  .modern-shell.template-quick-gift .modern-workspace{padding:0}
  .modern-shell.template-quick-gift .brand-stage{padding:20px 22px 14px;gap:14px;position:static}
  .modern-shell.template-quick-gift .stage-copy h1{font-size:30px}
  .modern-shell.template-quick-gift .preview-card{max-width:260px}
  .modern-shell.template-quick-gift .checkout-panel{margin:0;border-radius:28px 28px 0 0;box-shadow:0 -10px 30px -18px #13261f66;padding:24px 22px 30px}

  .modern-shell.template-celebration-studio .modern-workspace{padding:0 14px 28px}
  .modern-shell.template-celebration-studio .brand-stage{position:static;padding:28px 18px 56px;border-radius:0 0 24px 24px}
  .modern-shell.template-celebration-studio .tpl-card-stage{display:grid;width:min(100%,320px);margin:56px auto 24px}
  .modern-shell.template-celebration-studio .stage-copy h1{font-size:36px}
  .modern-shell.template-celebration-studio .preview-card{max-width:none;margin:0!important}
  .modern-shell.template-celebration-studio .tpl-note{font-size:19px;transform:translate(3%,34%) rotate(4deg)}
  .modern-shell.template-celebration-studio .checkout-panel{margin:18px 0 0;border-radius:20px;padding:22px 18px 28px}
}

@media (prefers-reduced-motion:reduce){
  .modern-shell .tpl-marquee>div,.modern-shell.template-card-forward .preview-card:after{animation:none}
  .modern-shell.template-card-forward .preview-card{transition:none}
}

/* Phone checkout keeps the full usable width and a readable action. */
@media(max-width:980px){
 .modern-shell.template-bold-local .modern-workspace{padding:0 0 28px}
 .modern-shell.template-bold-local .primary-action{font-size:17px;line-height:1.25;min-height:52px}
 .modern-shell .preview-card-top,.modern-shell .preview-card-bottom{gap:10px}
 .modern-shell .preview-card-top>div:first-child,.modern-shell .preview-card-bottom>div:first-child{min-width:0;overflow-wrap:anywhere}
}

/* ===== Card design picker: occasion filters above one scrolling row (all templates) ===== */
.modern-shell [data-design-picker]{min-width:0}
.modern-shell .design-rail{position:relative;min-width:0}
.modern-shell [data-design-picker] .card-design-grid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 2px;padding:3px 2px 9px;scrollbar-width:thin;scroll-behavior:smooth}
.modern-shell [data-design-picker] .card-design-option{flex:0 0 128px;min-width:0;min-height:0;scroll-snap-align:start}
.modern-shell [data-design-picker] .card-design-option[hidden]{display:none}
.modern-shell [data-design-picker] .card-design-option strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modern-shell .design-filter{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 8px;margin:0}
.modern-shell .design-filter::-webkit-scrollbar{display:none}
.modern-shell .design-filter[hidden]{display:none}
.modern-shell .design-rail.is-filter .design-filter{scroll-behavior:smooth}
.modern-shell .design-rail.is-filter .design-scroll{top:calc(50% - 4px);transform:translateY(-50%);width:28px;height:28px;font-size:16px}
.modern-shell .design-rail.is-filter.can-prev .design-filter{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px);mask-image:linear-gradient(90deg,transparent 0,#000 40px)}
.modern-shell .design-rail.is-filter.can-next .design-filter{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 40px);mask-image:linear-gradient(270deg,transparent 0,#000 40px)}
.modern-shell .design-rail.is-filter.can-prev.can-next .design-filter{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%)}
.modern-shell .design-filter-chip{flex:none;font:inherit;font-size:12.5px;font-weight:650;line-height:1.2;color:inherit;background:transparent;border:1.5px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;padding:6px 12px;cursor:pointer}
.modern-shell .design-filter-chip[aria-pressed=true]{background:var(--brand-primary);border-color:var(--brand-primary);color:var(--primary-ink,#fff)}
.modern-shell .design-filter-chip:focus-visible,.modern-shell .design-scroll:focus-visible{outline:3px solid var(--brand-accent);outline-offset:2px}
.modern-shell .design-scroll{position:absolute;top:28px;z-index:2;width:32px;height:32px;border-radius:50%;border:1px solid rgba(0,0,0,.14);background:#fff;color:#17202d;font:700 18px/1 system-ui,sans-serif;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px -4px rgba(0,0,0,.35)}
.modern-shell .design-scroll[hidden]{display:none}
.modern-shell .design-scroll.is-prev{left:-10px}.modern-shell .design-scroll.is-next{right:-10px}
/* Touch screens swipe both rows; a mouse needs the arrows at every width, including the designer's phone preview. */
@media (hover:none){.modern-shell .design-scroll{display:none!important}}
@media (max-width:640px){.modern-shell [data-design-picker] .card-design-option{flex-basis:112px}}
@media (prefers-reduced-motion:reduce){.modern-shell [data-design-picker] .card-design-grid,.modern-shell .design-rail.is-filter .design-filter{scroll-behavior:auto}}
/* Per-template filter styles */
.modern-shell.template-luxe-editorial .design-filter-chip{border:0;border-bottom:1px solid transparent;border-radius:0;padding:5px 2px;margin-right:8px;text-transform:uppercase;letter-spacing:.14em;font-size:10.5px;font-weight:500}
.modern-shell.template-luxe-editorial .design-filter-chip[aria-pressed=true]{background:none;color:var(--brand-accent);border-bottom-color:var(--brand-accent)}
.modern-shell.template-minimal-reserve .design-filter-chip{border:0;border-radius:0;padding:5px 0;margin-right:12px;font-weight:400;opacity:.65}
.modern-shell.template-minimal-reserve .design-filter-chip[aria-pressed=true]{background:none;color:inherit;opacity:1;text-decoration:underline;text-underline-offset:5px}
.modern-shell.template-bold-local .design-filter-chip{border:2px solid #111;border-radius:6px;text-transform:uppercase;font-weight:800;font-size:11.5px}
.modern-shell.template-bold-local .design-filter-chip[aria-pressed=true]{background:#fff;color:#111;box-shadow:3px 3px 0 #111;border-color:#111}
.modern-shell.template-bold-local .design-scroll{border:2px solid #111;box-shadow:2px 2px 0 #111}
.modern-shell.template-quick-gift .design-filter{background:rgba(0,0,0,.06);border-radius:10px;padding:3px;gap:2px;margin-bottom:8px}
.modern-shell.template-quick-gift .design-filter-chip{border:0;border-radius:8px;padding:5px 10px}
.modern-shell.template-quick-gift .design-filter-chip[aria-pressed=true]{background:#fff;color:inherit;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.modern-shell.template-card-forward .design-filter-chip{border-radius:10px}
.modern-shell.template-celebration-studio .design-filter-chip:nth-child(3n+2)[aria-pressed=true]{background:var(--brand-accent);border-color:var(--brand-accent);color:var(--accent-ink,#111)}
.modern-shell.template-card-forward [data-design-picker] .card-design-option:hover{transform:translateY(-3px)}
