/* Giftwell gifting engine prototype.
   Part 1: store-skinned chrome for the gifter screens (designer layout C, send, pay, tracking).
   Part 2: add-ons to the shared unwrap page from ../partiful-study/gallery/giftwell-themes.css.
   Every colour, font and corner in part 1 comes from the store's tokens, set by GWE.applyUI().
   Until a store's tokens are set, :root below is a plain look (white, near-black, the system font) that belongs to no
   store. Ghia's two font files are named here but a browser only fetches them once Ghia's own tokens ask for them. */
@font-face{font-family:"Ghia FHA";src:url("https://cdn.shopify.com/s/files/1/0338/0785/9852/files/GHIAFHACondensedFrenchNC-Regular.woff?v=1710093881") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Ghia Vevey";src:url("https://cdn.shopify.com/s/files/1/0338/0785/9852/files/Vevey_22-Positive.ttf?v=1665778565") format("truetype");font-weight:400;font-display:swap}
:root{
  --ui-paper:#FFFFFF;--ui-card:#FFFFFF;--ui-ink:#1F1F1F;--ui-accent:#1F1F1F;--ui-on-accent:#FFFFFF;--ui-dark:#1F1F1F;
  --ui-btn:#1F1F1F;--ui-on-btn:#FFFFFF;--ui-radius:4px;--ui-caps:none;--ui-track:0;--ui-display:system-ui,sans-serif;--ui-body:system-ui,sans-serif;
  --line:color-mix(in srgb,var(--ui-ink) 18%,transparent);--line-strong:color-mix(in srgb,var(--ui-ink) 60%,transparent);--soft:color-mix(in srgb,var(--ui-ink) 74%,transparent);--tint:color-mix(in srgb,var(--ui-ink) 7%,transparent);
  --ease:cubic-bezier(.2,.7,.2,1);--bar:36px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--ui-paper);-webkit-text-size-adjust:100%}
/* early-look.js: a page that names a store stays hidden until that store's look is applied, so it never flashes white and black */
html.gw-look-pending body{visibility:hidden}
body{background:var(--ui-paper);color:var(--ui-ink);font:400 15px/1.45 var(--ui-body);overflow-x:clip;min-height:100dvh}
button,input,textarea,select{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--ui-ink);outline-offset:2px}
.stage :focus-visible,.fullview :focus-visible{outline-color:var(--ui-paper)}

/* demo bar: prototype controls that are not part of the product */
.demo{height:var(--bar);display:flex;align-items:center;gap:16px;padding:0 12px;background:#111111;color:#FFFFFF;font:500 12px/1 system-ui,sans-serif;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.demo::-webkit-scrollbar{display:none}
.demo .grp{display:flex;align-items:center;gap:2px}
.demo .grp > span{opacity:.6;margin-right:6px}
.demo button{color:#FFFFFF;padding:7px 9px;border-radius:4px;font:inherit}
.demo button[aria-pressed="true"]{background:#FFFFFF;color:#111111}
.demo .u{text-decoration:underline;text-underline-offset:3px}

/* shared pieces */
.lnk{position:relative;font-size:12px;text-transform:var(--ui-caps);letter-spacing:var(--ui-track);text-decoration:underline;text-underline-offset:3px;padding:12px 0;white-space:nowrap}
/* a text link keeps its small look but takes a full-size tap */
.lnk::after{content:"";position:absolute;inset:-10px -10px}
.btn{font-family:var(--ui-button-font,var(--ui-body));display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;background:var(--ui-btn);color:var(--ui-on-btn);border-radius:var(--ui-button-radius,var(--ui-radius));font-size:13px;text-transform:var(--ui-caps);letter-spacing:var(--ui-track);white-space:nowrap;text-decoration:none}
.btn[disabled]{opacity:.45;cursor:default}
/* a money amount on a button uses the store's body font: some heading fonts (Fly By Jing's JeanLuc) draw the decimal
   point as a hairline, and "$118.58" then reads as "$11858" */
.btn .amt{font-family:var(--ui-body);letter-spacing:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-family:var(--ui-button-font,var(--ui-body));display:inline-flex;align-items:center;min-height:38px;padding:7px 14px;border:1px solid var(--ui-ink);border-radius:var(--ui-button-radius,var(--ui-radius));font-size:14px;line-height:1.3;background:var(--ui-card);text-decoration:none;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--ui-ink);color:var(--ui-paper)}
.chip.sm{min-height:34px;padding:5px 11px;font-size:13px}
/* prototype-only notes wear the demo bar's look, so they never read as part of the product */
.proto{display:table;margin-top:10px;font:500 12px/1.4 system-ui,sans-serif;background:#111111;color:#FFFFFF;padding:5px 8px;border-radius:4px;text-wrap:pretty}
.pv{display:inline-flex;align-items:center;min-height:38px;font-size:12px;text-transform:var(--ui-caps);letter-spacing:var(--ui-track);padding:0 12px;border:1px solid currentColor;border-radius:var(--ui-button-radius,var(--ui-radius));white-space:nowrap;color:inherit}
.note{font-size:13px;line-height:1.45;color:var(--soft);text-wrap:pretty}
.note + .chips,.chips + .note,.note + .note{margin-top:10px}
.fld{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--soft);margin-bottom:12px}
.inp{font-size:16px;color:var(--ui-ink);border:1px solid var(--line-strong);background:var(--ui-card);padding:9px 10px;border-radius:var(--ui-radius);width:100%}
textarea.inp{min-height:88px;resize:none;line-height:1.4}
.inp::placeholder{color:var(--soft)}
@media (hover:hover){.chip:hover{background:var(--ui-ink);color:var(--ui-paper)}.lnk:hover{text-decoration-thickness:2px}}

/* ---------- designer, layout C: page on top, choices below ---------- */
.view{min-height:calc(100dvh - var(--bar))}
#v-design{height:calc(100dvh - var(--bar));min-height:0;display:grid;grid-template-rows:minmax(0,1.2fr) minmax(0,1fr)}
.stage{position:relative;background:var(--ui-dark);display:flex;flex-direction:column;min-height:0;min-width:0}
.stage-top{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;color:var(--ui-paper)}
.seg{display:flex;gap:16px}
.seg button{font-size:12px;text-transform:var(--ui-caps);letter-spacing:var(--ui-track);color:inherit;opacity:.6;padding:12px 0 10px;border-bottom:2px solid transparent;white-space:nowrap}
.seg button[aria-pressed="true"]{opacity:1;border-color:currentColor}
.stage-fit{flex:1;min-height:0;display:grid;place-items:center;padding-bottom:10px;overflow:hidden}
.scale{position:relative;flex:none}
.scale > .phone{position:absolute;left:0;top:0;transform-origin:0 0;box-shadow:none}
.tray{background:var(--ui-paper);border-top:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}
.tabs{flex:none;display:flex;gap:18px;height:44px;align-items:stretch;padding:0 16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;font-size:12px;text-transform:var(--ui-caps);letter-spacing:.08em;color:var(--soft);border-bottom:2px solid transparent;padding:2px 0 0;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--ui-ink);border-color:var(--ui-ink)}
.pane{flex:1;min-height:0;overflow-y:auto;padding:14px 16px 24px;overscroll-behavior:contain}
/* ---------- the chat that leads the designer (layout A). It copies the store's own order chat: the helper's picture at
   36px, its words set bare, the gifter's answer as a tinted block on the right, replies as outlined buttons with the
   store's corners, and a box with a square send button pinned under the thread. The panel is .talk: the shared gallery
   stylesheet already has a .chat, a 300px card. ---------- */
/* the thread is one column the width of the panel, so an answer on the right lines up with the right edge of the box
   under it, and on a wide screen with the count above and Next below */
.pane.talk{display:flex;flex-direction:column;gap:10px;padding:10px 16px 8px}
.pane.talk > *{flex:none;width:100%}
.c-bot{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;align-items:start}
.c-bot.bare{grid-template-columns:minmax(0,1fr)}
.c-bot > img{width:36px;height:36px;object-fit:contain;border-radius:var(--ui-radius);display:block}
.c-bot:has(> .helper-3d){grid-template-columns:72px minmax(0,1fr)}
.c-bot > .helper-3d{width:72px;height:72px;display:block;margin-top:-12px}
/* Loaded Tea's cup is a standing figure: it keeps the 32 by 48 its own order chat gives it, and overhangs the 36px row by 4px above and 8px below, the gap to what follows */
.c-bot > img.tall{width:32px;height:48px;margin:-4px 2px -8px;border-radius:0}
.c-say{font-size:15px;line-height:1.4;padding-top:7px;text-wrap:pretty}
.pane.talk > .c-me{align-self:flex-end;width:auto;max-width:80%;background:var(--tint);padding:8px 12px;border-radius:var(--ui-radius);font-size:15px;line-height:1.4;overflow-wrap:anywhere}
/* a card is answered with its picture */
.pane.talk > .c-me.pic{padding:4px}
.c-me.pic img{display:block;width:56px;height:56px;object-fit:cover;border-radius:var(--ui-radius)}
.c-in{display:flex;flex-direction:column;gap:8px}
.c-in .chips{gap:6px 8px;align-items:center}
/* Undo is a link at the end of the row, and the last line's Next is the screen's main button at the height of the others */
.c-in .lnk{padding:9px 4px}
.c-in .lnk::after{inset:-4px -6px}
.c-in .btn{min-height:34px;padding:0 16px}
/* three pictures across. A picture is never narrower than 102px, the room the longest name needs, so on a 320px screen
   the row scrolls sideways and no name is cut. The row reaches the panel's right edge, and keeps 4px all round for the
   outline of the chosen picture. */
.c-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(102px,132px);gap:8px;overflow-x:auto;scrollbar-width:none;margin:-4px -16px -4px -4px;padding:4px 16px 4px 4px}
.c-row::-webkit-scrollbar{display:none}
.c-row .tl-art{height:88px}
/* lettered cards are square and shown whole; 109px is the height a row of pictures with names takes */
.c-row.pics{grid-auto-columns:minmax(102px,109px)}
.c-pic{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:var(--ui-radius)}
/* one hairline round every picture in the chat, drawn on top, so a look on the store's own paper still has an edge */
.c-row .tl-art::after,.c-pic::after{content:"";position:absolute;inset:0;z-index:6;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--line);pointer-events:none}
.c-pic img{width:100%;height:100%;object-fit:cover;display:block}
.c-pic[aria-pressed="true"]{outline:2px solid var(--ui-ink);outline-offset:2px}
/* what kind of thing a search result is, in the corner of its picture: the store's ink and corners, solid, so it reads on
   any picture */
.tl-tag.kind{top:5px;bottom:auto}
/* every mark on a chat picture, the kind and "When opened" alike, wears that one style */
.c-row .tl-tag{background:var(--ui-ink);color:var(--ui-paper);border-radius:var(--ui-radius);padding:2px 6px}
.c-new{animation:c-rise .22s cubic-bezier(.2,.7,.2,1) both}
@keyframes c-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.c-new{animation:none}}
.ask{flex:none;display:flex;align-items:center;gap:8px;margin:0 16px 10px;border:1px solid var(--line-strong);background:var(--ui-card);border-radius:var(--ui-radius);padding:4px 4px 4px 12px}
.ask[hidden]{display:none}
.ask:focus-within{border-color:var(--ui-ink)}
.ask input{flex:1;min-width:0;height:36px;border:0;background:transparent;font-size:16px;color:var(--ui-ink);outline:0 solid transparent}
.ask input::placeholder{color:var(--soft)}
.ask button{width:36px;height:36px;flex:none;display:grid;place-items:center;background:var(--ui-ink);color:var(--ui-paper);border-radius:var(--ui-radius)}
.ask button svg{width:16px;height:16px}
/* the thread fades at an edge that has more beyond it */
.pane.talk.up{-webkit-mask-image:linear-gradient(transparent,#000 16px);mask-image:linear-gradient(transparent,#000 16px)}
.pane.talk.down{-webkit-mask-image:linear-gradient(#000 calc(100% - 16px),transparent);mask-image:linear-gradient(#000 calc(100% - 16px),transparent)}
.pane.talk.up.down{-webkit-mask-image:linear-gradient(transparent,#000 16px,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(transparent,#000 16px,#000 calc(100% - 16px),transparent)}
/* which question this is, at the right of the tab row, in the store's display face */
.tabs .count{margin-left:auto;align-self:center;font:400 17px/1 var(--ui-display);text-transform:var(--ui-caps);letter-spacing:.03em;color:var(--soft);white-space:nowrap}
/* with two tabs the row never scrolls, so it drops the fade that says there is more to the right */
.talk .tabs{padding-right:16px;-webkit-mask-image:none;mask-image:none}
/* in Browse the Chat tab stays put at the left, behind a short rule, while the eight lists scroll past it; its paper also
   covers the row's left padding, so no list name shows to the left of it */
.tabs [data-mode="chat"][aria-selected="false"]{position:sticky;left:0;z-index:1;padding-right:14px;background:linear-gradient(var(--line),var(--line)) no-repeat right center/1px 16px,var(--ui-paper);box-shadow:-16px 0 0 var(--ui-paper)}
/* a small arrow in front of it, so it reads as the way back to the chat and not as a ninth list */
.tabs [data-mode="chat"][aria-selected="false"]::before{content:"";display:inline-block;width:6px;height:6px;margin:0 7px 1px 2px;border-left:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg)}
/* read out by a screen reader, not shown */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the widest tile name ("Store packaging") is 101px at this size in either store font, so a tile is never narrower than 102px */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(102px,1fr));gap:12px 10px}
/* a group of exactly four (the light effects) sits in one row on a phone, so the fourth tile is never left alone on a line */
@media (max-width:699px){.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}}
.sub{font:400 19px/1 var(--ui-display);text-transform:var(--ui-caps);margin:20px 0 10px}
.sub:first-child{margin-top:0}
.tl{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:0}
.tl-art{position:relative;display:block;height:104px;overflow:hidden;isolation:isolate;border-radius:var(--ui-radius);box-shadow:inset 0 0 0 1px var(--line);background:var(--tint)}
.tl[aria-pressed="true"] .tl-art{outline:2px solid var(--ui-ink);outline-offset:2px}
.tl-name{font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl[aria-pressed="true"] .tl-name{text-decoration:underline;text-underline-offset:3px}
.tl-art .ground{position:absolute;inset:0}
.tl-art .g-bulbs{height:17px}
.mini-gift{position:absolute;left:50%;top:50%;width:58%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:2px;overflow:hidden;display:block;box-shadow:rgba(0,0,0,.2) 0 5px 12px;z-index:2}
.wrapart .mini-gift{width:66%}
.mini-gift img{width:100%;height:100%;object-fit:cover}
.mini-gift.bare{width:66%;overflow:visible;box-shadow:none}
/* on a theme tile a product photo in its box stays small, so the moving background shows around it */
.tl[data-kind="theme"] .mini-gift:not(.bare){width:40%}
.mini-gift.bare img{object-fit:contain;filter:drop-shadow(0 5px 6px rgba(0,0,0,.22))}
.mini-gift .tag{display:none}
.mini-gift .print{font-size:10px!important;gap:2px!important}
.mini-scratch{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;background:var(--ui-ink);color:var(--ui-paper)}
.tl-top{position:absolute;right:5px;top:5px;width:30px;height:30px;z-index:3;filter:drop-shadow(0 3px 4px rgba(0,0,0,.25))}
/* a drawn sticker carries words, so it shows larger than an emoji one in the corner of a theme */
.tl-top.kit{right:2px;top:2px;width:44px;height:44px}
/* two letters in a lettering for the title */
.tt-sample{font-size:40px;line-height:1;color:var(--ui-ink)}
.gw-mini{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* a tall painted scene keeps its houses, hills and lights low in the frame, so the tile shows that part */
.art-mini{object-position:50% 85%}
.gw-mini-fx{position:absolute;inset:0}
.gw-mini-fx svg{width:100%!important;height:100%!important}
.fxart canvas.fx{position:absolute;inset:0;width:100%;height:100%}
.tl-tag{position:absolute;left:5px;bottom:5px;z-index:5;font-size:12px;line-height:1.2;color:#FFFFFF;background:rgba(0,0,0,.5);padding:2px 5px;border-radius:2px}
.tl-art.plain{display:grid;place-items:center}
/* a gift the store sells. Among other tiles it is a tile like them. In a list of its own (the Gift tab, and the chat's
   first question) it lies on its side: a 96px photo (88px in the chat on a phone, where the panel is short), then the
   name on one line with the price of one under it. The chosen one is outlined; its name is not underlined, because
   beside a photo an underlined name reads as a link. */
.prod-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tl-sub{font-size:12px;line-height:1.2;color:var(--soft)}
.grid.prods{grid-template-columns:repeat(auto-fill,minmax(264px,1fr));gap:12px 16px}
.prods .tl,.rail .tl{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:3px}
.grid.prods .tl-art,.c-row.rail .tl-art{grid-row:1 / 3;width:96px;height:96px}
.prods .tl[aria-pressed="true"] .tl-name,.rail .tl[aria-pressed="true"] .tl-name{text-decoration:none}
.prods .tl-name,.rail .tl-name{grid-row:1;align-self:end;font-size:14px}
.prods .tl-sub,.rail .tl-sub{grid-row:2;align-self:start;font-size:13px}
/* each one is as wide as its own name needs, and never under 200px, so no name is cut */
.c-row.rail{grid-auto-columns:max-content;gap:16px}
.rail .tl{min-width:216px}
@media (max-width:699px){
  .rail .tl{grid-template-columns:88px minmax(0,1fr)}
  .c-row.rail .tl-art{width:88px;height:88px}
}
.none-mark{display:block;width:34%;height:1px;background:var(--soft);transform:rotate(-45deg)}
/* a plus sign on the tile that asks for the gifter's own picture */
.add-mark{position:relative;display:block;width:24%;aspect-ratio:1}
.add-mark::before,.add-mark::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--ui-paper)}
.add-mark::after{transform:rotate(90deg)}
.top-img{width:60px;height:60px}
/* die-cut stickers carry words, so they are shown larger than the emoji ones */
.top-img.kit{width:84px;height:84px}
/* a painted effect's pieces, laid still in its tile */
.pt{position:absolute;width:26%;height:auto;z-index:1}
.mini-gift.bare .g3-bg{display:none}
.locked-note{padding:6px 0 14px}
.intro{margin-bottom:12px}
.groups{margin-bottom:14px}
.chip small{margin-left:6px;font-size:12px;opacity:.7}
/* colour */
.hue{display:block;width:100%;height:30px;margin:14px 0 6px;-webkit-appearance:none;appearance:none;border-radius:var(--ui-radius);background:linear-gradient(90deg,oklch(.6 .17 0),oklch(.6 .17 45),oklch(.6 .17 90),oklch(.6 .17 135),oklch(.6 .17 180),oklch(.6 .17 225),oklch(.6 .17 270),oklch(.6 .17 315),oklch(.6 .17 359))}
.hue::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:38px;border-radius:2px;background:#FFFFFF;border:2px solid var(--ui-ink)}
.hue::-moz-range-thumb{width:16px;height:34px;border-radius:2px;background:#FFFFFF;border:2px solid var(--ui-ink)}
/* media */
.gifs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:10px}
.gifs button{display:block;border-radius:var(--ui-radius)}
.gifs img{display:block;width:100%;height:84px;object-fit:cover;border-radius:var(--ui-radius)}
.gifs button[aria-pressed="true"]{outline:2px solid var(--ui-ink);outline-offset:2px}
/* the studio's meme pictures and cards are square and shown whole */
.gifs.sq img{height:auto;aspect-ratio:1}
.gifs .price{display:block;font-size:12px;margin-top:4px;text-align:left}
.mm{display:grid;grid-template-columns:repeat(auto-fill,104px);gap:10px;margin-top:10px;justify-content:space-between}
.mm button{display:flex;flex-direction:column;gap:6px;text-align:left;width:104px}
.mm .meme-box{width:104px;height:104px;border-radius:var(--ui-radius)}
.mm .meme-in{transform:scale(.3467)}
.mm button[aria-pressed="true"] .meme-box{outline:2px solid var(--ui-ink);outline-offset:2px}
.block{margin-top:16px}

/* ---------- send, pay, track ---------- */
.vh{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:56px;padding:0 16px;background:var(--ui-paper);border-bottom:1px solid var(--line)}
.brand{display:block;font:400 24px/1 var(--ui-display);text-transform:var(--ui-caps);white-space:nowrap}
.brand svg{display:block;height:24px;width:auto}
.pg{font:400 36px/1 var(--ui-display);text-transform:var(--ui-caps);text-wrap:balance;margin-bottom:8px}
.pg + .note{margin-bottom:14px}
.vh > :first-child{justify-self:start}.vh > :last-child{justify-self:end}
.col{max-width:640px;margin:0 auto;padding:22px 16px 72px;display:flex;flex-direction:column;gap:30px}
.col h2{font:400 22px/1.05 var(--ui-display);text-transform:var(--ui-caps);margin-bottom:10px;text-wrap:balance}
.col h2 + .note{margin:-4px 0 10px}
.people,.rows{list-style:none;border:1px solid var(--line);background:var(--ui-card);border-radius:var(--ui-radius)}
.people li{padding:10px 12px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.people li:last-child,.rows li:last-child{border-bottom:0}
.who{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.who b{display:block;font-weight:400;font-size:16px;line-height:1.3}
.who span{display:block;font-size:13px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who .lnk{padding:4px 0}
.people .chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
.people.three .chips{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
.people .chip{justify-content:center;text-align:center}
.gift-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;margin-bottom:14px;border:1px solid var(--line);background:var(--ui-card);border-radius:var(--ui-radius)}
.proto + .gift-row,.note + .gift-row{margin-top:12px}
.g-thumb{display:grid;place-items:center;width:64px;height:64px;background:var(--tint);border-radius:var(--ui-radius);overflow:hidden}
.g-thumb img{width:100%;height:100%;object-fit:contain}
.g-txt b{display:block;font-weight:400;font-size:16px;line-height:1.3}
.g-txt small{display:block;font-size:13px;color:var(--soft)}
/* the store's own icons (the set it approved in its setup chat) mark a person's status on the tracking screen and sit
   above the pay and empty tracking screens. A set made of whole pictures, such as objects on black, takes the store's corner. */
.spot{width:44px;height:44px;object-fit:contain;flex:none}
.spot.xl{display:block;width:96px;height:96px;margin-bottom:12px}
.spot.card{border-radius:3px}
.spot.tile,.col h2.marked img.tile{border-radius:var(--ui-radius)}
.who.pic{grid-template-columns:44px minmax(0,1fr) auto;align-items:center}
.lead{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.lead .note{margin:0}
/* a section heading with one of the store's icons in front of it */
.col h2.marked{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center}
.col h2.marked img{width:48px;height:48px;object-fit:contain}
.tray-foot{display:none}
.extra{font-size:13px;color:var(--soft)}
.inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.add{display:grid;gap:8px;margin-bottom:12px;justify-items:start}
.rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:14px}
.rows li span:last-child{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.rows li.total{font-size:16px}
.tog{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px;cursor:pointer}
.tog input{width:22px;height:22px;accent-color:var(--ui-ink)}
.mail{border:1px solid var(--line);background:var(--ui-card);border-radius:var(--ui-radius);overflow:hidden;margin-top:12px}
.mail-h{padding:10px 12px;border-bottom:1px solid var(--line);font-size:13px;color:var(--soft)}
.mail-h b{display:block;color:var(--ui-ink);font-weight:400;font-size:15px}
.mail-pic{display:block;width:100%;height:auto}
.mail-card{height:404px;overflow:hidden;display:grid;justify-items:center;padding-top:12px;background:var(--tint)}
.steps4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.steps4 span{padding-top:6px;border-top:2px solid var(--line);font-size:12px;color:var(--soft);white-space:nowrap}
.steps4 span.on{border-color:var(--ui-ink);color:var(--ui-ink)}
/* a drawn tick, so a finished step is not told by tone alone */
.steps4 span.on::before{content:"";display:inline-block;width:4px;height:8px;margin:0 5px 1px 1px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.thanks li{display:block;font-size:15px}
.thanks small{display:block;font-size:13px;color:var(--soft)}
.pay-cta{display:grid;gap:10px;justify-items:start}

/* full-page preview and store settings */
.fullview{position:fixed;inset:0;z-index:30;background:var(--ui-dark);display:grid;grid-template-rows:44px minmax(0,1fr);justify-items:center;color:var(--ui-paper)}
.fullview .stage-fit{width:100%;padding-bottom:0}
.drawer{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.5);display:flex;justify-content:flex-end}
.drawer .panel{width:min(420px,100%);height:100%;overflow-y:auto;background:#FFFFFF;color:#111111;font:400 14px/1.45 system-ui,sans-serif;padding:16px 16px 40px}
.panel h2{font:600 18px/1.2 system-ui,sans-serif;margin-bottom:4px}
.panel h3{font:600 14px/1.2 system-ui,sans-serif;margin:20px 0 8px}
.panel p{color:#555555;font-size:13px}
.panel label{display:flex;align-items:center;gap:8px;padding:6px 0}
.panel select{padding:6px 8px;border:1px solid #CCCCCC;border-radius:4px;background:#FFFFFF}
.panel details{border-top:1px solid #E5E5E5;padding:8px 0}
.panel summary{cursor:pointer;font-weight:600}
.panel .cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;margin-top:6px}
.panel .x{float:right;text-decoration:underline;padding:4px}
.panel :focus-visible{outline-color:#111111}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,8px);opacity:0;background:var(--ui-ink);color:var(--ui-paper);padding:10px 14px;font-size:13px;border-radius:var(--ui-radius);max-width:calc(100% - 32px);transition:opacity .2s var(--ease),transform .2s var(--ease);pointer-events:none;z-index:50;text-wrap:pretty}
.toast.on{opacity:1;transform:translate(-50%,0)}

@media (max-width:359px){
  .stage-top{gap:8px;padding:0 10px}
  .seg{gap:10px}
  .seg button,.lnk{letter-spacing:.02em}
  .btn{padding:0 12px}
  .tabs{gap:14px}
  .pg{font-size:30px}
  .people .chips,.people.three .chips{grid-template-columns:minmax(0,1fr)}
}
/* on a phone the tab row scrolls sideways; the fade on the right says there is more */
@media (max-width:1199px){
  .tabs{padding-right:44px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 44px),transparent)}
}
/* on a phone the background groups are one row that scrolls sideways, so the pictures stay on the first screen */
@media (max-width:699px){
  .groups{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 44px 0 16px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 44px),transparent)}
  .groups::-webkit-scrollbar{display:none}
  /* each group button carries its own count, so the total line gives its room to the pictures */
  .bg-count{display:none}
  .groups .chip{flex:none}
}
/* when the page column itself is narrow, its top row tightens, whatever the window width */
.stage{container-type:inline-size}
@container (max-width:359px){
  .stage-top{gap:8px;padding:0 10px}
  .seg{gap:10px}
  .seg button,.pv{letter-spacing:.02em}
  .pv{padding:0 9px}
  .stage-top .btn{padding:0 12px}
}
/* a question, its three pictures and its buttons take 322px of lower panel (44 tabs, 221 thread, 56 box, 1 line). On a
   phone the chat keeps at least that, as long as the page above still gets about 300px. */
@media (max-width:699px) and (min-height:660px){
  #v-design.talk{grid-template-rows:minmax(0,1.2fr) minmax(322px,1fr)}
}
/* a shorter phone: the chat takes up to 304px (never more than 57% of the height) and its pictures give up 16px, so
   a question with three pictures still shows whole on a 568px screen */
@media (max-width:699px) and (max-height:659px){
  #v-design.talk{grid-template-rows:minmax(0,1fr) minmax(0,min(304px,57%))}
  .c-row .tl-art{height:72px}
  .c-row.pics{grid-auto-columns:minmax(0,93px)}
  /* die-cut stickers are drawn at 84px in the lists; here they fit the shorter picture whole */
  .c-row .top-img.kit{width:64px;height:64px}
}
/* under 354px three pictures do not fit side by side, so the row scrolls sideways and fades at the right to say so;
   the buttons tighten so the usual four stay on one row */
@media (max-width:353px){
  .c-row:not(.pics){-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  .c-in .chips{gap:6px}
  .c-in .chip.sm{padding:5px 9px}
}
/* any wide screen, including a short and wide preview pane: the page on the left, the choices on the right */
@media (min-width:700px){
  #v-design{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(320px,2fr) minmax(0,3fr)}
  .tray{border-top:0;border-left:1px solid var(--line)}
  /* on a wide screen the thread sits against the box the gifter types in, and grows upward. There is room, so the
     pictures are larger and the buttons are the full 38px of the store's own order chat. */
  .pane.talk > :first-child{margin-top:auto}
  .c-row,.c-row.pics{grid-auto-columns:minmax(102px,168px)}
  .c-row .tl-art{height:112px}
  .c-in .chip.sm{min-height:38px;padding:7px 14px;font-size:14px}
  .c-in .btn{min-height:38px}
  .stage-top .btn{display:none}
  .tray-foot{display:flex;justify-content:flex-end;padding:12px 24px;border-top:1px solid var(--line)}
  .col{padding-top:32px}
}
/* too short for a footer: Next goes back to the top row */
@media (min-width:700px) and (max-height:520px){
  .tray-foot{display:none}
  .stage-top .btn{display:inline-flex}
}
@media (min-width:1200px){
  #v-design{grid-template-columns:minmax(0,1fr) 668px}
  .tabs{gap:18px;padding:0 20px}
  .pane{padding:20px 24px 32px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:14px 12px}
  .tl-art{height:118px}
  .pane.talk{padding:20px 24px 12px}
  .talk .tabs{padding:0 24px}
  .ask{margin:0 24px 16px}
  .c-row{margin-right:-24px;padding-right:24px}
  .c-row .tl-art{height:132px}
  .stage-top{padding:0 20px}
}

/* ---------- add-ons to the shared unwrap page ---------- */
.gw-bg{position:absolute;inset:0;width:100%;height:100%}
.art-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* art backgrounds keep their own colours, so the store's text colour can land on any tone. The small text (the note; the
   gift's name and sender) gets a flat plate only where the picture behind it would make it hard to read (the engine adds
   .plate, on both blocks or neither): the store's own dark under light text, its paper under dark text, both solid so the
   plate keeps the store's exact colour over any picture (at 60% the dark turned slate over snow and brown over a sunset,
   and at 85% a sunset still warmed it).
   The room for the plate is always kept, so adding one never moves the page.
   On dark pictures the title and logo keep a soft dark halo */
.phone.on-art .p-msg,.phone.on-art .p-after{padding:8px 14px 9px;border-radius:var(--b-radius-sm)}
.phone.on-art .p-msg.plate,.phone.on-art .p-after.plate{background:var(--ui-dark)}
.phone.on-art:not(.is-dark) .p-msg.plate,.phone.on-art:not(.is-dark) .p-after.plate{background:var(--b-paper)}
.phone.on-art .p-msg{max-width:327px}
.phone.on-art .p-msg:empty{padding:0}
/* the fade behind the claim buttons is shorter here, so it does not fog the bottom of the picture */
.phone.on-art .bottomfade{height:104px}
.phone.on-art .p-merchant,.phone.on-art .p-after small{opacity:1}
.phone.on-art.is-dark .p-title,.phone.on-art.is-dark .p-merchant{text-shadow:0 0 3px rgba(10,10,18,.55),0 0 16px rgba(10,10,18,.6)}
.phone.on-art.is-dark .p-merchant svg{filter:drop-shadow(0 0 2px rgba(10,10,18,.5)) drop-shadow(0 0 10px rgba(10,10,18,.55))}
.gw-fx{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
.gw-fx svg{width:100%!important;height:100%!important}
.g-print{position:absolute;inset:0;overflow:hidden}
.g-print .print{position:absolute;left:-40%;top:-40%;width:180%;height:180%;transform:rotate(-18deg);display:flex;flex-direction:column;gap:10px;font:400 26px/1 var(--b-display);text-transform:var(--b-case);white-space:nowrap;color:var(--t-print);opacity:.22}
.phone .p-content{overflow-y:auto;scrollbar-width:none}
.phone .p-content::-webkit-scrollbar{display:none}
.phone .p-title{text-wrap:balance}
.phone .p-slot{position:relative;width:100%;flex:none;display:flex;flex-direction:column;align-items:center}
.phone .p-notewrap{display:flex;flex-direction:column;align-items:center;width:100%}
.phone .p-msg{text-wrap:pretty}
.phone .p-line{display:block;margin-top:14px}
.phone .p-merchant svg{display:block;height:26px;width:auto;margin:0 auto}
.phone.has-media .p-slot{min-height:182px;margin-top:12px;justify-content:center}
.phone.has-media .p-msg{margin-top:0;font-size:15px}
.phone .teaser{position:absolute;inset:0;display:grid;place-items:center;transition:opacity 300ms var(--ease)}
.phone[data-state="intro"] .teaser,.phone[data-state="open"] .teaser{opacity:0;pointer-events:none}
.phone .p-media{margin-top:8px;opacity:0;transition:opacity 300ms var(--ease) 250ms}
.phone[data-state="open"] .p-media{opacity:1}
/* a paper mat turns any upload or GIF into a framed print, whatever its own background is */
.m-frame{position:relative;display:block;overflow:hidden;border-radius:var(--b-radius-img);border:5px solid var(--b-paper);background:var(--b-paper);box-shadow:rgba(0,0,0,.22) 0 10px 24px}
.p-media .m-frame{border-width:3px}
/* cut-out art (no background of its own) sits straight on the page */
.m-cut{position:relative;display:block}
.m-cut img{display:block}
.teaser .m-cut img{max-width:230px;max-height:186px}
.p-media .m-cut img{max-width:130px;max-height:104px}
.m-frame img,.m-frame video{display:block}
.teaser .m-frame img,.teaser .m-frame video{max-width:270px;max-height:182px}
.p-media .m-frame img,.p-media .m-frame video{max-width:150px;max-height:88px}
.cap{position:absolute;left:4px;right:4px;font:400 20px/1.05 var(--b-display);text-transform:uppercase;color:#FFFFFF;text-shadow:0 0 2px #000000,0 0 2px #000000,0 1px 3px #000000;text-align:center}
.teaser .cap{font-size:20px}
.p-media .cap{font-size:12px}
.cap-t{top:6px}
.cap-b{bottom:8px}
.meme-box{position:relative;display:block;overflow:hidden;border-radius:var(--b-radius-img);text-align:left}
.teaser .meme-box{width:182px;height:182px;box-shadow:rgba(0,0,0,.22) 0 10px 24px}
.p-media .meme-box{width:88px;height:88px}
.meme-in{position:absolute;left:0;top:0;width:300px;height:300px;transform-origin:0 0;display:block}
.meme-in .impact,.meme-in .m-tier > div b,.meme-in .m-cert .k{font-family:var(--b-display,var(--ui-display));font-weight:400}
.teaser .meme-in{transform:scale(.6067)}
.p-media .meme-in{transform:scale(.2934)}
.phone.has-media .gift{width:190px;height:190px;margin-top:14px}
.gift-box{position:relative;flex:none}
.gift-box .topper{position:absolute;top:-38px;right:-34px;width:72px;height:72px;z-index:5;filter:drop-shadow(0 8px 10px rgba(0,0,0,.25));transition:transform 300ms var(--ease),opacity 300ms var(--ease);transform:rotate(12deg)}
.phone[data-state="intro"] .gift-box .topper{opacity:0;transform:translateY(-30px) rotate(12deg)}
.phone[data-state="open"] .gift-box .topper{transform:translate(18px,-36px) rotate(24deg) scale(.8)}
.phone.has-media .gift-box .topper{top:-20px;right:-26px;width:60px;height:60px}
.gift-box .topper.kit{top:-52px;right:-46px;width:104px;height:104px}
.phone.has-media .gift-box .topper.kit{top:-30px;right:-34px;width:80px;height:80px}
/* one of the new stickers belongs to the wrapped gift: it leaves as the gift opens, so it never sits on the words of the open page */
.phone[data-state="opening"] .gift-box .topper.kit,.phone[data-state="open"] .gift-box .topper.kit{opacity:0}
/* on a store's 3D box a sticker sits on the face of the box, clear of the bow and of the screen edge, and leaves with the box */
.phone .gift-box .gift.kit3d ~ .topper{top:52%;right:16%;width:60px;height:60px}
.phone .gift-box .gift.kit3d ~ .topper.kit{top:46%;right:10%;width:84px;height:84px}
.phone[data-state="opening"] .gift-box .gift.kit3d ~ .topper,.phone[data-state="open"] .gift-box .gift.kit3d ~ .topper{opacity:0}
/* a store's own 3D wrapped gift stands free on the page, with the gift itself hidden until it is unwrapped. The page's own
   states drive it: while it is opening the closed box swaps to the open box, and once open the box lifts away and the gift comes in */
.phone:not([data-state="open"]) .gift.kit3d{box-shadow:none}
.gift.kit3d > img{opacity:0;transition:opacity 300ms var(--ease);}
.phone[data-state="open"] .gift.kit3d > img{opacity:1}
.gift.kit3d .g3-bg{display:none}
.wrap.gift3d.kit .g3{left:4%;top:4%;width:92%;height:92%}
.wrap.gift3d.kit .g3-open{opacity:0}
.opened .wrap.gift3d.kit .g3-shut{transform:none;opacity:0;transition:opacity 150ms var(--ease) 0ms}
.phone[data-state="opening"] .wrap.gift3d.kit .g3-open{opacity:1;transform:none;transition:opacity 150ms var(--ease) 0ms}
.phone[data-state="open"] .wrap.gift3d.kit .g3-open{opacity:0;transform:translateY(-10%) scale(1.08);transition:opacity 300ms var(--ease) 0ms,transform 300ms var(--ease) 0ms}
/* A logo-and-color fallback for imported merchants with no wrapping artwork.
   Container units keep the same box geometry in a small choice and full preview. */
.wrap.brand3d{container-type:inline-size;perspective:900px;overflow:visible}
.brand-box{--edge:56cqw;position:absolute;left:22%;top:27%;width:var(--edge);height:var(--edge);transform-style:preserve-3d;transform:rotateX(-22deg) rotateY(-30deg);transition:transform 600ms var(--ease),opacity 350ms var(--ease);}
.brand-face,.brand-lip{position:absolute;inset:0;background:var(--box-paper);backface-visibility:hidden;outline:1px solid color-mix(in srgb,var(--box-paper),black 12%)}
.brand-front{transform:translateZ(calc(var(--edge)/2));background:linear-gradient(125deg,rgba(255,255,255,.08),rgba(0,0,0,.08)),var(--box-paper)}
.brand-side{transform:rotateY(90deg) translateZ(calc(var(--edge)/2));background:linear-gradient(90deg,rgba(0,0,0,.2),rgba(0,0,0,.38)),var(--box-paper)}
.brand-box-logo{position:absolute;inset:32% 12%;display:flex;align-items:center;justify-content:center;color:var(--box-ink);font:400 8cqw/1.1 var(--b-display);text-align:center;text-wrap:balance;overflow-wrap:anywhere}
.brand-box-logo img,.brand-box-logo svg{display:block;width:100%;height:auto;object-fit:contain;filter:none}
.brand-box-lid{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 550ms var(--ease),opacity 450ms var(--ease);}
.brand-top{transform:rotateX(90deg) translateZ(calc(var(--edge)/2));background:linear-gradient(120deg,rgba(255,255,255,.18),rgba(255,255,255,.04)),var(--box-paper)}
.brand-lip{height:12%;box-shadow:0 2px 2px rgba(0,0,0,.25)}
.brand-lip-front{transform:translateZ(calc(var(--edge)/2 + 1px));background:color-mix(in srgb,var(--box-paper),white 12%)}
.brand-lip-side{transform:rotateY(90deg) translateZ(calc(var(--edge)/2 + 1px));background:color-mix(in srgb,var(--box-paper),black 16%)}
.brand3d-ribbon .brand-front::before,.brand3d-ribbon .brand-top::before,.brand3d-ribbon .brand-lip-front::before{content:"";position:absolute;top:0;bottom:0;left:13%;width:12%;background:linear-gradient(90deg,rgba(255,255,255,.3),transparent 40%,rgba(0,0,0,.14)),var(--box-ink)}
.brand3d-ribbon .brand-box-logo{left:32%;right:7%}
.opened .brand-box-lid{transform:translateY(-65%) rotateZ(-8deg);opacity:0}
.opened .brand-box{opacity:0;transform:translateY(8%) rotateX(-22deg) rotateY(-30deg);transition-delay:300ms}
.phone[data-state="open"] .brand-box{opacity:0}
@media (prefers-reduced-motion:reduce){.brand-box,.brand-box-lid{transition:none}}
.phone.has-media[data-state="open"] .gift-box .topper{opacity:0}
.phone .p-after,.phone .tap{flex:none}
.p-logo{display:inline-block;height:22px;width:auto;margin-left:8px;vertical-align:middle;background:rgba(255,255,255,.92);padding:2px 5px;border-radius:2px}
/* effects sit behind the words and the gift, so nothing lands on the headline or the note */
.phone canvas.fx,.phone .gw-fx{z-index:2}
/* the claim pill and the sheets wear the store's paper, ink and corners */
/* one main button everywhere: Tap to unwrap, Claim your gift and the send buttons in the sheets look like Next and Review */
.phone .tap,.phone .pill [data-sheet="claim"],.phone .sheet-p .go{background:var(--p-btn);color:var(--p-on-btn);border-radius:var(--b-radius-btn);font-size:13px;font-weight:400;text-transform:var(--ui-caps);letter-spacing:var(--ui-track)}
.phone .pill{background:none;box-shadow:none;border-radius:0;gap:10px;color:var(--t-text)}
.phone .pill i{display:none}
.phone .pill button{padding:13px 18px}
.phone .pill [data-sheet="thanks"]{border:1px solid currentColor;border-radius:var(--b-radius-btn);font-size:13px;font-weight:400;text-transform:var(--ui-caps);letter-spacing:var(--ui-track)}
/* the preview wears the store's own corner, and the big gift steps back while a sheet is open */
.phone{border-radius:var(--b-radius-card,4px)}
.phone .p-media,.phone .gift-box{transition:opacity 300ms var(--ease)}
.phone.sheet-open .p-media,.phone.sheet-open .gift-box{opacity:0}
.phone .sheet-p{background:var(--b-paper);color:var(--b-ink);border-radius:var(--b-radius-card) var(--b-radius-card) 0 0;box-shadow:0 -12px 32px rgba(0,0,0,.22);
  --t-sheet:var(--b-paper);--t-line:color-mix(in srgb,var(--b-ink) 60%,transparent);--t-round:color-mix(in srgb,var(--b-ink) 9%,transparent);--t-sheet-btn:var(--b-ink);--t-sheet-btn-text:var(--b-paper)}
.phone .fl{display:block;margin-top:12px;font-size:12px;line-height:1.3;opacity:.85}
.phone .sheet-p .fl input.field,.phone .sheet-p .fl select.field{display:block;width:100%;margin-top:8px;padding:4px 0 8px}
.phone .s-gift{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;margin-top:12px;font-size:15px;line-height:1.3}
.phone .s-gift img{width:44px;height:44px;object-fit:contain}
.phone .s-gift small{display:block;font-size:12px;opacity:.85}
/* real forms in the claim and thanks sheets */
.phone .sheet-p form{display:block}
.phone .sheet-p input.field,.phone .sheet-p select{width:100%;background:transparent;border:0;border-bottom:1px solid var(--t-line);border-radius:0;color:inherit;font:inherit;font-size:16px;padding:14px 0 8px;opacity:1}
.phone .sheet-p input.field::placeholder{color:inherit;opacity:.6}
.phone .sheet-p .need input.field:placeholder-shown{border-bottom-color:var(--b-accent)}
.phone .sheet-p :focus-visible{outline:2px solid var(--b-accent);outline-offset:3px}
.phone .how{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.phone .how button{padding:10px 8px;border-radius:var(--b-radius-btn);border:1px solid var(--t-line);font-size:14px;color:inherit;white-space:nowrap}
.phone .how button[aria-pressed="true"]{background:var(--t-sheet-btn);color:var(--t-sheet-btn-text);border-color:transparent}
.phone .pick{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:16px;border-bottom:1px solid var(--t-line)}
.phone .pick select{width:auto;border:0;text-align:right}
.phone .card-note{margin-top:14px;font-size:15px;line-height:1.4}
/* the store's own gift card, shown when the recipient chooses a gift card over the parcel */
.phone .card-note .gc{display:block;width:168px;height:auto;margin:0 auto 12px;border-radius:var(--b-radius-sm);box-shadow:rgba(0,0,0,.18) 0 6px 16px}
.phone .sheet-p .close{padding:12px 0}
/* a claim form taller than its card scrolls inside the card: the heading starts in view, and Back and Send stay at the
   foot. The sheet's own bottom padding moves into that foot, which hangs 2px past the edge because a page scaled to a
   small phone can round a sliver of the form into view below it. */
.phone .sheet-p{max-height:calc(100% - 16px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding-bottom:0;scroll-padding:16px 0 96px}
.phone .sheet-p .sheet-foot{position:sticky;bottom:-2px;z-index:1;margin:18px -22px 0;padding:8px 22px 20px;background:var(--b-paper)}
.phone .sheet-p .sheet-foot::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:18px;background:linear-gradient(to top,var(--b-paper),transparent);pointer-events:none}
/* a closed sheet waits below the card, so its shadow must not smudge the card's foot */
.phone:not(.sheet-open) .sheet-p{box-shadow:none}
/* the claim form covers most of the card, so the words behind it step back too, instead of showing cut in half */
.phone.sheet-open[data-sheet="claim"] :is(.p-title,.p-msg,.p-after){opacity:0}
/* the page adds its notices first in the form; they read after the heading and the gift */
.phone form.addr{display:flex;flex-direction:column;overflow-wrap:anywhere}
.phone form.addr > h4,.phone form.addr > .s-gift{order:-2}
.phone form.addr > .gw-claim-notice{order:-1;margin-top:10px}
.phone form.addr > [role=alert]{margin-top:12px;font-size:14px;line-height:1.4;text-wrap:pretty}
/* a gift with no picture gives its name the whole row */
.phone .s-gift span:only-child{grid-column:1/-1}
/* the US address: short answers share a row, so the form is about a quarter shorter; other fields take the whole row */
.phone .ship{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.phone .ship .fl:not(.half){grid-column:1/-1}
.phone .ship .half .field{height:34px}
.phone.claimed .pill [data-sheet="claim"],.phone.thanked .pill [data-sheet="thanks"]{opacity:.55;pointer-events:none}
.phone .pill button{white-space:nowrap}
/* the row of claim buttons shows only on the opened page; until then it is see-through, and it must not take the taps
   meant for what is under it (on a short screen that is Tap to unwrap) */
.phone:not([data-state="open"]) .pill{pointer-events:none}
/* a page too short for its stack (a short screen, or a long title) gives up 48px of air before the gift is made any
   smaller; fitGift in gw-engine.js sets the class and then scales the gift for whatever is still missing */
.phone.tight .p-content{padding-top:16px;padding-bottom:26px}
.phone.tight .p-title{margin-top:14px}
.phone.tight .gift{margin-top:12px}
.phone.tight .p-after{margin-top:10px}
.phone.tight .tap{margin-top:16px}
/* once open, the words end above the row of claim buttons (the 90px foot fitGift keeps), so nothing is ever drawn behind
   them, and the fade that backs those buttons sits under the words. Past the gift's floor the page scrolls inside that
   space ("scrolls", set by fitGift), with its last line softened so it reads as more to come. */
.phone .bottomfade{z-index:2}
.phone[data-state="open"] .p-content{bottom:90px;padding-bottom:0}
.phone.scrolls[data-state="open"] .p-content{padding-bottom:20px;-webkit-mask-image:linear-gradient(to top,transparent,#000 20px);mask-image:linear-gradient(to top,transparent,#000 20px)}
/* the claimed gift's status lines and buttons keep their distance from each other */
.p-after [data-handoff] .chip{margin:8px 4px 0}
/* over a background these buttons take the words' own color: the store's paper fill under light words was white on white */
.phone .p-after [data-handoff] .chip{background:transparent;color:inherit;border-color:currentColor}

/* recipient page */
body.recipient{background:var(--ui-dark);min-height:100dvh;display:grid;place-items:center;overflow:hidden}
.rc-fit{position:relative}
.rc-fit > .phone{position:absolute;left:0;top:0;transform-origin:0 0}
.rc-msg{max-width:320px;padding:24px;color:var(--ui-paper);text-align:center;text-wrap:balance}

@media (prefers-reduced-motion:reduce){
  .toast,.phone .teaser,.phone .p-media,.gift-box .topper,.gift.kit3d > img,.wrap.gift3d.kit .g3{transition-duration:1ms!important;transition-delay:0ms!important}
}

/* ---------- the chat-only designer (agent.js, 2026-11-25): one column, the gift page inside the thread ----------
   Shape taken from Brandon's two kept chat references (his Mimetic demo and the Giftwell onboarding chat): the helper's
   sentence, a short log of what it did, the result as a card in the thread, short replies to tap, and the box pinned
   at the bottom. Colours, fonts and corners are the store's. */
#v-agent{height:calc(100dvh - var(--bar));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--ui-paper)}
#v-agent > *{width:100%;max-width:760px;margin-left:auto;margin-right:auto;min-width:0}
.ag-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;height:52px;padding:0 16px;border-bottom:1px solid var(--line)}
.ag-top{height:auto;min-height:52px;padding-top:8px;padding-bottom:8px}
.editor-switch{white-space:nowrap;text-wrap:balance;min-height:36px;flex:none}
.ag-top .editor-switch{grid-column:1/-1;justify-self:start}
.stage>.editor-switch{align-self:flex-start;margin:4px 12px;color:var(--ui-paper)}
.ag-top .brand{font-size:22px}
.ag-top .brand svg{height:22px}
.ag-step{font-size:12px;text-transform:var(--ui-caps);letter-spacing:var(--ui-track);color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-thread{position:relative;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 8px;display:flex;flex-direction:column;gap:12px;scrollbar-width:none}
.ag-thread::-webkit-scrollbar{display:none}
.ag-thread > *{flex:none}
.ag-thread > :first-child{margin-top:auto}
.ag-me{align-self:flex-end;max-width:min(82%,440px);background:var(--tint);padding:9px 12px;border-radius:var(--ui-radius);font-size:15px;line-height:1.4;text-wrap:pretty;overflow-wrap:anywhere}
.ag-bot .c-say{overflow-wrap:anywhere}
.ag-thread .proto{margin-top:0}
/* what the helper just did */
.ag-log{display:grid;gap:5px}
.ag-log > div{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:baseline;font-size:13px;line-height:1.35}
.ag-log b{font-weight:400;font-size:11px;letter-spacing:.09em;text-transform:uppercase}
.ag-card{background:var(--ui-card);border:1px solid var(--line);border-radius:var(--ui-radius);padding:12px}
.ag-card h4{display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:400;font-size:14px;line-height:1.3;margin-bottom:10px}
.ag-card h4 .lnk{padding:0}
/* the gift page as it stands, live; a tap opens it full size */
.ag-page{width:fit-content;max-width:100%}
.ag-side{display:grid;grid-template-columns:auto auto;gap:14px;align-items:start}
.ag-pv{display:block;cursor:pointer;border-radius:var(--ui-radius)}
.ag-pv .scale{display:block;width:164px;overflow:hidden;border-radius:var(--ui-radius);box-shadow:0 0 0 1px var(--line)}
.ag-pv .phone,.ag-look .phone{pointer-events:none}
.ag-parts{list-style:none;display:grid;gap:7px;font-size:13px;line-height:1.3;padding-top:2px}
.ag-parts li{display:grid;grid-template-columns:11px auto;gap:7px;align-items:center;white-space:nowrap}
.ag-parts .sum{display:block;margin-top:6px;color:var(--soft)}
/* gifts: square photos with the name and the price of one under each */
.ag-gifts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
.ag-gift{display:flex;flex-direction:column;gap:5px;text-align:left;min-width:0}
.ag-ph{display:block;aspect-ratio:1;overflow:hidden;border-radius:var(--ui-radius);background:var(--tint)}
.ag-ph img{display:block;width:100%;height:100%;object-fit:cover}
.ag-gift[aria-pressed="true"] .ag-ph{outline:2px solid var(--ui-ink);outline-offset:2px}
.ag-name{font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-sub{font-size:13px;line-height:1.2;color:var(--soft)}
/* looks, backgrounds and effects: whole moving pages, with no gift on them, in a row that scrolls sideways */
.ag-looks{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:10px;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding:2px 16px 2px 2px}
.ag-looks::-webkit-scrollbar,.ag-pics::-webkit-scrollbar{display:none}
.ag-look{display:flex;flex-direction:column;gap:6px;cursor:pointer}
.ag-look .scale{display:block;width:142px;overflow:hidden;border-radius:var(--ui-radius);box-shadow:0 0 0 1px var(--line);background:var(--tint)}
.phone.look-only > :not(.ground):not(canvas):not(.gw-fx){display:none}
/* cards and stickers */
.ag-pics{display:grid;grid-auto-flow:column;grid-auto-columns:132px;gap:10px;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding:2px 16px 2px 2px}
.ag-pic{display:block;border-radius:var(--ui-radius);overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.ag-pic img{display:block;width:132px;height:132px;object-fit:cover}
.ag-stickers{display:grid;grid-auto-flow:column;grid-auto-columns:104px;justify-content:start;gap:10px}
.ag-note p{font-size:15px;line-height:1.45;text-wrap:pretty}
.ag-chips .btn{min-height:34px}
/* waiting for the model */
.ag-dots{display:inline-flex;gap:4px;padding:6px 0}
.ag-dots i{width:5px;height:5px;border-radius:50%;background:var(--ui-ink);opacity:.25;transition:opacity .2s var(--ease)}
.ag-dots i.on{opacity:1}
@media (prefers-reduced-motion:reduce){.ag-dots i{transition:none;opacity:.6}}
.ag-parts svg{width:11px;height:11px}
.ag-chips .dim{opacity:.4}
.ag-chips button[disabled]{cursor:default}
/* who gets the gift: the whole list in one card, which scrolls inside itself so a long list stays in the thread */
.ag-people{max-width:520px}
.ag-rows{position:relative;max-height:min(286px,38svh);overflow-y:auto;overscroll-behavior:contain;margin:0 -12px;padding:0 12px;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.ag-rows:focus-visible{outline:2px solid var(--ui-ink);outline-offset:2px}
/* more below: the last rows fade, so the list reads as one that goes on */
.ag-rows.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 20px),transparent);mask-image:linear-gradient(#000 calc(100% - 20px),transparent)}
/* how many people are below the box's foot; a tap moves the list down */
.ag-card .ag-more{display:block;padding:9px 0 1px}
.ag-card .ag-more[hidden]{display:none}
/* a wide screen has the room for a taller list */
@media (min-width:700px){.ag-rows{max-height:min(420px,46svh)}}
.ag-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.ag-row:first-child{border-top:0;padding-top:0}
.ag-row b{font-weight:400;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.ag-row .em{grid-column:1;font-size:13px;line-height:1.3;color:var(--soft);overflow-wrap:anywhere}
.ag-row .st{grid-row:1 / 3;grid-column:2;display:inline-flex;align-items:center;gap:5px;font-size:12px;letter-spacing:var(--ui-track);text-transform:var(--ui-caps);white-space:nowrap}
/* an address that needs a look is in full ink, and a correction underlines the letters it changes */
.ag-row[data-flag="check"] .em{color:var(--ui-ink)}
.ag-row .why u{text-decoration-thickness:2px;text-underline-offset:3px}
.ag-row .st svg{width:11px;height:11px}
.ag-row .why{grid-column:1 / -1;margin-top:2px;font-size:13px;line-height:1.35;text-wrap:pretty}
.ag-row .acts{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ag-row .chip.sm{min-height:32px;padding:4px 10px;max-width:100%;overflow-wrap:anywhere}
.ag-small{margin-top:10px;font-size:12px;line-height:1.35;color:var(--soft);text-wrap:pretty}
/* what the gifter handed over: the first lines of a paste, a file's name, or what a voice note was heard to say */
.ag-me.ag-gave{white-space:pre-line;font-size:13px;line-height:1.45}
.ag-me.ag-paste{max-height:min(260px,42svh);overflow-y:auto;overscroll-behavior:contain}
.ag-me.ag-gave img{display:block;max-width:168px;max-height:112px;margin-bottom:6px;border-radius:min(var(--ui-radius),8px);border:1px solid var(--line)}
.ag-me.ag-gave small{display:block;margin-top:4px;font-size:12px;color:var(--soft)}
/* the composer's two tools, shown while the chat asks who gets the gift */
.ask .ag-tool{display:none;width:32px;background:transparent;color:var(--ui-ink)}
.ask.tools .ag-tool{display:grid}
.ask .ag-tool svg{width:18px;height:18px}
.ask .ag-tool .i-stop,.ask .ag-tool[aria-pressed="true"] .i-mic{display:none}
.ask .ag-tool[aria-pressed="true"]{background:var(--ui-ink);color:var(--ui-paper)}
.ask .ag-tool[aria-pressed="true"] .i-stop{display:block}
/* while a voice note is recorded the box holds one control, "Stop and send" */
.ask .ag-tool .t-stop{display:none}
.ask.rec #agFile,.ask.rec button[type="submit"]{display:none}
.ask.rec .ag-tool[aria-pressed="true"]{display:inline-flex;align-items:center;gap:7px;width:auto;padding:0 12px;background:var(--ui-btn);color:var(--ui-on-btn);font-size:12px;letter-spacing:var(--ui-track);text-transform:var(--ui-caps);white-space:nowrap}
.ask.rec .ag-tool[aria-pressed="true"] .t-stop{display:inline}
.ask.rec .ag-tool svg{width:14px;height:14px}
.ask input:disabled{opacity:1;-webkit-text-fill-color:var(--soft)}
/* a file held over the chat */
#v-agent.drop .ag-thread{outline:2px dashed var(--ui-ink);outline-offset:-8px}
.ag-foot{padding-top:8px}
.ag-fine{font-size:12px;line-height:1.3;color:var(--soft);text-align:center;padding:0 16px 10px;margin-top:-2px}
/* on the narrowest phones a gift lies on its side, so its name still fits on one line */
@media (max-width:353px){
  .ag-gifts{grid-template-columns:minmax(0,1fr);gap:10px}
  .ag-gift{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:3px}
  .ag-ph{grid-row:1 / 3;width:72px}
  .ag-gift .ag-name{align-self:end}
  .ag-gift .ag-sub{align-self:start}
  /* the file and microphone buttons give up 4px each, so the box's hint ("Names and emails") is not cut at 320 wide */
  .ask .ag-tool{width:28px}
  /* and the one control of a recording is "Stop", so "Listening, 0:06" keeps its room */
  .ask.rec .ag-tool .t-wide{display:none}
}
@media (min-width:700px){
  .ag-top{padding:0 24px}
  .ag-thread{padding:24px 24px 8px;gap:14px}
  .ag-thread > :first-child{margin-top:0}
  .ag-log,.ag-card,.ag-looks,.ag-pics,.ag-stickers,.ag-chips{margin-left:46px}
  .ag-gifts{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ag-pv .scale{width:240px}
  .ag-look .scale{width:200px}
  .ag-looks,.ag-pics{margin-right:-24px;padding-right:24px}
  .ag-foot .ask{margin-left:24px;margin-right:24px}
}

/* ---------- a look at these screens for the store setup chat (?peek=send, ?peek=all) ----------
   The setup chat (prototypes/onboarding) shows a store its icons in place on these very screens. The look has a sample
   gift and sample people, and nothing in it can be tapped. ?peek=send keeps only the tops of the send screen's sections,
   so two of them fit in a short frame; ?peek=all is the send, pay and tracking screens one under the other. */
body.peek .demo,body.peek .toast,body.peek .vh{display:none}
body.peek .view{min-height:0}
body.peek-send{overflow:hidden}
body.peek-send .col{padding:16px 16px 18px;gap:22px}
body.peek-send #send > .pg,body.peek-send #send > .gift-row,body.peek-send #send .people,body.peek-send #send .add .chip,body.peek-send #send .chips ~ .note,body.peek-send #send .mail,body.peek-send #send .proto{display:none}
body.peek-send #send .add{margin-bottom:0}
.peek-h{max-width:640px;margin:0 auto;padding:18px 16px 0;font-size:12px;line-height:1.3;letter-spacing:var(--ui-track);text-transform:var(--ui-caps);color:var(--soft)}
.peek-h + .col{padding-top:12px}
body.peek .view + .view{border-top:1px solid var(--line)}
/* the gift chat inside another page (?embed=1): no bar of prototype controls */
body.embed{--bar:0px}
body.embed .demo{display:none}
/* the catalog for the setup chat's Gift style step (?peek=catalog) */
body.peek-catalog .col{padding:16px 16px 28px;gap:26px}
body.peek-catalog .mm button,body.peek-catalog .gifs button{cursor:default}
/* a background or an effect in the catalog: the whole page, moving, with nothing on it; a row scrolls sideways */
.cat-row{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:10px;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding:2px 16px 2px 2px}
.cat-row::-webkit-scrollbar{display:none}
.cat-look{display:flex;flex-direction:column;gap:6px}
.cat-look .scale{display:block;position:relative;width:142px;min-height:280px;overflow:hidden;border-radius:var(--ui-radius);box-shadow:0 0 0 1px var(--line);background:var(--tint)}
/* the store taps what to leave out (?pick=1): a tapped thing fades and is struck from the list */
body.picking #catalog [data-hide]{cursor:pointer}
#catalog [data-hide].off{opacity:.28}
#catalog [data-hide].off .tl-name{text-decoration:line-through}
body.peek-catalog section:only-child .sub:first-child{margin-top:0}

.ag-looks.ag-all{grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));overflow:visible;margin-right:0;padding-right:2px}
.ag-all .ag-look .scale{width:100%}
.ag-look .ag-name{text-wrap:pretty}
#agBack:disabled{opacity:.35;cursor:default}
@media(max-width:400px){.ag-top{gap:8px;padding:0 12px}.ag-top .brand{font-size:18px}.ag-step{font-size:10px}}

/* Recipient uses the same renderer at desktop width, with readable content limits. */
.recipient .p-title{max-width:600px;text-wrap:balance}
.recipient .p-msg{max-width:480px;text-wrap:pretty}
.recipient .p-after{max-width:90%;text-wrap:pretty}
.recipient button:focus-visible{outline:3px solid currentColor;outline-offset:4px}
@media(min-width:600px){
  .recipient .phone{border-radius:12px}
  .recipient .p-content{padding-left:48px;padding-right:48px}
  .recipient .p-title{font-size:calc(48px * var(--title-scale))}
  .recipient .gift{width:340px;height:340px}
  .recipient .sheet-p{max-width:520px;left:50%;right:auto;width:100%;transform:translateX(-50%) translateY(100%)}
  .recipient .phone.sheet-open .sheet-p{transform:translateX(-50%) translateY(0)}
  /* a desktop card is wider than the portrait scenes: show the whole scene, with its own still blurred at the sides,
     instead of cropping it to its middle band (the Lily pond's lily pads were cut off) */
  .recipient .art-bg{object-fit:contain}
  .recipient .ground-fill{filter:blur(24px);transform:scale(1.15)}
}

/* Desktop gift page (Brandon picked "Scene on the left, words on the right", 2026-11-29): the window is the page. The
   sender's background is drawn whole on the left with the gift on it; every word and button is on the store's paper on the
   right, in the order it is read, and the claim form takes that side over. unwrap.js sets gw-desk and the four sizes when
   the window has room for both sides; narrower windows and phones keep the page above. */
body.recipient.gw-desk{background:var(--ui-paper);padding-top:0}
/* a strip of the store's paper, so words that scroll go under it and never through it */
.gw-desk .gw-recipient-account{left:var(--scene);width:auto;right:0;height:64px;padding-right:40px;justify-content:flex-end}
.gw-desk .phone{border-radius:0;box-shadow:none;background:var(--b-paper);color:var(--b-ink)}
.gw-desk .phone :is(.ground,canvas.fx,.gw-fx){right:auto;width:var(--scene)}
.gw-desk .art-bg{object-fit:contain}
/* a plain color or pattern was blurred at its edges on every screen over 600px; only the scene's still was meant to be */
.gw-desk .ground-fill,.recipient .phone:not(.on-art) .ground-fill{filter:none;transform:none}
.gw-desk .ground:has(.art-bg) .ground-fill{background:var(--b-paper)!important}
.gw-desk .bottomfade{display:none}
.gw-desk .phone .p-content,.gw-desk .phone[data-state="open"] .p-content{bottom:0;display:grid;grid-template-columns:var(--scene) minmax(0,1fr);grid-template-rows:minmax(72px,1fr) repeat(5,auto) minmax(64px,1fr);padding:0;-webkit-mask-image:none;mask-image:none;color:var(--b-ink)}
.gw-desk .p-content > *{grid-column:2;justify-self:center;margin-inline:clamp(32px,5vw,96px);max-width:calc(100% - 2*clamp(32px,5vw,96px))}
.gw-desk .phone .p-content > .gift-box{grid-column:1;grid-row:1/-1;align-self:start;max-width:none;margin:calc((var(--win) - var(--gift))/2) 0 0;position:sticky;top:calc((var(--win) - var(--gift))/2);transform:none!important}
.gw-desk .phone .gift,.gw-desk .phone.has-media .gift,.gw-desk .phone.tight .gift{width:var(--gift);height:var(--gift);margin-top:0}
.gw-desk .phone.sheet-open .gift-box,.gw-desk .phone.sheet-open .p-media{opacity:1}
.gw-desk .p-merchant{grid-row:2;font-size:20px;opacity:1}
.gw-desk .p-merchant svg{height:34px}
.gw-desk .phone .p-title{grid-row:3;margin-top:26px;max-width:min(760px,calc(100% - 2*clamp(32px,5vw,96px)));font-size:calc(max(34px,clamp(36px,var(--words)*.073,80px)*var(--long,1))*var(--title-scale));line-height:1.08;overflow-wrap:anywhere}
.gw-desk .phone .p-slot,.gw-desk .phone.has-media .p-slot{grid-row:4;width:100%;margin-top:24px}
.gw-desk .phone.has-media .p-msg{font-size:20px}
.gw-desk .phone .p-media{margin-top:18px}
.gw-desk .phone .p-msg{max-width:600px;margin-top:0;font-size:20px;line-height:1.5;overflow-wrap:anywhere;text-wrap:balance}
.gw-desk .phone .p-after{grid-row:5;max-width:min(600px,calc(100% - 2*clamp(32px,5vw,96px)));margin-top:44px;overflow-wrap:anywhere}
.gw-desk .p-after strong{font-size:24px;line-height:1.25}
.gw-desk .p-after small,.gw-desk .p-after .gw-claim-notice{font-size:16px;line-height:1.5;opacity:1}
.gw-desk .p-after .gw-claim-notice{margin-top:10px}
.gw-desk .phone .tap{grid-row:4/span 2;align-self:start;margin-top:40px}
.gw-desk .phone.has-media .tap{grid-row:5}
.gw-desk .phone .p-content > .pill{grid-row:6;position:static;color:var(--b-ink);transform:none;flex-wrap:wrap;justify-content:center;gap:12px;max-width:min(560px,calc(100% - 2*clamp(32px,5vw,96px)));margin-top:40px;white-space:normal}
/* four buttons stand two by two */
.gw-desk .phone .p-content > .pill:has(.chip ~ .chip){max-width:min(460px,calc(100% - 2*clamp(32px,5vw,96px)))}
.gw-desk .phone :is(.tap,.pill button,.sheet-foot .go){min-height:52px;padding:0 28px;font-size:16px}
.gw-desk .phone .pill .chip{border-radius:var(--b-radius-btn);border:1px solid currentColor;background:transparent;color:inherit;font-family:var(--p-button-font,var(--body));font-weight:400;text-transform:var(--ui-caps);letter-spacing:var(--ui-track)}
/* the background's own plates and halos were for words on a picture; here the words are on paper */
.gw-desk .phone.on-art :is(.p-msg,.p-after){padding:0;background:none!important}
.gw-desk .phone.on-art .p-msg{max-width:600px}
.gw-desk .phone.on-art :is(.p-title,.p-merchant),.gw-desk .phone.on-art .p-merchant svg{text-shadow:none;filter:none}
.gw-desk .p-media .m-frame img,.gw-desk .p-media .m-frame video{max-width:320px;max-height:220px}
/* wrapped: the sender's line and the button sit in the middle (--drop, unwrap.js); as the gift opens they rise to make
   room for the words, whose place is kept all along */
.gw-desk .phone :is(.p-merchant,.p-title,.p-slot,.tap){transition:transform 700ms var(--ease),opacity 400ms var(--ease)}
.gw-desk .phone:is([data-state="wrapped"],[data-state="intro"]) :is(.p-merchant,.p-title,.p-slot,.tap){transform:translateY(var(--drop,64px))}
.gw-desk .phone[data-state="intro"] .tap{opacity:0}
.gw-desk .phone[data-state="open"] :is(.p-slot,.p-after,.p-content > .pill){animation:gw-desk-in 500ms var(--ease) both}
@keyframes gw-desk-in{from{opacity:0;transform:translateY(8px)}}
/* the claim form and the thank-you note take over the words' side */
.gw-desk .phone .sheet-p{left:var(--scene);right:0;top:0;bottom:0;width:auto;max-width:none;max-height:none;display:flex;flex-direction:column;padding:clamp(64px,var(--win)*.09,88px) clamp(32px,5vw,96px) 0;border-radius:0;box-shadow:none;opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity 250ms var(--ease),transform 250ms var(--ease),visibility 0s 250ms}
.gw-desk .phone.sheet-open .sheet-p{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.gw-desk .phone .sheet-p form{width:min(560px,100%);margin:auto;flex:none}
.gw-desk .phone .sheet-p h4{font-size:calc(clamp(28px,var(--words)*.06,40px)*var(--title-scale));line-height:1.12;text-wrap:balance}
.gw-desk .phone .s-gift{display:none}
.gw-desk .phone form.addr > .gw-claim-notice{font-size:15px}
.gw-desk .phone .how button{min-height:48px;font-size:16px}
.gw-desk .phone .how{margin-top:clamp(12px,var(--win)*.04 - 16px,20px);gap:12px}
.gw-desk .phone .fl{margin-top:clamp(8px,var(--win)*.04 - 16px,20px);font-size:14px}
.gw-desk .phone .ship{column-gap:20px}
.gw-desk .phone .card-note{font-size:17px}
.gw-desk .phone .card-note .gc{width:260px}
.gw-desk .phone .sheet-p .sheet-foot{margin:18px 0 0;padding:8px 0 clamp(16px,var(--win)*.1 - 60px,36px)}
.gw-desk .phone .sheet-foot .close{font-size:16px}
@media (prefers-reduced-motion:reduce){.gw-desk .phone :is(.p-merchant,.p-title,.tap,.sheet-p){transition-duration:1ms;transition-delay:0s}.gw-desk .phone[data-state="open"] :is(.p-slot,.p-after,.p-content > .pill){animation:none}}

/* Prospect links reuse the engine but never represent an actual order. */
.gw-prospect-notice{position:fixed;bottom:0;left:0;right:0;z-index:10000;min-height:52px;padding:10px 16px;background:#111;color:#fff;text-align:center;font:12px/1.4 Arial,sans-serif;text-decoration:underline;text-wrap:pretty}
body.gw-prospect{padding-bottom:var(--gw-notice,52px)}
/* inside the setup page's small gallery windows the notice sits after the last row instead of covering it */
body.gw-prospect-peek{padding-bottom:0}
.gw-prospect-peek .gw-prospect-notice{position:static;display:block}
.gw-prospect .demo{display:none}
body.gw-prospect{--bar:0px}
.gw-prospect #v-agent,.gw-prospect #v-design{height:calc(100dvh - var(--gw-notice,52px))}
.gw-prospect-notice .gw-proposed{display:inline-block;width:100%;text-decoration:none}
.gw-prospect .brand img{display:block;width:110px;height:28px;object-fit:contain}
.gw-prospect .p-merchant img{display:block;width:140px;height:32px;object-fit:contain;margin:auto}

.gw-prospect #full{bottom:52px}
.gw-prospect #recipientDemo{height:100dvh!important;color:var(--ink)}
.gw-prospect #recipientDemo>.chip{color:var(--ui-on-btn);background:var(--ui-btn);border-color:var(--ui-btn)}

.phone .pill .claim{font-family:var(--p-button-font,var(--body))}
