/* Açaiteria (v35) — Pedidos online no caixa. Ver scripts/online.js. */
.onl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onl-faixa { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1500; width: min(620px, calc(100vw - 24px)); background: #34104d; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(38,18,56,.3); animation: onl-entra .3s ease-out; }
@keyframes onl-entra { from { transform: translate(-50%, -20px); opacity: 0; } }
.onl-sino { width: 40px; height: 40px; border-radius: 12px; background: #f59e0b; color: #261238; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onl-faixa__t { flex: 1 1 auto; min-width: 0; }
.onl-faixa__t b, .onl-faixa__t small { display: block; }
.onl-faixa__t small { color: #e2d3f2; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onl-faixa__b { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: #fff; color: #261238; font-weight: 700; flex-shrink: 0; }
.onl-botao { position: fixed; right: 16px; bottom: 16px; z-index: 1400; min-height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: #34104d; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(38,18,56,.3); }
.onl-botao--novo { background: #7c2fcf; animation: onl-pulsa 1.6s ease-in-out infinite; }
@keyframes onl-pulsa { 50% { box-shadow: 0 0 0 8px rgba(124,47,207,.25); } }
.onl-n { min-width: 22px; height: 22px; border-radius: 11px; background: #f59e0b; color: #261238; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.onl-n--and { background: #fff; color: #34104d; }
.onl-fundo { position: fixed; inset: 0; background: rgba(38,18,56,.35); z-index: 1490; }
.onl-painel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; color: #261238; z-index: 1500; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(38,18,56,.2); }
.onl-cab { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #eee6f4; }
.onl-cab h2 { margin: 0; font-family: var(--f-display, Poppins, sans-serif); font-size: 1.15rem; flex: 1; }
.onl-tag { font-size: .75rem; font-weight: 700; background: #fef3c7; color: #7a4a00; padding: 3px 10px; border-radius: 20px; }
.onl-x { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; color: #5d4a6e; }
.onl-corpo { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.onl-vazio { text-align: center; color: #5d4a6e; padding: 30px 10px; }
.onl-card { border: 1px solid #e4d9ee; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.onl-card--novo { border: 2px solid #f59e0b; }
.onl-card__topo { display: flex; align-items: baseline; gap: 8px; }
.onl-tipo { font-size: .7rem; font-weight: 700; color: #fff; background: #261238; padding: 2px 8px; border-radius: 6px; }
.onl-tipo--ret { background: #7c2fcf; }
.onl-ha { margin-left: auto; font-size: .8rem; color: #5d4a6e; }
.onl-itens { font-size: .9rem; line-height: 1.45; }
.onl-obs { color: #7a4a00; }
.onl-sub { font-size: .8rem; color: #5d4a6e; }
.onl-linha { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.onl-botoes { display: flex; gap: 8px; }
.onl-recusar { min-height: 46px; border: 1px solid #f3c7cc; background: #fff; color: #b91c1c; font-weight: 600; }
.onl-aceitar { flex: 1; min-height: 46px; background: #15803d; border-color: #15803d; color: #fff; font-weight: 700; }
.onl-aceitar:hover { background: #166534; color: #fff; }
.onl-rot { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: #5d4a6e; text-transform: uppercase; }
.onl-card--and { flex-direction: row; align-items: center; gap: 10px; }
.onl-senha { font-family: var(--f-display, Poppins, sans-serif); font-weight: 800; font-size: 1.35rem; }
.onl-and { flex: 1; min-width: 0; font-size: .9rem; }
.onl-tot { font-size: .9rem; white-space: nowrap; }
.onl-et { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-top: 2px; }
.onl-novo { background: #dbe6fd; color: #1d4ed8; }
.onl-prep { background: #fde9cc; color: #9a3412; }
.onl-ok { background: #d6f0de; color: #14532d; }
.onl-saiu { background: #dbe6fd; color: #1d4ed8; }
.onl-fim, .onl-pago { background: #f1eaf7; color: #5d4a6e; }
.onl-receber { min-height: 40px; padding: 0 12px; background: #7c2fcf; border-color: #7c2fcf; color: #fff; font-weight: 700; }
.onl-receber:hover { background: #6b21a8; color: #fff; }
.onl-pe { padding: 12px 16px; border-top: 1px solid #eee6f4; font-size: .8rem; color: #5d4a6e; }
.onl-modal { z-index: 2100; }
@media print { .onl { display: none !important; } }

/* v37 — cupom de entrega */
.onl-imp { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; background: #f7f2fb; border-radius: 10px; padding: .55rem .75rem; margin: 0; cursor: pointer; }
.onl-imp input { width: 1.1rem; height: 1.1rem; accent-color: #6b21a8; flex-shrink: 0; }
.onl-imprimir { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid #d9cbe6; background: #fff; color: #4a2a66; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onl-imprimir:hover { background: #f7f2fb; }
.onl-imprimir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* a janela "Imprimir pedido" (pedidos.css) abre por cima do painel */
.acp-modal.acp-modal--topo { z-index: 2100; }

/* v55: botão "Pedidos online" na barra de cima + "Saiu para entrega" */
.onl-topo { margin-left: auto; margin-right: .75rem; display: flex; align-items: center; }
.onl-topo:empty { display: none; }
.onl-topo__b { min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid #ddd0ea; background: #fff; color: #34104d; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .45rem; white-space: nowrap; cursor: pointer; }
.onl-topo__b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.onl-topo__b:hover, .onl-topo__b:focus-visible, .onl-topo__b--on { background: #f3e8ff; border-color: #7c2fcf; }
.onl-topo__b:focus-visible { outline: 2px solid #7c2fcf; outline-offset: 2px; }
.onl-topo__b--novo { background: #7c2fcf; border-color: #7c2fcf; color: #fff; animation: onl-pulsa 1.6s ease-in-out infinite; }
.onl-topo__b--novo:hover, .onl-topo__b--novo:focus-visible { background: #6b21a8; border-color: #6b21a8; }
@media (max-width: 576px) { .onl-topo { margin-right: .4rem; } .onl-topo__t { display: none; } .onl-topo__b { padding: 0 .7rem; } }
.btn.onl-saiu-b { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 600; white-space: nowrap; }
.btn.onl-saiu-b:hover, .btn.onl-saiu-b:focus-visible { background: #1e40af; color: #fff; }
.onl-card--and:has(.onl-saiu-b) { flex-wrap: wrap; }
.onl-card--and .onl-saiu-b { order: 5; flex: 1 1 100%; min-height: 40px; }
/* v55: a faixa de pedido novo fica logo abaixo da barra de cima (não cobre o botão) */
.onl-faixa { top: calc(var(--topbar, 64px) + 8px); }
