/* ══════════════════════════════════════════════════════════════════════════
   WooMyData POS: the design of WooMyData (woomydata.gr and the settings of WooMyData Pro)
   Amber accent · Orbitron for titles · JetBrains Mono for labels · Space Grotesk for text · sharp corners (3px).
   Loaded AFTER pos-screen.css: it redefines the tokens and restyles the components. The fonts are in assets/fonts (SIL Open Font
   License): nothing is fetched from another site. Orbitron and Space Grotesk have no Greek letters: Greek is set in the font of the device.
   ══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Orbitron'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/orbitron-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Orbitron'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/orbitron-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-greek-400-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-greek-500-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-greek-600-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }

/* ── tokens: light (the default, like the settings of WooMyData Pro) and dark ── */
#wc-pos-root, #wc-pos-root[data-pos-theme="light"] {
  --pos-bg: #f1f4f8; --pos-surface: #ffffff; --pos-surface2: #f8f9fb; --pos-surface3: #e8edf3;
  --pos-border: rgba(15,23,42,.09); --pos-border2: rgba(15,23,42,.18);
  --pos-text: #0f172a; --pos-text2: #334155; --pos-muted: #64748b;
  --pos-accent: #d97706; --pos-accent2: #e89512; --pos-on-accent: #0f172a; --pos-accent-bg: rgba(217,119,6,.10); --pos-accent-text: #b45309;
  --pos-green: #059669; --pos-green-bg: rgba(5,150,105,.10); --pos-red: #dc2626; --pos-red-bg: rgba(220,38,38,.09); --pos-amber: #d97706;
  --pos-card-bg: #ffffff; --pos-card-hover: #fffaf2; --pos-input-bg: #f8f9fb; --pos-btn-bg: #ffffff; --pos-btn-text: #334155; --pos-btn-border: rgba(15,23,42,.18);
  --pos-shadow: 0 12px 40px rgba(15,23,42,.22); --pos-shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --pos-theme-icon: '🌙';
}
#wc-pos-root[data-pos-theme="dark"] {
  --pos-bg: #0b1220; --pos-surface: #0f172a; --pos-surface2: #162033; --pos-surface3: #1e293b;
  --pos-border: rgba(255,255,255,.08); --pos-border2: rgba(255,255,255,.16);
  --pos-text: #f1f5f9; --pos-text2: #cbd5e1; --pos-muted: #94a3b8;
  --pos-accent: #e89512; --pos-accent2: #f0a832; --pos-on-accent: #0f172a; --pos-accent-bg: rgba(232,149,18,.16); --pos-accent-text: #f0a832;
  --pos-green: #10b981; --pos-green-bg: rgba(16,185,129,.15); --pos-red: #f87171; --pos-red-bg: rgba(248,113,113,.14); --pos-amber: #f59e0b;
  --pos-card-bg: #131d33; --pos-card-hover: #1a2744; --pos-input-bg: #162033; --pos-btn-bg: #162033; --pos-btn-text: #cbd5e1; --pos-btn-border: rgba(255,255,255,.16);
  --pos-shadow: 0 12px 40px rgba(0,0,0,.55); --pos-shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --pos-theme-icon: '☀';
}
#wc-pos-root {
  --pos-radius: 3px; --pos-radius-sm: 2px; --pos-header-h: 58px; --pos-cart-w: 400px;
  --pos-font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --pos-font-display: 'Orbitron', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --pos-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Noto Sans Mono', monospace;
  color: var(--pos-text); font-family: var(--pos-font); -webkit-font-smoothing: antialiased;
}
#wc-pos-root .pos-mono, #wc-pos-root .pos-label { font-family: var(--pos-font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-muted); }

/* ── the header ── */
#wc-pos-root .pos-brand-mark { display: none !important; }
#wc-pos-root .pos-header { height: var(--pos-header-h); padding: 0 16px; gap: 16px; background: var(--pos-surface); border-bottom: 1px solid var(--pos-border); box-shadow: none; position: relative; }
#wc-pos-root .pos-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--pos-accent), transparent 38%); pointer-events: none; }
#wc-pos-root .pos-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 0 auto; max-width: 42%; }
#wc-pos-root .pos-header-store { font-family: var(--pos-font-display); font-weight: 700; font-size: .92rem; letter-spacing: .06em; color: var(--pos-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; flex: 0 1 auto; }
#wc-pos-root .pos-header-logo { max-height: 34px; width: auto; display: block; }
#wc-pos-root .pos-header-register { font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-accent-text); background: var(--pos-accent-bg); border: 1px solid rgba(217,119,6,.35); border-radius: var(--pos-radius-sm); padding: 4px 8px; max-width: 170px; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wc-pos-root .pos-header-search-wrap { flex: 1 1 280px; min-width: 0; max-width: 620px; }
#wc-pos-root .pos-search-box { height: 40px; background: var(--pos-surface2); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); display: flex; align-items: center; gap: 8px; padding: 0 12px; transition: border-color var(--pos-transition), box-shadow var(--pos-transition); }
#wc-pos-root .pos-search-box:focus-within { border-color: var(--pos-accent); box-shadow: 0 0 0 3px var(--pos-accent-bg); background: var(--pos-surface); }
#wc-pos-root .pos-search-input { background: transparent !important; border: 0 !important; box-shadow: none !important; height: 100%; padding: 0 !important; font-size: .92rem; color: var(--pos-text); flex: 1; min-width: 0; }
#wc-pos-root .pos-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
#wc-pos-root .pos-header-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; position: relative; background: var(--pos-surface); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); color: var(--pos-text2); cursor: pointer; transition: all var(--pos-transition); padding: 0; }
#wc-pos-root .pos-header-btn:hover { border-color: var(--pos-accent); color: var(--pos-accent-text); background: var(--pos-accent-bg); }
#wc-pos-root .pos-header-btn svg { width: 18px; height: 18px; }
#wc-pos-root .pos-held-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pos-accent); color: var(--pos-on-accent); font: 700 .65rem/18px var(--pos-font-mono); text-align: center; }
#wc-pos-root .pos-staff-pill { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; height: 38px; border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); background: var(--pos-surface); max-width: 230px; }
#wc-pos-root .pos-staff-avatar { width: 28px; height: 28px; border-radius: var(--pos-radius-sm); background: var(--pos-accent); color: var(--pos-on-accent); font: 700 .72rem/28px var(--pos-font-mono); text-align: center; flex: none; }
#wc-pos-root .pos-staff-pill span { font-weight: 600; font-size: .84rem; color: var(--pos-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the categories ── */
#wc-pos-root .pos-categories-bar { background: var(--pos-surface); border-bottom: 1px solid var(--pos-border); padding: 0 16px; }
#wc-pos-root .pos-cats-toggle { font-family: var(--pos-font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-text2); height: 40px; gap: 8px; }
#wc-pos-root .pos-cats-toggle:hover { color: var(--pos-accent-text); }
#wc-pos-root .pos-cat-chip { font-family: var(--pos-font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--pos-radius-sm); border: 1px solid var(--pos-border2); background: var(--pos-surface); color: var(--pos-text2); padding: 7px 12px; }
#wc-pos-root .pos-cat-chip:hover { border-color: var(--pos-accent); color: var(--pos-accent-text); }
#wc-pos-root .pos-cat-chip.active { background: var(--pos-accent); border-color: var(--pos-accent); color: var(--pos-on-accent); font-weight: 600; }

/* ── the products ── */
#wc-pos-root .pos-products-wrap { background: var(--pos-bg); }
#wc-pos-root .pos-products { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: max-content; gap: 12px; align-content: start; }
#wc-pos-root .pos-product-card { display: flex; flex-direction: column; align-items: stretch; min-height: max-content; background: var(--pos-card-bg); border: 1px solid var(--pos-border); border-radius: var(--pos-radius); overflow: hidden; position: relative; transition: box-shadow var(--pos-transition), transform var(--pos-transition), border-color var(--pos-transition); }
#wc-pos-root .pos-product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--pos-accent), transparent); opacity: 0; transition: opacity var(--pos-transition); z-index: 2; }
#wc-pos-root .pos-product-card:hover { border-color: rgba(217,119,6,.45); box-shadow: 0 6px 22px rgba(15,23,42,.10); transform: translateY(-2px); background: var(--pos-card-hover); }
#wc-pos-root .pos-product-card:hover::before { opacity: 1; }
#wc-pos-root .pos-product-card:active { transform: translateY(0); }
#wc-pos-root .pos-product-thumb, #wc-pos-root .pos-product-thumb-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 3; flex: none; object-fit: cover; background: var(--pos-surface2); display: flex; align-items: center; justify-content: center; color: var(--pos-border2); font-size: 0; }
#wc-pos-root .pos-product-thumb-placeholder svg { width: 38px; height: 38px; color: var(--pos-border2); }
#wc-pos-root .pos-product-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
#wc-pos-root .pos-product-name { font-weight: 600; font-size: .88rem; line-height: 1.25; color: var(--pos-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
#wc-pos-root .pos-product-sku { font-family: var(--pos-font-mono); font-size: .6rem; letter-spacing: .06em; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wc-pos-root .pos-product-price { margin-top: auto; padding-top: 4px; font-family: var(--pos-font-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--pos-text); }
#wc-pos-root .pos-add-indicator { position: absolute; inset: auto 8px 8px auto; right: 8px; bottom: 8px; width: 28px; height: 28px; line-height: 26px; text-align: center; font: 700 1.1rem/26px var(--pos-font-mono); background: var(--pos-accent); color: var(--pos-on-accent); border-radius: var(--pos-radius-sm); opacity: 0; transform: scale(.85); transition: all var(--pos-transition); }
#wc-pos-root .pos-product-card:hover .pos-add-indicator { opacity: 1; transform: none; }
@media (hover: none) { #wc-pos-root .pos-add-indicator { opacity: 1; transform: none; } }
#wc-pos-root .pos-oos { opacity: .55; }
#wc-pos-root .pos-oos-badge { position: absolute; top: 8px; right: 8px; font: 600 .58rem/1 var(--pos-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pos-red); background: var(--pos-red-bg); border: 1px solid rgba(220,38,38,.3); border-radius: var(--pos-radius-sm); padding: 4px 6px; z-index: 3; }

/* ── the cart ── */
#wc-pos-root .pos-cart-panel { background: var(--pos-surface); border-left: 1px solid var(--pos-border); }
#wc-pos-root .pos-cart-header { padding: 16px 16px 12px; }
#wc-pos-root .pos-cart-title { font-family: var(--pos-font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-text); display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
#wc-pos-root .pos-cart-title::before { content: ''; width: 3px; height: 16px; background: var(--pos-accent); border-radius: 2px; }
#wc-pos-root .pos-cart-title svg { display: none; }
#wc-pos-root .pos-customer-input-wrap { background: var(--pos-surface2); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); }
#wc-pos-root .pos-cart-item { border-bottom: 1px solid var(--pos-border); padding: 10px 16px; gap: 10px; }
#wc-pos-root .pos-cart-item-name { font-weight: 600; font-size: .86rem; color: var(--pos-text); }
#wc-pos-root .pos-qty-btn { border-radius: var(--pos-radius-sm); border: 1px solid var(--pos-border2); background: var(--pos-surface); color: var(--pos-text2); }
#wc-pos-root .pos-qty-btn:hover { border-color: var(--pos-accent); color: var(--pos-accent-text); }
#wc-pos-root .pos-cart-qty-input, #wc-pos-root .pos-cart-price-input { font-family: var(--pos-font-mono); font-weight: 600; background: var(--pos-surface2); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius-sm); }
#wc-pos-root .pos-cart-empty { color: var(--pos-muted); }
#wc-pos-root .pos-cart-empty p { font-family: var(--pos-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 8px 0 2px; }
#wc-pos-root .pos-totals { padding: 12px 16px; background: var(--pos-surface2); border-top: 1px solid var(--pos-border); }
#wc-pos-root .pos-totals-row { font-family: var(--pos-font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-totals-row span:last-child { font-family: var(--pos-font-mono); letter-spacing: 0; color: var(--pos-text2); font-weight: 600; font-size: .85rem; }
#wc-pos-root .pos-total-final { align-items: baseline; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--pos-border2); }
#wc-pos-root .pos-total-final strong { font-family: var(--pos-font-display); font-weight: 900; font-size: 1.75rem; letter-spacing: .02em; color: var(--pos-text); }

/* the buttons under the cart: two small ones, and the big one on its own line (it used to be pushed out of the screen) */
#wc-pos-root .pos-cart-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--pos-border); background: var(--pos-surface); }
#wc-pos-root .pos-btn-discount-toggle, #wc-pos-root .pos-btn-clear-cart { height: 40px; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--pos-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--pos-radius); border: 1px solid var(--pos-border2); background: var(--pos-surface); color: var(--pos-text2); cursor: pointer; padding: 0 10px; transition: all var(--pos-transition); }
#wc-pos-root .pos-btn-discount-toggle:hover { border-color: var(--pos-accent); color: var(--pos-accent-text); background: var(--pos-accent-bg); }
#wc-pos-root .pos-btn-clear-cart:hover { border-color: var(--pos-red); color: var(--pos-red); background: var(--pos-red-bg); }
#wc-pos-root .pos-btn-checkout { grid-column: 1 / -1; width: 100%; min-width: 0; height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--pos-accent); color: var(--pos-on-accent); border: 0; border-radius: var(--pos-radius); font-family: var(--pos-font-display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 0 16px; box-shadow: 0 1px 0 rgba(15,23,42,.12), 0 6px 16px rgba(217,119,6,.28); transition: background var(--pos-transition), transform var(--pos-transition), box-shadow var(--pos-transition); }
#wc-pos-root .pos-btn-checkout:hover:not(:disabled) { background: var(--pos-accent2); transform: translateY(-1px); }
#wc-pos-root .pos-btn-checkout:active:not(:disabled) { transform: none; }
#wc-pos-root .pos-btn-checkout:disabled { background: var(--pos-surface3); color: var(--pos-muted); box-shadow: none; cursor: not-allowed; }
#wc-pos-root .pos-btn-checkout .pos-checkout-amount { margin-left: auto; font-family: var(--pos-font-display); font-weight: 900; letter-spacing: .02em; font-size: 1rem; background: rgba(15,23,42,.12); border-radius: var(--pos-radius-sm); padding: 6px 10px; }
#wc-pos-root .pos-btn-checkout:disabled .pos-checkout-amount { background: transparent; }
#wc-pos-root .pos-btn-checkout svg { width: 20px; height: 20px; flex: none; }
#wc-pos-root :focus-visible { outline: 2px solid var(--pos-accent); outline-offset: 2px; }

/* ══ responsive: from a 360 px phone to a 4K screen ═══════════════════════════════════════════════════
   > 1099 px  two columns: products and a cart of 400 px
   900-1099   two columns, a narrower cart (340 px)
   <= 899     one column: the products, a bar at the bottom ("View cart"), and the cart as a full-screen drawer
   <= 640     a phone: the header on two rows (the name and the buttons; below, the search), two product columns
   Nothing may be wider than the screen: the page itself never scrolls sideways. */
#wc-pos-root, #wc-pos-root .pos-app-screen { max-width: 100vw; overflow-x: hidden; }
#wc-pos-root .pos-products-panel, #wc-pos-root .pos-cart-panel { min-width: 0; }
@media (max-width: 1099px) { #wc-pos-root { --pos-cart-w: 340px; } #wc-pos-root .pos-header-search-wrap { flex-basis: 200px; } #wc-pos-root .pos-staff-pill span { display: none; } #wc-pos-root .pos-staff-pill { padding: 0 4px; } }
@media (min-width: 1700px) { #wc-pos-root { --pos-cart-w: 460px; } #wc-pos-root .pos-products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (max-width: 899px) {
  #wc-pos-root .pos-mobile-cart-bar { display: flex !important; position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 60px; padding: 0 16px calc(env(safe-area-inset-bottom, 0px)) 16px; align-items: center; gap: 12px; background: var(--pos-accent); color: var(--pos-on-accent); border: 0; border-radius: 0; font-family: var(--pos-font-display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 -4px 18px rgba(15,23,42,.18); cursor: pointer; }
  #wc-pos-root .pos-mobile-cart-bar svg { width: 20px; height: 20px; }
  #wc-pos-root .pos-mobile-cart-bar-count { margin-left: auto; font-family: var(--pos-font-mono); font-weight: 500; letter-spacing: .04em; text-transform: none; background: rgba(15,23,42,.12); border-radius: var(--pos-radius-sm); padding: 4px 8px; font-size: .74rem; }
  #wc-pos-root .pos-mobile-cart-bar-total { font-family: var(--pos-font-display); font-weight: 900; font-size: .95rem; letter-spacing: .02em; }
  #wc-pos-root .pos-products-wrap { padding-bottom: 68px; }
  #wc-pos-root .pos-mobile-back-btn { display: flex !important; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 16px; background: var(--pos-surface2); border: 0; border-bottom: 1px solid var(--pos-border); color: var(--pos-text2); font-family: var(--pos-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; flex: none; }
  #wc-pos-root .pos-cart-panel { width: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  #wc-pos-root .pos-header { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px 8px; }
  #wc-pos-root .pos-header-brand { order: 1; flex: 1 1 0; max-width: none; min-width: 0; }
  #wc-pos-root .pos-header-actions { order: 2; gap: 6px; margin-left: 0; }
  #wc-pos-root .pos-header-search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
  #wc-pos-root .pos-header-register { display: none; }
  #wc-pos-root .pos-header-btn, #wc-pos-root .pos-staff-pill { width: 36px; height: 36px; }
  #wc-pos-root .pos-staff-pill { padding: 0; justify-content: center; border: 0; background: transparent; }
  #wc-pos-root .pos-header-store { font-size: .8rem; max-width: 100%; }
  #wc-pos-root .pos-categories-bar { padding: 0 12px; }
  #wc-pos-root .pos-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  #wc-pos-root .pos-product-card { flex-direction: column; align-items: stretch; }
  #wc-pos-root .pos-product-thumb, #wc-pos-root .pos-product-thumb-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: 0; flex: none; }
  #wc-pos-root .pos-product-info { padding: 8px 10px 10px; }
  #wc-pos-root .pos-product-name { font-size: .82rem; }
  #wc-pos-root .pos-product-price { font-size: .86rem; }
  #wc-pos-root .pos-add-indicator { width: 26px; height: 26px; right: 6px; bottom: 6px; }
  #wc-pos-root .pos-cart-actions { padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) { #wc-pos-root .pos-header-actions .pos-header-btn:nth-child(2) { display: none; } #wc-pos-root .pos-products { gap: 8px; padding: 8px; } }

/* the base stylesheet has older rules for small screens (a list, 52 px thumbnails) with a higher weight: these win over them */
@media (max-width: 899px) {
  #wc-pos-root #pos-products.pos-products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; grid-auto-rows: max-content !important; gap: 12px !important; padding: 14px !important; }
  #wc-pos-root #pos-products .pos-product-card { flex-direction: column !important; align-items: stretch !important; }
  #wc-pos-root #pos-products .pos-product-thumb, #wc-pos-root #pos-products .pos-product-thumb-placeholder { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; margin: 0 !important; border-radius: 0 !important; flex: none !important; }
}
@media (max-width: 640px) { #wc-pos-root #pos-products.pos-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; padding: 12px !important; } }
@media (max-width: 380px) { #wc-pos-root #pos-products.pos-products { gap: 8px !important; padding: 8px !important; } }
#wc-pos-root #pos-products .pos-product-card { align-self: stretch; }
/* the cart fills the height: the lines take what is left, the totals and the buttons stay at the bottom (on a phone they used to float in the middle) */
#wc-pos-root .pos-cart-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#wc-pos-root .pos-cart-panel .pos-cart-items { flex: 1 1 0 !important; min-height: 72px; max-height: none !important; overflow-y: auto; }
#wc-pos-root .pos-cart-panel .pos-cart-middle, #wc-pos-root .pos-cart-panel .pos-cart-header { flex: 0 0 auto; }
#wc-pos-root .pos-cart-panel .pos-cart-actions { flex: 0 0 auto; }

/* ══ the windows (checkout, finished sale, history, held orders ...) ═══════════════════════════════════ */
#wc-pos-root .pos-modal-overlay { background: rgba(15,23,42,.58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 16px; }
#wc-pos-root .pos-modal { position: relative; background: var(--pos-surface); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); box-shadow: var(--pos-shadow); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; color: var(--pos-text); }
#wc-pos-root .pos-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--pos-accent), transparent 70%); z-index: 3; }
#wc-pos-root .pos-modal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 12px; padding: 20px 20px 14px; }
#wc-pos-root .pos-modal-head h3 { margin: 0; font-family: var(--pos-font-display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-text); display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
#wc-pos-root .pos-modal-head h3::before { content: ''; width: 3px; height: 16px; background: var(--pos-accent); border-radius: 2px; }
#wc-pos-root .pos-modal-close-btn { width: 34px; height: 34px; border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); background: var(--pos-surface); color: var(--pos-text2); font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
#wc-pos-root .pos-modal-close-btn:hover { border-color: var(--pos-red); color: var(--pos-red); background: var(--pos-red-bg); }
/* the steps */
#wc-pos-root .pos-ck-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex: 1 1 100%; order: 3; }
#wc-pos-root .pos-ck-steps li { flex: 1 1 0; min-width: 0; padding-top: 8px; border-top: 3px solid var(--pos-border2); font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all var(--pos-transition); }
#wc-pos-root .pos-ck-steps li.active, #wc-pos-root .pos-ck-steps li.current { border-top-color: var(--pos-accent); color: var(--pos-text); font-weight: 600; }
#wc-pos-root .pos-ck-steps li.done { border-top-color: var(--pos-green); color: var(--pos-green); }
/* the amount */
#wc-pos-root .pos-ck-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 16px; padding: 14px 16px; background: var(--pos-surface2); border: 1px solid var(--pos-border); border-left: 3px solid var(--pos-accent); border-radius: var(--pos-radius); }
#wc-pos-root .pos-ck-total span { font-family: var(--pos-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-ck-total strong { font-family: var(--pos-font-display); font-weight: 900; font-size: 1.9rem; letter-spacing: .02em; color: var(--pos-text); line-height: 1; }
#wc-pos-root .pos-ck-error { margin: 0 20px 14px; padding: 10px 12px; background: var(--pos-red-bg); border: 1px solid rgba(220,38,38,.3); border-left: 3px solid var(--pos-red); border-radius: var(--pos-radius); color: var(--pos-red); font-size: .88rem; font-weight: 500; }
#wc-pos-root .pos-ck-step { padding: 0 20px 20px; }
/* the choice tiles: document, payment method */
#wc-pos-root .pos-ck-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
#wc-pos-root .pos-ck-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 12px; }
#wc-pos-root .pos-ck-doc, #wc-pos-root .pos-ck-method { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 92px; padding: 14px; text-align: left; background: var(--pos-surface); color: var(--pos-text); border: 1.5px solid var(--pos-border2); border-radius: var(--pos-radius); cursor: pointer; font-family: var(--pos-font); transition: all var(--pos-transition); }
#wc-pos-root .pos-ck-method { align-items: center; justify-content: center; text-align: center; min-height: 96px; }
#wc-pos-root .pos-ck-doc:hover, #wc-pos-root .pos-ck-method:hover { border-color: var(--pos-accent); background: var(--pos-card-hover); }
#wc-pos-root .pos-ck-doc.active, #wc-pos-root .pos-ck-method.active { border-color: var(--pos-accent); background: var(--pos-accent-bg); box-shadow: 0 0 0 1px var(--pos-accent) inset; }
#wc-pos-root .pos-ck-doc.active::after, #wc-pos-root .pos-ck-method.active::after { content: ''; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--pos-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
#wc-pos-root .pos-ck-doc svg, #wc-pos-root .pos-ck-method svg { width: 28px; height: 28px; flex: none; color: var(--pos-accent-text); }
#wc-pos-root .pos-ck-doc .t, #wc-pos-root .pos-ck-method > span, #wc-pos-root .pos-ck-method .t { font-weight: 700; font-size: .98rem; }
#wc-pos-root .pos-ck-doc .s { font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--pos-muted); line-height: 1.35; }
#wc-pos-root .pos-ck-hint { margin: 4px 0 14px; font-size: .84rem; color: var(--pos-muted); display: flex; gap: 8px; align-items: flex-start; }
/* the fields */
#wc-pos-root .pos-ck-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; position: relative; }
#wc-pos-root .pos-ck-row label { font-family: var(--pos-font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-ck-row input, #wc-pos-root .pos-ck-row textarea { width: 100%; background: var(--pos-surface2); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); padding: 0 12px; height: 44px; font-size: .95rem; color: var(--pos-text); transition: border-color var(--pos-transition), box-shadow var(--pos-transition); }
#wc-pos-root .pos-ck-row textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.45; }
#wc-pos-root .pos-ck-row input:focus, #wc-pos-root .pos-ck-row textarea:focus { border-color: var(--pos-accent); box-shadow: 0 0 0 3px var(--pos-accent-bg); background: var(--pos-surface); }
/* the buttons: a real secondary and a real primary */
#wc-pos-root .pos-modal-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
#wc-pos-root .pos-modal-cancel-btn, #wc-pos-root .pos-modal-confirm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--pos-radius); font-family: var(--pos-font-display); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all var(--pos-transition); }
#wc-pos-root .pos-modal-cancel-btn { flex: 0 1 auto; background: var(--pos-surface); color: var(--pos-text2); border: 1px solid var(--pos-border2); }
#wc-pos-root .pos-modal-cancel-btn:hover { border-color: var(--pos-red); color: var(--pos-red); background: var(--pos-red-bg); }
#wc-pos-root .pos-modal-confirm-btn { flex: 1 1 auto; background: var(--pos-accent); color: var(--pos-on-accent); border: 0; box-shadow: 0 6px 16px rgba(217,119,6,.26); }
#wc-pos-root .pos-modal-confirm-btn:hover:not(:disabled) { background: var(--pos-accent2); transform: translateY(-1px); }
#wc-pos-root .pos-modal-confirm-btn:disabled { background: var(--pos-surface3); color: var(--pos-muted); box-shadow: none; cursor: not-allowed; }
#wc-pos-root .pos-ck-back, #wc-pos-root #pos-ck-back-doc { background: var(--pos-surface); color: var(--pos-text2); border: 1px solid var(--pos-border2); }
/* cash, terminal */
#wc-pos-root .pos-ck-docline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; background: var(--pos-green-bg); border: 1px solid rgba(5,150,105,.3); border-left: 3px solid var(--pos-green); border-radius: var(--pos-radius); color: var(--pos-green); font-weight: 600; font-size: .9rem; }
#wc-pos-root #pos-ck-cash-given { height: 60px; font-family: var(--pos-font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; text-align: right; }
#wc-pos-root .pos-ck-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#wc-pos-root .pos-ck-quick button { flex: 1 1 70px; height: 42px; background: var(--pos-surface); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); font-family: var(--pos-font-mono); font-weight: 600; font-size: .85rem; color: var(--pos-text2); cursor: pointer; }
#wc-pos-root .pos-ck-quick button:hover { border-color: var(--pos-accent); background: var(--pos-accent-bg); color: var(--pos-accent-text); }
#wc-pos-root .pos-ck-change { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; margin-bottom: 14px; background: var(--pos-surface2); border: 1px solid var(--pos-border); border-radius: var(--pos-radius); }
#wc-pos-root .pos-ck-change span { font-family: var(--pos-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-ck-change strong { font-family: var(--pos-font-display); font-weight: 900; font-size: 1.6rem; color: var(--pos-green); }
#wc-pos-root .pos-ck-collect { margin-bottom: 4px; }
#wc-pos-root #pos-ck-terminal-msg { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--pos-surface2); border: 1px dashed var(--pos-border2); border-radius: var(--pos-radius); font-weight: 600; }
#wc-pos-root #pos-ck-terminal-msg::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pos-border2); border-top-color: var(--pos-accent); animation: pos-spin .8s linear infinite; flex: none; }
@keyframes pos-spin { to { transform: rotate(360deg); } }
#wc-pos-root .pos-ck-abort { padding: 14px; margin: 12px 0; background: var(--pos-red-bg); border: 1px solid rgba(220,38,38,.3); border-radius: var(--pos-radius); }
#wc-pos-root .pos-ck-abort p { margin: 0 0 12px; font-weight: 600; color: var(--pos-red); }
/* the sale is finished */
#wc-pos-root .pos-complete-modal { width: min(460px, 94vw); padding: 36px 24px 24px; text-align: center; }
#wc-pos-root .pos-complete-anim { display: flex; justify-content: center; margin-bottom: 8px; }
#wc-pos-root .pos-complete-checkmark { width: 76px; height: 76px; }
#wc-pos-root .pos-check-circle { stroke: var(--pos-green); stroke-width: 2; }
#wc-pos-root .pos-check-tick { stroke: var(--pos-green); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
#wc-pos-root .pos-complete-title { margin: 6px 0 4px; font-family: var(--pos-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-text); }
#wc-pos-root .pos-complete-order-num { font-family: var(--pos-font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-complete-total { margin: 12px 0 6px; font-family: var(--pos-font-display); font-weight: 900; font-size: 2.3rem; color: var(--pos-text); line-height: 1.1; }
#wc-pos-root .pos-complete-change { display: inline-block; margin: 4px 0 8px; padding: 8px 14px; background: var(--pos-green-bg); border: 1px solid rgba(5,150,105,.3); border-radius: var(--pos-radius); font-family: var(--pos-font-mono); font-weight: 600; font-size: .95rem; color: var(--pos-green); }
#wc-pos-root .pos-complete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
#wc-pos-root .pos-btn-receipt, #wc-pos-root .pos-btn-new-sale { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: var(--pos-radius); font-family: var(--pos-font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all var(--pos-transition); border: 1px solid var(--pos-border2); background: var(--pos-surface); color: var(--pos-text2); }
#wc-pos-root .pos-btn-receipt:hover { border-color: var(--pos-accent); color: var(--pos-accent-text); background: var(--pos-accent-bg); }
#wc-pos-root .pos-btn-receipt svg, #wc-pos-root .pos-btn-new-sale svg { width: 18px; height: 18px; flex: none; }
#wc-pos-root #pos-btn-print-doc { grid-column: 1 / -1; height: 54px; background: var(--pos-accent); border: 0; color: var(--pos-on-accent); font-family: var(--pos-font-display); font-weight: 700; font-size: .8rem; box-shadow: 0 6px 16px rgba(217,119,6,.26); }
#wc-pos-root #pos-btn-print-doc:hover { background: var(--pos-accent2); color: var(--pos-on-accent); }
#wc-pos-root .pos-btn-new-sale { grid-column: 1 / -1; height: 52px; background: var(--pos-text); border-color: var(--pos-text); color: var(--pos-surface); font-family: var(--pos-font-display); font-weight: 700; font-size: .78rem; }
#wc-pos-root[data-pos-theme="dark"] .pos-btn-new-sale { background: var(--pos-surface3); color: var(--pos-text); border-color: var(--pos-border2); }
#wc-pos-root .pos-btn-new-sale:hover { background: var(--pos-accent); border-color: var(--pos-accent); color: var(--pos-on-accent); }
/* the messages */
.pos-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100000; max-width: min(92vw, 560px); padding: 12px 18px 12px 16px; background: #0f172a; color: #f1f5f9; border-left: 4px solid #10b981; border-radius: 3px; box-shadow: 0 10px 30px rgba(15,23,42,.35); font: 500 .9rem/1.4 'Space Grotesk', system-ui, sans-serif; transition: opacity .3s, transform .3s; }
.pos-toast-warn { border-left-color: #f59e0b; } .pos-toast-info { border-left-color: #0ea5e9; }
.pos-toast-out { opacity: 0; transform: translate(-50%, 8px); }
@media (max-width: 640px) {
  #wc-pos-root .pos-modal-overlay { padding: 0; align-items: flex-end; }
  #wc-pos-root .pos-modal { width: 100% !important; max-width: 100% !important; max-height: 94vh; max-height: 94dvh; border-radius: 6px 6px 0 0; }
  #wc-pos-root .pos-modal-head, #wc-pos-root .pos-ck-step { padding-left: 16px; padding-right: 16px; }
  #wc-pos-root .pos-ck-total, #wc-pos-root .pos-ck-error { margin-left: 16px; margin-right: 16px; }
  #wc-pos-root .pos-ck-total strong { font-size: 1.6rem; }
  #wc-pos-root .pos-ck-steps li { font-size: .56rem; letter-spacing: .04em; }
  #wc-pos-root .pos-modal-actions { flex-wrap: wrap; } #wc-pos-root .pos-modal-confirm-btn { flex: 1 1 100%; order: -1; } #wc-pos-root .pos-modal-cancel-btn { flex: 1 1 100%; }
  .pos-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
#wc-pos-root .pos-ck-row label { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; text-align: left !important; margin: 0 !important; }
#wc-pos-root .pos-ck-row .pos-ck-lookup, #wc-pos-root .pos-ck-row button { flex: none; }
#wc-pos-root .pos-complete-actions { display: flex; flex-wrap: wrap; }
/* The buttons of the window of the end of a sale. Each takes the width that its label needs (the icon, the gap, the letters), and the room that is left is shared; when they do not all fit in a row the last ones go to the next row,
   they are never squeezed. (Equal widths were 131 px for three buttons: «Exchange note» needed about 170.) */
#wc-pos-root .pos-complete-actions .pos-btn-receipt { flex: 1 0 auto; min-width: 0; }
#wc-pos-root #pos-btn-print-doc, #wc-pos-root .pos-btn-new-sale { flex: 1 0 100%; }
/* When the window is a column (a phone, a tablet that stands up) the 100% of the line above would be 100% of the HEIGHT: the buttons were 20 px high instead of 48. In a column they keep their own height. */
@media (max-width: 768px) {
  #wc-pos-root .pos-complete-actions .pos-btn-receipt, #wc-pos-root #pos-btn-print-doc, #wc-pos-root .pos-btn-new-sale { flex: 0 0 auto; width: 100%; }
}
#wc-pos-root .pos-ck-total { margin-top: 4px; }

#wc-pos-root .pos-ck-row { align-items: stretch; }
#wc-pos-root .pos-ck-row label { align-self: flex-start; }

/* ══ printing from this window: while a document prints, the screen is hidden and only its pages are shown ══════════════════════════════════════ */
#pos-print-root { display: none; }
@media print {
  @page { margin: 0; }
  html:has(body.pos-printing) { height: auto !important; overflow: visible !important; }
  body.pos-printing { margin: 0 !important; padding: 0 !important; background: #fff !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  body.pos-printing > *:not(#pos-print-root) { display: none !important; }
  body.pos-printing #pos-print-root { display: block !important; }
  .pos-print-page { width: 100%; height: 100vh; overflow: hidden; break-after: page; page-break-after: always; }
  .pos-print-page:last-child { break-after: auto; page-break-after: auto; }
  .pos-print-page canvas { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
}

/* ══ the fields of the invoice and the lookup in the AADE ═══════════════════════════════════════════════════════════════════════════════════════════════
   (an old rule gave the fields flex: 1: in a column that takes the height away, and they were 20 px high instead of 44) */
#wc-pos-root .pos-ck-row input, #wc-pos-root .pos-ck-row textarea, #wc-pos-root .pos-ck-row select { flex: 0 0 auto !important; }
#wc-pos-root .pos-ck-row-vat { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 6px; align-items: end; }
#wc-pos-root .pos-ck-row-vat label { grid-column: 1 / -1; }
#wc-pos-root .pos-ck-lookup, #wc-pos-root .pos-aade-fetch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--pos-radius); border: 1px solid var(--pos-accent); background: var(--pos-accent-bg); color: var(--pos-accent-text); font-family: var(--pos-font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: all var(--pos-transition); }
#wc-pos-root .pos-ck-lookup:hover, #wc-pos-root .pos-aade-fetch-btn:hover { background: var(--pos-accent); color: var(--pos-on-accent); }
#wc-pos-root .pos-ck-lookup:disabled, #wc-pos-root .pos-aade-fetch-btn:disabled { opacity: .55; cursor: wait; }
#wc-pos-root .pos-aade-bar { background: var(--pos-accent-bg); border: 1px solid rgba(217,119,6,.4); border-left: 3px solid var(--pos-accent); border-radius: var(--pos-radius); }
@media (max-width: 640px) { #wc-pos-root .pos-ck-row-vat { grid-template-columns: 1fr; } #wc-pos-root .pos-ck-lookup { width: 100%; } }
/* the buttons of a step stay at the bottom of the window (the invoice fields make the window long: they used to scroll out of sight) */
#wc-pos-root .pos-ck-step .pos-modal-actions { position: sticky; bottom: 0; z-index: 2; margin: 8px -20px -20px; padding: 12px 20px 16px; background: var(--pos-surface); border-top: 1px solid var(--pos-border); }
@media (max-width: 640px) { #wc-pos-root .pos-ck-step .pos-modal-actions { margin: 8px -16px -20px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); } }

/* ══ the orders that customers collect in the shop ═══════════════════════════════════════════════════════════════════════════════════════════════════ */
#wc-pos-root #pos-pickups-btn .pos-held-badge { background: var(--pos-accent); color: var(--pos-on-accent); }
#wc-pos-root .pos-pickup-modal { width: min(780px, 96vw); }
#wc-pos-root .pos-pk-search { padding: 0 20px 14px; }
#wc-pos-root .pos-pk-search input { width: 100%; height: 46px; padding: 0 14px; background: var(--pos-surface2); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); font-size: 1rem; color: var(--pos-text); }
#wc-pos-root .pos-pk-search input:focus { border-color: var(--pos-accent); box-shadow: 0 0 0 3px var(--pos-accent-bg); background: var(--pos-surface); outline: none; }
#wc-pos-root .pos-pk-list { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); overflow-y: auto; }
#wc-pos-root .pos-pk-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--pos-surface); border: 1px solid var(--pos-border2); border-left: 3px solid var(--pos-accent); border-radius: var(--pos-radius); }
#wc-pos-root .pos-pk-row.paid { border-left-color: var(--pos-green); }
#wc-pos-root .pos-pk-main { min-width: 0; flex: 1 1 auto; }
#wc-pos-root .pos-pk-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#wc-pos-root .pos-pk-top strong { font-family: var(--pos-font-display); font-weight: 900; font-size: .95rem; letter-spacing: .04em; color: var(--pos-text); }
#wc-pos-root .pos-pk-name { font-weight: 600; font-size: .98rem; color: var(--pos-text); overflow-wrap: anywhere; }
#wc-pos-root .pos-pk-lines { margin-top: 4px; font-size: .86rem; color: var(--pos-text2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#wc-pos-root .pos-pk-meta { margin-top: 4px; font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--pos-muted); overflow-wrap: anywhere; }
#wc-pos-root .pos-pk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
#wc-pos-root .pos-pk-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#wc-pos-root .pos-pk-chip { display: inline-block; padding: 3px 8px; border-radius: var(--pos-radius-sm); font: 600 .6rem/1.3 var(--pos-font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
#wc-pos-root .pos-pk-chip.paid { background: var(--pos-green-bg); color: var(--pos-green); border-color: rgba(5,150,105,.3); }
#wc-pos-root .pos-pk-chip.unpaid { background: var(--pos-accent-bg); color: var(--pos-accent-text); border-color: rgba(217,119,6,.35); }
#wc-pos-root .pos-pk-chip.doc { background: var(--pos-surface2); color: var(--pos-text2); border-color: var(--pos-border2); }
#wc-pos-root .pos-pk-chip.doc.warn { background: var(--pos-red-bg); color: var(--pos-red); border-color: rgba(220,38,38,.35); }
#wc-pos-root .pos-pk-total { font-family: var(--pos-font-display); font-weight: 900; font-size: 1.15rem; color: var(--pos-text); }
#wc-pos-root .pos-pk-act { height: 44px; min-width: 150px; padding: 0 18px; border: 0; border-radius: var(--pos-radius); font-family: var(--pos-font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all var(--pos-transition); }
#wc-pos-root .pos-pk-act.pay { background: var(--pos-accent); color: var(--pos-on-accent); box-shadow: 0 4px 12px rgba(217,119,6,.24); }
#wc-pos-root .pos-pk-act.pay:hover { background: var(--pos-accent2); }
#wc-pos-root .pos-pk-act.handover { background: var(--pos-text); color: var(--pos-surface); }
#wc-pos-root[data-pos-theme="dark"] .pos-pk-act.handover { background: var(--pos-green); color: #04130d; }
#wc-pos-root .pos-pk-act.handover:hover { background: var(--pos-accent); color: var(--pos-on-accent); }
#wc-pos-root .pos-pk-empty { padding: 36px 16px; text-align: center; color: var(--pos-muted); background: var(--pos-surface2); border: 1px dashed var(--pos-border2); border-radius: var(--pos-radius); }
/* in the checkout window, for one order */
#wc-pos-root .pos-ck-pickup { margin: 0 20px 14px; padding: 12px 14px; background: var(--pos-surface2); border: 1px solid var(--pos-border); border-left: 3px solid var(--pos-accent); border-radius: var(--pos-radius); }
#wc-pos-root .pos-ck-pk-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#wc-pos-root .pos-ck-pk-who strong { font-size: .98rem; color: var(--pos-text); overflow-wrap: anywhere; }
#wc-pos-root .pos-ck-pk-lines { margin-top: 5px; font-size: .84rem; color: var(--pos-text2); }
#wc-pos-root .pos-ck-pk-note { margin-top: 8px; font-size: .84rem; font-weight: 600; color: var(--pos-accent-text); }
@media (max-width: 640px) {
  #wc-pos-root .pos-pk-search { padding: 0 16px 12px; } #wc-pos-root .pos-pk-list { padding: 0 16px 16px; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  #wc-pos-root .pos-pk-row { flex-direction: column; align-items: stretch; gap: 10px; }
  #wc-pos-root .pos-pk-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  #wc-pos-root .pos-pk-chips { justify-content: flex-start; flex: 1 1 100%; }
  #wc-pos-root .pos-pk-act { flex: 1 1 100%; min-width: 0; }
  #wc-pos-root .pos-ck-pickup { margin: 0 16px 14px; }
}

/* ══ SELF-DELIVERY (6.1) / OWN USE (6.2): the option in the document step, and the window with the amounts ══ */
#wc-pos-root .pos-ck-selfuse { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px; text-align: left; background: var(--pos-surface); color: var(--pos-text); border: 1.5px dashed var(--pos-border2); border-radius: var(--pos-radius); cursor: pointer; font-family: var(--pos-font); transition: all var(--pos-transition); }
#wc-pos-root .pos-ck-selfuse:hover { border-color: var(--pos-accent); border-style: solid; background: var(--pos-card-hover); }
#wc-pos-root .pos-ck-selfuse svg { width: 24px; height: 24px; flex: none; color: var(--pos-accent-text, var(--pos-accent)); }
#wc-pos-root .pos-ck-selfuse .t { font-weight: 700; font-size: .95rem; }
#wc-pos-root .pos-ck-selfuse .s { flex: 1 1 100%; padding-left: 36px; margin-top: -2px; font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--pos-muted); line-height: 1.35; }
#wc-pos-root .pos-su-modal { width: min(820px, 96vw); max-height: 94vh; display: flex; flex-direction: column; }
#wc-pos-root .pos-su-modal .pos-modal-error { margin: 0 20px 8px; }
#wc-pos-root .pos-su-step { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
#wc-pos-root .pos-su-step > * { flex-shrink: 0; }
#wc-pos-root .pos-su-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#wc-pos-root .pos-su-type { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 14px; text-align: left; background: var(--pos-surface); color: var(--pos-text); border: 1.5px solid var(--pos-border2); border-radius: var(--pos-radius); cursor: pointer; font-family: var(--pos-font); transition: all var(--pos-transition); }
#wc-pos-root .pos-su-type:hover { border-color: var(--pos-accent); background: var(--pos-card-hover); }
#wc-pos-root .pos-su-type.active { border-color: var(--pos-accent); background: var(--pos-accent-bg); box-shadow: 0 0 0 1px var(--pos-accent) inset; }
#wc-pos-root .pos-su-type .t { font-weight: 700; font-size: .95rem; }
#wc-pos-root .pos-su-type .s { font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--pos-muted); }
#wc-pos-root .pos-su-table { border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); overflow: hidden; }
#wc-pos-root .pos-su-thead, #wc-pos-root .pos-su-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 130px 92px 90px; gap: 10px; align-items: center; padding: 8px 12px; }
#wc-pos-root .pos-su-thead { background: var(--pos-surface2); font-family: var(--pos-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-su-thead span:nth-child(n+2), #wc-pos-root .pos-su-line .q, #wc-pos-root .pos-su-line .v { text-align: right; }
#wc-pos-root .pos-su-line { border-top: 1px solid var(--pos-border); }
#wc-pos-root .pos-su-line .who strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
#wc-pos-root .pos-su-line .q, #wc-pos-root .pos-su-line .v { font-size: .9rem; color: var(--pos-text2); white-space: nowrap; }
#wc-pos-root .pos-su-line label { display: block; margin: 0; }
#wc-pos-root .pos-su-line input, #wc-pos-root .pos-su-line select, #wc-pos-root .pos-su-modal .pos-rc-notefield input { width: 100%; height: 42px; padding: 0 10px; background: var(--pos-surface2); color: var(--pos-text); border: 1px solid var(--pos-border2); border-radius: var(--pos-radius); font: inherit; font-size: .95rem; box-sizing: border-box; }
#wc-pos-root .pos-su-line input { text-align: right; font-family: var(--pos-font-display); font-weight: 700; }
#wc-pos-root .pos-su-line input:focus, #wc-pos-root .pos-su-line select:focus, #wc-pos-root .pos-su-modal .pos-rc-notefield input:focus { outline: none; border-color: var(--pos-accent); box-shadow: 0 0 0 3px var(--pos-accent-bg); }
#wc-pos-root .pos-su-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; padding: 10px 12px; border-top: 2px solid var(--pos-border2); background: var(--pos-surface2); font-size: .85rem; color: var(--pos-text2); }
#wc-pos-root .pos-su-foot b { margin-left: 6px; color: var(--pos-text); }
#wc-pos-root .pos-su-foot .tot b { font-family: var(--pos-font-display); font-weight: 900; font-size: 1.2rem; }
#wc-pos-root .pos-su-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
#wc-pos-root .pos-su-reason { padding: 5px 10px; background: var(--pos-surface); color: var(--pos-text2); border: 1px solid var(--pos-border2); border-radius: 999px; font: inherit; font-size: .78rem; cursor: pointer; }
#wc-pos-root .pos-su-reason:hover { border-color: var(--pos-accent); color: var(--pos-text); background: var(--pos-accent-bg); }
#wc-pos-root .pos-su-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#wc-pos-root .pos-su-pay .lbl { flex: 1 1 100%; font-family: var(--pos-font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pos-muted); }
#wc-pos-root .pos-su-payopt { flex: 0 1 auto; min-width: 120px; height: 40px; padding: 0 16px; background: var(--pos-surface); color: var(--pos-text2); border: 1.5px solid var(--pos-border2); border-radius: var(--pos-radius); font: inherit; font-weight: 600; cursor: pointer; }
#wc-pos-root .pos-su-payopt:hover { border-color: var(--pos-accent); }
#wc-pos-root .pos-su-payopt.active { border-color: var(--pos-accent); background: var(--pos-accent-bg); color: var(--pos-text); box-shadow: 0 0 0 1px var(--pos-accent) inset; }
@media (max-width: 640px) {
  #wc-pos-root .pos-su-step { padding-left: 16px; padding-right: 16px; }
  #wc-pos-root .pos-su-modal .pos-modal-error { margin-left: 16px; margin-right: 16px; }
  #wc-pos-root .pos-su-thead { display: none; }
  #wc-pos-root .pos-su-line { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  #wc-pos-root .pos-su-line .who { grid-column: 1 / -1; }
  #wc-pos-root .pos-su-line .q { grid-column: 1 / -1; text-align: left; }
  #wc-pos-root .pos-su-line [data-label]::before { content: attr(data-label); display: block; font-size: .64rem; opacity: .7; margin-bottom: 2px; text-align: left; font-family: var(--pos-font-mono); letter-spacing: .06em; text-transform: uppercase; }
  #wc-pos-root .pos-su-line .q::before { display: none; }
  #wc-pos-root .pos-su-line .v { text-align: left; }
  #wc-pos-root .pos-su-types { grid-template-columns: 1fr; }
  #wc-pos-root .pos-su-foot { justify-content: space-between; }
}
