/* Uniflora Wholesale portal. Retro tokens: cream, yellow, orange, burnt, ink.
   The CSP allows no inline styles, so everything visual is a class here. */
:root {
  --cream: #f7f0dd;
  --ray: #efe5c6;
  --yellow: #ffbb40;
  --orange: #f7941d;
  --burnt: #b8480f;
  --ink: #161616;
  --ink-2: #3a3a3a;
  --muted: #5d5d5d;
  --line: #d9cfb1;
  --white: #ffffff;
  --green: #1f6b2c;
  --red: #a3261d;
  --radius: 16px;
  --display: "Bowlby One", "Cooper Black", Georgia, serif;
  --head: Figtree, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
}
[hidden] { display: none !important; }
a { color: var(--ink); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-head { background: var(--ink); color: var(--cream); border-bottom: 4px solid var(--orange); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { text-decoration: none; color: var(--cream); display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: var(--display); font-size: 22px; letter-spacing: 0.5px; color: var(--yellow); }
.brand-sub { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream); opacity: 0.85; }
.top-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top-nav a {
  color: var(--cream); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.top-nav a:hover { background: #2b2b2b; }
.top-nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.head-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.head-company { font-size: 13px; color: var(--cream); opacity: 0.9; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout */
.app { flex: 1; padding: 28px 0 48px; }
.app:focus { outline: none; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--burnt); font-weight: 700; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: 5px 5px 0 var(--ink);
}
.card + .card { margin-top: 22px; }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid > .card + .card { margin-top: 0; }
.section { margin-top: 34px; }

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 800; font-size: 16px;
  background: var(--ink); color: var(--white); border: 2px solid var(--ink);
  border-radius: 999px; padding: 12px 24px; min-height: 48px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #000; }
.btn.accent { background: var(--yellow); color: var(--ink); }
.btn.accent:hover { background: var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); }
.site-head .btn.ghost { color: var(--cream); border-color: var(--cream); }
.site-head .btn.ghost:hover { background: #2b2b2b; }
.btn.small { font-size: 14px; padding: 6px 16px; min-height: 40px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

label.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin: 0 0 5px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 14px; font-size: 14px; }
.crumb-back { font-weight: 700; display: inline-block; padding: 8px 0; }
.crumb-trail { color: var(--muted); }
.crumb-trail a { color: var(--muted); }
.crumb-trail [aria-current] { color: var(--ink); font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field > .hint.small { display: block; margin-top: 4px; }
.field > .field-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--burnt); cursor: pointer; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--ray); }
.info-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.info-btn .ico { width: 20px; height: 20px; }
.field > .email-note[hidden] { display: none; }
.field > .email-note { background: var(--ray); border-radius: 10px; padding: 8px 12px; margin: 6px 0 0; color: var(--ink); }
.reqlist details { border-top: 2px solid var(--line); padding: 10px 0; }
.reqlist summary { cursor: pointer; min-height: 32px; }
.reqlist details .facts { margin-top: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 11px 14px; min-height: 48px;
}
input.code {
  font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: 10px; text-align: center;
}
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.cols { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
fieldset { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.error { background: #fbe6e3; border: 2px solid var(--red); color: var(--red); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
.notice { background: var(--ray); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }

/* Sign-in */
.signin {
  min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    repeating-conic-gradient(from 0deg at 50% 118%, var(--cream) 0deg 7deg, var(--ray) 7deg 14deg);
  margin-top: -28px;
}
.signin-card { width: 100%; max-width: 440px; }
.signin-title { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ink); margin: 0 0 4px; text-shadow: 3px 3px 0 var(--yellow); }
.signin-sub { font-family: var(--head); font-weight: 700; font-size: 16px; margin: 0 0 18px; color: var(--ink-2); }
.stripes { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0 0 20px; border: 2px solid var(--ink); }
.stripes i { flex: 1; }
.stripes i:nth-child(1) { background: var(--yellow); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--burnt); }

/* Home */
.hero { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 28px; border-bottom: 8px solid var(--orange); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--yellow); }
.hero p { color: var(--cream); margin: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; border: 2px solid var(--ink); background: var(--white); }
.pill.soon { background: var(--ray); border-color: var(--line); color: var(--muted); }
.pill.on { background: #dff3e2; border-color: var(--green); color: var(--green); }
.pill.off { background: #eee; border-color: #999; color: #555; }
.pill.role { background: var(--yellow); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts b { font-weight: 600; text-align: right; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: 15px; color: var(--ink-2); }
.promo { background: var(--yellow); }
.promo.alt { background: var(--white); }

/* People */
.people { width: 100%; border-collapse: collapse; }
.people th { text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.people td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.people tr.off td { color: var(--muted); }
.people .who b { display: block; }
.people .who { min-width: 230px; }
.people .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-foot { background: var(--ink); color: var(--cream); padding: 24px 0 28px; border-top: 4px solid var(--orange); }
.site-foot a { color: var(--yellow); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.foot-brand img { background: var(--white); border-radius: 8px; padding: 3px; width: 62px; height: auto; }
.foot-brand img.foot-logo-rb { width: auto; height: 54px; padding: 3px 6px; }
@media (max-width: 420px) { .foot-brand { flex-wrap: wrap; } }
.foot-small { font-size: 13px; margin: 0 0 10px; }
.pill-link { text-decoration: none; display: inline-block; }
.pill-link:hover .pill, .pill-link:focus-visible .pill { box-shadow: 2px 2px 0 var(--ink); }
.foot-people { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; }
.foot-people a { white-space: nowrap; display: inline-block; padding: 4px 0; }
.foot-warning { font-size: 11px; line-height: 1.5; color: #c9c2ad; margin: 0; max-width: 900px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--white); border: 2px solid var(--yellow); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: 15px; z-index: 40; max-width: calc(100vw - 32px);
}

@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .signin-title { font-size: 36px; }
  .hero h1 { font-size: 27px; }
  .head-company { display: none; }
  .card { padding: 18px; box-shadow: 3px 3px 0 var(--ink); }
  .people thead { display: none; }
  .people, .people tbody, .people tr, .people td { display: block; width: 100%; }
  .people tr { border-bottom: 2px solid var(--ink); padding: 10px 0; }
  .people td { border: 0; padding: 3px 0; }
}

/* Catalog */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pcard {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.pcard:hover { box-shadow: 6px 6px 0 var(--orange); }
.pcard-img { aspect-ratio: 1 / 1; background: var(--ray); display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--ink); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img { position: relative; }
.viewswitch { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.viewswitch button { font: inherit; font-weight: 700; font-size: 14px; min-height: 40px; padding: 6px 18px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.viewswitch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.catlist th.num, .catlist td.num { text-align: right; white-space: nowrap; }
.catlist td.num input.qty { margin-left: auto; }
.catlist .who a { color: var(--ink); }
.catlist .who { min-width: 0; }
.catlist td, .catlist th { padding-left: 8px; padding-right: 8px; }
.catlist td.num input.qty { width: 64px; }
/* List view: the column header stays on screen while scrolling (Mason 2026-11-17).
   The scroll wrapper would make sticky stick inside it, so this table's wrapper does not scroll;
   the header is hidden on phones, where each row is a block. */
.table-scroll:has(> table.catlist) { overflow: visible; }
.catlist thead th { position: sticky; top: 0; z-index: 3; background: var(--white); border-bottom: 0; box-shadow: inset 0 -2px 0 var(--ink); }
.catlist-exp { font-weight: 700; color: var(--ink); }
/* Units per case in the list view, same yellow as the card circle (Mason, 2026-11-17). */
.catlist-pk { display: inline-flex; align-items: baseline; gap: 4px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-family: var(--head); line-height: 1.2; }
.catlist-pk b { font-weight: 800; font-size: 17px; }
.catlist-pk span { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.catlist-units { font-weight: 700; color: var(--ink); white-space: nowrap; }
.catlist-units:empty { display: none; }
/* List view hint under the filter card: room above it (Mason, 2026-11-17). */
.catlist-hint { margin-top: 16px; }
.error-text { color: #b3261e; }
.catlist-bar { position: sticky; bottom: 12px; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }
.catlist-bar-text b { font-weight: 800; }
@media (max-width: 640px) {
  /* Phone: the nav is one wrapped row of pills under the brand, not a column. */
  .head-row { gap: 6px 12px; min-height: 0; }
  .top-nav { order: 3; flex: 0 0 100%; gap: 2px; }
  .top-nav a { padding: 6px 11px; font-size: 14px; }
  /* Phone list: each product is a compact block with the cases box on the right. */
  .catlist tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0 !important; }
  .catlist td { width: auto !important; padding: 1px 0 !important; text-align: left !important; white-space: normal !important; font-size: 14px; }
  .catlist td.who { grid-column: 1 / -1; padding-bottom: 3px !important; }
  .catlist td.who::before { content: none !important; }
  .catlist td.who b { font-size: 15px; }
  .catlist-code { display: none !important; }
  .catlist td .block { display: inline; }
  .catlist td .block::before { content: " "; }
  .catlist-each::before { content: " (" !important; }
  .catlist-each::after { content: ")"; }
  .catlist td .catlist-msrp { display: block; }
  .catlist td .catlist-msrp::before { content: none; }
  .catlist td .catlist-exp { display: block; }
  .catlist td .catlist-exp::before { content: none; }
  .catlist td.catlist-order { grid-column: 2; grid-row: 2 / span 4; align-self: center; display: flex !important; flex-direction: column; align-items: center; gap: 2px; }
  .catlist td.catlist-order::before { content: attr(data-label) !important; font-weight: 700; color: var(--ink) !important; }
  .catlist td.catlist-order input.qty { width: 72px; min-height: 44px; margin: 0; font-size: 18px; font-weight: 700; }
  .catlist td.catlist-order .error-text { max-width: 84px; text-align: center; }
  .catlist-bar { flex-wrap: nowrap; padding: 8px 10px 8px 14px; bottom: 8px; font-size: 15px; }
  .catlist-bar-note { display: none; }
  .catlist-bar .btn { white-space: nowrap; }
}
.pcard-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.pcard-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 14px 14px; }
.pcard-add .btn { min-height: 40px; }
.pcard-case { position: absolute; top: 8px; right: 8px; background: var(--ink); color: var(--white); border-radius: 999px; padding: 4px 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.pcard-case b { font-family: var(--head); font-weight: 800; font-size: 15px; }
/* "12pk Case" circle, top left of the card photo (Mason, 2026-11-17). */
.pcard-pk { position: absolute; top: 8px; left: 8px; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--head); box-shadow: 2px 2px 0 var(--ink); }
.pcard-pk b { font-weight: 800; font-size: 17px; }
.pcard-pk span { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.pcard.compact .pcard-pk { width: 48px; height: 48px; }
.pcard.compact .pcard-pk b { font-size: 14px; }
.pcard.compact .pcard-pk span { font-size: 9px; }
.pcard-batch { margin-top: auto; padding-top: 8px; border-top: 2px solid var(--line); font-size: 13px; line-height: 1.45; }
.pcard-batch p > span { color: var(--muted); }
.pcard-batch b { overflow-wrap: anywhere; }
.pcard-batch-head { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-body h3 { font-size: 15px; margin: 0; }
.pcard-body p { margin: 0; }
.pcard-price { font-family: var(--head); font-weight: 800; font-size: 19px; }
.pcard-msrp { margin: 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.pills:empty { display: none; }
.instock { color: var(--green); font-weight: 600; }
.filters .cols { gap: 12px 16px; margin-bottom: 12px; }
.filters .check { margin: 0; }
.filters { margin-top: 12px; }
.product { display: grid; gap: 26px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.photo-big { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; background: var(--ray); display: block; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.thumb { padding: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; width: 58px; height: 58px; background: var(--ray); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-big { font-family: var(--head); font-weight: 800; font-size: 30px; margin: 4px 0 2px; }
.actions { margin-top: 14px; gap: 8px; }
.block { display: block; }
.desc { white-space: pre-line; font-size: 15px; color: var(--ink-2); margin: 0; }
.batches td { vertical-align: middle; }
.linkish.small { font-size: 13px; color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(22, 22, 22, 0.7); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); width: 100%; max-width: 980px; height: min(92vh, 1100px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--yellow); flex-wrap: wrap; }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; min-width: 160px; }
.modal-body { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 16px; min-height: 0; }
.lab-frame { flex: 1; width: 100%; border: 2px solid var(--line); border-radius: 10px; min-height: 0; }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* Two cards across on a phone: the case price sits under the "12pk" circle, not over it. */
  .pcard-case { top: auto; bottom: 8px; }
  .modal { padding: 0; }
  .modal-panel { height: 100dvh; border-radius: 0; border: 0; }
}
@media (max-width: 640px) {
  .batches td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
}

/* Cart and checkout */
input.qty { width: 84px; text-align: center; padding-left: 8px; padding-right: 8px; }
.addbox { margin-top: 14px; gap: 10px; }
.cartlines td { vertical-align: middle; }
.lineerr { display: block; color: var(--red) !important; font-weight: 600; }
.totals li.grand { font-size: 18px; border-top: 2px solid var(--ink); }
.totals li.grand b { font-family: var(--head); font-weight: 800; }
.choice { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ray); }
p.tight { margin: 0 0 4px; }
.grid.two > div > .card + .card { margin-top: 22px; }

/* Orders and invoices */
.pill.warn { background: #fdecc8; border-color: var(--burnt); color: var(--burnt); }
/* On sale (2026-11-17): the normal wholesale price, struck through, beside the sale price. */
.pill.sale { background: var(--red); border-color: var(--red); color: var(--white); white-space: nowrap; }
.compare { color: var(--muted); font-weight: 600; }
.compare s { color: var(--red); }
.compare.block { display: block; }
.price-big + .tight .compare { font-size: 16px; }
h1 .pill { vertical-align: middle; font-family: var(--body); }
p.actions { margin: 12px 0 0; }
@media print {
  .site-head, .site-foot, .noprint, .toast, .skip { display: none !important; }
  body { background: #fff; }
  .card, .hero { box-shadow: none; border-width: 1px; }
  .app { padding: 0; }
}

/* Case discounts (v10.362.0) */
.tierbox { margin: 0 0 14px; }
.tierline { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.tierbar { padding: 0 2px 30px; }
.tierbar-track { position: relative; height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.tierbar-fill { height: 100%; background: var(--orange); border-radius: 999px; min-width: 0; transition: width 0.25s ease; }
.tierbar-mark { position: absolute; top: -5px; width: 2px; height: 24px; background: var(--ink); }
.tierbar-mark span { position: absolute; top: 28px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--muted); }
.tierbar-mark.end span { transform: translateX(-100%); }
.tierbar-mark.hit span { color: var(--green); }
.addbox { margin: 0 0 14px; }
.addbox .row { align-items: center; }
@media (max-width: 520px) {
  .tierbar-mark span { font-size: 11px; }
  .tierbar-mark:first-of-type span { transform: translateX(-30%); }
}
/* Messages (v10.362.0) */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 85%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--white); }
.msg.mine { align-self: flex-end; background: var(--ray); border-color: var(--ink); }
.msg.them { align-self: flex-start; }
.msg-head { margin: 0 0 4px; font-size: 14px; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); resize: vertical; }

/* Staff view and training store banners, saved cards (v10.363.0) */
.modebar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 16px; margin: 0 0 18px; font-size: 15px; }
.modebar.view { background: #fdecc8; }
.modebar.demo { background: #dff3e2; }
.cardrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cardrow:last-child { border-bottom: 0; }
.cardform { display: grid; gap: 10px; max-width: 460px; margin: 0 0 14px; }
.cardform input { width: 100%; }
.cardform label.field { margin: 0; }
.cardform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cardform-row.three { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); }

/* Discount steps under the bar (the bar itself only names the case counts). */
.tiersteps { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.tiersteps li.hit { color: var(--green); }
.tiersteps b { color: inherit; }

/* Phone: every tap target at least 40px tall (v10.373.0 phone check). */
@media (max-width: 640px) {
  .brand { min-height: 40px; justify-content: center; }
  .top-nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .crumb-back { min-height: 40px; display: inline-flex; align-items: center; padding: 0; }
  .crumb-trail { display: none; }
  .linkish.small { min-height: 40px; display: inline-flex; align-items: center; padding: 0 2px; }
  .site-foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .people:not(.catlist) td a, .facts a, .pill-link { display: inline-flex; align-items: center; min-height: 40px; }
  .people:not(.catlist) td a.block { display: flex; }
  .cartlines td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .cartlines td[data-label] { display: flex !important; align-items: center; gap: 8px; }
  .cartlines td.who { display: block !important; }
  .cartlines td.who::before { content: none; }
  .people td.who::before { content: none !important; }
  .people:not(.catlist) td.who > a { display: flex; }
}

/* Home and catalog redesign (v10.377.0): one clear action, pictures, fewer words. */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-hero {
  background: var(--ink); color: var(--cream); border-radius: 22px; border-bottom: 8px solid var(--orange);
  padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; overflow: hidden;
}
.home-hero .kicker { color: var(--yellow); margin-bottom: 10px; }
.home-hero h1 { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.05; color: var(--white); margin: 0 0 24px; overflow-wrap: anywhere; }
.btn.big { font-size: 20px; padding: 16px 36px; min-height: 60px; }
.btn.onink { background: transparent; color: var(--cream); border-color: var(--cream); min-height: 60px; }
.btn.onink:hover { background: #2b2b2b; }
.hero-photos { display: flex; padding: 12px 14px 12px 30px; }
.hero-photos img { width: 150px; height: 150px; object-fit: cover; border-radius: 18px; border: 3px solid var(--cream); margin-left: -30px; background: var(--ray); }
.hero-photos img:nth-child(1) { transform: rotate(-6deg); }
.hero-photos img:nth-child(2) { transform: rotate(3deg) translateY(-10px); }
.hero-photos img:nth-child(3) { transform: rotate(8deg) translateY(6px); }

.qtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.qtile {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 18px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 14px; color: var(--ink); text-decoration: none;
  font-family: var(--head); font-weight: 800; font-size: 17px;
}
.qtile:hover { background: var(--yellow); }
.qtile-badge { margin-left: auto; background: var(--orange); border-radius: 999px; padding: 2px 10px; font-size: 13px; white-space: nowrap; }

.deal {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 26px; align-items: center;
}
.deal .kicker { color: var(--ink); }
.deal h2 { font-size: 24px; margin: 0; }
.deal-ship { margin: 8px 0 0; font-weight: 700; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.step { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; }
.step-cases { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.step-pct { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.15; }
.step-note { font-size: 12px; color: var(--ink-2); }
.deal-foot { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); max-width: 760px; }
.deal-more { grid-column: 1 / -1; }
.deal-more summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; list-style: none; }
.deal-more summary::-webkit-details-marker { display: none; }
.deal-more p { margin: 6px 0 0; max-width: 760px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-head h2 { margin: 0; font-size: 24px; }
.sec-head a { font-weight: 700; white-space: nowrap; }
.pcard.compact .pcard-body { gap: 2px; }
.pcard-batch p { margin: 0; }

.morelinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.morelink { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbf7ea; color: var(--ink); text-decoration: none; }
.morelink:hover { border-color: var(--ink); background: var(--white); }
.morelink b { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 16px; }
.morelink b .ico { width: 18px; height: 18px; color: var(--burnt); }
.morelink span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .home-hero h1 { font-size: 34px; margin-bottom: 18px; }
  .home-hero .btn.big { width: 100%; }
  .home-hero .btn.onink { width: 100%; }
  .hero-photos { justify-content: center; padding: 6px 0 4px 24px; }
  .hero-photos img { width: 96px; height: 96px; margin-left: -24px; border-radius: 14px; }
  .qtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qtile { padding: 10px 14px; font-size: 16px; }
  .deal { grid-template-columns: 1fr; padding: 16px; }
  .step-pct { font-size: 30px; }
  .sec-head h2 { font-size: 21px; }
  .morelinks { grid-template-columns: 1fr; }
}

/* Header: the whole menu on one row on a desktop. */
@media (min-width: 900px) {
  .head-row { flex-wrap: nowrap; gap: 14px; }
  .top-nav { flex-wrap: nowrap; gap: 2px; }
  .top-nav a { padding: 8px 11px; font-size: 14px; white-space: nowrap; }
  .head-company { max-width: 150px; }
  .head-right { gap: 8px; }
  .head-right .btn { white-space: nowrap; }
}

.qtile { min-width: 0; }
@media (max-width: 760px) {
  /* Phone: the menu pills above already go to these places. */
  .qtiles { display: none; }
  .home-hero + .qtiles + .deal, .home-hero ~ .deal { margin-top: 18px; }
  .deal-more summary, .sec-head a { min-height: 40px; display: inline-flex; align-items: center; }
  .sec-head { align-items: center; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .step { padding: 8px 2px; }
  .step-cases { font-size: 10px; letter-spacing: 0.5px; }
  .step-pct { font-size: 26px; }
  .step-note { font-size: 11px; }
}
.signin-card form + .small { margin-top: 12px; }
/* A product with no full case in stock: the photo is dimmed and the card says so. */
.pcard.soldout .pcard-img img { opacity: 0.45; filter: grayscale(0.6); }
.pcard-add .pill { align-self: center; }

/* Batches made before homogeneity testing (sell by December 14, 2026). */
.homog-warn { color: #8a3b00; font-weight: 700; font-size: 13px; line-height: 1.4; }
.homog-warn.notice { background: #fff3e0; border-color: #e07b00; font-size: 14px; }
p.homog-warn { margin: 6px 0 0; }
.homog-ok { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 14px; margin: 8px 0 0; }
.homog-ok .ico { width: 18px; height: 18px; stroke-width: 3; }
.people .who .homog-ok { margin: 4px 0 0; font-size: 13px; }
.people .who .homog-ok span { color: inherit; font-size: inherit; }
.catlist-bar-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catlist-bar-goal { color: var(--yellow, #ffbb40); font-weight: 700; font-size: 14px; }
.catlist-bar-goal:empty, .catlist-bar-nums:empty { display: none; }
.catlist-bar-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 500; }
.cbn-l { opacity: 0.75; margin-right: 6px; }
.cbn-was b { text-decoration: line-through; opacity: 0.75; font-weight: 600; }
.cbn-net b { color: var(--yellow, #ffbb40); font-size: 16px; }
@media (max-width: 760px) {
  .catlist-bar { flex-wrap: wrap; }
  .catlist-bar-goal, .catlist-bar-nums { font-size: 13px; }
  .catlist-bar-nums { gap: 2px 12px; }
}
.cart-batch { display: block; margin-top: 4px; color: var(--muted); }
.cart-batch b { color: var(--ink); }
.cart-batch .block > span, .cart-batch .block > b { display: inline; }
.people .who .cart-batch .homog-warn { color: #8a3b00; font-weight: 700; font-size: 13px; }

/* Terms of sale (v10.383.0) */
.terms-doc { max-width: 780px; }
.terms-doc h2 { font-size: 18px; margin: 22px 0 8px; }
.terms-doc p { font-size: 15px; line-height: 1.55; }
.terms-ticked { margin: 0 0 4px; padding-left: 20px; }
.terms-ticked li { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.facts + .kicker { margin-top: 18px; }

/* Tax exemption form (ST3) signature pad (v10.384.0) */
.sigpad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 170; background: #ffffff; border: 2px solid var(--ink); border-radius: 12px; touch-action: none; cursor: crosshair; margin: 0 0 8px; }

/* Account setup gate (v10.385.0): license + tax ID, then the ST3. */
.setup-step { display: flex; gap: 16px; align-items: flex-start; }
.setup-step h2 { margin: 2px 0 4px; font-size: 20px; }
.setup-step .muted { margin: 0 0 12px; }
.setup-num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.setup-step.done .setup-num { background: var(--green); color: var(--white); }
.setup-step.done h2 { color: var(--muted); }
.setup-body { flex: 1 1 auto; min-width: 0; }
.setup-step ~ p { margin-top: 20px; }

/* Feedback: floating button and form (v10.396.0) */
.foot-feedback { color: var(--yellow); margin-left: 10px; }
.foot-feedback[hidden] { display: none; }
.fb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 25; }
.fb-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px 10px 16px;
  background: var(--ink); color: var(--yellow); border: 2px solid var(--yellow); border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 3px 3px 0 var(--orange);
}
.fb-open:hover { background: #000; }
.fb-open .ico { width: 20px; height: 20px; }
.fb-x {
  position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
}
.fb-x::before { content: ""; position: absolute; inset: -8px; }
.fb-x:hover { background: var(--ray); }
.fb-x .ico { width: 14px; height: 14px; stroke-width: 3; }
body:has(.catlist-bar) .fb-fab { bottom: 92px; }
.modal-panel.fb-panel { max-width: 540px; height: auto; max-height: 92vh; }
.fb-body { padding: 16px; overflow: auto; }
.fb-intro { margin: 0 0 12px; }
.fb-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.fb-kind {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; text-align: left;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer;
}
.fb-kind:hover { background: var(--ray); }
.fb-kind[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.fb-kind .ico { width: 20px; height: 20px; color: var(--burnt); }
.fb-who[hidden] { display: none; }
.fb-thanks { text-align: center; padding: 16px 4px 8px; }
.fb-thanks p { margin: 0 0 16px; }
.fb-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--white); margin: 0 0 10px; }
.fb-check .ico { width: 28px; height: 28px; stroke-width: 3; }
@media (max-width: 760px) {
  .modal.fb-modal { align-items: flex-end; }
  .modal-panel.fb-panel { height: auto; max-height: 100dvh; border-radius: 16px 16px 0 0; border: 2px solid var(--ink); border-bottom: 0; }
}
/* Room under the footer so the Feedback button never sits on the required warning. */
@media (max-width: 1100px) {
  .site-foot { padding-bottom: 88px; }
}
@media (max-width: 640px) {
  .fb-fab { right: 14px; bottom: 14px; }
  .fb-open { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .fb-open span { display: none; }
  .fb-open .ico { width: 24px; height: 24px; }
}
/* Final-sale agreement for products on sale (app.js saleFinalPrompt) */
.modal-panel.sale-panel { max-width: 520px; height: auto; max-height: 92vh; }
.sale-body { padding: 16px; overflow: auto; }
.sale-body > p:first-child { margin: 0 0 10px; }
.sale-list { margin: 0 0 14px; padding-left: 20px; }
.sale-list li { margin: 2px 0; }
.sale-body .btn.wide { margin: 4px 0 10px; }
.salefinal { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--burnt); }
@media (max-width: 760px) {
  .modal.sale-modal { align-items: flex-end; }
  .modal-panel.sale-panel { height: auto; max-height: 100dvh; border-radius: 16px 16px 0 0; border: 2px solid var(--ink); border-bottom: 0; }
}
