/* Mobile-only responsive shell. Desktop/PWA behavior stays on the existing CSS. */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-table-picker {
  display: none;
}

@media (max-width: 768px) {
  html,
  body,
  #root {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] {
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    z-index: 80 !important;
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.18) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div:first-child,
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div:last-child {
    display: none !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div {
    width: auto !important;
    min-width: max-content !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] a,
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] button {
    min-width: 58px !important;
    height: 52px !important;
    padding: 6px 8px !important;
    border-radius: 14px !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main {
    width: 100% !important;
    height: calc(100dvh - 64px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main {
    padding-bottom: 42dvh !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child {
    padding: 10px 12px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child h1 {
    font-size: 16px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:nth-child(2) {
    min-height: 48px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:nth-child(2) button {
    padding: 12px 14px !important;
    font-size: 10px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"] {
    padding: 12px !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"] {
    padding-bottom: calc(42dvh + 76px) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"] > div[class*="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #root [id^="table-card-"] {
    min-height: 86px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  #root [id^="table-card-"] h3 {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  #root [id^="table-card-"] [class*="text-[19px]"] {
    font-size: 16px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    display: none !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    width: 100% !important;
    height: 42dvh !important;
    min-height: 280px !important;
    max-height: 430px !important;
    border-left: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 22px 22px 0 0 !important;
    z-index: 70 !important;
    overflow: hidden !important;
    box-shadow: 0 -18px 38px rgba(15, 23, 42, 0.18) !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] > div:nth-child(2) {
    min-height: 54px !important;
    padding: 7px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] > div:nth-child(2) button {
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] > div:first-child {
    display: none !important;
  }

  #root footer[class*="h-12"] {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"] > div[class*="grid"] {
    grid-template-columns: 1fr !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    height: 45dvh !important;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    z-index: 130;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #1c318c;
    box-shadow: 0 10px 24px rgba(28, 49, 140, 0.28);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 115;
    display: none;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
  }

  body.mobile-menu-open .mobile-menu-overlay {
    display: block;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] {
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(290px, 82vw) !important;
    height: 100dvh !important;
    padding: calc(64px + env(safe-area-inset-top)) 12px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
    box-shadow: 18px 0 34px rgba(15, 23, 42, 0.24) !important;
    z-index: 120 !important;
  }

  body.mobile-menu-open #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] {
    transform: translateX(0) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div:first-child,
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div:last-child {
    display: flex !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding-inline: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] a,
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-pos-sidebar"] button {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main {
    height: 100dvh !important;
    padding-top: calc(56px + env(safe-area-inset-top)) !important;
    padding-bottom: 0 !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main::before {
    content: "Orders";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-top));
    z-index: 100;
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top) 14px 0 62px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    top: calc(116px + env(safe-area-inset-top)) !important;
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 70 !important;
  }

  body:has(#root footer[class*="h-12"])
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main {
    padding-bottom: 0 !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 180 !important;
    height: calc(74px + env(safe-area-inset-bottom)) !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    flex-wrap: nowrap !important;
    background: #fff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.12) !important;
    pointer-events: auto !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child {
    display: none !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:last-child {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 181 !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child input {
    width: 100% !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 182 !important;
    touch-action: manipulation !important;
    -webkit-user-select: text !important;
    user-select: text !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:last-child > div {
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:last-child > div > div,
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:last-child > div > div > div:first-child {
    width: 100% !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child input {
    min-height: 52px !important;
    padding-block: 14px !important;
    font-size: 15px !important;
  }

  #root #search-input,
  #root #search-input:focus,
  #root #search-input:focus-visible {
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    caret-color: auto !important;
  }

  .mobile-search-results-closed {
    display: none !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child [class*="top-full"] {
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    max-height: min(56dvh, 360px) !important;
    box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.22) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child [class*="bottom-full"] {
    bottom: calc(100% + 10px) !important;
    max-height: min(56dvh, 360px) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:nth-child(2),
  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"],
  #root footer[class*="h-12"] {
    display: none !important;
  }

  body.mobile-order-panel-collapsed
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    display: none !important;
  }

  body.mobile-order-panel-collapsed
    #root aside[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"] {
    display: none !important;
  }

  body.mobile-order-panel-collapsed
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:nth-child(2) {
    display: flex !important;
    position: fixed !important;
    top: calc(108px + env(safe-area-inset-top)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 96 !important;
    min-height: 50px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06) !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div:nth-child(2) {
    display: flex !important;
    position: fixed !important;
    top: calc(108px + env(safe-area-inset-top)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 96 !important;
    min-height: 50px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06) !important;
  }

  body.mobile-order-panel-collapsed
    #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div[class*="overflow-y-auto"] {
    display: block !important;
    padding-top: 66px !important;
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] {
    display: block !important;
    padding-top: 66px !important;
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div[class*="grid"]:has([id^="table-card-"]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div[class*="grid"],
  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div:has(> button),
  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div:has(> div > button) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div[class*="grid"] > *,
  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div:has(> button) > *,
  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div:has(> div > button) > * {
    min-width: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div[class*="grid"] button,
  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] > div[class*="overflow-y-auto"] > div[class*="grid"] [role="button"] {
    min-height: 76px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] [id^="table-card-"] {
    min-height: 96px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  body.mobile-order-panel-collapsed
    #root main > div[class*="flex"][class*="flex-col"] [id^="table-card-"] h3 {
    font-size: 12px !important;
    line-height: 16px !important;
    overflow-wrap: anywhere !important;
  }

  .mobile-table-picker {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: flex-end;
  }

  .mobile-table-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
  }

  .mobile-table-picker__sheet {
    position: relative;
    width: 100%;
    max-height: 78dvh;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
  }

  .mobile-table-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-table-picker__head strong,
  .mobile-table-picker__head span {
    display: block;
  }

  .mobile-table-picker__head strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
  }

  .mobile-table-picker__head span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-table-picker__head button {
    border-radius: 12px;
    background: #f1f5f9;
    padding: 9px 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-table-picker__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: calc(78dvh - 78px);
    overflow-y: auto;
    padding: 14px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-table-picker__table {
    min-height: 74px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .mobile-table-picker__table.is-free {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
  }

  .mobile-table-picker__table strong,
  .mobile-table-picker__table span {
    display: block;
  }

  .mobile-table-picker__table strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-table-picker__table span {
    margin-top: 8px;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-table-picker__table.is-busy {
    position: relative;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fb923c;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.16);
  }

  .mobile-table-picker__table.is-busy::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 3px #fed7aa;
  }

  .mobile-table-picker__table.is-busy span {
    color: #f97316;
  }

  .mobile-table-picker__empty {
    grid-column: 1 / -1;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child {
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 95 !important;
    display: flex !important;
    width: 100% !important;
    height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 6px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child > h1 {
    display: none !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(260px, calc(100vw - 110px)) !important;
    gap: 8px !important;
  }

  #root > div[class*="h-screen"][class*="bg-pos-bg"][class*="font-sans"] > main > div[class*="flex"][class*="flex-col"][class*="h-full"] > div:first-child > div:first-child button {
    min-height: 38px !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  #root aside.mobile-cart-panel[class*="bg-white"][class*="flex-col"],
  #root footer.mobile-cart-panel {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease !important;
    will-change: transform !important;
  }

  body.mobile-order-panel-collapsed
    #root aside.mobile-cart-panel[class*="bg-white"][class*="flex-col"][class*="flex-shrink-0"],
  body.mobile-order-panel-collapsed
    #root footer.mobile-cart-panel {
    display: flex !important;
    transform: translateX(calc(100% + 18px)) !important;
    opacity: 0.98 !important;
    pointer-events: none !important;
    z-index: 70 !important;
  }

  body:not(.mobile-order-panel-collapsed)
    #root aside.mobile-cart-panel[class*="bg-white"][class*="flex-col"],
  body:not(.mobile-order-panel-collapsed)
    #root footer.mobile-cart-panel {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
