/* ── F5.11 чанк 6: служебный кластер (было inline <style> index.html) ── */
/* ══ служебное ══ */
.toasts{
  position: fixed;
  top: calc(74px + env(safe-area-inset-top));
  right: 18px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Keep short-lived feedback clear of the staff menu controls on desktop. */
@media (min-width: 821px) {
  html[data-staff-role] body :is(#menuView, #deliveryView) .menu-head ~ #toasts,
  html[data-staff-role] body #toasts {
    top: auto;
    right: 24px;
    bottom: 24px;
  }
}
.toast{
  background: var(--esp);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 9px;
  align-items: center;
  animation: tin var(--motion-duration-state) var(--motion-ease-standard) both;
  max-width: 330px;
}
.toast.out{
  animation: tout var(--motion-duration-micro) var(--motion-ease-standard) forwards;
}
@keyframes tin{
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tout{
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}
#fx{
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mbonus{
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 94;
  background: var(--esp);
  color: var(--cream);
  border-radius: 999px;
  padding: 13px 24px;
  font: 700 14px "Unbounded", "Golos Text", sans-serif;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 40px -10px rgba(16, 20, 24, 0.6);
  transition: opacity .25s, transform .25s;
}
body.is-cashier .cashier{
  max-width: 1100px;
}
body.is-cashier .scan{
  gap: 40px;
}
body.is-cashier .cust .info{
  min-width: 280px;
}
body.is-cashier .cust .acts{
  min-width: 260px;
}
/* Responsive wrap/rail/panel layout is owned by views.js (Layer 2). */
@media (max-width: 640px){.topbar{
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 14px;
    padding-right: 14px;
  }
.brand b{
    font-size: 15px;
    white-space: nowrap;
  }



}
@media (max-width: 360px){.brand small{
    display: none;
  }



}
.cartItem .qty button{
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--cart-qty-bg, #E7ECF0);
  font-weight: 700;
  position: relative;
  display: grid;
  place-items: center;
  justify-content: center;
  border: var(--cart-qty-border, 1.5px solid var(--line, #D8DFE4));
  color: var(--cart-qty-color, var(--ink, #101418));
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.cartItem .qty button::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
}
@keyframes pulse-hint{
  0% {
    box-shadow: 0 0 0 0 rgba(232, 161, 58, 0.7);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(232, 161, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 161, 58, 0);
  }
}
.mbonus .mb-free{
  background: linear-gradient(120deg, #f3e3ce, #e4c9a5);
  color: #4a3100;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(228, 201, 165, 0.4);
  animation: freePulse 2.2s infinite;
}
@keyframes freePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

.pushHint{
  position: fixed;
  top: calc(env(safe-area-inset-top) + 70px);
  right: 14px;
  background: #e8a13a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  z-index: 95;
  animation: tin 0.4s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  max-width: calc(100vw - 28px);
}
.pushHint::before{
  content: "";
  position: absolute;
  top: -5px;
  right: var(--ax, 32px);
  width: 12px;
  height: 12px;
  background: #e8a13a;
  transform: rotate(45deg);
  border-radius: 3px;
}
.demoBtn.glow{
  border: 2px dashed #e8a13a;
  color: #b26a05;
  background: #fff6e5;
  animation: glowPulse 1.5s infinite;
}
@keyframes glowPulse{

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 161, 58, 0.5);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(232, 161, 58, 0);
  }
}
.freeBanner{
  margin: 8px 0 2px;
  background: linear-gradient(120deg, #f3e3ce, #e4c9a5);
  color: #4a3100;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(200, 155, 106, 0.7);
  animation: rise 0.3s both;
}
.chips button[data-armed="1"]{
  border-color: #b3372b;
  color: #b3372b;
  font-weight: 800;
}
.deliveryView{
  display: none;
}
.deliveryView.active{
  display: block;
}
.cartItem .qty{
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.checkoutForm{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.checkout-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line, #D8DFE4);
  border-radius: 14px;
  background: var(--card, #FFFFFF);
}
.checkout-section h4{
  color: var(--ink, #101418);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.checkout-section-hint{
  color: var(--soft, #586470);
  font-size: 12px;
  line-height: 1.4;
}
.checkoutForm label{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #101418);
}
.checkoutForm input,
.checkoutForm select,
.checkoutForm textarea {
  width: 100%;
  box-sizing: border-box;
}
.checkoutForm input,
.checkoutForm select,
#cartPanel input:not([type="checkbox"]),
#cartPanel select,
#cartPanel textarea {
  border: var(--modal-input-border, 1.5px solid var(--line));
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 16px;
  font-weight: 600;
  background: var(--modal-input-bg, #FFFFFF);
  color: var(--modal-input-color, var(--ink, #101418));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkoutForm textarea {
  border: var(--modal-input-border, 1.5px solid var(--line));
  font-weight: 600;
  color: var(--modal-input-color, var(--ink, #101418));
}
.checkoutForm input::placeholder,
.checkoutForm textarea::placeholder,
#cartPanel input::placeholder,
#cartPanel textarea::placeholder{
  color: var(--soft, #586470);
  opacity: 0.85;
  font-weight: 500;
}
.checkoutForm input:focus,
.checkoutForm select:focus,
.checkoutForm textarea:focus,
#cartPanel input:focus,
#cartPanel select:focus,
#cartPanel textarea:focus{
  outline: 2px solid var(--staff-focus-ring, #123A6B);
  outline-offset: 2px;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(192, 59, 42, 0.14);
}
.checkoutForm textarea {
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 16px;
  background: var(--modal-input-bg, #FFFFFF);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  min-height: 60px;
}
.cart-footer-bar #checkoutBtn:disabled{
  background: var(--line, #D8DFE4);
  border-color: var(--line, #D8DFE4);
  color: var(--soft, #586470);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}
.deliveryBanner{
  background: #fff6e5;
  border: 1.5px dashed #f2d9a5;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #6b4e0e;
  font-size: 13px;
  font-weight: 600;
}
.orderCard{
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.ocHead{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}
.ocTime{
  margin-left: auto;
  color: var(--soft);
  font-size: 12px;
}
.ocStatus{
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
}
.ocWho{
  font-weight: 700;
  margin-top: 6px;
}
.ocAddr,
.ocItems,
.ocComment{
  font-size: 13px;
  color: var(--soft);
  margin-top: 4px;
}
.ocTotal{
  margin-top: 8px;
  font-size: 14px;
}
.ocActs{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* ── F5.11b: подсветка-подсказка аватара (состояние; было residual Слоя 0,
снят: специфичность .ava.pulse-hint выше .ava и бренд-правил) ── */
.ava.pulse-hint{
  animation: pulse-hint 2s infinite;
  border: 2px solid #e8a13a;
  background: #e8a13a;
  color: #fff
}
/* F5.12: ступени токена (было critical-блоком Ф3.51) */
@media (max-width: 820px){
  :root {
    --topbar-h: 56px;
  }
}
@media (max-width: 480px){:root{
    --topbar-h: 60px;
  }



}
@media (min-width: 1024px){:root{
    --topbar-h: 96px;
  }



}
/* F5.12: база layout марки; габаритный FOUC-сброс остаётся в critical-блоке Слоя 0 */
.topbar .brand .mark{
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent
}
/* F5.14: база .wrap (была в critical-блоке,
перебивала медиа) */
.wrap{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 350px;
  gap: 22px;
  padding: 22px;
  max-width: 1480px;
  margin: 0;
  align-items: start
}
/* ── F5.13: база из растворённого большого <style> (порядок = прежний каскад) ── */
:root{
  --paper: #ffffff;
  --card: #ffffff;
  --panel: #f3f8fc;
  --ink: #101418;
  --soft: #586470;
  --line: #d8dfe4;
  --flame: #123a6b;
  --flame-d: #0b2446;
  --green: #186a43;
  --amber: #c2935f;
  --esp: #101418;
  --esp2: #1b2530;
  --cream: #ffffff;
  --r: 18px;
  --sh: 0 10px 30px -12px rgba(16, 20, 24, 0.18);
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  font:
    400 15px/1.5 "Golos Text",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }

  .toast.out {
    animation: none;
    opacity: 0;
  }

  .mbonus {
    transition: none;
  }

  .mbonus .mb-free,
  .demoBtn.glow,
  .ava.pulse-hint,
  .pushHint,
  .freeBanner {
    animation: none;
  }
}
