#main { padding: 16px 18px 40px; }
.page { max-width: 1100px; margin: 0 auto; }
.page > form.row { max-width: 560px; }

.sell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; max-width: 1400px; margin: 0 auto; }
.left { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-height: 60vh; }
.scanbox { position: relative; margin-bottom: 10px; }
#scan { font-size: 17px; min-height: 50px; border-width: 2px; }
.results { position: absolute; left: 0; right: 0; top: 54px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 10; max-height: 50vh; overflow: auto; }
.results:empty { display: none; }
.res { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; background: #fff; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.res:hover, .res:focus { background: #f9fafb; }
.pad1 { padding: 12px; }
.cart .iname { font-weight: 600; } .isub { font-size: 12px; color: var(--muted); }
.cart .qty { white-space: nowrap; } .cart .qty span { display: inline-block; min-width: 26px; text-align: center; font-weight: 700; }
.q { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.disc { width: 56px; min-height: 32px; padding: 4px 6px; text-align: right; }
.x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 2px 8px; }
.empty { text-align: center; padding: 30px 10px; } .empty .big { font-size: 20px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; text-align: left; }
.tile { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.tile span { color: var(--muted); font-weight: 500; }
.right-pane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.cust { text-align: left; border: 1px dashed #d1d5db; background: #fafafa; border-radius: 10px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.tot-rows > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.grand { display: flex; justify-content: space-between; align-items: baseline; font-size: 28px; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 8px; letter-spacing: -.02em; }
.pay { min-height: 58px; font-size: 20px; }
.right-pane .row .btn { flex: 1; }

.mem { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.mem-h { font-weight: 600; }
.mem-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mem-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.mem-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-list li span:last-child { white-space: nowrap; font-size: 12px; }
.mem-ask { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mem-q { margin-bottom: 8px; }
.mem-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.mem-btns button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 4px; min-height: 40px; cursor: pointer; font-size: 12.5px; }
.mem-btns.two { grid-template-columns: 1fr 1fr; }
.mem.bare .mem-ask { margin-top: 0; padding-top: 0; border-top: 0; }
.mem-ask:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mem-btns.fit button { border-style: dashed; }
.mem-btns button:hover { border-color: var(--ink); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 13px; cursor: pointer; }
.consent input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; }

/* café: menu, tables, order, kitchen */
.cafe .left h3.cat { margin: 18px 0 8px; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cafe .left h3.cat:first-of-type { margin-top: 0; }
.tiles.menu { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tile { position: relative; }
.tile em.cnt-left { font-style: normal; font-size: 11px; color: var(--muted); }
.tile em.cnt-left.low { color: var(--warn); font-weight: 600; }
.tile.out { opacity: .45; cursor: not-allowed; text-decoration: line-through; } .tile.out em.cnt-left { color: var(--bad); font-weight: 600; text-decoration: none; display: inline-block; }
.chips2 { display: flex; gap: 6px; flex-wrap: wrap; }
.chip2 { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 13px; position: relative; min-height: 36px; }
.chip2.on { border-color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--b-magenta); }
.chip2 i { position: absolute; top: 4px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--b-magenta); }
.olist { list-style: none; margin: 0; padding: 0; min-height: 120px; }
.olist li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.olist .q2 { white-space: nowrap; min-width: 44px; font-weight: 600; } .olist .n2 { flex: 1; min-width: 0; } .olist small { display: block; color: var(--muted); font-size: 12px; }
.olist .st { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .olist .st.ok { color: var(--ok); font-weight: 600; }
.olist li.new { background: #fafafa; margin: 0 -8px; padding: 9px 8px; } .olist li.short { box-shadow: inset 2px 0 0 var(--bad); }
.olist small.err { color: var(--bad); }
.kitchen .counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cnt { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; } .cnt.low { border-color: #e6c9a8; color: var(--warn); } .cnt.out { border-color: #e8bcb8; color: var(--bad); }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.ticket.slow { border-color: var(--bad); box-shadow: inset 0 3px 0 var(--bad); }
.ticket .t-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 8px; } .ticket .t-h span { font-size: 12.5px; color: var(--muted); } .ticket.slow .t-h span { color: var(--bad); font-weight: 600; }
.ticket ul { list-style: none; margin: 0 0 12px; padding: 0; font-size: 15px; } .ticket li { padding: 4px 0; } .ticket small { display: block; color: var(--muted); font-size: 12.5px; }
.ticket .btn { width: 100%; }

.payhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.due { font-weight: 700; color: var(--warn); } .due.zero { color: var(--ok); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 6px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; cursor: pointer; font-weight: 700; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.big-input { font-size: 24px; min-height: 52px; font-weight: 700; }
.upi { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.qr svg { width: 100%; height: 100%; }
.upi .big, .done .big { font-size: 26px; font-weight: 800; }
.paylist { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.paylist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.paid-ok { background: #dcfce7; color: var(--ok); padding: 14px; border-radius: 10px; font-size: 17px; margin-top: 8px; }
form > .btn.primary { margin-top: 10px; width: 100%; }
.done { text-align: center; } .tick { font-size: 44px; color: var(--ok); }
.change { font-size: 22px; margin: 8px 0; } .change b { font-size: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.chip input { width: auto; min-height: 0; }
.cancelled td { color: var(--muted); text-decoration: line-through; } .cancelled td:last-child, .cancelled td:first-child { text-decoration: none; }
.denoms td { padding: 4px 6px; } .denoms input { width: 90px; min-height: 34px; }
#bq { max-width: 260px; }

@media (max-width: 980px) {
  .sell { grid-template-columns: 1fr; }
  .right-pane { position: static; }
}
@media (max-width: 560px) {
  #main { padding: 12px; }
  .upi { grid-template-columns: 1fr; } .qr { margin: 0 auto; }
  .cart th:nth-child(3), .cart td:nth-child(3) { display: none; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .left { padding: 10px; overflow-x: auto; }
}

/* retail smart */
.top .rx-target { flex-basis: 100%; text-align: right; margin-top: -6px; }
.resrow { display: flex; align-items: center; border-bottom: 1px solid var(--line); } .resrow .res { flex: 1; border-bottom: 0; } .rx-stores { padding: 10px 12px; white-space: nowrap; }
.rx-list { border-top: 1px solid var(--line); margin-bottom: 12px; } .rx-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rx-kid { margin-top: 6px; } .rx-kid input, .rx-kid select { flex: 1; } #rxKids { margin-top: 6px; }
/* café smart */
.olist small.hh { color: var(--b-magenta); font-weight: 600; }
#busyLine { margin: 0 0 8px; }
.tools { gap: 14px; margin-top: 8px; } .tools .link { font-size: 12.5px; }
.kitchen #stations { margin-bottom: 14px; }
.olist label.pick { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; } .olist label.pick input { width: 18px; height: 18px; min-height: 0; padding: 0; }

/* scan moment: photos, the just-scanned card, sizes and colours */
.ph { background: #f4f4f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7.5a2 2 0 1 1 2-2'/%3E%3Cpath d='M12 7.5v1.2L3.4 15a1.3 1.3 0 0 0 .8 2.4h15.6a1.3 1.3 0 0 0 .8-2.4L12 8.7'/%3E%3C/svg%3E") center / 55% no-repeat; color: #a1a1aa; }
.th, .rth, .tth, .cth { display: block; object-fit: cover; object-position: top center; background-color: #f4f4f5; border-radius: 8px; flex: none; }
.th { width: 46px; height: 58px; }
.rth { width: 34px; height: 42px; border-radius: 6px; }
.tth { width: 100%; aspect-ratio: 4 / 5; height: auto; margin-bottom: 6px; }
.cth { width: 30px; height: 38px; border-radius: 6px; }
.itw { display: flex; gap: 10px; align-items: center; }
.thb { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.thb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cart tr.hot td { background: #fafafa; }
.cart tr.hot td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
.res { align-items: center; } .res-n { flex: 1; min-width: 0; }

.hero { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding: 14px; margin: 2px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hero.pop { animation: hero-in .32s cubic-bezier(.2, .8, .2, 1); }
.hero.pop .hero-ph img { animation: hero-img .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes hero-in { from { opacity: .3; transform: translateY(-6px) scale(.985); box-shadow: 0 0 0 3px rgba(0,0,0,.08); } to { opacity: 1; transform: none; box-shadow: none; } }
@keyframes hero-img { from { transform: scale(1.06); filter: saturate(.6); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .hero.pop, .hero.pop .hero-ph img { animation: none; } }
.hero-ph { width: 168px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background-color: #f4f4f5; cursor: zoom-in; display: grid; place-items: center; }
.hero-ph[disabled] { cursor: default; }
.hero-ph svg { width: 46%; color: #a1a1aa; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-t { font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.hero-p { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-mrp { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-sz { font-size: 13px; font-weight: 600; border: 1px solid var(--ink); border-radius: 99px; padding: 2px 10px; }
.hero-n { font-size: 13px; font-weight: 600; color: var(--b-magenta, var(--ink)); }
.hero-s { font-size: 13px; color: var(--muted); } .hero-s.warn { color: var(--warn); font-weight: 600; } .hero-s.bad { color: var(--bad); font-weight: 600; }
.hero-l { margin-top: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-l .muted { text-transform: none; letter-spacing: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sz { min-width: 52px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.sz i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.sz:hover { border-color: var(--ink); }
.sz.on { background: var(--ink); color: #fff; border-color: var(--ink); } .sz.on i { color: rgba(255,255,255,.75); }
.sz.out { color: #a1a1aa; } .sz.out:not(.on) { border-style: dashed; }
.cols { display: flex; flex-wrap: wrap; gap: 8px; }
.col { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12.5px; }
.col:hover { border-color: var(--ink); }
.hero-snd { align-self: flex-start; margin-top: auto; font-size: 11.5px; color: var(--muted); }
.hero.miss { border-color: #e8bcb8; } .hero.miss .hero-t b { color: var(--bad); }
.hero.miss .hero-ph { cursor: default; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.zoom { text-align: center; } .zoom img { max-width: 100%; max-height: 70vh; border-radius: 12px; display: block; margin: 0 auto 12px; }
.zoom .row { justify-content: center; margin-top: 12px; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .hero-ph { width: 110px; }
  .hero-mrp { font-size: 22px; }
}
@media (min-width: 1280px) {
  .hero { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .hero-ph { width: 220px; }
  .hero-t { font-size: 20px; } .hero-mrp { font-size: 30px; }
}

/* store floor: carry bags under the cart, the transfer line, the return camera */
.ops-bags { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.ops-bag { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ops-bagname { flex: 1; font-weight: 600; }
.ops-bag .qty { display: inline-flex; align-items: center; gap: 8px; }
.ops-free { font-size: 12px; color: var(--muted); min-width: 76px; text-align: right; }
.ops-row .btn { flex: 1; }
.ops-banner { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.ops-banner.late { border-left-color: var(--bad); }
.ops-banner.late b { color: var(--bad); }
.ops-cam { position: relative; background: #111; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 52vh; margin: 8px 0 10px; display: grid; place-items: center; }
.ops-cam video, .ops-cam img { width: 100%; height: 100%; object-fit: contain; }
.ops-camwait { position: absolute; inset: auto 12px 12px; color: #ddd; font-size: 13px; text-align: center; }
.ops-skip { margin: 6px 0 10px; font-size: 13px; } .ops-skip summary { cursor: pointer; color: var(--muted); }
.ops-skip .btn { margin-top: 6px; }
.ops-why { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; margin-bottom: 4px; }

/* store plus: points + birthday on the customer card, pick-ups, payment link */
.plus-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; display: grid; gap: 8px; }
.plus-pts { display: flex; align-items: baseline; gap: 8px; }
.plus-pts b { font-size: 16px; }
.plus-offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.plus-adv { color: var(--muted); }
.plus-online { padding: 6px 0; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--ink, #111); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 4px; }
.tabs.wrap { flex-wrap: wrap; }
.plus-orders { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.plus-order { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.plus-linkurl { word-break: break-all; color: var(--muted); margin: 6px 0; }
.plus-linkst { font-weight: 600; margin: 8px 0; }
/* card machine (Pine Labs) on the pay sheet */
.plus-mach { border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 12px 14px; margin: 4px 0 12px; }
.plus-mach .btn.primary { width: 100%; }
.plus-hand { margin-top: 6px; }
.plus-hand summary { cursor: pointer; color: var(--muted, #666); padding: 6px 0; }
