:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --panel: #ffffff;
  --panel-2: #eef4ef;
  --text: #142017;
  --muted: #66756a;
  --line: #dce6df;
  --brand: #0d6b43;
  --brand-2: #144f34;
  --danger: #b3261e;
  --shadow: 0 16px 38px rgba(20, 32, 23, .1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101411;
  --panel: #171d19;
  --panel-2: #202820;
  --text: #eef7ef;
  --muted: #a8b8ab;
  --line: #2c392f;
  --brand: #45bf7f;
  --brand-2: #72d99e;
  --danger: #ffb4ab;
  --shadow: 0 16px 38px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.1;
}

.brand p,
.pane-head p,
small,
.empty {
  color: var(--muted);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  width: 46px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  transition: transform .16s ease;
}

.theme-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(360px, 1fr) minmax(300px, 380px);
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 76px);
  min-height: 0;
  overflow-x: clip;
}

.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.store-pane,
.menu-pane,
.cart-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.pane-head {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.pane-head h2 {
  font-size: 18px;
}

.search-box,
.field {
  display: grid;
  gap: 7px;
  padding: 14px 18px;
}

.search-box span,
.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.store-list,
.menu-list,
.cart-list {
  overflow: auto;
  padding: 10px;
}

.store-item {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--text);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 12px;
}

.store-item:hover,
.store-item.active,
.product-card:hover {
  background: var(--panel-2);
  border-color: var(--line);
}

.store-item b,
.cart-item b,
.product-card b {
  display: block;
  font-size: 14px;
}

.store-item small,
.cart-item small,
.product-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.store-item em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.store-item em.open {
  color: var(--brand);
}

.category-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.menu-search {
  flex: 0 0 auto;
  display: block;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.menu-search input {
  width: min(280px, 100%);
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
}

.category-tabs button,
.choice-grid button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  white-space: nowrap;
}

.category-tabs button.active,
.choice-grid button.active {
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  border-color: var(--brand);
  color: var(--brand-2);
}

.menu-list {
  flex: 1 1 auto;
  min-height: 240px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  min-height: 104px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
}

.product-image {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}

.product-image img,
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  display: grid;
  gap: 4px;
}

.product-copy em,
.cart-item em {
  color: var(--brand-2);
  font-style: normal;
  font-weight: 800;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button,
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.icon-button.wide {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.qty-control span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}

.qty-control.large button {
  width: 42px;
  height: 42px;
}

.danger {
  color: var(--danger) !important;
}

.checkout-box {
  border-top: 1px solid var(--line);
  padding-bottom: 14px;
}

.totals {
  display: grid;
  gap: 8px;
  padding: 8px 18px 16px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals span {
  color: var(--muted);
}

.totals .grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px;
}

.floating-cart {
  display: none;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  flex: 1;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-button.disabled {
  opacity: .5;
  pointer-events: none;
}

.quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.danger-button {
  border: 1px solid color-mix(in srgb, var(--danger) 52%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, var(--panel-2));
  color: var(--danger);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  opacity: .55;
  cursor: wait;
}

.message {
  margin: 10px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--brand-2);
}

.queue-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger) !important;
  font-weight: 800;
  line-height: 1.4;
}

.status-card {
  margin: 12px 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  display: grid;
  gap: 12px;
}

.status-card h3 {
  font-size: 16px;
}

.status-card p {
  color: var(--muted);
  line-height: 1.4;
}

.status-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.status-steps span {
  min-height: 34px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.status-steps span.active {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  color: var(--brand-2);
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.status-card .qr-card {
  width: min(300px, 100%);
}

.status-card .checkout-actions {
  padding: 0;
}

.order-status-page {
  min-height: 100vh;
  background: var(--bg);
}

.order-status-shell {
  width: min(760px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 28px 0;
}

.order-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.order-status-head h1 {
  font-size: 28px;
}

.order-status-head p {
  color: var(--muted);
  margin-top: 4px;
}

.eyebrow {
  margin: 0 0 6px !important;
  color: var(--brand-2) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.order-status-card {
  margin: 0;
  padding: 18px;
}

.order-status-card .qr-card {
  width: min(360px, 100%);
}

.pickup-mode {
  background: #101010;
}

.pickup-mode .order-status-shell {
  width: min(393px, 100vw);
  min-height: 100vh;
  padding: 0;
}

.pickup-mode .order-status-head {
  display: none;
}

.pickup-mode .order-status-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.pickup-screen {
  position: relative;
  overflow: hidden;
  width: min(393px, 100vw);
  min-height: 873px;
  margin: 0 auto;
  background: #ffffff;
  color: #202323;
  font-family: Arial, "Helvetica Neue", sans-serif;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.pickup-statusbar {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px 0 40px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pickup-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pickup-status-icons i {
  display: inline-block;
  font-style: normal;
}

.status-sync {
  width: 10px;
  height: 10px;
  border: 2px solid #666;
  border-left-color: transparent;
  border-radius: 50%;
}

.status-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #666;
  border-radius: 50%;
}

.status-wifi {
  width: 14px;
  height: 10px;
  border-top: 3px solid #666;
  border-radius: 50% 50% 0 0;
}

.status-signal {
  width: 13px;
  height: 11px;
  background:
    linear-gradient(to top, #666 0 4px, transparent 4px) 0 100% / 3px 11px no-repeat,
    linear-gradient(to top, #666 0 7px, transparent 7px) 5px 100% / 3px 11px no-repeat,
    linear-gradient(to top, #666 0 10px, transparent 10px) 10px 100% / 3px 11px no-repeat;
}

.status-battery {
  min-width: 22px;
  height: 13px;
  padding: 2px 2px 0;
  border: 1px solid #777;
  border-radius: 4px;
  color: #555;
  font-size: 7px;
  font-weight: 900;
  text-align: center;
  position: relative;
}

.status-battery::after {
  position: absolute;
  content: "";
  right: -4px;
  top: 4px;
  width: 2px;
  height: 5px;
  border-radius: 0 3px 3px 0;
  background: #777;
}

.pickup-topbar {
  position: relative;
  height: 84px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: start;
  padding: 30px 33px 0;
  font-size: 17px;
  text-align: center;
  z-index: 2;
}

.pickup-topbar strong {
  font-weight: 800;
  line-height: 1.05;
}

.pickup-back {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border-left: 3px solid #222728;
  border-bottom: 3px solid #222728;
  transform: rotate(45deg);
}

.pickup-heart {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 62px;
  height: 71px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  background: url("/fore-heart.svg") center / contain no-repeat;
}

.pickup-heart span {
  display: none;
}

.pickup-heart span,
.pickup-heart span::before,
.pickup-heart span::after {
  position: absolute;
  display: block;
  content: "";
}

.pickup-heart span {
  left: 18px;
  top: 10px;
  width: 22px;
  height: 32px;
  border: 3px solid #b63238;
  border-left-width: 0;
  border-bottom-width: 0;
  border-radius: 34px 34px 0 0;
  transform: rotate(45deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(182, 50, 56, .95) 4px 7px);
}

.pickup-heart span::before {
  left: -20px;
  top: 8px;
  width: 22px;
  height: 32px;
  border: 3px solid #b63238;
  border-right-width: 0;
  border-bottom-width: 0;
  border-radius: 34px 34px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(182, 50, 56, .95) 4px 7px);
}

.pickup-heart span::after {
  left: -5px;
  top: 29px;
  width: 6px;
  height: 23px;
  border-radius: 0 0 999px 999px;
  background: #b63238;
  transform: rotate(-45deg);
}

.pickup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 136px 27px 0;
}

.pickup-content h3 {
  width: 100%;
  margin-bottom: 44px;
  text-align: center;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 800;
}

.pickup-qr-wrap {
  position: relative;
  width: 205px;
}

.pickup-qr-wrap .qr-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.pickup-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px #ffffff;
}

.pickup-qr-logo::before,
.pickup-qr-logo::after {
  position: absolute;
  content: "";
  border: 3px solid #17884e;
}

.pickup-qr-logo::before {
  left: 10px;
  top: 4px;
  width: 17px;
  height: 30px;
  border-radius: 50%;
}

.pickup-qr-logo::after {
  left: 19px;
  top: 0;
  width: 2px;
  height: 39px;
  border-width: 0 3px 0 0;
  transform: rotate(8deg);
}

.pickup-code {
  margin-top: 17px;
  color: #747474;
  font-size: 13px;
  font-weight: 700;
}

.pickup-divider {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 39px 0 41px;
  color: #8b8b8b;
  font-size: 13px;
  font-style: normal;
}

.pickup-divider span {
  height: 1px;
  background: #cfcfcf;
}

.pickup-divider em {
  font-style: normal;
}

.pickup-outline-button {
  display: inline-flex;
  min-height: 44px;
  min-width: 184px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid #05714d;
  border-radius: 999px;
  background: #ffffff;
  color: #05714d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.pickup-outline-button:disabled {
  opacity: .45;
}

.pickup-actions {
  justify-content: center;
  padding-top: 14px;
}

.pickup-homebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 41px;
  display: grid;
  place-items: center;
  background: #000000;
}

.pickup-homebar span {
  width: 136px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.pickup-mode {
  background: #101411;
}

.pickup-mode .order-status-shell {
  width: min(430px, calc(100vw - 24px));
  min-height: 100vh;
  padding: 22px 0;
}

.pickup-mode .order-status-head {
  display: none;
}

.pickup-mode .order-status-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.pickup-screen.pickup-qr-only {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 20px 28px 19px;
  background: #ffffff;
  color: #222527;
  border-radius: 0;
  box-shadow: none;
  font-family: Arial, "Helvetica Neue", sans-serif;
  text-align: center;
}

.pickup-screen.pickup-qr-only h3 {
  margin: 0 0 47px;
  color: #222527;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.pickup-screen.pickup-qr-only .pickup-qr-wrap {
  position: relative;
  width: 222px;
  margin: 0 auto;
}

.pickup-screen.pickup-qr-only .qr-card {
  width: 222px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.pickup-screen.pickup-qr-only .qr-card img {
  display: block;
  width: 250px;
  height: 250px;
  margin: -14px;
  image-rendering: pixelated;
}

.pickup-screen.pickup-qr-only .pickup-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #ffffff;
}

.pickup-screen.pickup-qr-only .pickup-qr-logo::before,
.pickup-screen.pickup-qr-only .pickup-qr-logo::after {
  content: none;
}

.pickup-screen.pickup-qr-only .pickup-qr-logo::before {
  left: 12px;
  top: 5px;
  width: 16px;
  height: 31px;
  border-radius: 50%;
}

.pickup-screen.pickup-qr-only .pickup-qr-logo::after {
  left: 21px;
  top: 2px;
  width: 2px;
  height: 38px;
  border-width: 0 3px 0 0;
  transform: rotate(8deg);
}

.pickup-screen.pickup-qr-only .pickup-qr-logo img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.pickup-screen.pickup-qr-only .pickup-code {
  margin: 16px 0 0;
  color: #737373;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.pickup-screen.pickup-qr-only .pickup-code strong {
  color: #737373;
  font-weight: 800;
}

body.order-status-page.pickup-mode {
  background: #ffffff !important;
  color: #222527;
}

body.order-status-page.pickup-mode .order-status-shell {
  background: #ffffff;
}

body.order-status-page.pickup-mode .order-status-card,
body.order-status-page.pickup-mode .pickup-screen.pickup-qr-only {
  background: #ffffff;
}

.hidden {
  display: none !important;
}

.empty {
  padding: 18px;
  text-align: center;
}

dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.product-dialog {
  height: min(760px, calc(100vh - 28px));
  overflow: hidden;
  padding: 0;
}

#product-detail {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.product-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 16px;
}

dialog::backdrop {
  background: rgba(0, 0, 0, .42);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  z-index: 2;
}

.product-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 18px;
}

.product-hero > span {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}

.product-hero h2 {
  margin-bottom: 8px;
}

.product-hero p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.option-group {
  padding: 12px 18px;
}

.option-group h3 {
  font-size: 14px;
  margin-bottom: 9px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-grid small {
  margin-left: 6px;
}

.dialog-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 -10px 22px rgba(0, 0, 0, .18);
}

.payment-content {
  padding: 26px 18px 18px;
  display: grid;
  gap: 14px;
}

.payment-content h2,
.payment-content p {
  margin: 0;
}

.compact-field {
  padding: 0;
}

.fee-panel {
  display: grid;
  gap: 12px;
}

.queue-badge {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--brand-2);
  font-weight: 900;
  font-size: 13px;
}

.qr-card {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

#qr-string {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 320px 1fr;
    height: auto;
    min-height: calc(100vh - 76px);
  }

  .cart-pane {
    grid-column: 1 / -1;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 14px;
    align-items: flex-start;
  }

  .theme-switch span:first-child {
    display: none;
  }

  .app-shell {
    display: block;
    padding: 10px;
    height: auto;
    min-height: calc(100vh - 76px);
  }

  .pane {
    margin-bottom: 12px;
  }

  .store-pane,
  .menu-pane,
  .cart-pane {
    height: auto;
    max-height: none;
  }

  .store-list {
    max-height: 360px;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .floating-cart:not(.hidden) {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 30;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid color-mix(in srgb, var(--brand) 72%, #ffffff 8%);
    border-radius: 999px;
    padding: 0 13px 0 15px;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
    font-weight: 900;
  }

  .floating-cart-icon {
    position: relative;
    width: 21px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-width: 0;
    border-radius: 3px 3px 6px 6px;
    flex: 0 0 auto;
  }

  .floating-cart-icon::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: -8px;
    height: 10px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  .floating-cart b {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #0d6b43;
    font-size: 13px;
    line-height: 1;
  }

  .product-hero {
    grid-template-columns: 88px 1fr;
  }

  .product-hero > span {
    width: 88px;
    height: 88px;
  }
}
