/* What the real site adds on top of the signed-off design: the opening state,
   the preview notice, and the cart's "checkout opens soon" box. */

/* while the cards are being fetched, and if they cannot be */
#boot{display:none}
body[data-boot="loading"] #boot,body[data-boot="failed"] #boot{display:grid;justify-items:center;align-content:center;gap:10px;min-height:62vh;padding:40px 16px;text-align:center}
#boot img{width:112px;opacity:.75}
#boot b{font-weight:700;font-size:18px}
#boot p{color:var(--soft);max-width:36ch}
#boot .bk-btn{margin-top:8px}
body[data-boot="loading"] #boot img{animation:boot-breathe 1.6s ease-in-out infinite}
@keyframes boot-breathe{50%{opacity:.4;transform:scale(.97)}}
@media (prefers-reduced-motion:reduce){body[data-boot="loading"] #boot img{animation:none}}
/* nothing else is shown until the shop has its cards */
body:not([data-boot="ready"]) main>div:not(#boot),body:not([data-boot="ready"]) .site-foot,body:not([data-boot="ready"]) .navband,body:not([data-boot="ready"]) .subbar{display:none}
body:not([data-boot="ready"]) .top .search,body:not([data-boot="ready"]) .top .cart,body:not([data-boot="ready"]) .menu-btn{visibility:hidden}
.no-js{padding:40px 0;text-align:center}


/* the cart, while checkout is not open here */

/* a copy that has sold since the page was drawn */
.buy-add[disabled]{opacity:.35;cursor:default}
.buy-add[disabled]:active{transform:none}
/* the shop's figures are left out when they could not be fetched */
.stats:empty{display:none}

/* the account button is hidden until the shop has started (the brand keeps the cart at the right-hand end) */
.acct[hidden]{display:none}
.bk-btn.quiet[data-me-out]{margin-top:14px}

/* checkout: the pieces the manual PayNow flow adds to the signed-off design */
.pay-alt{margin-top:12px;font-size:14px}
.pay-alt small{font-size:12px;color:var(--soft)}
.pay-alt a{color:var(--deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.c-empty.big .tg-btn,.c-empty.big .bk-btn{margin-top:10px}
.c-empty.big .linkish{margin-top:6px}
#coConfirm[disabled]{opacity:.6;cursor:default}

/* The code box at checkout. Its styles were written for the cart panel, whose colours do not
   exist out here, so the field had no edge and the button dropped underneath. Here it is a
   field like the address ones, on a tinted ground so it is seen, with its button beside it. */
:is(#checkout,#invoice) .c-promo{display:flex;gap:10px;margin-top:0}
:is(#checkout,#invoice) .c-promo input{flex:1;min-width:0;height:48px;padding:0 14px;border-radius:12px;border:1.5px solid var(--line-2);background:var(--pocket);color:var(--ink);font-size:16px;transition:border-color 160ms ease}
:is(#checkout,#invoice) .c-promo input::placeholder{color:var(--soft);opacity:1}
:is(#checkout,#invoice) .c-promo input:focus-visible{border-color:var(--cover);background:var(--page)}
:is(#checkout,#invoice) .c-promo button{flex:none;height:48px;padding:0 24px;border:0;border-radius:12px;background:var(--cover-lo);color:#fff;font-weight:600;font-size:15px}
:is(#checkout,#invoice) .c-msg{margin-top:9px}

/* The menu band takes the shop's pale pink in place of white; a link under the pointer lifts to white. */
.navband{background:var(--tint);border-top-color:transparent}
@media (hover:hover) and (pointer:fine){.navrow .nav a:not([aria-current]):hover{background:var(--page);color:var(--deep)}}

/* checkout: the steps sit under the heading, in line with the cards below them */
#coSteps{margin-top:12px}
#coSteps .co-steps{flex-wrap:wrap}
.co-ask{margin:6px 0 12px}
/* the buyer's details, read over beside the QR before confirming */
.co-you{margin-top:16px;padding-top:14px;border-top:1px solid var(--line-2)}
.co-you h3{margin-bottom:6px;font-weight:700;font-size:15px}
.co-you .done-who{font-size:14px}
.co-you .linkish{margin-top:8px}

/* checkout, one question at a time */
.co-who{margin-top:0}
.co-note{margin-top:12px;padding:10px 13px;border-radius:12px;background:var(--pocket);font-size:14px}
.co-note[hidden],.co-card[hidden],#coRest[hidden]{display:none}
#coRest{display:grid;gap:14px}
.co-you .co-note{margin-top:8px;font-size:13px}
/* the address on file, with a way to change it */
.co-addr-saved{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.co-addr-saved .done-who{font-size:15px}
.co-addr-saved .bk-btn{flex:none;height:40px;padding:0 18px;font-size:14px}

/* On a phone the checkout's left column came out wider than the screen: its one column was sized by
   its widest content, not by the page. The column is the page's width; what is inside wraps to fit. */
.co-main,.co-main form,#coRest{grid-template-columns:minmax(0,1fr)}

/* hero: "Browse all cards" is a button of its own beside "Open the binder", in the page's white */
.hero-alt{background:var(--page);color:var(--deep);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.hero-go .bk-btn.hero-alt svg{transform:none}
@media (hover:hover) and (pointer:fine){.hero-alt:hover{background:var(--pocket);box-shadow:inset 0 0 0 1.5px var(--cover)}}
@media (max-width:700px){
  .hero-go{flex-wrap:nowrap;gap:10px}
  .hero-go .bk-btn{flex:1 1 0;min-width:0;justify-content:center;padding:0 12px;font-size:14.5px;white-space:nowrap}
}
/* the account button: no dot (a dot says "something new here", and there is not) */
body[data-me="in"] .acct::after{content:none}
/* On a phone it is a white button like the ones beside it: a round one once logged in (it is plainly
   "your account" by then), and a pill that says "Log in" before, since that needs saying. */
@media (max-width:1000px){
  .acct{flex-direction:row;gap:6px;height:40px;padding:0 12px 0 9px;background:var(--page);border-radius:999px;font-size:12.5px;line-height:1}
  .acct svg{width:20px;height:20px}
  body[data-me="in"] .acct{width:40px;padding:0;justify-content:center}
  body[data-me="in"] .acct span{display:none}
}
/* A phone keeps the light/dark switch in the header beside "Log in" and the cart (owner, 24 Oct 2026), and the shop's
   name is never cut short. To make the room the buttons close up a little, the cart is a little narrower and "Log in"
   goes without its icon; at 380px and under "Log in" is the round account button, as it is once logged in, and at
   340px and under the logo stands without the name */
@media (max-width:430px){
  .top .bar{gap:6px}
  .top .cart{gap:5px;padding:0 10px 0 11px}
  body[data-me="out"] .top .acct svg{display:none}
  body[data-me="out"] .top .acct{padding:0 14px}
}
@media (max-width:380px){
  .top [data-theme-toggle],body[data-me="in"] .top .acct{width:38px;height:38px}
  body[data-me="out"] .top .acct{width:38px;height:38px;padding:0;justify-content:center}
  body[data-me="out"] .top .acct svg{display:block}
  body[data-me="out"] .top .acct span{display:none}
}
@media (max-width:340px){.top .brand-t{display:none}}

/* the showcase on narrower screens: three to a row, then two (four is set in home.css) */
@media (max-width:800px){.mat{grid-template-columns:repeat(3,minmax(0,1fr))}.win.spare.per4{display:none}.win.spare.per3{display:grid}}
@media (max-width:560px){.mat{grid-template-columns:repeat(2,minmax(0,1fr))}.win.spare.per3{display:none}.win.spare.per2{display:grid}}

/* THE BINDER FITS IN THE WINDOW, AS BIG AS IT CAN BE. Its height follows its width (the pockets
   are card-shaped), so it is made as wide as still leaves it, and the page buttons under it,
   room below the header: height = 0.7 x width - 20px, measured, so width = (height + 20px) / 0.7.
   --head is the height of the header. Under it there are 14px of air, the binder, the page
   buttons (52px) and about as much air again below: that is the 82px. "Open the binder" stops
   with the binder 14px under the header, not against it. Never narrower than 640px: on a very
   short window it is better to scroll a little than to shrink the cards away.
   A phone lays the binder out its own way (home.css) and is left alone.
   The binder is the page's centrepiece: where it comes out narrower than the page it is centred, while its
   heading stays on the page's left edge with every other section heading (owner, 19 Oct 2026). */
@media (min-width:701px){
  #binderSec{--bk-room:calc(100vh - var(--head) - 82px)}
  #bkArea{max-width:min(100vw / var(--zoom) - 160px, max(640px, calc((var(--bk-room) + 20px) / .7 + 50px)));margin-inline:auto}   /* (and the window keeps room for its arrows either side, 62px each and a little) */
  @supports (height:100dvh){#binderSec{--bk-room:calc(100dvh - var(--head) - 82px)}}
  #bkArea{scroll-margin-top:calc(var(--head) + 14px)}
}
/* on a phone "Open the binder" stops with the binder's tabs just under the header, not behind it */
@media (max-width:700px){#bkArea{scroll-margin-top:calc(var(--head) + 6px)}}

/* checkout: the code box sits in the order summary, between the cards and the sums */
.co-code{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-2)}
#checkout .co-code .c-promo input{height:44px;font-size:15px}
#checkout .co-code .c-promo button{height:44px;padding:0 18px}
@media (max-width:700px){#checkout .co-code .c-promo input{font-size:16px}}
/* the payment step: how to pay from the phone the QR is on, said only where that can be the case */
.pay-phone{display:none}
@media (hover:none),(max-width:700px){.pay-phone{display:block}}
.pay-test{padding:10px 13px;border-radius:12px;border:1.5px dashed var(--line-2);font-size:13.5px}
/* the receipt: its date beside the heading, the order number under it, and each card told in full */
.rc-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.rc-head time{font-size:13.5px;color:var(--soft);white-space:nowrap}
.rc-id{margin-top:2px;font-size:13.5px;color:var(--soft)}
.rc-lines{gap:14px;padding-top:14px;border-top:1px solid var(--line-2)}
.rc-lines li{align-items:start;grid-template-columns:52px minmax(0,1fr) auto}
.rc-lines .cardimg{width:52px}
.rc-lines .co-l{gap:1px}
.rc-lines .co-l b{white-space:normal}
/* on a phone the order summary leads, except once the order is placed or paid: then the news comes first, the receipt
   straight after it, and the rest (badge, email, buttons) below. (.co-main steps aside so its cards can be ordered with the receipt) */
/* the payment step on a phone (owner, 25 Oct 2026): the QR code first, the cards and their details under it (the
   summary comes first only while the details are being filled in) */
@media (max-width:1000px){.co[data-at="pay"] .co-side{order:1}}
@media (max-width:1000px){.co[data-at="done"] .co-main{display:contents}.co[data-at="done"] .co-main>*{order:2}.co[data-at="done"] .co-main>:first-child{order:0}.co[data-at="done"] .co-side{order:1}}

/* badge rewards: the welcome reward sits in the opening, under the first paragraph */
.bg-welcome{margin-top:16px;max-width:46ch;padding:13px 16px;border-radius:14px;background:var(--gold-bg);color:var(--gold-ink)}
.bg-welcome b{display:block;font-weight:700;font-size:15.5px}
.bg-hero .bg-welcome p{margin-top:3px;max-width:none;color:inherit;font-size:14.5px}
.bg-list a{color:var(--deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* LOADING: the screens that wait on the server move, so a slow answer does not look hung.
   Three dots take turns under the words and the logo breathes. With motion turned down
   the dots still fade in turn (nothing travels) and the logo keeps still. */
.dots{display:inline-flex;gap:7px;margin-top:6px}
.dots i{width:9px;height:9px;border-radius:50%;background:var(--cover);animation:dot-turn 1.2s ease-in-out infinite both}
.dots i:nth-child(2){animation-delay:.18s}.dots i:nth-child(3){animation-delay:.36s}
@keyframes dot-turn{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-5px)}}
body[data-boot="loading"] #boot img,.c-empty.busy img{animation:logo-breathe 1.8s ease-in-out infinite}
@keyframes logo-breathe{50%{transform:scale(1.05);opacity:1}}
@media (prefers-reduced-motion:reduce){
  .dots i{animation-name:dot-fade}
  body[data-boot="loading"] #boot img,.c-empty.busy img{animation:none}
}
@keyframes dot-fade{0%,70%,100%{opacity:.25}35%{opacity:1}}
/* the QR step: the one thing the buyer must not do, said in red */
.pay-steps .pay-stay{color:var(--bad);font-weight:600}
/* badge rewards: the first button is swapped in place once it is known who is logged in */
#bgGo{display:contents}

/* the account pages: a card in an order that is no longer listed has no photo and is not a button */
div.oc{cursor:default}
div.oc .cardimg{width:100%;background:var(--pocket)}
.co-foot .bk-btn.quiet{height:44px}
@media (max-width:700px){.ac{grid-template-columns:minmax(0,1fr)}}

/* the account page, logged out: the Telegram button keeps its own white words (the page's rule for
   links in that block, pink and underlined, was reaching it and could not be read on the blue) */
.ac-login a.tg-btn{color:#fff;text-decoration:none}

/* the account: asking for the orders on hold to be mailed out */
.ml{margin-bottom:14px;padding:14px 16px;border-radius:14px;background:var(--pocket);font-size:14.5px}
.ml h3{font-weight:700;font-size:16px;outline:0}
.ml .bk-btn{margin-top:12px}
.ml-list{margin-top:4px;color:var(--soft);font-size:13.5px;overflow-wrap:anywhere}
.ml .dt{margin-top:12px}
.ml-go{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
.ml-go .linkish{margin-top:12px}
#mlBox .ac-ok{margin-bottom:14px}
/* an order's labels sit together: paid or not, and on hold or asked to be mailed */
.or-chips{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.ac-head>.or-chips{justify-content:flex-end}

/* checkout: an answer that does not apply to this buyer is greyed out and cannot be chosen */
.opt.off span{opacity:.45}
.opt.off input{cursor:not-allowed}
@media (hover:hover) and (pointer:fine){.opt.off:hover input:not(:checked)+span{box-shadow:inset 0 0 0 1.5px var(--line-2)}}
.co-note a{color:var(--deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* the account: store orders and auction wins, each under its own small heading */
.ac-sub{margin:18px 0 10px;font-weight:700;font-size:14.5px;letter-spacing:-.005em;color:var(--soft)}
#mlBox+.ac-sub{margin-top:2px}
.ac-sub+.ac-hint{margin-top:0}
div.or{cursor:default}
ul.ml-list{margin:6px 0 0;padding-left:18px;display:grid;gap:2px}

/* an auction lot the shop has no photo of: no empty frame */
.co-lines li.bare{grid-template-columns:minmax(0,1fr) auto}
/* the page after a payment: the tick beside its heading, and room between its paragraphs */
.done-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.done-head .done-mark{margin:0;flex:none}
.done-head h2{margin:0}
.co-card.paid-note{display:grid;gap:10px}
.co-card.paid-note p{margin:0}
/* an order's or an auction night's status: its pills in the card's header */
.st-card{display:grid;gap:10px}
.st-card p{margin:0}
.st-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.st-head h2{margin:0}
.st-head .or-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.st-card .bk-btn{justify-self:start;margin-top:2px}
/* the checkout's and the invoice's steps: the same room above them as below */
.co-head+div .co-steps{margin-top:14px}
.co-head+div+.co{margin-top:16px}

/* the invoice page: a line under the title pointing at the account (owner, 18 Oct 2026) */
.co-head .co-hint{flex-basis:100%;margin:0;max-width:62ch}

/* away mode: a note under the header (owner, 19 Oct 2026) */
.away-note{background:#fff1bf;color:#5a4300;font-size:14px;line-height:1.45;padding:9px 0}.away-note .wrap{padding-top:0;padding-bottom:0}
:root[data-theme="dark"] .away-note{background:#4a3b0d;color:#ffe9a6}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .away-note{background:#4a3b0d;color:#ffe9a6}}
