/* ═══════════════════════════════════════════════════════════════════════════
   GoldChat Business — every style for the screens biz-ui.js builds.

   Same rules as sizani.css, for the same reasons:
   · EVERY class is bz- prefixed. app.js owns .modal, .btn-primary, .avatar, .badge and
     ~200 more; nothing here may collide with any of them.
   · NOTHING is defined on :root. style.css's first rule is "ONE :root" — the palette hangs
     off .bz-root and inherits down. Every token is GoldChat's own with a literal fallback,
     so the shop looks like GoldChat because it IS GoldChat: cream ground, white cards,
     --gold-action for every fill that carries white text (the ONE gold that passes AA),
     --gold-deep for gold words, hairlines over shadows, the 4px radius scale.
   · Anything that fights a house element rule (input, button, select) is written with a
     .bz-root ancestor so it wins on specificity whichever order the sheets load in.
   · Colour never carries meaning alone: Hold / Order / Enquiry pills are worded; Low and
     Hidden are worded; a closed shop says "Closed" in the header, not just a greyer tint.
   ═══════════════════════════════════════════════════════════════════════════ */

.bz-root {
  --bz-bg:       var(--bg, #f6efe0);
  --bz-bg2:      var(--bg2, #faf6ec);
  --bz-panel:    var(--panel, #ffffff);
  --bz-panel2:   var(--panel2, #f4ecd9);
  --bz-line:     var(--line, #e8dbbe);
  --bz-hairline: var(--hairline, rgba(170, 135, 45, .18));
  --bz-ink:      var(--text, #3b3122);
  --bz-muted:    #6f6350;                          /* 5.0:1 on cream — one shade under house --muted, for 12px print */
  --bz-gold:     var(--gold-action, #8f6a12);
  --bz-gold-hover: var(--gold-hover, #7d5c0f);
  --bz-gold-deep:  var(--gold-deep, #a87e18);
  --bz-accent:   var(--accent, #c79a2e);
  --bz-accent-soft: var(--accent-soft, #ecd085);
  --bz-danger:   var(--danger, #a33b49);
  --bz-danger-soft: var(--danger-soft, rgba(163, 59, 73, .10));
  --bz-ok:       var(--ok, #2c6e34);
  --bz-ok-soft:  rgba(44, 110, 52, .10);
  --bz-r-sm:     var(--r-sm, 8px);
  --bz-r-md:     var(--r-md, 12px);
  --bz-r-lg:     var(--r-lg, 18px);
  --bz-r-pill:   var(--r-pill, 999px);
  --bz-lift-1:   var(--lift-1, 0 1px 2px rgba(60, 45, 10, .05));
  --bz-lift-3:   var(--lift-3, 0 1px 2px rgba(60, 45, 10, .05), 0 18px 48px rgba(60, 45, 10, .14));
  --bz-focus:    var(--focus, 0 0 0 3px rgba(199, 154, 46, .32));

  position: fixed; inset: 0; z-index: 40;          /* above .modal (30), under Sizani (50) and calls (90) */
  display: flex; flex-direction: column;
  background: var(--bz-bg); color: var(--bz-ink);
  font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.bz-root[hidden] { display: none !important; }
/* The chat list underneath must not scroll under a thumb that overshoots the panel. */
html.bz-open, html.bz-open body { overflow: hidden; }

/* ═══ header + tabs — the sidebar recipe ═══ */
.bz-header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 6px;
  background: var(--bz-bg2); flex: none;
}
.bz-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--bz-r-sm); color: var(--bz-muted); flex: none;
  transition: background .15s, color .15s;
}
.bz-back:hover { background: var(--bz-panel2); color: var(--bz-ink); }
.bz-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.bz-title span { font-size: 12.5px; color: var(--bz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-title span.bz-closed { color: var(--bz-danger); font-weight: 600; }
.bz-viewlink {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 8px 12px; border-radius: var(--bz-r-md); background: var(--bz-panel2);
  color: var(--bz-gold-deep); font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.bz-viewlink:hover { background: var(--bz-panel); border-color: var(--bz-line); }

.bz-tabs { display: flex; padding: 0 8px; gap: 2px; border-bottom: 1px solid var(--bz-line); background: var(--bz-bg2); flex: none; }
.bz-tab {
  flex: 1; padding: 12px 4px; color: var(--bz-muted); font-weight: 700; font-size: 13.5px;
  border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: none; border-top: 0; border-left: 0; border-right: 0; border-radius: 0;
}
.bz-tab:hover { color: var(--bz-ink); }
.bz-tab.on { color: var(--bz-gold-deep); border-bottom-color: var(--bz-accent); }
.bz-badge {
  background: var(--bz-gold); color: #fff; border-radius: var(--bz-r-pill);
  padding: 1px 7px; font-size: 11.5px; font-weight: 800; line-height: 1.5;
}

/* ═══ body ═══ */
.bz-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
.bz-pane { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.bz-pane[hidden] { display: none !important; }
.bz-loading { text-align: center; padding: 40px 0; }

.bz-sectionhead { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.bz-sectionhead h3 { font-size: 15px; letter-spacing: -.01em; }
.bz-hint { font-size: 12.5px; color: var(--bz-muted); line-height: 1.5; }
.bz-smallprint { font-size: 12px; color: var(--bz-muted); line-height: 1.55; padding: 0 2px; }
.bz-message { font-size: 13.5px; color: var(--bz-muted); line-height: 1.6; }
.bz-error {
  color: var(--bz-danger); font-size: 13px; font-weight: 600; line-height: 1.5;
  background: var(--bz-danger-soft); padding: 9px 12px; border-radius: var(--bz-r-md);
}
.bz-error[hidden] { display: none !important; }

/* notes — the signup card's .chan-note recipe */
.bz-note {
  font-size: 13px; line-height: 1.55; color: var(--bz-ink);
  background: var(--bz-panel2); border: 1px solid var(--bz-hairline);
  padding: 12px 14px; border-radius: var(--bz-r-md);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.bz-note-warn { background: rgba(233, 205, 122, .22); border-color: rgba(199, 154, 46, .35); color: #6d5410; }
.bz-note-gold { background: linear-gradient(135deg, rgba(236, 208, 133, .35), rgba(199, 154, 46, .14)); border-color: rgba(199, 154, 46, .35); }

/* empty states — the sidebar's .empty recipe */
.bz-empty { padding: 40px 24px; text-align: center; line-height: 1.6; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bz-empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 10px;
  background: var(--bz-panel2); color: var(--bz-gold-deep);
}
.bz-empty b { font-size: 15px; }
.bz-empty p { color: var(--bz-muted); font-size: 13px; max-width: 34ch; }

/* ═══ buttons — the house recipes, restated because style.css resets button to bare text ═══ */
.bz-root button { font: inherit; color: inherit; cursor: pointer; }
.bz-root button:focus-visible { outline: none; box-shadow: var(--bz-focus); }
.bz-primary {
  background: var(--bz-gold); color: #fff; padding: 11px 16px; border-radius: var(--bz-r-md);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; transition: background .15s, transform .05s; position: relative;
}
.bz-primary:hover { background: var(--bz-gold-hover); }
.bz-primary:active { transform: translateY(1px); }
.bz-ghost {
  color: var(--bz-muted); padding: 10px 14px; border-radius: var(--bz-r-md); background: none; border: none;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, color .15s; position: relative;
}
.bz-ghost:hover { background: var(--bz-panel2); color: var(--bz-ink); }
.bz-soft {
  background: var(--bz-panel2); padding: 9px 14px; border-radius: var(--bz-r-md); color: var(--bz-ink);
  font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; transition: background .15s, border-color .15s; position: relative;
}
.bz-soft:hover { background: var(--bz-panel); border-color: var(--bz-line); }
.bz-danger {
  background: var(--bz-danger); color: #fff; padding: 11px 16px; border-radius: var(--bz-r-md);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; transition: background .15s; position: relative;
}
.bz-danger:hover { background: #8d3140; }
.bz-wide { width: 100%; }
.bz-root button:disabled { opacity: .55; cursor: default; transform: none; }
/* working: the label stays (so nothing jumps), a ring turns beside it */
.bz-root [aria-busy="true"] { color: transparent !important; }
.bz-root [aria-busy="true"]::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: bz-spin .7s linear infinite;
}
.bz-root .bz-ghost[aria-busy="true"]::after, .bz-root .bz-soft[aria-busy="true"]::after {
  border-color: rgba(143, 106, 18, .3); border-top-color: var(--bz-gold);
}
@keyframes bz-spin { to { transform: rotate(360deg); } }
.bz-linkbtn {
  align-self: flex-start; background: none; border: none; padding: 6px 2px;
  font-size: 13px; font-weight: 700; color: var(--bz-gold-deep); text-decoration: underline; text-underline-offset: 2px;
}
.bz-linkbtn-danger { color: var(--bz-danger); }
.bz-x {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--bz-r-sm); color: var(--bz-muted); background: none; border: none; flex: none;
}
.bz-x:hover { background: var(--bz-panel2); color: var(--bz-ink); }

/* ═══ fields — style.css's input recipe, scoped ═══ */
.bz-field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.bz-field > label { font-size: 12px; font-weight: 700; color: var(--bz-muted); letter-spacing: .01em; }
.bz-root input:not([type="checkbox"]):not([type="file"]), .bz-root textarea, .bz-root select {
  font: inherit; font-size: 15px; color: var(--bz-ink); background: var(--bz-panel);
  border: 1px solid var(--bz-line); border-radius: var(--bz-r-md);
  padding: 11px 14px; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.bz-root textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.bz-root input::placeholder, .bz-root textarea::placeholder { color: var(--placeholder, #8b7c62); }
.bz-root input:hover, .bz-root textarea:hover { border-color: #d9c79c; }
.bz-root input:focus, .bz-root textarea:focus, .bz-root select:focus { border-color: var(--bz-accent); box-shadow: var(--bz-focus); }
.bz-select {
  appearance: none; -webkit-appearance: none; padding-right: 38px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d6f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important;
}
.bz-form { display: flex; flex-direction: column; gap: 14px; background: var(--bz-panel); border-radius: var(--bz-r-lg); padding: 16px; box-shadow: var(--bz-lift-1); border: 1px solid var(--bz-hairline); }
.bz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* the three-way tile chooser — the signup card's Personal / Business recipe */
.bz-seg { display: flex; gap: 8px; }
.bz-seg-opt {
  flex: 1; padding: 11px 10px 10px; border-radius: var(--bz-r-md); background: var(--bz-panel2);
  border: 1.5px solid transparent; text-align: left; min-width: 0;
  display: flex; flex-direction: column; gap: 3px; color: var(--bz-muted); line-height: 1.3;
  transition: background .15s, border-color .15s, color .15s;
}
.bz-seg-opt:hover { background: var(--bz-panel); border-color: var(--bz-line); }
.bz-seg-opt.on { border-color: var(--bz-accent); background: var(--bz-panel); box-shadow: var(--bz-lift-1); }
.bz-seg-t { font-size: 13.5px; font-weight: 700; color: var(--bz-ink); }
.bz-seg-opt.on .bz-seg-t { color: var(--bz-gold-deep); }
.bz-seg-hint { font-size: 11.5px; color: var(--bz-muted); }
@media (max-width: 420px) { .bz-seg { flex-direction: column; } .bz-seg-opt { flex-direction: row; align-items: baseline; gap: 8px; } .bz-seg-t { flex: none; min-width: 7.5em; } }

/* switch row — Account's .setting-row + .switch */
.bz-switchrow {
  display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer;
  background: var(--bz-panel2); border-radius: var(--bz-r-md);
}
.bz-switchrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bz-switchrow-t b { font-size: 13.5px; }
.bz-switchrow-t span { font-size: 12px; color: var(--bz-muted); line-height: 1.4; }
.bz-root .bz-switch {
  appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: var(--bz-r-pill); flex: none;
  background: #d5c8ab; border: none; position: relative; cursor: pointer; transition: background .18s; margin: 0;
}
.bz-root .bz-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.bz-root .bz-switch:checked { background: var(--bz-gold); }
.bz-root .bz-switch:checked::after { transform: translateX(18px); }

/* ═══ the logo ═══ */
.bz-headlogo {
  width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden;
  background: var(--bz-panel2); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px var(--bz-hairline);
}
.bz-headlogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-logorow { display: flex; align-items: center; gap: 14px; }
.bz-logo {
  width: 72px; height: 72px; border-radius: 20px; flex: none; overflow: hidden;
  background: var(--bz-panel2); color: var(--bz-gold-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px var(--bz-hairline);
}
.bz-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-logorow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bz-logorow-t > b { font-size: 13.5px; }
.bz-logorow-t > span { font-size: 12px; color: var(--bz-muted); line-height: 1.4; }
.bz-logorow-acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.bz-logorow-acts .bz-soft { cursor: pointer; }
.bz-logorow-acts .bz-soft:focus-visible { outline: none; box-shadow: var(--bz-focus); }

/* ═══ the public link ═══ */
.bz-linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bz-linkchip {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--bz-r-md); background: var(--bz-panel); border: 1px solid var(--bz-line);
  color: var(--bz-gold-deep); font-weight: 700; font-size: 13px;
}
.bz-linkchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-linkacts { display: flex; gap: 6px; flex: none; }

/* ═══ Start — the hero card ═══ */
.bz-hero {
  background: var(--bz-panel); border-radius: var(--bz-r-lg); padding: 22px 18px 18px;
  box-shadow: var(--bz-lift-1); border: 1px solid var(--bz-hairline);
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.bz-hero-ico {
  width: 54px; height: 54px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecd085 0%, #c79a2e 100%); color: #3b3122;   /* the hero gradient, dark ink on it */
}
.bz-hero h2 { font-size: 20px; letter-spacing: -.02em; }
.bz-hero > p { color: var(--bz-muted); font-size: 13.5px; line-height: 1.6; }

/* ═══ cards ═══ */
.bz-list { display: flex; flex-direction: column; gap: 10px; }
.bz-order {
  background: var(--bz-panel); border-radius: var(--bz-r-lg); padding: 14px 14px 12px;
  border: 1px solid var(--bz-hairline); box-shadow: var(--bz-lift-1);
  display: flex; flex-direction: column; gap: 9px; text-align: left;
}
.bz-order.bz-focus { border-color: var(--bz-accent); box-shadow: var(--bz-focus); }
.bz-order-top { display: flex; align-items: center; gap: 8px; }
.bz-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 14px; color: var(--bz-gold-deep); letter-spacing: .02em; }
.bz-when { margin-left: auto; font-size: 12px; color: var(--bz-muted); white-space: nowrap; }
.bz-pill {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--bz-r-pill);
  font-size: 11.5px; font-weight: 700; background: var(--bz-panel2); color: var(--bz-muted); white-space: nowrap;
}
.bz-pill-hold { background: rgba(236, 208, 133, .45); color: #6d5410; }
.bz-pill-order { background: var(--bz-panel2); color: var(--bz-ink); }
.bz-pill-enquire { background: var(--bz-panel2); color: var(--bz-muted); }
.bz-pill-low { background: var(--bz-danger-soft); color: var(--bz-danger); }
.bz-pill-hidden { background: #e9e2d2; color: var(--bz-muted); }
.bz-status-placed { background: rgba(236, 208, 133, .45); color: #6d5410; }
.bz-status-collected { background: var(--bz-ok-soft); color: var(--bz-ok); }
.bz-status-buyer_confirmed { background: var(--bz-ok-soft); color: var(--bz-ok); }
.bz-status-declined, .bz-status-cancelled, .bz-status-expired { background: #e9e2d2; color: var(--bz-muted); }
.bz-order-who { display: flex; align-items: center; gap: 10px; }
.bz-avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecd085 0%, #c79a2e 100%); color: #3b3122; font-weight: 800; font-size: 14px;
}
.bz-order-whot { display: flex; flex-direction: column; min-width: 0; }
.bz-order-whot b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-order-whot span { font-size: 12px; color: var(--bz-muted); }
.bz-shopname { font-size: 14.5px; }
.bz-order-what { display: flex; align-items: baseline; gap: 10px; }
.bz-lines { flex: 1; min-width: 0; font-size: 14px; }
.bz-total { font-size: 15px; white-space: nowrap; }
.bz-order-note { font-size: 13px; color: var(--bz-muted); font-style: italic; }
.bz-hold, .bz-pickup { font-size: 12.5px; color: var(--bz-muted); line-height: 1.5; }
.bz-order-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 3px; border-top: 1px solid var(--bz-hairline); margin-top: 2px; padding-top: 10px; }
.bz-order-acts .bz-primary { flex: 1; }

.bz-fulfil { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--bz-muted); line-height: 1.45; }
.bz-fulfil .ic { flex: none; margin-top: 2px; }
.bz-fulfil-delivery { color: var(--bz-ink); font-weight: 600; }
.bz-subform { display: flex; flex-direction: column; gap: 12px; padding: 0 0 4px 12px; border-left: 2px solid var(--bz-line); }
.bz-subform[hidden] { display: none !important; }
.bz-stockline { font-size: 12.5px; color: var(--bz-muted); padding: 0 2px; }
.bz-stockline b { color: var(--bz-ink); }
.bz-price small { display: block; font-size: 11px; font-weight: 600; color: var(--bz-muted); text-align: right; }

/* products */
.bz-prod {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bz-panel); border-radius: var(--bz-r-lg); padding: 10px 12px 10px 10px;
  border: 1px solid var(--bz-hairline); box-shadow: var(--bz-lift-1); transition: border-color .15s, background .15s;
}
.bz-prod:hover { border-color: var(--bz-line); }
.bz-prod:active { background: var(--bz-bg2); }
.bz-prod-hidden { opacity: .7; }
.bz-thumb {
  width: 58px; height: 58px; border-radius: var(--bz-r-md); flex: none; overflow: hidden;
  background: var(--bz-panel2); color: var(--bz-muted); display: inline-flex; align-items: center; justify-content: center;
}
.bz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-prod-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bz-prod-row { display: flex; align-items: baseline; gap: 8px; }
.bz-prod-row b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-price { font-weight: 800; white-space: nowrap; }
.bz-prod-meta { font-size: 12.5px; color: var(--bz-muted); align-items: center; }
.bz-prod-meta > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-tags { display: inline-flex; gap: 4px; flex: none; }

/* photos in the editor */
.bz-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bz-photo { position: relative; aspect-ratio: 1; border-radius: var(--bz-r-md); overflow: hidden; background: var(--bz-panel2); }
.bz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-photo-x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(59, 49, 34, .78); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: none;
}
.bz-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  border: 1.5px dashed var(--bz-accent); color: var(--bz-gold-deep); font-size: 11.5px; font-weight: 700;
  transition: background .15s;
}
.bz-photo-add:hover { background: var(--bz-panel); }
.bz-photo-add.bz-busy { opacity: .55; pointer-events: none; }
.bz-photo-add:focus-visible { outline: none; box-shadow: var(--bz-focus); }

/* stock */
.bz-stockbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bz-stocknums { display: flex; gap: 6px; flex: 1; }
.bz-stocknum { flex: 1; background: var(--bz-panel2); border-radius: var(--bz-r-md); padding: 8px 6px; text-align: center; display: flex; flex-direction: column; }
.bz-stocknum b { font-size: 18px; letter-spacing: -.02em; }
.bz-stocknum span { font-size: 11px; color: var(--bz-muted); }
.bz-history { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bz-history h4 { font-size: 12px; color: var(--bz-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bz-move { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bz-panel2); border-radius: var(--bz-r-sm); font-size: 13px; }
.bz-move > b { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.bz-up { color: var(--bz-ok); }
.bz-down { color: var(--bz-danger); }
.bz-move-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-move-note { font-size: 12px; color: var(--bz-muted); }

/* figures */
.bz-chips { display: flex; gap: 6px; }
.bz-chip { padding: 7px 13px; border-radius: var(--bz-r-pill); background: var(--bz-panel2); color: var(--bz-muted); font-weight: 700; font-size: 13px; border: 1.5px solid transparent; position: relative; }
.bz-chip.on { background: var(--bz-panel); color: var(--bz-gold-deep); border-color: var(--bz-accent); }
.bz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bz-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.bz-tile { background: var(--bz-panel); border: 1px solid var(--bz-hairline); border-radius: var(--bz-r-md); padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--bz-lift-1); }
.bz-tile b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bz-tile span { font-size: 12px; color: var(--bz-muted); line-height: 1.35; }
.bz-tile-big { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(236, 208, 133, .38), rgba(199, 154, 46, .16)); border-color: rgba(199, 154, 46, .35); }
.bz-tile-big b { font-size: 34px; color: #6d5410; }
.bz-tile-big span { color: #6d5410; font-weight: 600; }

/* ═══ a shop as a buyer — the storefront's "neon sign", inside the app ═══ */
.bz-wall {
  margin: -14px -14px 0; padding: 22px 16px 20px; text-align: center; color: #f0e3c4;
  background: #241f16 radial-gradient(ellipse 90% 70% at 50% 22%, rgba(199,154,46,.26), rgba(199,154,46,0) 70%);
  border-bottom: 1px solid rgba(236,208,133,.28); box-shadow: 0 10px 40px rgba(199,154,46,.22);
}
.bz-wall-logo {
  width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 2px rgba(236,208,133,.6), 0 0 0 5px #241f16, 0 0 0 6px rgba(236,208,133,.25), 0 0 26px rgba(199,154,46,.5);
}
.bz-wall-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-wall-mono {
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04);
  border: 2px solid #ecd085; color: #fff6dc; font-size: 34px; font-weight: 800; box-shadow: none;
  text-shadow: 0 0 6px #ecd085, 0 0 16px rgba(199,154,46,.7);
}
.bz-neon {
  font-size: clamp(26px, 7.5vw, 36px); font-weight: 800; letter-spacing: .01em; line-height: 1.12; color: #fff6dc; overflow-wrap: anywhere;
  text-shadow: 0 0 1px #fff, 0 0 5px #fff6dc, 0 0 12px #ecd085, 0 0 26px #c79a2e, 0 0 52px rgba(199,154,46,.55);
}
.bz-neon-long { font-size: clamp(20px, 5.8vw, 28px); }
.bz-wall-at { color: #c9b890; font-size: 14px; margin-top: 6px; }
.bz-wall-about { margin: 14px auto 0; max-width: 34em; font-size: 13.5px; line-height: 1.5; color: #f0e3c4; white-space: pre-wrap; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(236,208,133,.22); border-radius: 14px; padding: 12px 14px; }
.bz-tc { background: var(--bz-panel); border: 1px solid var(--bz-line); border-radius: var(--bz-r-md); padding: 11px 12px; font-size: 13.5px; line-height: 1.5; box-shadow: var(--bz-lift-1); display: flex; flex-direction: column; gap: 2px; }
.bz-tc b { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--bz-muted); margin-top: 6px; }
.bz-tc b:first-child { margin-top: 0; }
.bz-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bz-muted); }
.bz-shopgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bz-shopcard {
  display: flex; flex-direction: column; min-width: 0; text-align: left; background: var(--bz-panel); border: 1px solid var(--bz-line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--bz-lift-1); padding: 0; position: relative;
}
.bz-shopcard-ph { position: relative; aspect-ratio: 1; background: var(--bz-panel2); display: flex; align-items: center; justify-content: center; color: var(--bz-muted); font-size: 12.5px; font-weight: 600; }
.bz-shopcard-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-out .bz-shopcard-ph img { opacity: .55; }
.bz-ribbon { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--bz-line); color: var(--bz-danger); font-size: 12px; font-weight: 800; }
.bz-shopcard-b { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 12px; }
.bz-shopcard-b > b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.bz-shopcard-pr { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.bz-shopcard-dl, .bz-shopcard-st { font-size: 12px; color: var(--bz-muted); }
.bz-sold { color: var(--bz-danger); font-weight: 700; }
/* flex:none — inside the sheet's flex column an item with overflow gets min-height 0 and
   shrinks to nothing; the strip must keep the height its square slides give it */
.bz-strip { flex: none; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.bz-strip::-webkit-scrollbar { display: none; }
.bz-sl { position: relative; flex: 0 0 88%; min-width: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--bz-panel2); border: 1px solid var(--bz-line); margin: 0; }
.bz-one .bz-sl { flex-basis: 100%; }
.bz-sl img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bz-n { position: absolute; right: 10px; bottom: 10px; padding: 7px 11px; border-radius: 999px; background: rgba(36,31,22,.78); color: #f6efe0; font-size: 12px; font-weight: 700; line-height: 1; }
.bz-n:empty { display: none; }
.bz-buyprice { display: flex; flex-direction: column; gap: 3px; }
.bz-buyprice > b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bz-buyprice > span { font-size: 12.5px; font-weight: 600; color: var(--bz-muted); }
.bz-buyalt { font-weight: 500 !important; color: var(--bz-ink) !important; }
.bz-buydesc { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.bz-why { font-size: 13px; color: var(--bz-muted); text-align: center; line-height: 1.5; }
.bz-plate { background: var(--bz-panel2); color: var(--bz-muted); cursor: default; }
.bz-sheet-foot-col { flex-direction: column; }
.bz-ticket {
  padding: 20px 18px 22px; text-align: center; color: #f0e3c4; border-radius: 18px;
  background: #241f16 radial-gradient(ellipse 90% 80% at 50% 30%, rgba(199,154,46,.24), rgba(199,154,46,0) 70%);
  border: 1px solid rgba(236,208,133,.28); box-shadow: 0 12px 36px rgba(199,154,46,.2);
}
.bz-ticket-ref {
  font-size: 36px; font-weight: 800; letter-spacing: .1em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff6dc; user-select: all;
  text-shadow: 0 0 1px #fff, 0 0 6px #fff6dc, 0 0 14px #ecd085, 0 0 28px rgba(199,154,46,.7);
}
.bz-ticket p { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.bz-ticket-total { font-weight: 800; color: #fff6dc; }

/* ═══ sheets — the house .modal / .modal-card ═══ */
.bz-sheet-host {
  position: absolute; inset: 0; z-index: 5; background: rgba(46, 36, 12, .38);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: bz-fade .14s ease-out;
}
.bz-sheet-host[hidden] { display: none !important; }
.bz-sheet {
  width: 100%; max-width: 560px; background: var(--bz-panel); border-radius: var(--bz-r-lg) var(--bz-r-lg) 0 0;
  max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--bz-lift-3);
  animation: bz-rise .18s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bz-sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 12px 6px 20px; }
.bz-sheet-head h3 { flex: 1; font-size: 17px; letter-spacing: -.02em; }
.bz-sheet-body { padding: 8px 20px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.bz-sheet-foot { display: flex; gap: 8px; padding: 10px 20px 18px; border-top: 1px solid var(--bz-hairline); }
.bz-sheet-foot .bz-primary, .bz-sheet-foot .bz-danger { flex: 1; }
@media (min-width: 640px) {
  .bz-sheet-host { align-items: center; padding: 16px; }
  .bz-sheet { border-radius: var(--bz-r-lg); max-height: 86vh; }
  .bz-sheet-sm { max-width: 420px; }
}
@keyframes bz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bz-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bz-sheet-host, .bz-sheet { animation: none; }
  .bz-root [aria-busy="true"]::after { animation-duration: 1.4s; }
}

/* fallback glyph when icons.js is not on the page */
.bz-ico-fallback { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: currentColor; opacity: .25; }
