:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #1d2228;
  --muted: #68717c;
  --line: #dfd8cb;
  --surface: #fffdf8;
  --accent: #117c6f;
  --accent-strong: #0b5f55;
  --warm: #d4643f;
  --shadow: 0 14px 34px rgba(31, 29, 24, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.paymentResult {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 48px 0;
}

.paymentResult h1 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.paymentResult .primaryButton {
  margin-top: 24px;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.topbar,
.sectionHeader,
.cartFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.08;
}

h2 {
  font-size: 18px;
}

.iconButton,
.textButton,
.primaryButton,
.optionButton {
  border: 0;
  cursor: pointer;
}

.iconButton,
.textButton {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.iconButton.isBumping {
  animation: cartBump 680ms ease;
}

@keyframes cartBump {
  0% {
    transform: scale(1);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  35% {
    transform: scale(1.08);
    background: #dceee8;
    box-shadow: inset 0 0 0 2px var(--accent), 0 10px 22px rgba(17, 124, 111, 0.24);
  }
  100% {
    transform: scale(1);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.primaryButton {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.primaryButton:active {
  background: var(--accent-strong);
}

.restaurantStripWrap {
  position: relative;
  margin: 0 -6px;
}

.restaurantStrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 42px 14px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 42px;
  scrollbar-width: none;
}

.restaurantStrip::-webkit-scrollbar {
  display: none;
}

.stripArrow {
  position: absolute;
  top: 44px;
  z-index: 4;
  width: 34px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.stripArrow:disabled {
  opacity: 0.35;
}

.stripArrowLeft {
  left: 6px;
}

.stripArrowRight {
  right: 6px;
}

.restaurantChip {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 14px;
  border: 0;
  text-align: left;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  scroll-snap-align: start;
}

.restaurantChip.isSelected {
  background: #e7f3ee;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.restaurantChip.isLocked {
  opacity: 0.48;
  cursor: not-allowed;
}

.restaurantLogo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.restaurantLogo.hasImage {
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.restaurantLogo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.restaurantLogo-izakaya {
  background: #1c1d22;
}

.restaurantLogo-shawalava {
  background: #d4643f;
}

.restaurantLogo-mandarin {
  background: #117c6f;
}

.restaurantLogo-armadillo {
  background: #693f2e;
}

.restaurantLogo-potato-king-crepe-queen {
  background: #d4a51f;
  color: #1d2228;
}

.restaurantLogo-plove {
  background: #e85b20;
}

.restaurantChipText {
  min-width: 0;
}

.restaurantChip strong {
  display: block;
  margin-bottom: 6px;
}

.restaurantChip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.namePanel {
  display: grid;
  gap: 8px;
  margin: 6px 0 22px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.namePanel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.namePanel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

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

.packageTab {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #f1ece2;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.packageTab.isActive {
  background: #dceee8;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.benefitsPanel {
  display: grid;
  gap: 10px;
  margin: -4px 0 22px;
}

.benefitGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.benefitTile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(58px, 18vw, 86px);
  align-items: center;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.benefitText {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.benefitTile strong {
  font-size: 13px;
  line-height: 1.2;
}

.benefitTile span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.benefitImage {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}

.benefitTile.isAccent {
  background: #e7f3ee;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 56%, var(--line));
}

.benefitTile.isBalance {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.benefitTile.isWarm {
  background: #fff1e9;
  box-shadow: inset 0 0 0 1px #efc8b7;
}

.sectionHeader {
  margin: 0 0 12px;
}

.sectionHeader span {
  color: var(--muted);
  font-size: 13px;
}

.menuList {
  display: grid;
  gap: 12px;
}

.categoryNav {
  position: sticky;
  top: 74px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 8px -14px 12px;
  padding: 8px 14px 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.categoryNav::-webkit-scrollbar {
  display: none;
}

.categoryPill {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.categoryPill.isActive {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.menuSection {
  display: grid;
  gap: 12px;
  scroll-margin-top: 128px;
}

.menuSectionTitle {
  margin: 8px 0 0;
  color: var(--warm);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dish {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  min-height: 138px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dish.isUnavailable {
  opacity: 0.58;
}

.dish.isUnavailable .dishPhotoButton img {
  filter: grayscale(0.8);
}

.dishPhotoButton {
  width: 112px;
  height: 118px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.dishPhotoButton img {
  width: 112px;
  height: 118px;
  object-fit: cover;
  display: block;
  transition: transform 160ms ease;
}

.dishPhotoButton:active img {
  transform: scale(1.04);
}

.dishBody {
  display: grid;
  gap: 8px;
}

.dishTitle {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.dishMeta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.dishTitle strong {
  line-height: 1.2;
}

.price {
  color: var(--accent-strong);
  font-weight: 850;
  white-space: nowrap;
}

.soldOutBadge {
  border-radius: 999px;
  padding: 3px 7px;
  background: #efe4dc;
  color: #9a3f20;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.dishDescription {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.optionButton {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  background: #f1ece2;
  color: var(--ink);
  font-size: 12px;
}

.optionButton.isSelected {
  background: #dceee8;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.addButton {
  justify-self: start;
  min-height: 38px;
  border-radius: 8px;
  border: 0;
  padding: 0 12px;
  background: var(--ink);
  color: white;
  font-weight: 750;
}

.addButton:disabled {
  cursor: not-allowed;
  background: #a8a29a;
}

.recommendationPanel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.recommendationToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef6f2;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.recommendationChevron {
  font-size: 16px;
  line-height: 1;
}

.recommendationList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommendationItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.recommendationItem strong,
.recommendationItem small {
  display: block;
}

.recommendationItem strong {
  font-size: 12px;
  line-height: 1.2;
}

.recommendationItem small {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.recommendationAdd {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 850;
}

.cartPanel {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  max-height: 78vh;
  overflow: auto;
  padding: 18px 14px 22px;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: 0 -16px 46px rgba(26, 24, 20, 0.22);
}

.cartItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cartItemInfo {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cartPackage {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cartPackageTitle {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.cartPackage .cartItem {
  border-bottom: 0;
  padding: 6px 0;
}

.cartPackage:last-child {
  border-bottom: 0;
}

.cartItem small {
  color: var(--muted);
}

.cartBenefits,
.cartBreakdown {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.freeDrinkBox,
.balanceBox,
.overageBox,
.breakdownBox {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fbf7ef;
  box-shadow: inset 0 0 0 1px var(--line);
}

.freeDrinkBox {
  background: #e7f3ee;
}

.overageBox {
  background: #fff1e9;
  box-shadow: inset 0 0 0 1px #efc8b7;
}

.cartBenefits label,
.overageBox strong,
.balanceBox strong,
.breakdownBox strong {
  font-size: 13px;
}

.cartBenefits select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
}

.paymentChoices {
  display: grid;
  gap: 8px;
}

.paymentChoice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 42px;
  padding: 9px;
  border-radius: 8px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
}

.paymentChoice input {
  margin-top: 2px;
}

.breakdownRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breakdownRow strong {
  color: var(--ink);
}

.breakdownRow.isSavings {
  color: var(--accent-strong);
  font-weight: 800;
}

.cartControls {
  display: grid;
  grid-template-columns: 32px 28px 32px 32px;
  align-items: center;
  gap: 4px;
}

.cartControlButton,
.cartRemoveButton {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartControlButton:active {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.cartQuantity {
  text-align: center;
  font-weight: 850;
}

.cartRemoveButton {
  border-color: #efd3c6;
  color: #a13e1d;
}

.cartFooter {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: var(--surface);
}

.statusPanel {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #e7f3ee;
  color: var(--accent-strong);
  font-weight: 750;
}

.photoViewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(18, 22, 26, 0.88);
}

.photoViewer[hidden] {
  display: none;
}

.photoViewer img {
  max-width: min(100%, 760px);
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
}

.photoViewer strong {
  max-width: min(100%, 760px);
  color: white;
  text-align: center;
  line-height: 1.25;
}

.photoViewerClose {
  justify-self: end;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 460px) {
  .benefitGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dish {
    grid-template-columns: 