/* Comanda do perfil: ação central na navegação e resumo da seleção em uma folha. */
.comanda-launch{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;border:0;background:transparent;color:var(--p-text);font:inherit;cursor:pointer;overflow:visible;-webkit-tap-highlight-color:transparent}
.comanda-orb{position:relative;display:grid;place-items:center;flex:none;width:68px;height:68px;box-sizing:border-box;border:4px solid var(--card);border-radius:50%;background:var(--p);color:var(--on-p);box-shadow:0 8px 20px -8px color-mix(in srgb,var(--p) 65%,transparent);transition:transform .18s}
.comanda-orb>svg{width:29px;height:29px;flex:none}
.comanda-launch:hover .comanda-orb{transform:translateY(-2px)}
.comanda-launch:active .comanda-orb{transform:scale(.94)}
.comanda-launch:focus-visible{outline:2px solid var(--p-text);outline-offset:5px;border-radius:18px}
.comanda-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;box-sizing:border-box;border:2px solid var(--card);border-radius:999px;background:var(--ink);color:var(--bg);font-size:.7rem;font-weight:800;line-height:1}
.comanda-badge[hidden]{display:none}
.comanda-caption{flex:none;font-size:.65rem;font-weight:750;line-height:1.2;color:var(--p-text)}
.up-comanda-dock{position:fixed;left:50%;bottom:1.1rem;transform:translateX(-50%);z-index:35}
.up-comanda-dock .comanda-caption{padding:3px 8px;border-radius:999px;background:var(--card)}
@media(max-width:900px){
  body.has-clnav .up-comanda-dock{display:none}
  nav.cl-profile-nav.has-comanda{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px minmax(0,1fr) minmax(0,1fr);overflow:visible}
  nav.cl-profile-nav.has-comanda>.comanda-launch{flex:0 0 72px;min-width:0;justify-content:flex-end;gap:3px;padding:0 0 8px!important;overflow:visible}
  nav.cl-profile-nav.has-comanda .comanda-orb{margin-top:-28px;overflow:visible;max-width:none}
  nav.cl-profile-nav.has-comanda .comanda-caption{font-size:.63rem!important;line-height:1.2}
  nav.cl-profile-nav.has-comanda .comanda-badge{overflow:visible;line-height:1;font-size:.7rem!important}
}
.comanda-pop .comanda-orb>svg{animation:comanda-drop .48s ease-out}
.comanda-pop .comanda-badge{animation:comanda-count .48s ease-out}
@keyframes comanda-drop{0%{transform:translateY(-9px);opacity:.4}55%{transform:translateY(3px)}100%{transform:translateY(0);opacity:1}}
@keyframes comanda-count{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
html[data-theme] body[data-brand="aura"] dialog.comanda-sheet{position:fixed;inset:auto 0 0;width:min(100%,520px);max-height:85dvh;margin:0 auto;padding:0;border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;background:var(--bg);color:var(--ink);box-shadow:0 -20px 70px -25px rgba(0,0,0,.35);overflow:auto;overscroll-behavior:contain}
html[data-theme] body[data-brand="aura"] dialog.comanda-sheet::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(3px)}
html[data-theme] body[data-brand="aura"] dialog.comanda-sheet.is-scheduling{height:92dvh;max-height:92dvh}
.comanda-sheet.is-scheduling .comanda-panel{min-height:100%;padding-bottom:max(.8rem,env(safe-area-inset-bottom));animation:ticket-expand .22s ease-out}
.comanda-sheet.is-scheduling .comanda-sheet-head{position:sticky;top:0;z-index:3;padding:.5rem 0;background:var(--bg);margin-bottom:.75rem}
.comanda-schedule-back{display:inline-flex;align-items:center;min-height:40px;padding:.5rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--p-text);font:inherit;font-size:.8rem;font-weight:650;cursor:pointer}
.comanda-schedule-back:focus-visible{outline:2px solid var(--p-text);outline-offset:3px}
.comanda-schedule-summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem 0;margin-bottom:.2rem;font-size:.8rem;color:var(--mut)}
.comanda-schedule-summary b{color:var(--ink);text-align:right}
html[data-theme] body[data-brand="aura"] dialog.comanda-sheet .comanda-schedule-host .card{padding:1rem;margin:0 0 .8rem;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:none;overflow-wrap:anywhere}
.comanda-schedule-host h2{font-size:1.05rem;color:var(--ink)}
.comanda-schedule-host h3{font-size:.95rem;color:var(--ink)}
.comanda-schedule-host .cal2{margin-bottom:1rem}
.comanda-schedule-host .cal2-h{gap:.4rem}.comanda-schedule-host .cal2-h b{font-size:.95rem;text-align:center}
.comanda-schedule-host .cal2-nav{flex:none;width:38px;height:38px}
.comanda-schedule-host .cal2-d{font-size:.85rem;border-radius:10px}
.comanda-schedule-host .cal2-w span{font-size:.61rem;letter-spacing:0}
.comanda-schedule-host .hr-pill{font-size:.9rem;height:44px;border-radius:12px}
.comanda-schedule-host #sum:not(:has(#ok)){display:none}
.comanda-schedule-host #sum p{font-size:.82rem;line-height:1.6;margin:.65rem 0}
html[data-theme] body[data-brand="aura"] dialog.comanda-sheet .comanda-schedule-host #ok{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;height:auto;padding:.8rem 1rem;border:0;border-radius:14px;background:var(--p);color:var(--on-p);font-size:.9rem;font-weight:750;line-height:1.4;white-space:normal;box-shadow:none}
@keyframes ticket-expand{from{transform:translateY(24px);opacity:.7}to{transform:translateY(0);opacity:1}}
.comanda-panel{padding:1.4rem 1.25rem 0}
.comanda-sheet-head{display:grid;grid-template-columns:48px minmax(0,1fr) 34px;gap:.75rem;align-items:center;margin-bottom:1.25rem}
.comanda-sheet-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--soft);color:var(--p-text)}
.comanda-sheet-head h2{margin:.1rem 0;font-size:1.3rem;line-height:1.3;letter-spacing:-.03em;color:var(--ink)}
.comanda-sheet-kicker{margin:0;font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--p-text)}
.comanda-sheet-count{font-size:.75rem;color:var(--mut)}
.comanda-sheet-close,.comanda-item-remove{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink);cursor:pointer}
.comanda-sheet-close:focus-visible,.comanda-item-remove:focus-visible{outline:2px solid var(--p-text);outline-offset:3px}
.comanda-sheet-items{list-style:none;margin:0;padding:0;border-top:1px dashed var(--line-2)}
.comanda-item{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;gap:.75rem;align-items:center;padding:1rem 0;border-bottom:1px dashed var(--line-2)}
.comanda-item-info{min-width:0;overflow-wrap:anywhere}
.comanda-item-info>b{display:block;font-size:.9rem;line-height:1.4;color:var(--ink)}
.comanda-item-info>span{display:block;margin-top:.3rem;font-size:.75rem;line-height:1.4;color:var(--mut)}
.comanda-item-price{text-align:right;color:var(--ink)}
.comanda-item-price b{font-size:.85rem;white-space:nowrap}
.comanda-item-price small{display:block;margin-bottom:.15rem;color:var(--mut);font-size:.63rem}
.comanda-sheet-total{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:1.2rem 0 .4rem;color:var(--ink)}
.comanda-sheet-total>span{font-size:.85rem}.comanda-sheet-total>b{font-size:1.35rem;letter-spacing:-.03em}
.comanda-sheet-note{margin:.35rem 0 .8rem;font-size:.76rem;line-height:1.5;color:var(--mut)}
.comanda-sheet-footer{position:sticky;bottom:0;padding:.9rem 0 max(1.2rem,env(safe-area-inset-bottom));background:var(--bg)}
html[data-theme] body[data-brand="aura"] .comanda-sheet .comanda-sheet-continue{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;height:auto;padding:.85rem 1rem;border:0;border-radius:15px;background:var(--p);color:var(--on-p);font-weight:750;box-shadow:none;white-space:normal;line-height:1.4}
.comanda-sheet-empty{text-align:center;padding:1.2rem .5rem 1.5rem}
.comanda-sheet-empty>span{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;margin:0 auto 1rem;background:var(--soft);color:var(--p-text)}
.comanda-sheet-empty h3{margin:0 0 .5rem;font-size:1.05rem;color:var(--ink)}
.comanda-sheet-empty p{margin:0;font-size:.85rem;line-height:1.6;color:var(--mut)}
@media(max-width:360px){.comanda-panel{padding:1.2rem 1rem 0}.comanda-item{grid-template-columns:minmax(0,1fr) 34px;gap:.4rem .6rem}.comanda-item-info{grid-column:1;grid-row:1}.comanda-item-price{grid-column:1;grid-row:2;text-align:left}.comanda-item-remove{grid-column:2;grid-row:1 / span 2}}
@media(prefers-reduced-motion:reduce){.comanda-orb{transition:none}.comanda-pop .comanda-orb>svg,.comanda-pop .comanda-badge,.comanda-sheet.is-scheduling .comanda-panel{animation:none}}
