/* Food Business Portal: shop pages (Food Business Portal design, Oct 2026).
   Marketplace (listing, product, compare, guest home), basket and checkout, basket drawer and dock, quick order.
   Everything is scoped under body.fb and the fbs- classes these views use. */

/* ---------- Marketplace frame: categories | page | docked basket ---------- */
body.fb .content:has(> .fbs-market), body.fb .content:has(> .fbs-co) { max-width: none; }
body.fb .fbs-market { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
body.fb .fbs-market.has-dock { grid-template-columns: minmax(0, 1fr) 330px; }
body.fb .fbs-market > .fbs-cats { grid-column: 1 / -1; }
body.fb .fbs-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.fb .fbs-main > * { margin: 0; }
@media (min-width: 1500px) {
  body.fb .fbs-market { grid-template-columns: 220px minmax(0, 1fr); }
  body.fb .fbs-market.has-dock { grid-template-columns: 220px minmax(0, 1fr) 330px; }
  body.fb .fbs-market > .fbs-cats { grid-column: auto; }
}
@media (max-width: 1199.98px) {
  body.fb .fbs-market.has-dock { grid-template-columns: minmax(0, 1fr); }
  body.fb .fbs-dock { display: none; }
}

/* Category menu: a dark column like the design's marketplace menu; a row of chips on narrower screens */
body.fb .fbs-cats { background: var(--ink); color: var(--seashell); border-radius: var(--r); padding: 12px; }
body.fb .fbs-cats ul { list-style: none; margin: 0; padding: 0; }
body.fb .content .fbs-cats a { color: var(--seashell); text-decoration: none; }
body.fb .fbs-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--pink);
  box-shadow: 3px 3px 0 0 rgba(0,0,0,.35); }
body.fb .content .fbs-cats a.fbs-all { color: #fff; }
body.fb .fbs-all > span { display: flex; flex-direction: column; line-height: 1.2; }
body.fb .fbs-all b { font-size: 14px; }
body.fb .fbs-all small { font-size: 11.5px; opacity: .9; }
body.fb .fbs-all:hover, body.fb .fbs-all.on { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 rgba(0,0,0,.45); }
body.fb .fbs-eb { margin: 16px 6px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,246,240,.6); }
body.fb .fbs-cat, body.fb .fbs-sub a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
body.fb .fbs-cat small, body.fb .fbs-sub a small { font-size: 11px; color: rgba(250,246,240,.55); font-weight: 500; }
body.fb .fbs-cat:hover, body.fb .fbs-sub a:hover { background: rgba(250,246,240,.08); }
body.fb .fbs-cat.on { background: rgba(250,246,240,.14); }
body.fb .fbs-sub { margin: 2px 0 6px 10px !important; padding-left: 8px !important; border-left: 1.5px solid rgba(250,246,240,.2); }
body.fb .fbs-sub a { font-weight: 500; font-size: 13px; }
body.fb .fbs-sub a.on { background: var(--seashell); }
body.fb .content .fbs-sub a.on, body.fb .fbs-sub a.on small { color: var(--ink); }
@media (max-width: 1499.98px) {
  body.fb .fbs-cats { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
  body.fb .fbs-cats > ul { display: flex; gap: 6px; }
  body.fb .fbs-cats li { flex: none; }
  body.fb .fbs-eb, body.fb .fbs-sub, body.fb .fbs-cat small, body.fb .fbs-all small { display: none; }
  body.fb .fbs-all { flex: none; padding: 7px 12px; box-shadow: none; }
  body.fb .fbs-all .bi { display: none; }
  body.fb .fbs-cat { white-space: nowrap; border: 1.5px solid rgba(250,246,240,.25); border-radius: 999px; padding: 6px 12px; }
  body.fb .fbs-cat.on { background: var(--seashell); border-color: var(--seashell); }
  body.fb .content .fbs-cat.on { color: var(--ink); }
}

/* Page header: app.css (shared with the Customer Portal) also has a .ph product-photo placeholder; undo it here. */
body.fb .fbs-main > .ph, body.fb .fbs-co > .ph, body.fb .fbs-page > .ph { width: auto; height: auto; background: none; font-size: inherit; color: inherit;
  align-items: flex-end; justify-content: space-between; }
body.fb .fbs-page { display: flex; flex-direction: column; gap: 16px; }
body.fb .fbs-page > * { margin: 0; }
/* Page header actions */
body.fb .fbs-main .ph-a { display: flex; gap: 8px; flex-wrap: wrap; }
body.fb .fbs-guestnote, body.fb .fbs-source { display: flex; gap: 8px; }

/* ---------- Filters ---------- */
body.fb .fbs-filters { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
body.fb .fbs-frow { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
body.fb .fbs-f { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; min-width: 0; max-width: 240px; }
body.fb .fbs-f label { margin: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.fb .fbs-f select { min-height: 38px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 30px 4px 14px; font-weight: 600; font-size: 13px; background-color: #fff; }
body.fb .fbs-chiprow { align-items: center; justify-content: space-between; }
body.fb .fbs-chipset { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
body.fb .fbs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none; margin: 0; }
body.fb .fbs-chip:hover { border-color: var(--ink); }
body.fb .fbs-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--seashell); }
body.fb .fbs-chip input { margin: 0; accent-color: var(--pink); }
body.fb .fbs-chip small { color: var(--muted); font-weight: 500; }
body.fb .fbs-fbtn { display: inline-flex; gap: 12px; align-items: center; margin-left: auto; }
body.fb.fbs-js .fbs-filters [data-fbs-apply] { display: none; }
body.fb .fbs-subs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1.5px solid var(--hair); }

/* ---------- Product cards ---------- */
body.fb .fbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
body.fb .pcard.fbs-pc { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  overflow: visible; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
body.fb .pcard.fbs-pc:hover { transform: none; border-color: var(--ink); box-shadow: var(--sh-pri); }
body.fb .pcard.fbs-pc > p { margin: 0; }
body.fb .pcard.fbs-pc.out { opacity: .72; }
body.fb .pcard.fbs-pc.sponsored { border-color: var(--teal-d); }
body.fb .fbs-ph { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--shell2) 0 10px, var(--shell3) 10px 20px); }
body.fb .fbs-ph img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
body.fb .fbs-noimg { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 24px; color: var(--ink); }
body.fb .fbs-badge { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--seashell); font-size: 11px; font-weight: 700; }
body.fb .fbs-badge.att { background: var(--att-bg); color: var(--att-fg); border: 1.5px solid var(--att-bd); }
body.fb .fbs-badge.sp { background: var(--teal); color: var(--ink); }
body.fb .fbs-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
body.fb .fbs-tags:empty { display: none; }
body.fb .fbs-tags .pill { font-size: 11px; padding: 1px 8px; border: 1.5px solid var(--line); background: #fff; }
body.fb .fbs-tags .pill.ok { border-color: transparent; background: var(--ok-bg); }
body.fb .fbs-pc h3.fbs-pn { margin: 2px 0 0; font-family: var(--body); font-size: 14.5px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
body.fb .fbs-pc h3.fbs-pn a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
body.fb .fbs-pc h3.fbs-pn a:hover { text-decoration-color: var(--ink); }
body.fb .fbs-pc h3 a::after { content: none; }
body.fb .fbs-pc .hint { font-size: 12.5px; }
body.fb .fbs-price b { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
body.fb .fbs-when b { color: var(--ink); }
body.fb .fbs-avail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
body.fb .fbs-avail .lnk { min-height: 0 !important; font-size: 12.5px !important; }
body.fb .tag.in_stock { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
body.fb .tag.low { background: var(--att-bg); color: var(--att-fg); border-color: var(--att-bd); }
body.fb .tag.out { background: var(--shell2); color: var(--muted); }
body.fb .fbs-pcf { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
body.fb .fbs-add { display: flex; flex-direction: column; gap: 6px; margin: 0; }
body.fb .fbs-size { min-width: 0; max-width: 100%; text-overflow: ellipsis; min-height: 36px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 12.5px; padding: 4px 8px; width: 100%; }
body.fb .fbs-buy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.fb .fbs-buy input[name="qty"] { width: 64px !important; display: inline-block !important; min-height: 38px; text-align: center; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 10px; padding: 4px; }
body.fb .fbs-buy button[type="submit"] { flex: 1 1 84px; min-height: 38px; padding: 0 10px !important; justify-content: center; gap: 6px; }
body.fb .fbs-inb { margin: 0; display: inline-flex; align-self: flex-start; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--att-bg); color: var(--att-fg); font-size: 12px; font-weight: 700; }
body.fb .fbs-rules { margin: 0; }
body.fb .fbs-pc .addlist summary { font-size: 12.5px; font-weight: 700; cursor: pointer; }
body.fb .fbs-pc .addlist form { display: grid; gap: 6px; margin-top: 6px; }
body.fb .fbs-signin { margin-top: auto !important; padding-top: 8px; }
body.fb .fbs-signin .btn { width: 100%; justify-content: center; }
body.fb .fbs-spons h2 { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
body.fb .fbs-spons { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-pager { display: flex; flex-wrap: wrap; gap: 6px; }
body.fb .fbs-pager a, body.fb .fbs-pager span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; font-weight: 700; text-decoration: none; }
body.fb .fbs-pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--seashell); }
body.fb .fbs-none h2 { font-size: 20px; }
body.fb .fbs-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Form controls here beat the shared theme's very specific `.content input:not(...)` rule only with !important. */
body.fb input[type="number"][name="qty"] { border: 1.5px solid var(--ink) !important; border-radius: 10px !important; padding: 2px 4px !important; text-align: center; font-weight: 700; font-size: 14px !important; }
body.fb .fbs-f select { border: 1.5px solid var(--ink) !important; border-radius: 999px !important; padding: 4px 30px 4px 14px !important; font-weight: 600; font-size: 13px !important; }
body.fb select.fbs-size { width: 100% !important; border: 1.5px solid var(--line) !important; border-radius: 10px !important; font-size: 12.5px !important; padding: 4px 26px 4px 8px !important; }

/* Quantity stepper (fb-shop.js wraps number inputs marked data-fbs-qty) */
body.fb .fbs-step { display: inline-flex; align-items: center; gap: 4px; flex: none; }
body.fb .fbs-step > button.fbs-sb { flex: none; width: 30px; min-width: 30px; height: 30px; min-height: 30px !important; padding: 0 !important; border-radius: 50% !important; border: 1.5px solid var(--ink) !important;
  background: #fff !important; color: var(--ink) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; box-shadow: none !important; }
body.fb .fbs-step > button.fbs-sb:hover { background: var(--ink) !important; color: var(--seashell) !important; }
body.fb .fbs-step > button.fbs-sb:disabled { opacity: .4; }
body.fb .fbs-buy .fbs-step input[name="qty"] { width: 48px !important; display: inline-block !important; }

/* ---------- Basket drawer and dock (fb/_drawer.php) ---------- */
body.fb .fbs-dock { position: sticky; top: 84px; }
body.fb .fbs-dock-in { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 104px); overflow: auto; padding: 18px; }
body.fb .fbs-dock-in > * { margin: 0; }
body.fb .fbs-dock-h { font-size: 18px; }
body.fb .fbs-dock [data-drawer-close] { display: none; }
body.fb .fbs-dock.fbs-flash .fbs-dock-in { box-shadow: var(--sh-pop) !important; }
body.fb .fbs-dr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
body.fb .fbs-dr-head h2 { margin: 0; font-size: 18px; display: flex; flex-direction: column; gap: 2px; }
body.fb .fbs-dr-head h2 .hint { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; }
body.fb .fbs-undo { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--att-bg); color: var(--att-fg); font-size: 13px; margin: 8px 0; }
body.fb .fbs-dr-empty p { margin: 0 0 8px; }
body.fb .fbs-dr-groups { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
body.fb .fbs-dr-g { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
body.fb .fbs-dr-g > p { margin: 0; }
body.fb .fbs-dr-gh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -10px -10px 0; padding: 8px 10px; border-radius: 10px 10px 0 0; background: var(--shell2); }
body.fb .fbs-dr-g.ok .fbs-dr-gh { background: #DDF6F6; }
body.fb .fbs-dr-g.held .fbs-dr-gh { background: var(--att-bg); }
body.fb .fbs-dr-gh h3 { margin: 0; font-family: var(--body); font-size: 14px; font-weight: 700; display: flex; gap: 6px; align-items: center; letter-spacing: 0; }
body.fb .fbs-dr-g.ok .fbs-dr-gh h3 i { color: var(--teal-d); }
body.fb .fbs-dr-g.held .fbs-dr-gh h3 i { color: var(--att-fg); }
body.fb .fbs-dr-meta { font-size: 12px; color: var(--muted); }
body.fb .fbs-dr-short { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--att-fg); }
body.fb progress { width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--shell2); overflow: hidden; appearance: none; -webkit-appearance: none; }
body.fb progress::-webkit-progress-bar { background: var(--shell2); border-radius: 99px; }
body.fb progress::-webkit-progress-value { background: var(--orange); border-radius: 99px; }
body.fb progress::-moz-progress-bar { background: var(--orange); border-radius: 99px; }
body.fb progress.met::-webkit-progress-value { background: var(--teal-d); }
body.fb progress.met::-moz-progress-bar { background: var(--teal-d); }
body.fb .fbs-dr-l { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 0; border-top: 1px solid var(--hair); font-size: 13px; }
body.fb .fbs-dr-l p { margin: 0; }
body.fb .fbs-dr-ln { display: flex; justify-content: space-between; gap: 8px; }
body.fb .fbs-dr-ln > span:first-child { display: flex; flex-direction: column; min-width: 0; }
body.fb .fbs-dr-ln .hint { font-size: 12px; }
body.fb .fbs-dr-lt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
body.fb .fbs-dr-lc { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.fb .fbs-dr-lc form { margin: 0; }
body.fb .fbs-qf { display: flex; gap: 6px; align-items: center; }
body.fb .fbs-qf input[name="qty"] { width: 56px !important; display: inline-block !important; min-height: 32px; text-align: center; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 4px; }
body.fb.fbs-js .fbs-qf [data-fbs-update] { display: none; }
body.fb button.link { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; color: var(--ink) !important; font-size: 12.5px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; box-shadow: none !important; }
body.fb button.link:hover { color: var(--pink-d) !important; }
body.fb .fbs-dr-sum { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; border-top: 1.5px solid var(--hair); padding-top: 8px; }
body.fb .fbs-dr-sum > div { display: flex; justify-content: space-between; gap: 8px; }
body.fb .fbs-dr-sum dt { font-weight: 500; }
body.fb .fbs-dr-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
body.fb .fbs-dr-sum .tot { padding-top: 6px; border-top: 1.5px solid var(--hair); font-size: 15px; font-weight: 700; }
body.fb .fbs-dr-sum .tot dt { font-weight: 700; }
body.fb .save { color: var(--ok-fg); font-weight: 700; }
body.fb .fbs-dr-held { margin: 6px 0 0; }
body.fb .fbs-dr-go { margin: 10px 0 6px; }
body.fb .fbs-dr-go .btn { width: 100%; min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 0; line-height: 1.2; }
body.fb .fbs-dr-go .btn small { font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .92; }
body.fb dialog.drawer .fbs-dr-groups { margin-top: 12px; }

/* ---------- Product page ---------- */
body.fb .fbs-pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; }
body.fb .fbs-pdm { display: flex; flex-direction: column; gap: 8px; }
body.fb .fbs-pdm .fbs-ph { aspect-ratio: 4 / 3; min-height: 220px; }
body.fb .fbs-pdm .fbs-noimg { width: 96px; height: 96px; font-size: 40px; }
body.fb .fbs-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.fb .fbs-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; border: 1.5px solid var(--hair); background: #fff; }
body.fb .fbs-credit { font-size: 11.5px; margin: 0; }
body.fb .fbs-pdi { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
body.fb .fbs-pdi > * { margin: 0; }
body.fb .fbs-pdi h1 { font-size: 32px; margin: 0; }
body.fb .fbs-pdi .fbs-tags .pill { font-size: 12px; padding: 2px 10px; }
body.fb .fbs-sizes-h { margin: 0 0 6px; font-weight: 700; font-size: 13px; }
body.fb .fbs-pkl { display: flex; flex-wrap: wrap; gap: 8px; }
body.fb .content a.fbs-pk2 { display: flex; flex-direction: column; gap: 2px; min-width: 112px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
body.fb .content a.fbs-pk2:hover { border-color: var(--ink); color: var(--ink); }
body.fb .fbs-pk2 b { font-size: 14px; }
body.fb .fbs-pk2 small { color: var(--muted); font-size: 12px; }
body.fb .content a.fbs-pk2.on { border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 9px 13px; }
body.fb .fbs-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
body.fb .fbs-facts > div { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
body.fb .fbs-facts dt { font-size: 12px; font-weight: 500; color: var(--muted); }
body.fb .fbs-facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
body.fb .fbs-offers { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-offers .card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
body.fb .fbs-offers .card-h h2 { margin: 0; }
body.fb .fbs-off { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(100px, .9fr) minmax(110px, 1fr) minmax(130px, 1.1fr); gap: 12px 16px; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
body.fb .fbs-off.best { border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
body.fb .fbs-off.off { opacity: .75; }
body.fb .fbs-off > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
body.fb .fbs-off > div > * { margin: 0; }
body.fb .fbs-off h3 { margin: 0; font-family: var(--body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; }
body.fb .fbs-off .fbs-op { font-family: var(--display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.fb .fbs-off .fbs-ob { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--hair); }

body.fb .fbs-off .fbs-ob form { display: flex; gap: 6px; align-items: center; margin: 0; }
body.fb .fbs-off .fbs-ob input[name="qty"] { width: 56px !important; display: inline-block !important; min-height: 36px; text-align: center; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 10px; padding: 2px 4px; }
body.fb .fbs-off .fbs-ob button[type="submit"] { min-height: 36px; white-space: nowrap; gap: 6px; }
body.fb .fbs-off .fbs-vol { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
body.fb .fbs-off .fbs-ob .addlist summary { font-size: 12.5px; font-weight: 700; cursor: pointer; }
body.fb .fbs-off .fbs-ob .addlist form { display: grid; gap: 6px; margin-top: 6px; }
body.fb .fbs-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
body.fb .fbs-info h2 { font-size: 17px; }
body.fb .fbs-info p { margin: 0 0 8px; }
body.fb .fbs-alg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
@media (max-width: 1100px) {
  body.fb .fbs-off { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) { body.fb .fbs-pd { grid-template-columns: minmax(0, 1fr); } }

/* Compare */
body.fb .fbs-sorts { display: flex; flex-wrap: wrap; gap: 8px; }
body.fb .fbs-sorts .btn[aria-current] { background: var(--ink); color: var(--seashell); border-color: var(--ink); }
body.fb .fbs-cmp td form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; margin: 0; }
body.fb .fbs-cmp td input[name="qty"] { width: 56px !important; display: inline-block !important; min-height: 34px; text-align: center; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 4px; }
body.fb .fbs-cmp tr.best th, body.fb .fbs-cmp tr.best td { background: #F1FBFB; }
body.fb .fbs-cmp .cell-sub { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Basket and checkout ---------- */
body.fb .fbs-co { display: flex; flex-direction: column; gap: 16px; }
body.fb .fbs-co > * { margin: 0; }
body.fb .fbs-cogrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
body.fb .fbs-comain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.fb .fbs-comain > * { margin: 0; }
body.fb .fbs-coside { display: flex; flex-direction: column; gap: 14px; }
body.fb .fbs-coside > * { margin: 0; }
@media (max-width: 1100px) {
  body.fb .fbs-cogrid { grid-template-columns: minmax(0, 1fr); }
  body.fb .fbs-coside { position: static; }
}
body.fb .fbs-deliver { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-deliver > * { margin: 0; }
body.fb .fbs-deliver form.fbs-addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.fb .fbs-deliver select { flex: 1 1 260px; min-height: 40px; }
body.fb .fbs-deliver details summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
body.fb .fbs-af { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
body.fb .fbs-af label { font-size: 13px; font-weight: 600; }
body.fb .fbs-cop { padding: 0 !important; overflow: hidden; }
body.fb .fbs-coph { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 12px 16px; background: var(--shell2); border-bottom: 1.5px solid var(--hair); }
body.fb .fbs-cop.ok .fbs-coph { background: #DDF6F6; }
body.fb .fbs-cop.held .fbs-coph { background: var(--att-bg); }
body.fb .fbs-coph h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
body.fb .fbs-cop.ok .fbs-coph h2 i { color: var(--teal-d); }
body.fb .fbs-cop.held .fbs-coph h2 i { color: var(--att-fg); }
body.fb .fbs-copd { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 13px; }
body.fb .fbs-copd b { font-size: 13.5px; }
body.fb .fbs-cob { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-cob > * { margin: 0; }
body.fb .fbs-col { display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; gap: 6px 16px; align-items: center; padding: 10px 0; border-bottom: 1.5px solid var(--hair); }
body.fb .fbs-coln { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
body.fb .fbs-coln > b { font-size: 14px; }
body.fb .fbs-coln .fbs-lacts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
body.fb .fbs-coln .addlist { font-size: 12.5px; }
body.fb .fbs-coln .addlist summary { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
body.fb .fbs-coln .addlist form { display: grid; gap: 6px; margin-top: 6px; max-width: 280px; }
body.fb .fbs-colq { display: flex; gap: 6px; align-items: center; }
body.fb .fbs-colq input[name="qty"] { width: 60px !important; display: inline-block !important; min-height: 36px; text-align: center; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 10px; padding: 2px 4px; }
body.fb .fbs-colt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; font-size: 13px; }
body.fb .fbs-colt b { font-size: 14px; }
body.fb .fbs-min { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
body.fb .fbs-min p { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
body.fb .fbs-gsum { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; margin: 0; font-size: 13px; }
body.fb .fbs-gsum > div { display: flex; flex-direction: column; align-items: flex-end; }
body.fb .fbs-gsum dt { font-weight: 500; color: var(--muted); font-size: 12px; }
body.fb .fbs-gsum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
body.fb .fbs-topup { border: 1.5px dashed var(--att-bd); border-radius: 12px; padding: 12px; background: #FFF8F3; display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-topup h3 { margin: 0; font-size: 14.5px; }
body.fb .fbs-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
body.fb .fbs-top { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; }
body.fb .fbs-top > * { margin: 0; }
body.fb .fbs-top button { margin-top: 4px; min-height: 34px; }
body.fb .fbs-held { font-size: 13px; }
body.fb .fbs-ins label { font-size: 13px; font-weight: 600; }
body.fb .fbs-sum { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-sum > * { margin: 0; }
body.fb .fbs-sum h2 { font-size: 18px; margin: 0; }
body.fb .fbs-sups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
body.fb .fbs-sups li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
body.fb .fbs-sups li > span { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
body.fb .fbs-sups .bi-check-circle-fill { color: var(--teal-d); }
body.fb .fbs-sups .bi-exclamation-circle-fill { color: var(--att-fg); }
body.fb .fbs-sups li.held { color: var(--muted); }
body.fb .fbs-sumdl { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; margin: 0; padding-top: 10px; border-top: 1.5px solid var(--hair); font-size: 13.5px; }
body.fb .fbs-sumdl dt { font-weight: 500; }
body.fb .fbs-sumdl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
body.fb .fbs-sumdl .tot { padding-top: 8px; border-top: 1.5px solid var(--hair); font-weight: 700; font-size: 16px; }
body.fb .fbs-sumdl dd.tot { font-family: var(--display); font-size: 20px; }
body.fb .fbs-blocked { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--att-bg); color: var(--att-fg); font-size: 13px; }
body.fb .fbs-blocked > * { margin: 0; }
body.fb .fbs-blocked ul { padding-left: 18px; }
body.fb .fbs-pay { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.fb .fbs-pay legend { font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
body.fb .fbs-payo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; background: #fff; }
body.fb .fbs-payo:has(input:checked) { border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 9px 11px; }
body.fb .fbs-payo.off { cursor: default; background: var(--seashell); }
body.fb .fbs-payo.off b { color: var(--muted); }
body.fb .fbs-payo input { margin-top: 3px; accent-color: var(--pink); flex: none; }
body.fb .fbs-payo > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
body.fb .fbs-payo .hint { font-size: 12.5px; }
body.fb .fbs-ref { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-ref > div > * { margin: 0; }
body.fb .fbs-ref label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
body.fb .fbs-ref .hint { font-size: 12px; margin-top: 2px; }
body.fb .fbs-place { width: 100%; min-height: 56px; font-size: 16px !important; justify-content: center; }
body.fb .fbs-codeform { display: flex; gap: 6px; align-items: flex-end; }
body.fb .fbs-codeform > div { flex: 1; min-width: 0; }
body.fb .fbs-codeform label { font-size: 13px; font-weight: 600; }
body.fb .fbs-codeform input { text-transform: uppercase; min-height: 38px; }
body.fb .fbs-mini h2 { font-size: 15px; margin: 0 0 6px; }
body.fb .fbs-mini form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
body.fb .fbs-mini p { margin: 0 0 6px; font-size: 13px; }
body.fb .fbs-saved ul { list-style: none; margin: 0; padding: 0; }
body.fb .fbs-saved li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1.5px solid var(--hair); font-size: 13px; }
body.fb .fbs-saved li > span:last-child { display: flex; gap: 8px; }
body.fb .fbs-saved form { margin: 0; }
body.fb .fbs-empty { display: flex; flex-direction: column; gap: 10px; }
body.fb .fbs-empty > * { margin: 0; }
@media (max-width: 640px) {
  body.fb .fbs-col { grid-template-columns: minmax(0, 1fr) auto; }
  body.fb .fbs-colt { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; gap: 8px; }
  body.fb .fbs-copd { align-items: flex-start; text-align: left; }
}

/* ---------- Quick order ---------- */
body.fb .fbs-qo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
body.fb .fbs-qo .card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
body.fb .fbs-qo .card > * { margin: 0; }
body.fb .fbs-qo textarea { font-family: var(--mono); font-size: 13px; min-height: 220px; }
body.fb .fbs-qo-res { margin: 0 !important; }

/* ---------- Guest home ---------- */
body.fb .fbs-ghero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
body.fb .fbs-gh { display: flex; flex-direction: column; gap: 14px; padding: 28px !important; margin: 0 !important; }
body.fb .fbs-gh > * { margin: 0; }
body.fb .fbs-gh h1 { font-size: 38px !important; line-height: 1.05; letter-spacing: -.025em; margin: 0 !important; }
body.fb .fbs-gh .desc { font-size: 16px; color: var(--muted); max-width: 52ch; }
body.fb .fbs-gul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
body.fb .fbs-gul li { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
body.fb .fbs-gul li i { color: var(--teal-d); }
body.fb .fbs-how { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
body.fb .fbs-how ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
body.fb .fbs-how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; }
body.fb .fbs-how li .n { grid-row: span 2; display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--seashell); align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
body.fb .fbs-how li p { margin: 0; }
body.fb .fbs-gsec { display: flex; flex-direction: column; gap: 12px; }
body.fb .fbs-gsec > h2 { margin: 0; font-size: 22px; }
body.fb .fbs-gcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body.fb .content a.fbs-gcat { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
body.fb .content a.fbs-gcat:hover { border-color: var(--ink); box-shadow: var(--sh-pri); color: var(--ink); }
body.fb .fbs-gcat .fbs-ph { aspect-ratio: 16 / 9; }
body.fb .fbs-gcat .fbs-noimg { width: 44px; height: 44px; font-size: 20px; }
body.fb .fbs-gcat small { color: var(--muted); }
body.fb .fbs-q { margin: 0 !important; padding: 0 !important; }
body.fb .fbs-q summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
body.fb .fbs-q p { margin: 0; padding: 0 18px 14px; }
body.fb .fbs-qs { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { body.fb .fbs-ghero { grid-template-columns: minmax(0, 1fr); } body.fb .fbs-gh h1 { font-size: 30px !important; } }
body.fb .fbs-sizes-n { margin: 6px 0 0; }
body.fb .fbs-offers > p { margin: 0; }
body.fb .fbs-gsec .card-h, body.fb .fbs-deliver .card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; }
body.fb .fbs-gsec .card-h h2, body.fb .fbs-deliver .card-h h2 { margin: 0; }
body.fb .fbs-gsec > p { margin: 0; }
body.fb.fbs-js .fbs-colq [data-fbs-update] { display: none; }
body.fb .callout ul { margin: 4px 0 0; padding-left: 18px; }
body.fb .callout p { margin: 0; }
body.fb .fbs-cmp { padding: 6px !important; }
body.fb .fbs-cmp table { width: 100%; }
body.fb .content .fbs-cmp tbody th { font-family: var(--body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; background: transparent; }
body.fb .fbs-cmp tbody th .pill { display: table; margin-top: 4px; }
body.fb .fbs-cmp td, body.fb .fbs-cmp th { vertical-align: middle; }
body.fb .fbs-cmp td:nth-child(2) { white-space: nowrap; }

/* Docked basket: the header stays at the top while the basket scrolls, on a solid background so the supplier groups
   don't show through it (the dock's own padding is 18px, so it sticks at -18px to cover that gap too). */
body.fb .fbs-dock .fbs-dr-head { position: sticky; top: -18px; z-index: 3; margin: -18px -18px 0; padding: 16px 18px 12px; background: #fff; border-bottom: 1.5px solid var(--hair); border-radius: 14px 14px 0 0; }
body.fb .fbs-dock .fbs-dr-head h2 { text-transform: none; }
body.fb .fbs-paid { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }

/* Shop all, design version (Food Business Portal design, Shop all): filters as pills in one row, then sort and List / Grid. */
body.fb .fbs-pills { align-items: center; gap: 8px; }
body.fb .fbs-pills .fbs-f { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 0; max-width: none; position: relative; }
body.fb .fbs-pills .fbs-f label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
body.fb .fbs-pills .fbs-f label::after { content: ":"; }
body.fb .fbs-pills .fbs-f select { min-height: 36px; padding-left: calc(14px + var(--fbs-lw, 64px)) !important; border-color: var(--line) !important; font-weight: 500; }
body.fb .fbs-pills .fbs-f.on select { border-color: var(--ink) !important; background-color: var(--shell2); font-weight: 700; }
body.fb .fbs-pills .fbs-f:has(#supplier) { --fbs-lw: 66px; }
body.fb .fbs-pills .fbs-f:has(#cert) { --fbs-lw: 58px; }
body.fb .fbs-pills .fbs-f:has(#storage) { --fbs-lw: 62px; }
body.fb .fbs-pills .fbs-f:has(#category) { --fbs-lw: 72px; }
body.fb .fbs-pills .fbs-chipset { display: contents; }
body.fb .fbs-pills .fbs-chip { min-height: 36px; border-color: var(--line); font-weight: 600; font-size: 13px; }
body.fb .fbs-pills .fbs-chip:has(input:checked) { border-color: var(--ink); background: var(--shell2); font-weight: 700; }
body.fb .fbs-sortrow { align-items: center; gap: 12px; }
body.fb .fbs-sort { display: flex; align-items: center; gap: 8px; }
body.fb .fbs-sort label { margin: 0; font-weight: 700; font-size: 13.5px; }
body.fb .fbs-sort select { min-height: 36px; border: 1.5px solid var(--ink) !important; border-radius: 10px !important; padding: 4px 30px 4px 12px !important; font-size: 13px; font-weight: 600; background-color: #fff; }
body.fb .fbs-sortrow .fbs-viewsw { margin: 0; }
body.fb .fbs-sortrow .fbs-fbtn { margin-left: auto; }

/* Signed-in list rows */
body.fb .fbs-glist thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
body.fb .fbs-glist tr.out { opacity: .6; }
body.fb .fbs-usual { background: var(--ink) !important; color: var(--seashell) !important; border-color: var(--ink) !important; }
body.fb .fbs-best { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-size: 12px; font-weight: 600; }
body.fb .fbs-gr-price b, body.fb .fbs-gr-when b { display: block; font-size: 16px; }
body.fb .fbs-gr-price .hint, body.fb .fbs-gr-when .hint { display: block; font-size: 12px; }
body.fb .fbs-radd { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
body.fb .fbs-radd input { width: 64px; min-height: 36px; text-align: center; border: 1.5px solid var(--ink); border-radius: 10px; }
body.fb .fbs-radd button { min-height: 36px; }
body.fb .fbs-rsub { display: block; margin-top: 4px; font-size: 12px; }
body.fb .fbs-gr-act .fbs-inb { display: block; margin: 4px 0 0; font-size: 12px; }
body.fb .fbs-sort label { white-space: nowrap; }
body.fb .fbs-radd { flex-wrap: nowrap; }

/* Your next order (Food Business Portal design, Marketplace) */
body.fb .fbn { display: flex; flex-direction: column; gap: 16px; }
body.fb .fbn-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
body.fb .fbn-day { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink) !important; text-decoration: none; }
body.fb .fbn-day b { font-size: 15px; }
body.fb .fbn-day small { font-size: 12px; color: var(--muted); }
body.fb .fbn-day.on { background: var(--ink); color: var(--seashell) !important; }
body.fb .fbn-day.on small { color: rgba(250,246,240,.75); }
body.fb .fbn-day:not(.on):hover { background: var(--shell2); }
body.fb .fbn-note { padding: 14px 16px !important; margin: 0; display: flex; flex-direction: column; gap: 10px; }
body.fb .fbn-note p { margin: 0; }
body.fb .fbn-same { display: flex; align-items: center; gap: 8px; margin: 0; }
body.fb.fbs-js .fbn-go { display: none; }
body.fb .fbn-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
body.fb .fbn-h h2 { margin: 0; font-size: 20px; }
body.fb .fbn-usual { padding: 16px !important; margin: 0; }
body.fb .fbn-chg { font-size: 12px; font-weight: 600; color: var(--muted); }
body.fb .fbn-chg.up { color: var(--att-fg); }
body.fb .fbn-chg.down { color: var(--ok-fg); }
body.fb .fbn-quick { padding: 16px !important; margin: 0; display: flex; flex-direction: column; gap: 10px; }
body.fb .fbn-quick h2, body.fb .fbn-quick p { margin: 0; }
body.fb .fbn-quick textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; font-family: var(--mono); font-size: 13px; }
body.fb .fbn-qa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body.fb .fbn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
body.fb .fbn-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink) !important; text-decoration: none; }
body.fb .fbn-tile:hover { border-color: var(--ink); }
body.fb .fbn-tile .fbs-noimg { display: flex; align-items: center; justify-content: center; height: 64px; border-radius: 10px; font-size: 24px; margin-bottom: 4px; }
body.fb .fbn-tile b { font-size: 14px; }
body.fb .fbn-tile small { font-size: 12px; color: var(--muted); }
body.fb .fbn-usual table { min-width: 620px; }
body.fb .fbn-usual td.fbs-gr-p { min-width: 170px; }
body.fb .fbn-usual .tablewrap { overflow-x: auto; }
@media (max-width: 1499.98px) { body.fb .fbn-usual th:first-child, body.fb .fbn-usual td.fbs-gr-ph { display: none; } }
body.fb .fbn-usual .fbs-radd input { width: 56px; }
body.fb .fbn-usual th, body.fb .fbn-usual td { padding-left: 8px; padding-right: 8px; }

/* Suppliers (Food Business Portal design, Shop/sups) */
body.fb .fbsu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
body.fb .fbsu { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 20px !important; color: var(--ink) !important; text-decoration: none; transition: box-shadow .15s; }
body.fb .fbsu:hover { box-shadow: var(--sh-pri); }
body.fb .fbsu h2 { margin: 0; font-size: 18px; }
body.fb .fbsu p { margin: 0; }
body.fb .fbsu-main { font-size: 15px; }
body.fb .fbsu-next { font-size: 13px; }
body.fb .fbsu-go { margin-top: 6px; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* Deals and clearance (Food Business Portal design, Shop/deals) */
body.fb .fbd-deal { background: var(--pink) !important; color: #fff !important; border-color: var(--pink) !important; }
body.fb .fbd-save { display: block; font-size: 12.5px; font-weight: 600; color: var(--ok-fg); }
body.fb .fbd-fits { padding: 16px !important; margin: 0; }
body.fb .fbd-fits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
body.fb .fbd-fits li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
body.fb .fbd-fits li form { margin: 0; }
body.fb .fbs-gr-price s { font-size: 12px; }
/* Category page sub-category chips (design: Shop/cat) */
body.fb .fbs-catchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

/* Product page, signed in (Food Business Portal design, Shop/p): pick-one offers, Buying from, Your price */
body.fb .fbp-olist { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
body.fb .fbp-orow { display: grid; grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink) !important; text-decoration: none; }
body.fb .fbp-orow:hover { border-color: var(--ink); }
body.fb .fbp-orow.on { border: 2px solid var(--ink); box-shadow: var(--sh-pri); }
body.fb .fbp-orow.off { opacity: .6; }
body.fb .fbp-orow > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.fb .fbp-orow .hint { font-size: 12px; }
body.fb .fbp-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
body.fb .fbp-orow.on .fbp-radio { background: radial-gradient(circle, var(--ink) 0 45%, #fff 50%); }
body.fb .fbp-pr b { font-size: 20px; font-family: var(--display); }
body.fb .fbp-tags { flex-direction: row !important; flex-wrap: wrap; gap: 4px !important; }
body.fb .fbp-bestp { background: var(--pink) !important; color: #fff !important; border-color: var(--pink) !important; }
body.fb .fbp-min { font-size: 13px; }
@media (max-width: 860px) { body.fb .fbp-orow { grid-template-columns: 22px 1fr 1fr; } body.fb .fbp-when, body.fb .fbp-min { grid-column: 2 / -1; } }
body.fb .fbp-buy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); gap: 18px; align-items: start; scroll-margin-top: 260px; }
@media (max-width: 860px) { body.fb .fbp-buy { grid-template-columns: 1fr; } }
body.fb .fbp-buy h2 { margin: 0 0 12px; }
body.fb .fbp-dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
body.fb .fbp-dl dt, body.fb .fbp-dl dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--hair); font-size: 14px; }
body.fb .fbp-dl dt { color: var(--muted); font-weight: 500; }
body.fb .fbp-dl dd { font-weight: 600; }
body.fb .fbp-dl dt:nth-last-child(2), body.fb .fbp-dl dd:last-child { border-bottom: 0; }
body.fb .fbp-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--shell2); }
body.fb .fbp-box h3 { margin: 0; font-size: 14px; }
body.fb .fbp-box form { margin: 0; }
body.fb .fbp-qf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.fb .fbp-qf input { width: 90px; min-height: 40px; text-align: center; border: 1.5px solid var(--ink); border-radius: 10px; }
body.fb .fbp-line { margin: 0; font-weight: 700; }
body.fb .fbp-go, body.fb .fbp-rm { width: 100%; justify-content: center; }
body.fb .fbp-price h2 { margin: 0 0 10px; }
body.fb .fbp-pg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
body.fb .fbp-pg > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
body.fb .fbp-pg b { font-size: 17px; }
/* Allergens as a grid, as the design */
body.fb .fbs-allg { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; list-style: none; padding: 0; }
body.fb .fbs-allg li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; }
body.fb .fbs-allg li.yes { border-color: var(--pink); background: #fde7ef; }
body.fb .fbs-allg li.may { border-color: var(--orange, #ff6b1a); }

/* Checkout: basket check and "If out of stock" (design: Checkout) */
body.fb .fbs-cocheck { padding: 14px 18px !important; margin: 0 0 14px; font-size: 14px; }
body.fb .fbs-cocheck p { margin: 0 0 4px; }
body.fb .fbs-cocheck p:last-child { margin: 0; }
body.fb .fbs-colsub { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.fb .fbs-colsub label { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
body.fb .fbs-colsub select { min-height: 36px; max-width: 220px; padding: 4px 28px 4px 10px; border: 1.5px solid var(--ink); border-radius: 10px; font-size: 13px; background-color: #fff; }
body.fb .fbs-col { grid-template-columns: minmax(0, 1fr) auto minmax(150px, 210px) 100px; }
@media (max-width: 1100px) { body.fb .fbs-col { grid-template-columns: minmax(0, 1fr) auto 100px; } body.fb .fbs-colsub { grid-column: 1 / -1; } }

/* Product cards: the quantity and Add / Update line up across a row. Below the price, every card's buying block has the
   same shape: (pack size picker or the same space) · quantity and button · one line for "in your basket" (styled the same
   whether the page or app.js wrote it) · one line for the order rules · Add to list. */
body.fb .fbs-pc .fbs-pcf { gap: 6px; }
body.fb .fbs-pc .fbs-pcf > .fbs-add:not(:has(select)) { margin-top: 44px; }
body.fb .fbs-pc .fbs-pcf > .fbs-add { margin-bottom: 28px; }
body.fb .fbs-pc .fbs-pcf > .fbs-add + [data-in-basket] { margin: -28px 0 0; height: 22px; display: inline-flex; align-items: center; align-self: flex-start; gap: 6px;
  padding: 0 10px; border-radius: 999px; background: var(--att-bg); color: var(--att-fg); font-size: 12px; font-weight: 700; line-height: 1; }
body.fb .fbs-pc .fbs-pcf > .fbs-add + [data-in-basket][hidden] { display: none; }
body.fb .fbs-pc .fbs-pcf > .fbs-rules { margin: 0; height: 16px; font-size: 12px; line-height: 16px; }
body.fb .fbs-pc .fbs-pcf:not(:has(> .fbs-rules:not([hidden]))) { padding-bottom: 22px; }
