/* acompanhar.css — o cliente acompanha o pedido no cardápio (js/acompanhar.js).
   Cores próprias (vale em qualquer tema); a cor da loja (--primary) só nos detalhes. */
.ac-pil { position: fixed; z-index: 900; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 20px); padding: 4px; border-radius: 999px; background: rgba(22, 16, 12, .92); color: #fff; box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: ac-entra .4s cubic-bezier(.2, .9, .3, 1.25); font-family: "DM Sans", system-ui, sans-serif; }
.ac-pil[hidden] { display: none; }
/* no pé da tela (o topo tem os botões do tema e do idioma); com a sacola aberta, fica em cima dela */
body:has(#cart-bar:not([hidden])) .ac-pil { bottom: calc(88px + env(safe-area-inset-bottom)); }
.ac-pil.pula { animation: ac-pula .6s cubic-bezier(.2, .9, .3, 1.4); }
.ac-pil-b { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 14px 7px 12px; border-radius: 999px; cursor: pointer; font-size: .88rem; }
.ac-pil-b:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ac-pil-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-pil-t b { font-weight: 800; }
.ac-pil-t em { font-style: normal; opacity: .75; }
.ac-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 0 0 rgba(255, 179, 71, .6); animation: ac-dot 1.6s ease-out infinite; }
.ac-pil.e-preparo .ac-dot { background: #5aa9ff; box-shadow: 0 0 0 0 rgba(90, 169, 255, .6); }
.ac-pil.e-pronto .ac-dot, .ac-pil.e-saiu .ac-dot { background: #4cd17a; box-shadow: 0 0 0 0 rgba(76, 209, 122, .6); }
.ac-pil.e-concluido .ac-dot { background: #4cd17a; animation: none; }
.ac-pil.e-cancelado .ac-dot { background: #ff6b6b; animation: none; }
.ac-mais { flex: none; margin-left: -6px; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .75rem; font-weight: 800; }
.ac-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; cursor: pointer; }
@keyframes ac-entra { from { transform: translate(-50%, 24px); opacity: 0; } }
@keyframes ac-pula { 40% { transform: translate(-50%, 0) scale(1.08); } }
@keyframes ac-dot { to { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); } }

/* passo a passo */
.ac-folha { border: 0; padding: 0; margin: auto; width: min(420px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); border-radius: 24px; background: #fff; color: #1f1611; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); font-family: "DM Sans", system-ui, sans-serif; overflow: auto; }
.ac-folha::backdrop { background: rgba(15, 10, 6, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ac-folha[open] { animation: ac-sobe .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes ac-sobe { from { transform: translateY(30px); opacity: 0; } }
.ac-caixa { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 18px; }
.ac-fechar { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3eee8; color: #1f1611; font-size: 1.3rem; cursor: pointer; }
.ac-topo { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.ac-heroi { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-size: 1.9rem; background: color-mix(in srgb, var(--primary, #b8452c) 12%, #fff); }
.ac-caixa.e-preparo .ac-heroi { animation: ac-mexe 2.4s ease-in-out infinite; }
.ac-caixa.e-saiu .ac-heroi { animation: ac-anda 1.6s ease-in-out infinite; }
@keyframes ac-mexe { 50% { transform: rotate(-6deg) scale(1.04); } }
@keyframes ac-anda { 50% { transform: translateX(4px); } }
.ac-topo small { display: block; font-size: .8rem; color: #7a6d63; }
.ac-topo h2 { margin: 2px 0 0; font-family: var(--font-display, Georgia, serif); font-size: 1.45rem; line-height: 1.15; color: #1f1611; }
.ac-prev { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 10px; padding: 12px 16px; border-radius: 16px; background: #f6f2ec; }
.ac-prev span { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a6d63; }
.ac-prev b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.ac-prev small { grid-column: 1 / -1; color: #7a6d63; font-size: .85rem; }
.ac-passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ac-passos li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; color: #a89d93; }
.ac-passos li:last-child { padding-bottom: 0; }
.ac-passos li::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: #ebe4db; }
.ac-passos li:last-child::before { display: none; }
.ac-passos li.feito::before { background: var(--primary, #b8452c); }
.ac-passos i { flex: none; position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd3c8; background: #fff; }
.ac-passos li.feito i { border-color: var(--primary, #b8452c); background: var(--primary, #b8452c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ac-passos li.agora i { border-color: var(--primary, #b8452c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary, #b8452c) 45%, transparent); animation: ac-agora 1.5s ease-out infinite; }
.ac-passos li.agora i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary, #b8452c); }
@keyframes ac-agora { to { box-shadow: 0 0 0 10px transparent; } }
.ac-passos li.feito, .ac-passos li.agora { color: #1f1611; }
.ac-passos div { display: flex; flex-direction: column; }
.ac-passos b { font-size: .98rem; }
.ac-passos small { font-size: .82rem; color: #7a6d63; min-height: 1em; }
.ac-cancel { margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff0f0; color: #a32020; font-weight: 600; }
.ac-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #efe8df; }
.ac-rodape > span { font-weight: 800; font-size: 1.05rem; }
.ac-wa { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #1e9e52; color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; }
.ac-vivo { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 0; font-size: .78rem; color: #7a6d63; }
.ac-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #1e9e52; animation: ac-dot 1.8s ease-out infinite; box-shadow: 0 0 0 0 rgba(30, 158, 82, .5); }
@media (max-width: 520px) {
  .ac-folha { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .ac-folha[open] { animation-name: ac-sobe; }
}
@media (prefers-reduced-motion: reduce) { .ac-pil, .ac-pil.pula, .ac-dot, .ac-heroi, .ac-passos li.agora i, .ac-vivo i, .ac-folha[open] { animation: none; } }
