/* Mingle – gyors felütés és fizettetés („A” látványterv, feature/gyors-a, 2026-11-18). Csak tokenek (css/tokens_a.css); külső hivatkozás nincs.
   - rendelés alja: „T4 · Fizetendő 3 800 Ft · 3 új tétel ˄” + „⋯ Továbbiak”, alatta [Küldés · N] [Készpénz] [Kártya];
   - a 3 mp-es „Visszavonás” csík a sáv fölött; a hosszú nyomás mennyiség-választója; a „⋯” lap „Továbbiak” csoportja;
   - az eredmény-lap kis gombjai; az Asztalok „Pult” gyors számla gombja; a Beállítások „Fizetés után” blokkja. */

/* ---- rendelés: alsó sáv ---- */
.order-view:has(.cart-bar.is-quick) { padding-bottom: 176px; }
.cart-bar.is-quick { flex-direction: column; align-items: stretch; gap: var(--space-2); min-height: 0; padding-top: var(--space-2); }
.quick-bar-head { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.quick-bar-bill {
  flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; padding: 0;
  background: none; border: 0; color: var(--ink2); font-size: var(--text-sm, 13.5px); text-align: left;
}
.quick-bar-bill .icon { width: 14px; height: 14px; align-self: center; margin-left: 2px; }
.quick-bar-total { color: var(--num); font-family: var(--font-num); font-size: 17px; font-weight: 700; white-space: nowrap; }
.quick-bar-new { color: var(--acc-d); font-weight: 600; }
.quick-more { flex: none; min-height: 44px; gap: 6px; border-radius: var(--radius-pill); }
.quick-more .icon { width: 16px; height: 16px; }
/* feature/osztott-blokk: „Osztás” a Továbbiak mellett (ugyanolyan kis pirula gomb; telefonon is elfér a fejsorban) */
.quick-split { flex: none; min-height: 44px; gap: 6px; border-radius: var(--radius-pill); }
.quick-split .icon { width: 16px; height: 16px; }
@media (max-width: 380px) { .quick-split, .quick-more { padding-left: var(--space-2); padding-right: var(--space-2); } }
.split-quick-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: var(--space-2); margin: var(--space-3) 0; }
.split-quick-items { margin-top: var(--space-2); }
.quick-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); }
.quick-actions .btn { min-height: 60px; min-width: 0; padding: 0 var(--space-2); border-radius: var(--radius-btn); }
.quick-send { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--surface-2); color: var(--text); font-size: 15px; white-space: nowrap; }
.quick-send .icon { flex: none; width: 16px; height: 16px; }
.quick-send .order-send-label { overflow: visible; }
.quick-pay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.quick-pay-label { font-size: 17px; font-weight: 700; }
.quick-pay-sub { font-family: var(--font-num); font-size: 12px; font-weight: 600; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.order-quick-more { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.order-quick-more:empty { display: none; }
@media (min-width: 1100px) {
  .quick-actions .btn { min-height: 64px; }
}

/* ---- 3 mp-es „Visszavonás” csík ---- */
.quick-undo-slot { position: fixed; left: 0; right: 0; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 45; display: flex; justify-content: center; pointer-events: none; padding: 0 var(--space-3); }
@media (min-width: 1100px) { .quick-undo-slot { bottom: var(--space-5, 24px); left: auto; right: 380px; justify-content: flex-end; } }
.quick-undo {
  position: relative; overflow: hidden; pointer-events: auto; width: 100%; max-width: 520px; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-3) calc(var(--space-3) + 3px); background: var(--surface); color: var(--text);
  border: 1.5px solid var(--primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
}
.quick-undo-count { flex: none; width: 36px; color: var(--acc-d); font-size: 26px; font-weight: 800; text-align: center; }
.quick-undo-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quick-undo-title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.quick-undo-sub { color: var(--ink2); font-size: 13px; }
.quick-undo-btn { flex: none; min-height: 48px; gap: 6px; border-radius: var(--radius-pill); background: var(--text); color: var(--surface); font-weight: 700; }
.quick-undo-btn .icon { width: 16px; height: 16px; }
.quick-undo-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--primary); transform-origin: left center; animation: quick-undo-run linear forwards; }
@keyframes quick-undo-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .quick-undo-progress { animation: none; } }

/* ---- termékcsempe: hosszú nyomás ---- */
.ptile { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ptile-flag.is-quick { color: var(--acc-d); font-weight: 600; }
.qty-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); padding: var(--space-2) 0 var(--space-3); }
.qty-pick-btn {
  min-height: 56px; border: 0; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text);
  font-family: var(--font-num); font-size: 20px; font-weight: 700;
}
.qty-pick-btn:first-child { background: var(--primary); color: var(--on-primary); }
.qty-pick-btn:active { background: var(--surface-3); }

/* ---- „⋯” lap: Továbbiak ---- */
.order-options-more { margin-top: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-2); }
.order-options-more-head { display: flex; align-items: center; min-height: 44px; color: var(--ink2); font-weight: 600; cursor: pointer; }
.order-options-more[open] > .order-options-more-head { margin-bottom: var(--space-2); }

/* ---- fizetés eredmény-lap ---- */
.result.is-tap-close { cursor: pointer; }
.pay-result-auto { margin-top: var(--space-2); }
.pay-result-quick { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; }
.pay-result-quick .btn { min-height: 48px; }
.pay-result-print { flex: 1 1 100%; min-height: 60px; }
.pay-result-reprint .icon, .pay-result-print .icon { width: 18px; height: 18px; }

/* ---- Asztalok: „Pult” gyors számla ---- */
.tables-pult {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; margin: 0 0 var(--space-2); padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); text-align: left;
}
.tables-pult:disabled { background: var(--surface-2); color: var(--dis); }
.tables-pult-name { font-size: 18px; font-weight: 800; }
.tables-pult-sub { flex: 1 1 auto; min-width: 0; font-size: 13px; opacity: 0.85; }
.tables-pult .icon { flex: none; width: 20px; height: 20px; }

/* ---- Beállítások › Üzlet adatai: „Fizetés után” ---- */
.shop-quick-block .field { margin-top: var(--space-2); }

/* a Kártya: menta tónusú másodlagos gomb (egy elsődleges gomb marad – v8), a Készpénz mellett ugyanakkora */
.quick-card { background: var(--acc-t); color: var(--acc-d); box-shadow: inset 0 0 0 1.5px var(--primary); }
.quick-card:active:not(:disabled) { background: var(--acc-on2); }
.quick-actions .btn:disabled { opacity: 0.45; box-shadow: none; }
.quick-bar-total, .quick-pay-sub, .qty-pick-btn, .quick-undo-count { font-variant-numeric: tabular-nums; }

/* ---- feature/gyorsgombok (2026-11-21): „Speedrack” gyorssáv a termékek fölött (vízszintesen görgethető, min. 48 px magas gombok) ---- */
.speedrack {
  display: flex; gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: var(--space-2) var(--space-3) var(--space-1); -webkit-overflow-scrolling: touch;
}
.speedrack[hidden] { display: none; }
.speedrack::-webkit-scrollbar { display: none; }
.speedrack-btn {
  --tile-color: var(--c-gy); --tile-bg: var(--t-gy);
  flex: none; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 96px; max-width: 168px; min-height: 52px;
  padding: 6px 12px; background: var(--tile-bg); border: 1px solid var(--tile-line); border-left: 3px solid var(--tile-color);
  border-radius: 14px; color: var(--text); text-align: left;
}
.speedrack-btn:active:not(:disabled) { background: var(--bg); }
.speedrack-btn.is-unavailable { opacity: .5; }
.speedrack-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.speedrack-price { color: var(--muted); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; }
@media (min-width: 768px) { .speedrack-btn { min-height: 56px; min-width: 112px; } }

/* Beállítások › Gyorsgombok (tulajdonos) */
.qb-rack-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: 6px; }
.qb-rack-row { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.qb-rack-pos { width: 22px; color: var(--muted); text-align: right; }
.qb-rack-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-rack-row .btn-icon { min-width: 44px; min-height: 44px; }
.qb-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); max-height: 40vh; overflow-y: auto; }
.qb-pick-btn { min-height: 44px; }

/* Gyors megjegyzés chipek a kosár-tételen (B): a sor alatt teljes szélességben, vízszintesen görgethető, 44 px magas érintési felület */
.order-cart .cart-line .cart-line-chips,
.cart-line-chips {
  grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; -webkit-overflow-scrolling: touch;
}
.cart-line-chips::-webkit-scrollbar { display: none; }
.line-chip {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); background: transparent;
  border: 1px solid var(--border); color: var(--ink2); font-size: 13px; white-space: nowrap;
}
.line-chip.is-selected { background: var(--acc-w); border-color: var(--primary); color: var(--text); font-weight: 600; }
.qb-chips { margin-top: var(--space-4); }
.qb-chip-add { display: flex; gap: var(--space-2); }
.qb-chip-add .input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.qb-chip-add-btn, .qb-chip-default { min-height: 44px; }

/* ---- Visszajáró-számoló (C): a rendelés alján a Készpénz mellett (lap) és a fizetés-képernyőn (címlet-sor) ---- */
.quick-change { flex: none; min-height: 44px; min-width: 44px; gap: 6px; border-radius: var(--radius-pill); }
.quick-change .icon { width: 16px; height: 16px; }
@media (max-width: 419px) { .quick-change-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.change-due, .change-got-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); min-height: 44px; }
.change-label { color: var(--ink2); font-size: var(--text-lg, 17px); font-weight: 600; }
.change-amount, .change-got { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--text-xl, 22px); font-weight: 700; color: var(--num); }
.change-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0; }
@media (min-width: 600px) { .change-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.change-note { min-height: 56px; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; }
.change-exact { font-family: inherit; }
.change-clear { min-height: 44px; }
.change-out {
  display: block; margin-top: var(--space-3); padding: var(--space-3) 0; text-align: center; color: var(--acc-d);
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--text-3xl, 34px); font-weight: 800; line-height: 1.1;
}
.change-out.is-short { color: var(--muted); font-size: var(--text-xl, 22px); }
.pay-notes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: var(--space-2); }
@media (max-width: 479px) { .pay-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pay-note-btn { min-height: 48px; padding: 0 4px; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.pay-note-exact, .pay-note-clear { font-family: inherit; }
.change-notice { margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--warn-bg, var(--surface-2)); color: var(--text); font-weight: 600; }
.change-notice[hidden] { display: none; }
.change-amount.is-changed { color: var(--warn, var(--acc-d)); }
