/* Zaika24 Store app — phone/tablet look for the store panel + live orders screen */
body.sapp { --st: #0F766E; }
body.sapp .ptop .brand-mark { background: var(--st); }
body.sapp .pnav a b { display: none; }
html.in-app .not-app { display: none !important; }

/* phones: tabs at the bottom like an app */
@media (max-width: 760px) {
  body.sapp { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.sapp .pnav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40; padding: 0 0 env(safe-area-inset-bottom); border: 0;
    border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0,0,0,.06); justify-content: space-around; gap: 0; }
  body.sapp .pnav a { flex: 1; text-align: center; padding: 7px 2px 8px; font-size: 11px; border: 0; border-top: 3px solid transparent; }
  body.sapp .pnav a b { display: block; font-size: 20px; line-height: 1.2; font-weight: 400; }
  body.sapp .pnav a.on { color: var(--st); border-color: var(--st); }
  body.sapp .pnav .pill { position: absolute; }
  body.sapp .pfoot { display: none; }
  body.sapp .ptop .who span { display: none; }
}

/* top bar of the orders screen */
.so-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.so-open { flex: 1 1 260px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #FEF2F2; border: 1px solid #FCA5A5; }
.so-open.on { background: #ECFDF5; border-color: #6EE7B7; }
.so-open b { display: block; }
.so-open small { color: var(--muted); }
.so-switch { position: relative; width: 54px; height: 30px; flex: none; }
.so-switch input { opacity: 0; width: 0; height: 0; }
.so-switch span { position: absolute; inset: 0; border-radius: 30px; background: #D1D5DB; transition: .2s; cursor: pointer; }
.so-switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.so-switch input:checked + span { background: #10B981; }
.so-switch input:checked + span::after { transform: translateX(24px); }
.so-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.so-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.so-stats b { display: block; font-size: 18px; }
.so-stats span { font-size: 11px; color: var(--muted); }
.soundbar { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px;
  background: #FEF3C7; color: #78350F; font: inherit; font-size: 22px; cursor: pointer; box-shadow: 0 0 0 2px #F59E0B inset; animation: sbpulse 1.6s infinite; }
.soundbar span { font-size: 14px; line-height: 1.35; }
@keyframes sbpulse { 50% { box-shadow: 0 0 0 4px #F59E0B inset; } }
.alertcard { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

/* order cards */
.ocard { border-left: 5px solid var(--line); }
.ocard.new { border-left-color: var(--brand); box-shadow: 0 0 0 2px rgba(233,80,74,.25); }
.ocard.cooking { border-left-color: #F59E0B; }
.ocard.ready { border-left-color: #10B981; }
.oc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.oc-head .num { font-size: 18px; font-weight: 800; }
.oc-items { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 6px; }
.oc-items .it { padding: 5px 0; font-size: 15px; }
.oc-items .it b { display: inline-block; min-width: 30px; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.oc-meta span { font-size: 12px; background: var(--bg, #f4f4f6); border-radius: 999px; padding: 3px 9px; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oc-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: 15px; }
.oc-timer { font-weight: 700; font-variant-numeric: tabular-nums; }
.oc-timer.late { color: var(--err, #DC2626); }
.oc-steps { display: flex; gap: 4px; margin: 10px 0 0; }
.oc-steps i { flex: 1; height: 5px; border-radius: 4px; background: #E5E7EB; }
.oc-steps i.on { background: #10B981; }

/* full-screen new-order alert */
.no-pop { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.72); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.no-pop[hidden] { display: none; }
.no-card { background: #fff; border-radius: 22px; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; padding: 18px 18px 16px; animation: noin .25s ease-out; }
@keyframes noin { from { transform: translateY(40px); opacity: .4; } }
.no-top { display: flex; justify-content: space-between; align-items: center; }
.no-top .tag { color: #fff; background: var(--brand); font-weight: 800; letter-spacing: .06em; font-size: 12px; padding: 5px 10px; border-radius: 8px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.no-amt { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.no-sub { color: var(--muted); font-size: 13px; }
.no-items { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 12px 0; max-height: 34vh; overflow: auto; }
.no-items .it { padding: 4px 0; font-size: 15px; }
.prep { margin: 4px 0 12px; }
.prep p { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.prep-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.prep-chips button { flex: 1 1 54px; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 4px; font: inherit; font-weight: 700; cursor: pointer; }
.prep-chips button.on { border-color: var(--st, #0F766E); background: #ECFDF5; color: var(--st, #0F766E); }
.no-accept { width: 100%; min-height: 56px; font-size: 18px; background: #16A34A !important; border-color: #16A34A !important; }
.no-more { display: flex; gap: 8px; margin-top: 8px; }
.no-more .btn { flex: 1; }
