/* th-built *//* la caisse : la bande « À retirer » du comptoir et la commande dans le ticket (js/ec-emporter.js, préfixe ece-) */
.ece-strip{flex:none;display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border-radius:20px;background:var(--paper);border:1.5px solid var(--rim);box-shadow:0 3px 0 var(--cream-3)}
.ece-strip.none{padding:10px 14px}
.ece-lb{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:62px;color:var(--accent);font-size:12px;font-weight:780;text-align:center;line-height:1.15}
.ece-lb .ico{width:22px;height:22px}
.ece-lb i{font-style:normal;font-size:12px;font-weight:700;min-width:22px;padding:1px 6px;border-radius:99px;background:var(--accent);color:#fff}
.ece-no{font-style:normal;color:var(--muted);font-size:13.5px;font-weight:600;line-height:1.35}
.ece-row{display:flex;gap:8px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px}
.ece-row::-webkit-scrollbar{display:none}
.ece-o{all:unset;box-sizing:border-box;cursor:pointer;flex:none;width:186px;display:flex;flex-direction:column;gap:3px;padding:9px 11px;border-radius:16px;background:var(--cream-2,#F4F1EA);border:1.5px solid transparent;transition:transform .25s var(--spring),border-color .2s,background .2s;animation:eceIn .45s var(--spring) both;animation-delay:calc(var(--j,0)*40ms)}:where(html[data-theme=dark]) .ece-o{background:var(--cream-2,rgb(33, 30, 48))}
.ece-o:active{transform:scale(.97)}
.ece-o:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ece-o.on{border-color:var(--accent);background:var(--tint)}
.ece-o.k-prete{border-color:var(--ok)}
.ece-oh{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ece-oh b{font-size:15px;font-weight:750}
.ece-st{font-size:11.5px;font-weight:760;padding:2px 8px;border-radius:99px;background:var(--paper);color:var(--muted)}
.ece-o.k-prete .ece-st{background:var(--ok);color:#fff}
.ece-o.k-prep .ece-st{color:var(--warn)}
.ece-on{font-size:14px;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ece-of{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.ece-of em{font-style:normal;font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ece-of b{font-size:14px;font-weight:700;white-space:nowrap}
.ece-pay{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:740;color:var(--accent)}
.ece-pay .ico{width:14px;height:14px}
.ece-pay.ok{color:var(--ok)}
@keyframes eceIn{0%{opacity:0;transform:translateY(6px) scale(.96)}100%{opacity:1;transform:none}}
/* the order in the ticket */
.ece-cord{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:9px 8px 9px 12px;border-radius:16px;background:var(--tint);border:1.5px solid var(--accent);color:var(--ink)}
.ece-cord>.ico{width:22px;height:22px;flex:none;color:var(--accent)}
.ece-cord span{display:flex;flex-direction:column;min-width:0;flex:1}
.ece-cord b{font-size:14.5px;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ece-cord em{font-style:normal;font-size:12.5px;color:var(--muted);font-weight:600}
.ece-gsh .ec-lines{margin:8px 0 14px}
.ece-gsh .sub .ico{width:15px;height:15px;vertical-align:-2px;color:var(--ok)}
html[data-theme=dark] .ece-o{background:rgba(255,255,255,.06)}
html[data-theme=dark] .ece-st{background:rgba(255,255,255,.1)}
@media (max-width:759px){.ece-o{width:164px}.ece-lb{min-width:48px}.ece-strip{padding:7px 8px;gap:8px}}
@media (prefers-reduced-motion:reduce){.ece-o{animation:none}}
/* the counter of a shop: the Boutique's products */
.ece-p{padding-top:12px}
.ece-p .ece-th{width:46px;height:46px;border-radius:12px;font-size:14px}
.ece-p .ec-dn{-webkit-line-clamp:2;font-size:14.5px}
.ece-p .ec-dp small{font-size:12px;font-weight:650;color:var(--muted)}
.ece-left{font-style:normal;font-size:11.5px;font-weight:740;color:var(--warn)}
.ece-p.ece-out{opacity:.62}
.ece-p.ece-out .ece-left{color:var(--bad)}
.ece-tkt{display:flex;align-items:center;gap:8px;height:44px;padding:0 6px;color:var(--ink-2);font-size:15px}
.ece-tkt .ico{width:20px;height:20px;color:var(--accent)}
.ece-kgc{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 12px}
.ece-kgt{display:flex;align-items:baseline;justify-content:space-between;margin:10px 2px 14px;color:var(--muted);font-weight:650}
.ece-kgt b{font-size:24px;color:var(--ink)}
/* the shop ticket's « À emporter » tab: the orders, full width */
.ece-tabs button{gap:6px}
.ece-tn{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:720}
.ece-elist{display:flex;flex-direction:column;gap:8px}
.ece-elist .ece-o{width:auto}
.ece-ecart .ec-cempty em{max-width:30ch}
.ece-back{margin-top:10px}
/* the counter's top, fixed: only the tiles scroll (js/ec-emporter.js eceStickyTop) */
.ec-main>.ece-top{position:sticky;top:-2px;z-index:6;display:flex;flex-direction:column;gap:14px;margin:-2px -2px 0;padding:2px 2px 10px;background:linear-gradient(var(--bg) calc(100% - 10px),transparent)}
.ece-top>*{flex:none}
.ece-top .ec-lphint{margin:0}
/* the pay sheet (Marceau 2026-11-22, caisse Sunmi en paysage : « il faut scroller pour avoir Paiement accepté ») : the button that
   validates is always in view, on every screen: it sits right under the keypad (the QR for the customer's phone comes after it),
   it stays stuck at the bottom of the sheet if anything still overflows, and a short landscape screen gets a more compact sheet */
.ec-paysh .ec-payb{order:20;position:sticky;bottom:calc(env(safe-area-inset-bottom,0px) + 4px);z-index:3}
.ec-paysh>.bnx-tqr{order:21}
.ec-paysh>.ec-sealn{order:22}
@media (min-width:760px) and (max-height:900px){
  .ec-paysh{gap:10px}
  .ec-paysh .ec-due{font-size:38px!important}
  .ec-paysh .ec-pm{padding:7px 8px;gap:4px}
  .ec-paysh .ec-k{height:48px}
  .ec-paysh .ec-keys{gap:6px}
  .ec-paysh .ec-payb{height:58px!important}
}
/* the end of a sale: everything fits, whatever the screen (the box scrolls only as a last resort) */
.ec-done .ec-dbox{max-height:calc(100% - 24px);overflow-y:auto;scrollbar-width:none}
.ec-done .ec-dact .ece-dprev{flex-basis:100%}
#ecDone .ec-dact .btn.soft{flex:1 1 calc(50% - 4px)}
#ecDone .ec-dact .btn{gap:8px}
@media (max-height:760px){.ec-done .ec-dbox{gap:6px;padding:18px 20px 18px}}
/* cancelling a takeaway order never collected (banner of the ticket, « Remise au client » sheet) */
.ece-cord .ece-cx{flex:none;height:34px;padding:0 12px;font-size:13px}
.ece-cord .ece-cx.danger,.ece-cxb.danger{background:var(--bad);color:#fff;border-color:var(--bad)}
.ece-cxb{margin-top:8px;color:var(--bad)}
/* a short landscape screen (Sunmi in Chrome with its address bar, ~600 px high): the whole pay sheet fits, keypad included, nothing hidden
   under « Paiement accepté » (Marceau 2026-11-22, photo of Casa's till) */
@media (min-width:760px) and (max-height:720px){
  .sheet.ec-sheet:has(.ec-paysh){max-height:calc(100% - 16px)}
  .sheet.ec-sheet:has(.ec-paysh) .sheet-body{padding-top:2px;padding-bottom:12px}
  .ec-paysh{gap:8px}
  .ec-paysh .ec-due{font-size:32px!important}
  .ec-paysh .ec-pm{flex-direction:row;justify-content:center;gap:8px;padding:6px 10px;border-radius:14px}
  .ec-paysh .ec-pm>span{width:28px;height:28px}
  .ec-paysh .ec-pm .ico{width:16px;height:16px}
  .ec-paysh .ec-split{padding:5px 8px 5px 12px}
  .ec-paysh .ec-k{height:clamp(34px,calc((100dvh - 390px) / 5),46px)}
  .ec-paysh .ec-keys{gap:5px}
  .ec-paysh .ec-payb{height:52px!important}
}
