:root {
  --red-deep: #990000;       /* สีแดงลึกที่เป็นเอกลักษณ์หลักของแบรนด์ */
  --red-dark: #430606;       /* สีแดงเข้มขึ้นสำหรับมิติโฮเวอร์/ปุ่มกด */
  --red-glow: #b30000;       /* สีแดงสว่างเพื่อดึงสายตาจุดแจ้งเตือน */
  --gold: #C9973A;           /* สีทองสำหรับเส้นขอบหรือ badge สำคัญ */
  --gold-light: #F4D56A;     /* สีครีมเบจอุ่น (สไตล์มินิมอลบนแพ็กเกจจิ้ง) */
  --bg: #FFF8EA;
  --bg-card: #fcfbfa;        /* พื้นหลังการ์ดหรือกล่องข้อความเป็นสีขาวนวล */
  --bg-elevated: #f3effa;    /* พื้นหลังปุ่มเลือกกลุ่มย่อยหรือเลเยอร์ที่ซ้อนขึ้นมา */
  --text: #221a1a;           /* ข้อความทั่วไปเปลี่ยนเป็นสีเทาเข้มเกือบดำ (อ่านง่าย สบายตา) */
  --text-main: var(--text);
  --text-muted: #6b5e5a;     /* ข้อความรองหรือหมายเหตุปรับเป็นสีน้ำตาลหม่นจางๆ */
  --border: rgba(153, 0, 0, 0.15); /* เส้นขอบปรับเป็นสีแดงจางๆ เพื่อล้อไปกับลายเวกเตอร์หมู */
  --success: #2ecc71;
  --benefit-green: #176b3a;
  --benefit-green-soft: #f1f8f3;
  --benefit-green-border: rgba(23, 107, 58, 0.24);
  --error: #e74c3c;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: "Prompt","Noto Sans Thai", system-ui, sans-serif;
}

/* Shared menu choices can be disabled centrally by the store. */
.option-chip.is-unavailable {
  border-style: dashed;
  color: #8a817d;
  background: #f2f0ee;
  cursor: not-allowed;
  opacity: 0.78;
}

.option-chip.is-unavailable:has(input:checked) {
  border-color: #c9c3bf;
  color: #8a817d;
  background: #f2f0ee;
}

.option-chip.is-unavailable input {
  accent-color: #aaa29d;
}

.option-soldout-label {
  display: block;
  margin-top: 2px;
  color: #8a817d;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Customer menu: compact discovery controls and offer-led hierarchy. */
.menu-tools {
  position: sticky;
  top: 72px;
  z-index: 18;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 0;
  background: rgba(255, 248, 234, 0.96);
  backdrop-filter: blur(12px);
}

.menu-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  align-items: center;
  gap: 8px;
}

.menu-category-select,
.menu-category-select label {
  display: block;
  min-width: 0;
  position: relative;
}

.menu-category-select select {
  width: 100%;
  min-height: 46px;
  appearance: none;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  padding: 8px 42px 8px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-category-select svg {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
}

.menu-tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.menu-tool-icon:hover,
.menu-tool-icon:focus-visible,
.menu-tool-icon.active {
  border-color: var(--red-deep);
  color: var(--red-deep);
  background: #fff8f5;
}

.menu-tool-icon svg,
.menu-search-label > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-search-label {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  padding: 0 8px 0 12px;
  background: #fff;
}

.menu-search-label.hidden {
  display: none;
}

.menu-search-label input {
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: 0;
}

.menu-search-clear {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.menu-search-clear:hover {
  background: #f4efeb;
  color: var(--text);
}

.menu-category-tabs {
  display: block;
  overflow: visible;
  position: static;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.benefits-preview {
  border-color: var(--benefit-green-border);
  border-radius: 8px;
  background: var(--benefit-green-soft);
  box-shadow: none;
}

.benefits-preview-head strong {
  color: var(--benefit-green);
}

.benefit-chip {
  grid-template-columns: 42px minmax(0, 1fr);
  border-color: var(--benefit-green-border);
  border-radius: 8px;
  box-shadow: none;
}

.benefit-chip strong {
  color: var(--benefit-green);
}

.benefit-chip-image {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.benefits-preview .offer-icon-tag {
  background: var(--benefit-green);
}

.customer-coupon-wallet {
  border-color: var(--benefit-green-border);
  background: #fff;
}

.coupon-wallet-head {
  border-color: var(--benefit-green-border);
  background: var(--benefit-green-soft);
}

.coupon-wallet-head strong {
  color: var(--benefit-green);
}

.coupon-wallet-head b {
  background: var(--benefit-green);
}

.coupon-wallet-row + .coupon-wallet-row {
  border-top-color: rgba(23, 107, 58, 0.14);
}

.coupon-wallet-row > div > span {
  display: none;
}

.group-order-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(34, 26, 26, 0.16);
  border-radius: 8px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.group-order-entry.is-loading,
.benefits-preview.is-loading {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

.feature-skeleton {
  width: min(280px, 72%);
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3ede9 25%, #fffaf6 50%, #f3ede9 75%);
  background-size: 220% 100%;
  animation: feature-skeleton-loading 1.1s ease-in-out infinite;
}

.feature-skeleton-wide {
  width: 100%;
}

.feature-loading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #6f5a52;
}

.feature-loading-row > span:last-child {
  display: grid;
  gap: 2px;
}

.feature-loading-row strong {
  color: #2b2220;
  font-size: 1rem;
}

.feature-loading-row small {
  font-size: .86rem;
}

.feature-skeleton-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f3ede9 25%, #fffaf6 50%, #f3ede9 75%);
  background-size: 220% 100%;
  animation: feature-skeleton-loading 1.1s ease-in-out infinite;
}

@keyframes feature-skeleton-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-skeleton,
  .feature-skeleton-icon { animation: none; }
}

.latest-reorder-images {
  display: flex;
  align-items: center;
  min-width: 62px;
}

.latest-reorder-images img {
  width: 54px;
  height: 54px;
  margin-right: -13px;
  border: 2px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  background: #f5f1ef;
}

.group-order-entry::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(189, 41, 38, .38);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: group-order-focus 2.8s ease-in-out infinite;
}

@keyframes group-order-focus {
  0%, 100% { opacity: .15; }
  50% { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .group-order-entry::after { animation: none; opacity: .45; }
}

.group-order-member-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-member-remove {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #edcbc4;
  border-radius: 50%;
  color: #a72825;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.group-benefit-tiers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 0;
  margin: 18px 4px 4px;
}

.group-benefit-tiers span {
  position: relative;
  z-index: 1;
  min-width: 52px;
  padding: 0;
  text-align: center;
  background: #fffdf9;
}

.group-benefit-tiers::before {
  position: absolute;
  top: 10px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: #ead8d1;
  content: "";
}

.group-benefit-tiers span::before {
  display: block;
  width: 18px;
  height: 18px;
  margin: 1px auto 6px;
  border: 3px solid #fffdf9;
  border-radius: 50%;
  background: #c7962b;
  box-shadow: 0 0 0 1px #d8b25d;
  content: "";
}

.group-benefit-tiers b,
.group-benefit-tiers small {
  display: block;
}

.group-benefit-tiers b {
  color: #176b3a;
  font-size: 1.15rem;
}

.group-benefit-tiers small,
.group-order-benefit-intro p {
  color: #715b55;
}

.group-benefit-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.group-benefit-heading strong {
  color: #a72825;
  font-size: 1.08rem;
}

.group-benefit-heading small {
  color: #715b55;
  font-size: .8rem;
  white-space: nowrap;
}

.group-order-payment-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #c7962b;
  color: #5f4b46;
  background: #fff9ed;
}

.group-member-due {
  flex: 0 0 auto;
  text-align: right;
}

.group-member-due small,
.group-member-due b {
  display: block;
}

.group-member-due small {
  color: #176b3a;
}

.quick-schedule-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.quick-schedule-btn {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #e8c7c0;
  border-radius: 7px;
  color: #302323;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.quick-schedule-btn small,
.quick-schedule-btn strong {
  display: block;
}

.quick-schedule-btn small {
  margin-bottom: 3px;
  color: #79645e;
}

.quick-schedule-btn strong {
  font-size: 1rem;
}

.quick-schedule-btn.is-selected {
  border-color: #bd2926;
  color: #fff;
  background: #bd2926;
}

.quick-schedule-btn.is-selected small {
  color: rgba(255,255,255,.8);
}

.quick-schedule-btn:disabled {
  border-color: #ded8d5;
  color: #8c8481;
  background: #f3f1f0;
  cursor: not-allowed;
}

.quick-schedule-summary {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: #176b3a;
  font-weight: 700;
}

.service-entry {
  padding: 26px max(20px, calc((100vw - 760px) / 2)) 34px;
  background: #fff;
}

.service-method-grid {
  display: grid;
  gap: 18px;
}

.service-method-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.service-method-choice {
  min-width: 0;
  min-height: 174px;
  padding: 14px 12px 12px;
  border: 1px solid #ead8d1;
  border-radius: 8px;
  background: #fff;
  color: #4f403c;
  font: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.service-method-choice:hover {
  border-color: rgba(178, 13, 24, 0.36);
  box-shadow: 0 8px 22px rgba(80, 31, 24, 0.08);
  transform: translateY(-1px);
}

.service-method-choice.is-selected {
  border-color: var(--red-deep);
  color: var(--red-deep);
  box-shadow: 0 0 0 2px rgba(178, 13, 24, 0.08);
}

.service-method-visual {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  place-items: center;
}

.service-method-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-method-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.service-method-choice:focus-visible,
.service-branch-choice:focus-visible {
  outline: 3px solid rgba(201, 151, 58, 0.42);
  outline-offset: 2px;
}

.service-branch-panel {
  animation: service-panel-in 160ms ease-out;
}

@keyframes service-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.service-branch-label {
  margin: 0 0 8px;
  color: #715b55;
  font-size: 0.94rem;
  font-weight: 600;
}

.service-branch-options {
  display: grid;
  gap: 8px;
}

.service-branch-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid #e8c7c0;
  border-radius: 6px;
  color: #302323;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.service-branch-choice:hover {
  border-color: rgba(153, 0, 0, 0.38);
  background: #fffaf8;
}

.service-branch-copy {
  display: grid;
  gap: 7px;
}

.service-branch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-branch-name {
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.service-branch-choice strong {
  color: #176b3a;
  font-size: 1rem;
  font-weight: 700;
}

.service-branch-arrow {
  color: var(--red-deep);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.service-branch-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf8f0;
  color: #2f7f46;
  font-size: .78rem;
  font-weight: 700;
}

.service-branch-status[data-status="busy"],
.service-branch-status[data-status="advance"] {
  background: #fff6df;
  color: #8a6208;
}

.menu-service-context {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 10px 0;
  border-bottom: 1px solid #ead8d1;
}

.menu-service-context strong {
  color: #176b3a;
  text-align: right;
}

.group-order-room {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid #e9c36d;
  border-radius: 8px;
  background: #fff;
}

.group-order-room-head,
.group-order-actions,
.group-order-member-head,
.group-order-member-total {
  display: flex;
  align-items: center;
}

.group-order-room-head {
  justify-content: space-between;
  gap: 16px;
}

.group-order-room-head h3,
.group-order-modal-panel h3 {
  margin: 2px 0 4px;
  color: #2d1f1f;
  font-size: 1.3rem;
}

.group-order-room-head p {
  margin: 0;
  color: #715b55;
}

.group-order-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}

.group-order-stat {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #f0d8d2;
  border-radius: 6px;
  background: #fffaf8;
}

.group-order-stat span,
.group-order-stat small {
  display: block;
}

.group-order-stat span {
  margin-bottom: 2px;
  color: #715b55;
  font-size: .78rem;
}

.group-order-stat strong {
  color: #bd2926;
  font-size: 1.15rem;
}

.group-order-stat small {
  margin-top: 3px;
  color: #8a736c;
  line-height: 1.35;
}

.group-order-members {
  border-top: 1px solid #f1dfda;
}

.group-order-member {
  padding: 13px 0;
  border-bottom: 1px solid #f1dfda;
}

.group-order-member-head,
.group-order-member-total {
  justify-content: space-between;
  gap: 12px;
}

.group-order-member-head strong {
  overflow-wrap: anywhere;
}

.group-order-member-status {
  flex: 0 0 auto;
  color: #8a736c;
  font-size: .82rem;
  font-weight: 700;
}

.group-order-member-status.is-ready {
  color: #2f7f46;
}

.group-order-member-items {
  margin: 7px 0;
  color: #715b55;
  font-size: .9rem;
  line-height: 1.5;
}

.group-order-member-total small {
  color: #8a736c;
}

.group-order-member-total strong {
  color: #bd2926;
}

.group-order-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.group-order-actions .btn {
  min-height: 48px;
}

#groupOrderCheckoutBtn {
  order: -1;
}

.group-order-checkout-hint {
  margin: 12px 0 0;
  color: #715b55;
  font-size: .88rem;
  line-height: 1.45;
}

.group-order-checkout-hint:empty {
  display: none;
}

.group-checkout-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe3d2;
  border-radius: 6px;
  background: #f3fbf4;
}

.group-checkout-notice.hidden {
  display: none;
}

.group-checkout-notice strong,
.group-checkout-notice span {
  display: block;
}

.group-checkout-notice strong {
  color: #236b38;
}

.group-checkout-notice span {
  margin-top: 2px;
  color: #526a58;
  font-size: .88rem;
}

.group-checkout-member-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #ead9d4;
  border-radius: 6px;
  background: #fff;
}

.group-checkout-member-summary.hidden {
  display: none;
}

.group-checkout-summary-head,
.group-checkout-member-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.group-checkout-summary-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #f0e2de;
}

.group-checkout-summary-head span,
.group-checkout-member-row span {
  color: #715b55;
  font-size: .86rem;
}

.group-checkout-member-row {
  padding: 11px 0;
  border-bottom: 1px solid #f4e9e6;
}

.group-checkout-member-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.group-checkout-member-row strong,
.group-checkout-member-row span {
  display: block;
}

.group-checkout-member-row span {
  margin-top: 3px;
  line-height: 1.45;
}

.group-checkout-member-row b {
  flex: 0 0 auto;
  color: #bd2926;
}

body.group-order-cart-locked .menu-item-card {
  border-color: #e3dedb;
  background: #f6f5f4;
}

body.group-order-cart-locked .menu-item-card > div,
body.group-order-cart-locked .signature-rail {
  opacity: .68;
}

body.group-order-cart-locked .menu-item-card button:disabled,
body.group-order-cart-locked .signature-add-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
}

.payment-member-group + .payment-member-group {
  margin-top: 12px;
}

.payment-member-group h4 {
  margin: 0;
  padding: 8px 10px;
  color: #715b55;
  font-size: .9rem;
  background: #fff6f2;
}

.group-benefit-lock {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #cfe3d2;
  border-radius: 6px;
  background: #f3fbf4;
}

.group-benefit-lock strong,
.group-benefit-lock span {
  display: block;
}

.group-benefit-lock strong {
  color: #236b38;
}

.group-benefit-lock span {
  margin-top: 3px;
  color: #526a58;
  font-size: .88rem;
  line-height: 1.45;
}

body.group-checkout-locked #groupBenefitLock {
  display: block;
}

.group-order-modal-panel,
.group-order-share-panel {
  width: min(520px, calc(100vw - 28px));
}

.group-order-create-form,
.group-order-join-form {
  display: grid;
  gap: 16px;
}

#groupOrderModal .group-order-modal-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-height: min(760px, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(167, 40, 37, .2);
  border-top: 3px solid #a72825;
  background: #fffdf9;
}

#groupOrderModal .group-order-modal-panel .modal-head {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -20px -20px 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0ddd7;
  background: rgba(255, 253, 249, .98);
}

#groupOrderModal .group-order-create-form,
#groupOrderModal .group-order-join-form {
  min-width: 0;
  padding-top: 14px;
}

#groupOrderModal .group-order-benefit-intro {
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding-bottom: 14px;
  border-bottom: 1px solid #ead8d1;
}

.group-order-host-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(199, 150, 43, .32);
  border-left: 3px solid #c7962b;
  border-radius: 6px;
  background: #fffaf0;
}

.group-order-host-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a72825;
  font-weight: 800;
}

.group-order-host-note strong,
.group-order-host-note small,
.group-order-form-row strong,
.group-order-form-row small {
  display: block;
}

.group-order-host-note strong,
.group-order-form-row strong {
  color: #2d1f1f;
}

.group-order-host-note small,
.group-order-form-row small {
  margin-top: 2px;
  color: #715b55;
  font-size: .78rem;
  line-height: 1.35;
}

.group-order-form-list {
  border-top: 1px solid #ead8d1;
}

.group-order-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .75fr);
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ead8d1;
}

.group-order-form-row input,
.group-order-form-row select {
  min-height: 44px;
  border-color: #dfc8c1;
  background: #fff;
}

.group-order-create-button {
  position: sticky;
  bottom: -20px;
  min-height: 54px;
  border-radius: 6px;
  box-shadow: 0 -8px 18px rgba(255, 253, 249, .9), 0 8px 18px rgba(167, 40, 37, .2);
}

body.group-order-modal-open {
  overflow: hidden;
}

.option-group.has-error {
  border-color: #b22625;
  background: #fff5f2;
}

.option-group legend small {
  margin-left: 8px;
  color: #a72825;
  font-size: .74rem;
  font-weight: 700;
}

.reorder-order-btn {
  white-space: nowrap;
}

.group-order-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.group-order-share-panel {
  text-align: center;
}

@media (max-width: 640px) {
  #groupOrderModal {
    overflow: hidden;
  }

  #groupOrderModal .group-order-modal-panel {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    padding: 18px;
    border-radius: 18px;
    transform: translateX(-50%);
  }

  #groupOrderModal .group-order-modal-panel .modal-head {
    margin: -18px -18px 0;
    padding: 16px 18px 12px;
  }

  #groupOrderModal .group-order-create-form,
  #groupOrderModal .group-order-join-form {
    padding-top: 12px;
  }

  .group-order-create-button {
    bottom: -18px;
    margin-inline: -1px;
  }

  .group-order-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .group-benefit-heading {
    align-items: flex-start;
    gap: 4px;
  }

  .group-benefit-heading strong {
    font-size: 1rem;
  }

  .group-benefit-heading small {
    white-space: normal;
    text-align: right;
  }
}

@media (max-width: 360px) {
  #groupOrderModal .group-order-modal-panel {
    width: calc(100% - 16px);
    padding: 14px;
  }

  #groupOrderModal .group-order-modal-panel .modal-head {
    margin: -14px -14px 0;
    padding: 14px 14px 11px;
  }

  .group-benefit-tiers {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    margin-inline: 0;
  }

  .group-benefit-tiers span {
    min-width: 46px;
  }

  .group-order-create-button {
    bottom: -14px;
  }
}

.group-order-qr {
  width: 220px;
  min-height: 220px;
  margin: 8px auto 14px;
  padding: 10px;
  border: 1px solid #efd5ce;
  background: #fff;
}

.group-order-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.group-order-room.is-locked {
  border-color: #c9dcca;
}

body.group-order-member .latest-reorder-card {
  display: none;
}

body.group-order-ready #stickyCartBtn {
  display: none !important;
}

@media (max-width: 640px) {
  .service-entry {
    padding: 18px 16px 26px;
  }

  .service-method-choice {
    min-height: 146px;
    padding: 10px 8px;
  }

  .service-method-visual {
    width: 88px;
    height: 88px;
    margin-bottom: 6px;
  }

  .service-method-title {
    font-size: 1rem;
  }

  .service-branch-heading {
    align-items: flex-start;
  }

  .service-branch-choice {
    min-height: 80px;
    padding: 13px 14px;
  }

  .service-branch-status {
    white-space: nowrap;
  }

  .quick-schedule-choice {
    grid-template-columns: 1fr;
  }

  .menu-service-context {
    display: grid;
    gap: 2px;
  }

  .menu-service-context strong {
    text-align: left;
  }
  .group-order-room {
    padding: 16px;
  }

  .group-order-room-head {
    align-items: flex-start;
  }

  .group-order-progress {
    grid-template-columns: 1fr;
  }

  .group-order-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
  }

  .group-order-stat span {
    margin: 0;
  }

  .group-order-stat small {
    grid-column: 1 / -1;
  }

  .group-order-schedule {
    grid-template-columns: 1fr;
  }

  .group-order-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .group-order-actions .btn {
    width: 100%;
  }

  .group-checkout-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .group-checkout-notice .btn {
    width: 100%;
  }
}

.group-order-entry.hidden {
  display: none;
}

.group-order-entry-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--red-deep);
}

.group-order-entry-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.group-order-entry strong,
.group-order-entry span {
  display: block;
}

.group-order-entry strong {
  font-size: 1.04rem;
}

.group-order-entry span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .menu-tools {
    top: 66px;
  }

  .group-order-entry {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .group-order-entry .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Branch status: operational truth from Admin, shown without blocking advance orders. */
.branch-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 560px);
  margin: 14px auto 0;
}

.branch-status-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 135, 70, 0.26);
  border-radius: 8px;
  background: #f2fbf5;
}

.branch-status-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.branch-status-copy strong,
.branch-status-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-status-copy strong {
  color: #27392d;
  font-size: 0.94rem;
}

.branch-status-copy small {
  color: #26864a;
  font-size: 0.82rem;
  font-weight: 800;
}

.branch-status-pill[data-store-status="busy"] {
  border-color: rgba(196, 145, 33, 0.38);
  background: #fff8e8;
}

.branch-status-pill[data-store-status="busy"] .branch-status-copy small {
  color: #956800;
}

.branch-status-pill[data-store-status="closed"] {
  border-color: rgba(178, 13, 24, 0.24);
  background: #fff1ed;
}

.branch-status-pill[data-store-status="closed"] .branch-status-copy small {
  color: var(--red-deep);
}

@media (max-width: 520px) {
  .branch-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(ellipse at top, #fffdfa 0%, var(--bg) 70%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: 112px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.header-home {
  display: flex;
  align-items: center;
  min-width: 40px;
  flex: 0 0 40px;
}

.logo-small {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.header-cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(178, 13, 24, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--red-deep);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(80, 31, 24, 0.08);
}

.header-cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.header-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.moo-points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid rgba(184, 137, 43, 0.34);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--red-deep);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.moo-points-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mooPointsValue {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.customer-badge {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--red-deep);
  background: rgba(153, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-lang {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(153, 0, 0, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--red-deep);
  cursor: pointer;
}

.btn-home svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey {
  padding: 0 12px 12px;
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.journey-step {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid transparent;
  opacity: 0.55;
  transition: 0.2s ease;
}

.journey-step span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.journey-step p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
}

.journey-step.active,
.journey-step.done {
  opacity: 1;
  border-color: var(--gold);
}

.journey-step.done span {
  background: var(--gold);
  color: #1a1010;
}

.hero {
  padding: 28px 16px 44px;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero-greeting {
  color: var(--red-deep);
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0;
  font-size: 2.2rem;
  color: var(--red-deep);
  letter-spacing: 0;
}

.hero-tagline {
  margin: 10px auto 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 340px;
  white-space: pre-line;
}

.hero-showcase {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

.hero-food-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(178, 13, 24, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(91, 37, 21, 0.16);
}

.hero-showcase-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(184, 137, 43, 0.44);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--red-deep);
  box-shadow: 0 10px 28px rgba(63, 28, 18, 0.15);
  font-weight: 800;
}

.hero-showcase-badge strong {
  font-size: 1.55rem;
}

.direct-order-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid rgba(178, 13, 24, 0.14);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(91, 37, 21, 0.08);
}

.direct-order-strip strong,
.direct-order-strip span {
  display: block;
}

.direct-order-strip strong {
  color: var(--red-deep);
  font-size: 1.02rem;
}

.direct-order-strip span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-food {
  position: relative;
  margin: 0 auto 20px;
  max-width: 320px;
}

.hero-food img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 10, 10, 0.88);
  border: 1px solid var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-price strong {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.trust-list li {
  background: var(--bg-card);
  border-left: 3px solid var(--red-deep);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="tel"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--red-glow);
  border-color: transparent;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-deep), var(--red-glow));
  color: #fff;
  box-shadow: 0 4px 16px rgba(153, 0, 0, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-error {
  color: var(--error);
  font-size: 0.88rem;
  margin: 0;
}

.section {
  padding: 20px 16px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.section-head {
  margin-bottom: 16px;
}

.menu-category {
  margin-bottom: 28px;
}

.menu-category h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red-deep);
  color: var(--gold-light);
}

.menu-item {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.menu-item-card {
  content-visibility: auto;
  contain-intrinsic-size: 190px;
}

.success-tracking-link {
  display: inline-flex;
  justify-content: center;
  margin: 12px auto 18px;
}

.menu-item-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-elevated);
}

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

.menu-item-head h4 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-price {
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}

.menu-price em {
  display: block;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: line-through;
}

.menu-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.badge-signature {
  display: inline-block;
  background: var(--gold);
  color: #1a1010;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.badge-promo {
  margin-left: 6px;
  background: #fff1e8;
  color: var(--red-deep);
  border: 1px solid rgba(178, 13, 24, 0.18);
}

.badge-soldout {
  display: inline-block;
  margin: 0 0 6px 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0ed;
  color: #7a0710;
  font-size: 0.72rem;
  font-weight: 700;
}

.item-options {
  display: grid;
  gap: 8px;
}

.option-group legend {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 0.85rem;
}

.option-chip:has(input:checked) {
  border-color: var(--gold);
  background: rgba(153, 0, 0, 0.25);
}

.option-chip input {
  accent-color: var(--gold);
}

.menu-item-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.add-cart-btn {
  min-height: 42px;
  padding-inline: 18px;
  white-space: nowrap;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

legend {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(153, 0, 0, 0.2);
}

.radio-card input {
  accent-color: var(--gold);
}

.billing-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.qr-panel {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.qr-instruction {
  color: var(--gold-light);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.qr-display {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.qr-image {
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.qr-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.qr-render-status {
  margin: 0;
  color: var(--red-deep);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.qr-loading-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(178, 13, 24, 0.035);
}

.qr-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(178, 13, 24, 0.14);
  border-top-color: var(--red-deep);
  border-radius: 50%;
  animation: qr-loading-spin 0.75s linear infinite;
}

@keyframes qr-loading-spin {
  to { transform: rotate(360deg); }
}

.qr-amount {
  text-align: center;
}

.qr-amount strong {
  display: block;
  font-size: 2rem;
  color: var(--gold-light);
}

.promptpay-id {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.upload-label input[type="file"] {
  margin-top: 8px;
  width: 100%;
}

.slip-preview {
  margin-top: 12px;
  text-align: center;
}

.slip-preview img {
  max-height: 200px;
  margin: 0 auto 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.confirm-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.confirm-row strong {
  color: var(--gold-light);
}

.confirm-items {
  margin: 0;
  padding-left: 18px;
}

.confirm-items li {
  margin-bottom: 6px;
}

.success-card {
  max-width: 760px;
  margin: 24px auto 40px;
}

.feedback-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px solid rgba(178, 13, 24, 0.12);
  text-align: left;
}

.feedback-panel h3 {
  margin: 0;
  color: var(--red-deep);
  font-size: 1.15rem;
  text-align: center;
}

.feedback-panel p {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

.rating-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid rgba(178, 13, 24, 0.12);
  border-radius: 12px;
  background: #fffaf4;
}

.rating-group > span {
  color: var(--text);
  font-weight: 800;
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
}

.rating-stars button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(153, 0, 0, 0.22);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.rating-stars button.active {
  color: var(--gold);
  text-shadow: 0 3px 10px rgba(184, 137, 43, 0.22);
}

.food-feedback-panel {
  width: min(560px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  overflow-y: auto;
}

.feedback-order-summary {
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.12);
  border-radius: 10px;
  background: #fffaf4;
}

.feedback-order-summary h4 {
  margin: 0 0 8px;
  color: var(--red-deep);
  font-size: 1rem;
}

.feedback-order-items {
  display: grid;
  gap: 6px;
}

.feedback-order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  line-height: 1.45;
}

.feedback-order-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feedback-order-item small {
  color: var(--text-muted);
  font-size: 0.9em;
}

.feedback-order-item strong {
  flex: 0 0 auto;
  color: var(--red-deep);
}

.feedback-order-empty {
  margin: 0;
  color: var(--text-muted);
}

.feedback-rating-list {
  display: grid;
  gap: 9px;
}

.feedback-thanks {
  color: #157f3b !important;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 21, 16, 0.38);
}

.modal-panel {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(92vw, 460px);
  max-height: min(82vh, 620px);
  transform: translateX(-50%);
  overflow: auto;
  border: 1.5px solid rgba(178, 13, 24, 0.16);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 22px 60px rgba(80, 31, 24, 0.26);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.modal-head h3 {
  margin: 0;
  color: var(--red-deep);
  font-size: 1.25rem;
}

.cart-edit-body {
  display: grid;
  gap: 14px;
  padding: 8px 18px 18px;
}

.cart-edit-body > strong {
  color: var(--text);
  font-size: 1.08rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.contact-actions-list {
  display: grid;
  gap: 10px;
  padding: 8px 18px 18px;
}

.contact-action-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 14px;
  background: #fff7ef;
  color: var(--text);
  text-decoration: none;
}

.contact-action-row strong {
  color: var(--red-deep);
  font-size: 1.05rem;
}

.contact-action-row span {
  color: var(--text-muted);
  font-weight: 700;
}

.order-id-line {
  margin-top: 16px;
  font-size: 1.1rem;
}

.success-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 14px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(178, 13, 24, 0.18);
  border-radius: 999px;
  background: #fff6ef;
  color: var(--red-deep);
  font-size: 1rem;
  font-weight: 800;
}

.order-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding-top: 4px;
}

.food-status-line {
  position: absolute;
  top: 38px;
  left: 12.5%;
  right: 12.5%;
  height: 5px;
  border-radius: 999px;
  background: rgba(178, 13, 24, 0.14);
  overflow: hidden;
}

.food-status-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-deep), var(--gold-light), var(--success));
  transition: width 0.55s ease;
}

.order-journey[data-stage="1"] .food-status-line span {
  width: 33%;
}

.order-journey[data-stage="2"] .food-status-line span {
  width: 66%;
}

.order-journey[data-stage="3"] .food-status-line span,
.order-journey[data-stage="4"] .food-status-line span {
  width: 100%;
}

.food-status-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.25;
}

.food-status-step strong {
  font-size: 0.95rem;
}

.food-status-node {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(178, 13, 24, 0.18);
  border-radius: 50%;
  background: #fffaf4;
  box-shadow: 0 8px 18px rgba(63, 45, 34, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.food-status-step.is-done,
.food-status-step.is-current {
  color: var(--red-deep);
}

.food-status-step.is-done .food-status-node {
  border-color: rgba(46, 204, 113, 0.45);
  background: #effbf4;
}

.food-status-step.is-current .food-status-node {
  border-color: var(--red-deep);
  animation: statusNodePulse 1.45s ease-in-out infinite;
}

.sent-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-deep);
  box-shadow: 0 0 0 8px rgba(178, 13, 24, 0.13);
}

.ready-check {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.ready-bag {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  border: 3px solid var(--red-deep);
  border-radius: 9px 9px 12px 12px;
  background: #fff7ea;
  box-shadow: inset 0 -8px 0 rgba(184, 137, 43, 0.12);
}

.ready-bag-handle {
  position: absolute;
  left: 10px;
  top: -10px;
  width: 18px;
  height: 14px;
  border: 3px solid var(--red-deep);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
}

.ready-bag-fold {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-light);
}

.pig-grill {
  position: relative;
  width: 48px;
  height: 46px;
  display: block;
}

.pig-body {
  position: absolute;
  left: 7px;
  top: 9px;
  width: 34px;
  height: 27px;
  border: 3px solid var(--red-deep);
  border-radius: 18px 18px 15px 15px;
  background: #fff2e4;
}

.pig-ear {
  position: absolute;
  top: -8px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--red-deep);
  background: #fff2e4;
  transform: rotate(45deg);
}

.pig-ear-left {
  left: 2px;
}

.pig-ear-right {
  right: 2px;
}

.pig-snout {
  position: absolute;
  left: 9px;
  bottom: 5px;
  width: 12px;
  height: 8px;
  border-radius: 999px;
  background: var(--red-deep);
}

.grill-bars {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 7px;
  border-top: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
}

.grill-smoke {
  position: absolute;
  top: -2px;
  left: 19px;
  width: 10px;
  height: 14px;
  border-left: 3px solid rgba(184, 137, 43, 0.65);
  border-radius: 50%;
  opacity: 0;
}

.food-status-step.is-current .pig-body {
  animation: pigGrillWiggle 0.85s ease-in-out infinite;
}

.food-status-step.is-current .grill-smoke {
  animation: smokeRise 1.2s ease-in-out infinite;
}

.food-status-step.is-current .sent-dot {
  animation: sentDotBounce 1s ease-in-out infinite;
}

.food-status-step.is-current .ready-check {
  animation: readyCheckPop 1.3s ease-in-out infinite;
}

.food-status-step.is-current .ready-bag {
  animation: readyCheckPop 1.3s ease-in-out infinite;
}

.order-journey[data-stage="4"] .food-status-step.is-done .food-status-node,
.order-journey[data-order-status="Completed"] .food-status-step.is-current .food-status-node {
  animation: none;
}

.order-journey-finished {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--success);
  font-weight: 800;
  text-align: center;
}

.order-prepared-time {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
}

.order-journey-mini {
  margin-top: 14px;
}

.order-journey-mini .food-status-line {
  top: 30px;
}

.order-journey-mini .food-status-node {
  width: 56px;
  height: 56px;
}

.order-journey-mini .food-status-step strong {
  font-size: 0.82rem;
}

.order-journey-mini .pig-grill {
  transform: scale(0.78);
}

.order-journey-mini .ready-check {
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
}

.order-journey-mini .ready-bag {
  width: 34px;
  height: 34px;
  border-width: 2px;
  border-radius: 7px 7px 9px 9px;
}

.order-journey-mini .ready-bag-handle {
  left: 8px;
  top: -8px;
  width: 14px;
  height: 10px;
  border-width: 2px;
}

.order-journey-mini .ready-bag-fold {
  left: 7px;
  right: 7px;
  top: 11px;
}

@keyframes statusNodePulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 18px rgba(63, 45, 34, 0.08), 0 0 0 0 rgba(178, 13, 24, 0.18);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 22px rgba(63, 45, 34, 0.12), 0 0 0 9px rgba(178, 13, 24, 0.06);
  }
}

@keyframes pigGrillWiggle {
  0%, 100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-2px);
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.8);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes sentDotBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes readyCheckPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .food-status-step.is-current .food-status-node,
  .food-status-step.is-current .pig-body,
  .food-status-step.is-current .grill-smoke,
  .food-status-step.is-current .sent-dot,
  .food-status-step.is-current .ready-check {
    animation: none;
  }
}

.cart-drawer .cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer.open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 400px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-line {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-line-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-line-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.cart-empty-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.cart-totals {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.cart-totals .grand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.sticky-cart {
  position: fixed;
  right: 16px;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--red-deep);
  color: #fff;
  box-shadow: 0 8px 18px rgba(122, 7, 16, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sticky-cart:hover {
  box-shadow: 0 10px 22px rgba(122, 7, 16, 0.3);
}

.sticky-cart:active {
  transform: scale(0.94);
}

.sticky-cart:focus-visible {
  outline: 3px solid rgba(184, 137, 43, 0.42);
  outline-offset: 3px;
}

.sticky-cart svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.cart-total-mini {
  color: var(--gold-light);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 116px;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 300;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .qr-display {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .menu-item {
    grid-template-columns: 140px 1fr;
  }

  .menu-item-image {
    height: 140px;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 120px;
  }
}

/* Accessibility and brand refresh */
:root {
  --red-deep: #B20D18;
  --red-dark: #7A0710;
  --red-glow: #C91825;
  --gold: #B8892B;
  --gold-light: #D7A84A;
  --cream: #F7EFE6;
  --cream-soft: #FFF9F2;
  --bg: #FFF9F2;
  --bg-card: #FFFFFF;
  --bg-elevated: #F7EFE6;
  --text: #241615;
  --text-muted: #6F5650;
  --border: rgba(178, 13, 24, 0.18);
  --shadow: 0 10px 28px rgba(80, 31, 24, 0.12);
  --radius: 12px;
}

body {
  background: var(--cream-soft);
  font-size: 18px;
  line-height: 1.7;
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

.site-header {
  background: rgba(255, 249, 242, 0.96);
  border-bottom: 2px solid rgba(178, 13, 24, 0.12);
}

.brand-name {
  color: var(--red-deep);
  font-size: 1.18rem;
}

.customer-badge {
  color: var(--red-dark);
  background: var(--cream);
  font-size: 0.95rem;
}

.btn-lang {
  color: var(--red-deep);
  border-color: rgba(178, 13, 24, 0.28);
  font-size: 1rem;
  min-height: 44px;
}

.journey {
  padding: 0 12px 14px;
}

.journey-step {
  padding: 12px 6px;
  background: #fff;
  border-color: rgba(178, 13, 24, 0.12);
}

.journey-step span {
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 1rem;
}

.journey-step p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.hero {
  padding: 22px 16px 34px;
}

.hero-content {
  max-width: 560px;
}

.hero-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.hero-greeting {
  color: var(--red-deep);
  margin: 0 0 2px;
  font-size: 1.06rem;
  font-weight: 700;
}

.hero-title {
  color: var(--red-deep);
  margin: 0;
  max-width: 100%;
  font-size: 2.25rem;
  line-height: 1.08;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-tagline {
  white-space: pre-line;
  margin: 6px auto 0;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 1.5px solid rgba(46, 204, 113, 0.3);
  border-radius: 999px;
  background: #effbf4;
  color: #157f3b;
  font-size: 0.98rem;
  font-weight: 700;
}

.store-status-pill[data-store-status="busy"] {
  border-color: rgba(184, 137, 43, 0.38);
  background: #fff7d8;
  color: #7a5700;
}

.store-status-pill[data-store-status="closed"] {
  border-color: rgba(178, 13, 24, 0.18);
  background: #f2eeea;
  color: #7a0710;
}

.store-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.12);
}

.store-status-pill[data-store-status="busy"] .store-status-dot {
  box-shadow: 0 0 0 6px rgba(184, 137, 43, 0.14);
}

.store-status-pill[data-store-status="closed"] .store-status-dot {
  box-shadow: 0 0 0 6px rgba(122, 7, 16, 0.1);
}

.start-fulfillment {
  display: grid;
  gap: 10px;
}

.fulfillment-card > span {
  display: grid;
  gap: 2px;
}

.fulfillment-card small {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.menu-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.menu-action-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 10px;
}

.latest-reorder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1.5px solid rgba(184, 137, 43, 0.36);
  border-radius: 14px;
  background: #fffaf0;
  text-align: left;
}

.latest-reorder-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.latest-reorder-card strong {
  display: block;
  margin-top: 2px;
  color: var(--red-deep);
  font-size: 1.06rem;
}

.go-menu-btn {
  margin-top: 12px;
}

.menu-search-label {
  display: grid;
  gap: 6px;
}

.menu-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 78px;
  z-index: 15;
  padding: 8px 0;
  background: rgba(255, 248, 240, 0.96);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

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

.menu-category-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1.5px solid rgba(178, 13, 24, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--red-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-category-tabs button.active {
  background: var(--red-deep);
  color: #fff;
  border-color: var(--red-deep);
}

.menu-item-highlight {
  animation: menuPulse 1.6s ease;
  border-color: rgba(178, 13, 24, 0.55) !important;
  box-shadow: 0 16px 36px rgba(178, 13, 24, 0.18);
}

@keyframes menuPulse {
  0% { transform: translateY(0); }
  35% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.signature-rail {
  margin: 4px 0 18px;
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(80, 31, 24, 0.08);
}

.signature-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.signature-rail-head strong {
  color: var(--red-deep);
  font-size: 1.1rem;
}

.signature-rail-head span {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.signature-rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.signature-rail-scroll::-webkit-scrollbar {
  display: none;
}

.signature-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px;
  padding-bottom: 58px;
  border: 1.5px solid rgba(178, 13, 24, 0.12);
  border-radius: 14px;
  background: #fffaf4;
}

.signature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #f8efe4;
}

.signature-card strong {
  display: block;
}

.signature-card strong {
  color: var(--text);
  font-size: 1rem;
}

.signature-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--red-deep);
  font-weight: 800;
}

.signature-price em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: line-through;
}

.signature-promo {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--red-deep);
  border: 1px solid rgba(178, 13, 24, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.signature-add-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--red-deep);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(178, 13, 24, 0.22);
  cursor: pointer;
}

.signature-add-btn:active {
  transform: scale(0.96);
}

.ingredient-hotspot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ingredient-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff6ed;
  box-shadow: 0 12px 28px rgba(80, 31, 24, 0.12);
}

.ingredient-image-wrap picture {
  display: block;
}

.ingredient-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-brand.hero-image-disabled {
  display: block;
}

.hero-brand.hero-image-disabled .hero-copy {
  justify-items: center;
  text-align: center;
}

.appearance-panel-head {
  align-items: center;
}

.appearance-visibility-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.appearance-enabled-control {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.appearance-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.appearance-image-editor {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.appearance-image-editor h3,
.appearance-image-editor p {
  margin: 0;
}

.appearance-image-preview {
  display: grid;
  gap: 9px;
}

.appearance-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(178, 13, 24, 0.16);
  background: #f7f5f2;
  color: var(--text-muted);
}

.appearance-preview-frame.is-desktop {
  aspect-ratio: 16 / 9;
}

.appearance-preview-frame.is-mobile {
  width: min(100%, 250px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}

.appearance-preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appearance-preview-frame span {
  max-width: 80%;
  text-align: center;
}

.appearance-image-preview > p {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.appearance-save-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.appearance-save-bar > p {
  max-width: 620px;
  margin: 0;
}

@media (max-width: 760px) {
  .ingredient-image-wrap img {
    aspect-ratio: 4 / 5;
  }

  .appearance-editor-grid {
    grid-template-columns: 1fr;
  }

  .appearance-visibility-controls {
    justify-content: flex-start;
  }

  .appearance-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .appearance-save-bar .admin-inline-actions {
    display: grid;
  }
}

.ingredient-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(178, 13, 24, 0.9);
  box-shadow: 0 0 0 8px rgba(178, 13, 24, 0.14);
  cursor: pointer;
}

.ingredient-hotspot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #fff;
}

.ingredient-hotspot.is-active {
  background: var(--gold);
  box-shadow: 0 0 0 9px rgba(184, 137, 43, 0.24);
}

.ingredient-story-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 14px;
  background: #fffdf9;
}

.ingredient-story-panel span {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ingredient-story-panel strong {
  color: var(--red-deep);
  font-size: 1.22rem;
  line-height: 1.3;
}

.ingredient-story-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.fulfillment-price-note {
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--red-deep);
  font-weight: 700;
}

.checkout-fulfillment-summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 2px solid rgba(178, 13, 24, 0.18);
  border-radius: 12px;
  background: #fff9f2;
}

.fulfillment-select {
  display: grid;
  gap: 10px;
}

.payment-method-lock {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 2px solid rgba(178, 13, 24, 0.18);
  border-radius: 12px;
  background: #fff9f2;
  color: var(--text);
}

.payment-method-lock strong {
  color: var(--red-deep);
  font-size: 1.16rem;
}

.payment-method-lock p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.payment-order-review {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.benefits-preview,
.offers-section {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.16);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 10px 22px rgba(80, 31, 24, 0.06);
}

.benefits-preview-head,
.offers-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.benefits-preview-head strong,
.offers-section-head strong {
  display: block;
  color: var(--red-deep);
  font-size: 1.14rem;
  line-height: 1.3;
}

.benefits-preview-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.benefits-preview-head span,
.offers-section-head span {
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.benefit-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.benefit-chip-row::-webkit-scrollbar {
  display: none;
}

.benefit-chip {
  min-width: min(280px, 82vw);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
}

button.benefit-chip {
  cursor: pointer;
}

.benefit-chip.is-applied {
  border-color: rgba(35, 122, 69, 0.35);
  background: #f1f8f3;
}

.benefit-chip.is-applied strong,
.benefit-chip.is-applied small {
  color: #237a45;
}

.benefit-chip.is-muted {
  opacity: 0.68;
}

.benefit-chip strong,
.benefit-chip small {
  display: block;
}

.benefit-chip strong {
  color: var(--red-deep);
  font-size: 1rem;
  line-height: 1.35;
}

.benefit-chip small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.offer-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.offer-icon-tag {
  position: relative;
  background: var(--benefit-green);
  transform: rotate(-10deg);
}

.offer-icon-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.offer-icon-points {
  border-radius: 999px;
  background: #fff4cf;
  color: var(--red-deep);
  border: 1.5px solid rgba(184, 137, 43, 0.32);
}

.offer-icon-image {
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}

.offer-icon-points-image {
  border-radius: 50%;
}

.payment-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(178, 13, 24, 0.14);
}

.payment-review-head strong {
  color: var(--red-deep);
  font-size: 1.18rem;
}

.payment-review-items,
.payment-review-totals {
  display: grid;
  gap: 8px;
}

.payment-fulfillment-review {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(178, 13, 24, 0.16);
  border-bottom: 1px solid rgba(178, 13, 24, 0.16);
}

.payment-fulfillment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-fulfillment-head > strong {
  color: var(--red-deep);
  font-size: 1.12rem;
}

.payment-fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.payment-fulfillment-grid div {
  min-width: 0;
}

.payment-fulfillment-grid span,
.payment-fulfillment-grid strong {
  display: block;
}

.payment-fulfillment-grid span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.payment-fulfillment-grid strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.payment-totals-review {
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(178, 13, 24, 0.16);
  border-bottom: 1px solid rgba(178, 13, 24, 0.16);
}

.journey.is-locked .journey-step.done {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 560px) {
  .payment-fulfillment-grid {
    grid-template-columns: 1fr;
  }
}

.payment-review-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 13, 24, 0.1);
  border-radius: 10px;
  background: #fffdf9;
}

.payment-review-line strong,
.payment-review-line span {
  display: block;
}

.payment-review-line span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.payment-review-line p,
.payment-review-line b {
  margin: 0;
  color: var(--red-deep);
  white-space: nowrap;
}

.discount-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.18);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--red-deep);
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
}

.offers-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.offer-icon-reward {
  background: #b7922e;
  color: #fff;
  font-weight: 800;
}

.customer-coupon-wallet {
  margin-bottom: 16px;
  border: 1px solid #ead29b;
  background: #fffaf0;
  border-radius: 8px;
  overflow: hidden;
}

.coupon-wallet-head,
.coupon-wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.coupon-wallet-head {
  justify-content: space-between;
  border-bottom: 1px solid #ead29b;
}

.coupon-wallet-head div,
.coupon-wallet-row div {
  min-width: 0;
  flex: 1;
}

.coupon-wallet-head strong,
.coupon-wallet-head small,
.coupon-wallet-row strong,
.coupon-wallet-row small {
  display: block;
}

.coupon-wallet-head small,
.coupon-wallet-row small,
.coupon-wallet-empty {
  color: #765d55;
  font-size: 15px;
  line-height: 1.5;
}

.coupon-wallet-head b {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b7922e;
}

.coupon-wallet-row + .coupon-wallet-row {
  border-top: 1px solid #f0dfb7;
}

.coupon-wallet-row.is-selected {
  background: #f0faf3;
  box-shadow: inset 4px 0 #178c43;
}

.coupon-wallet-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff4e8;
}

.coupon-wallet-row p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.coupon-wallet-row > div > span {
  display: block;
  margin-top: 6px;
  color: var(--red-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.coupon-code-row .btn {
  min-width: 96px;
  flex: 0 0 auto;
}

.coupon-wallet-empty {
  margin: 0;
  padding: 14px 16px;
}

@media (max-width: 560px) {
  .coupon-wallet-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .coupon-wallet-row .btn {
    width: 100%;
    min-height: 44px;
  }

  .coupon-wallet-image {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
}

.offers-row-copy strong,
.offers-row-copy small {
  display: block;
  text-align: left;
}

.offers-row-copy strong {
  color: var(--red-deep);
  font-size: 1.04rem;
}

.offers-row-copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.offers-row-arrow {
  color: var(--red-deep);
  font-size: 1.8rem;
  line-height: 1;
}

.discount-panel {
  margin-top: 10px;
}

.stackable-promo-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(178, 13, 24, 0.12);
}

.stackable-promo-list > strong {
  color: var(--benefit-green);
}

.stackable-promo-list p {
  margin: 0;
  color: var(--text-muted);
}

.stackable-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff7ef;
}

button.stackable-promo-row {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stackable-promo-row span {
  color: var(--text);
  line-height: 1.35;
}

.stackable-promo-row b {
  color: var(--red-deep);
  white-space: nowrap;
}

.moo-points-offer.is-disabled {
  opacity: 0.62;
}

.switch-control {
  position: relative;
  width: 54px;
  height: 32px;
  display: inline-block;
  flex-shrink: 0;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7d0c9;
  transition: background 0.2s ease;
}

.switch-control span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.switch-control input:checked + span {
  background: var(--red-deep);
}

.switch-control input:checked + span::after {
  transform: translateX(22px);
}

.switch-control input:disabled + span {
  opacity: 0.5;
}

.self-ride-info {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.16);
  border-radius: 12px;
  background: #fffdf9;
}

.self-ride-info strong {
  color: var(--red-deep);
}

.self-ride-info p {
  margin: 0;
  color: var(--text-muted);
}

.self-ride-info a {
  color: var(--red-deep);
  font-weight: 800;
  text-decoration: none;
}

.checkout-fulfillment-summary span,
.checkout-fulfillment-summary p {
  margin: 0;
  color: var(--text-muted);
}

.checkout-fulfillment-summary strong {
  color: var(--red-deep);
  font-size: 1.22rem;
}

.hero-content > img {
  display: none !important;
}

.card {
  border-color: rgba(178, 13, 24, 0.14);
}

label,
legend,
.section-sub,
.menu-desc,
.cart-line-note,
.promptpay-id {
  font-size: 1rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(178, 13, 24, 0.22);
  background: #fff;
  color: var(--text);
  font-size: 1.08rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(184, 137, 43, 0.32);
  border-color: var(--red-deep);
}

.btn {
  min-height: 50px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--red-deep);
  box-shadow: 0 6px 18px rgba(178, 13, 24, 0.24);
}

.btn-ghost {
  color: var(--red-deep);
  background: #fff;
  border: 1.5px solid rgba(178, 13, 24, 0.22);
}

.btn-large {
  min-height: 58px;
  font-size: 1.12rem;
}

.section {
  max-width: 720px;
}

.section h2 {
  color: var(--red-deep);
  font-size: 1.7rem;
}

.menu-category h3 {
  color: var(--red-deep);
}

.menu-item-head h4 {
  font-size: 1.2rem;
}

.menu-price,
.confirm-row strong,
.cart-totals .grand,
.qr-amount strong {
  color: var(--red-deep);
}

.option-chip,
.radio-card {
  min-height: 52px;
  background: #fff;
  border: 1.5px solid rgba(178, 13, 24, 0.16);
  font-size: 1rem;
}

.option-chip:has(input:checked),
.radio-card:has(input:checked) {
  border-color: var(--red-deep);
  background: #FFF1EA;
}

.qty-btn {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1.5px solid rgba(178, 13, 24, 0.22);
  color: var(--red-deep);
  font-size: 1.35rem;
}

.qty-value {
  font-size: 1.2rem;
}

.pickup-schedule-fields,
.discount-code-field {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.pickup-confirm {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 2px solid rgba(178, 13, 24, 0.22);
  border-radius: 12px;
  background: #FFF1EA;
  font-size: 1.05rem;
}

.pickup-confirm strong {
  color: var(--red-deep);
  font-size: 1.35rem;
  line-height: 1.35;
}

.order-tracker {
  margin-top: 16px;
  text-align: left;
  border: 2px solid rgba(178, 13, 24, 0.18);
}

.order-tracker h2 {
  margin: 0 0 10px;
  color: var(--red-deep);
  font-size: 1.35rem;
}

.tracker-status {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff1ea;
  color: var(--red-deep);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.tracker-status[data-order-status="Ready to serve"] {
  border: 1px solid rgba(30, 132, 73, 0.24);
  background: #edf9f1;
  color: #147a3d;
  font-size: clamp(1.15rem, 3vw, 1.42rem);
  font-weight: 900;
}

.tracked-orders-list {
  display: grid;
  gap: 12px;
}

.tracked-order-card {
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 12px;
  background: #fffdf9;
}

.tracked-order-card + .tracked-order-card {
  border-top-width: 2px;
}

.tracked-order-card .order-id-line {
  margin-top: 0;
}

.tracked-order-card .section-sub {
  margin: 10px 0 0;
}

.order-history-list {
  display: grid;
  gap: 12px;
}

.public-row-list {
  display: grid;
  gap: 12px;
}

.public-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid rgba(178, 13, 24, 0.14);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(80, 31, 24, 0.06);
}

.public-row-media {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff4e8;
}

.public-row-placeholder {
  border: 1.5px dashed rgba(178, 13, 24, 0.18);
}

.public-row strong {
  display: block;
  color: var(--red-deep);
  font-size: 1.08rem;
  line-height: 1.3;
}

.public-row p {
  margin: 6px 0;
  color: var(--text);
  line-height: 1.5;
}

.public-row span {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.order-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) minmax(140px, 0.45fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid rgba(178, 13, 24, 0.16);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(80, 31, 24, 0.06);
}

.order-history-row .order-id-line {
  margin-top: 0;
}

.order-history-main {
  min-width: 0;
}

.order-history-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--red-deep);
  font-weight: 800;
}

.order-history-actions span {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.order-history-journey-slot {
  min-height: 44px;
}

.history-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--red-deep);
  font-weight: 800;
}

.reorder-order-btn {
  min-width: 116px;
}

.confirm-row {
  border-bottom-color: rgba(178, 13, 24, 0.12);
  font-size: 1rem;
}

.qr-panel {
  background: var(--cream-soft);
  border-color: rgba(178, 13, 24, 0.24);
}

.qr-instruction {
  color: var(--red-deep);
  font-size: 1.05rem;
}

.cart-panel {
  background: #fff;
}

.cart-line {
  border-bottom-color: rgba(178, 13, 24, 0.1);
}

.cart-line.is-unavailable {
  margin: 8px -8px;
  padding: 12px 8px;
  border: 1px solid rgba(178, 13, 24, 0.22);
  border-radius: 8px;
  background: #fff7f4;
}

.cart-line.is-unavailable .cart-line-head > span,
.cart-line.is-unavailable .cart-line-note {
  color: #876d66;
}

.cart-line.is-unavailable .qty-btn:disabled,
.cart-line.is-unavailable .cart-edit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.cart-unavailable-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}

.cart-availability-alert {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 12px;
  border-left: 4px solid var(--red-deep);
  border-radius: 6px;
  background: #fff1ed;
  color: var(--text);
}

.cart-availability-alert strong {
  color: var(--red-deep);
}

.cart-availability-alert span {
  color: var(--text-muted);
  line-height: 1.5;
}

.cart-availability-alert.is-protected {
  border-left-color: #178c43;
  background: #f0faf4;
}

.cart-availability-alert.is-protected strong {
  color: #157f3b;
}

#cartCheckoutBtn:disabled {
  background: #d5ceca;
  color: #756d68;
  box-shadow: none;
  cursor: not-allowed;
}

.sticky-cart {
  background: var(--red-deep);
  box-shadow: 0 10px 24px rgba(178, 13, 24, 0.24);
}

.cart-count {
  background: var(--gold-light);
}

.cart-total-mini {
  color: #fff;
}

.sticky-cart {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
}

.sticky-cart-copy {
  display: none;
}

.sticky-cart-copy strong {
  font-size: 0.9rem;
}

.sticky-cart-copy small {
  color: #fff4db;
  font-size: 0.78rem;
  font-weight: 700;
}

.radio-card.is-unavailable {
  opacity: 0.48;
  cursor: not-allowed;
}

.radio-card.is-unavailable input {
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 8px;
  border: 1.5px solid rgba(67, 6, 6, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(80, 31, 24, 0.16);
}

.bottom-nav .bottom-nav-primary {
  margin-top: -16px;
  min-height: 80px;
  border-radius: 16px;
  background: var(--red-deep);
  color: #fff;
  box-shadow: 0 12px 24px rgba(178, 13, 24, 0.24);
}

.bottom-nav .bottom-nav-primary svg {
  width: 30px;
  height: 30px;
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 70px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--red-dark);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.bottom-nav svg {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-icon {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.bottom-nav .bottom-nav-primary .bottom-nav-icon {
  width: 31px;
  height: 31px;
  filter: brightness(0) invert(1);
}

.bottom-nav .nav-icon-fallback {
  display: block;
  line-height: 0;
}

.bottom-nav-icon:not(.hidden) + .nav-icon-fallback {
  display: none;
}

.bottom-nav span {
  display: block;
  white-space: nowrap;
  letter-spacing: 0;
}

.toast {
  background: #fff;
  border-color: var(--red-deep);
}

@media (min-width: 760px) {
  .hero-content {
    max-width: 1080px;
  }

  .hero-brand {
    grid-template-columns: minmax(280px, 1fr) minmax(400px, 420px);
    gap: 36px;
    text-align: left;
  }

  .hero-copy {
    justify-items: start;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-tagline {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
  }

  .store-status-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .menu-tools {
    position: sticky;
    top: 68px;
    z-index: 16;
    padding: 10px 0;
    background: rgba(255, 249, 242, 0.96);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .direct-order-strip {
    display: grid;
  }

  .direct-order-strip .btn {
    width: 100%;
  }

  .signature-rail-scroll {
    grid-auto-columns: minmax(210px, 78vw);
  }

  .menu-item-action-row {
    gap: 8px;
  }

  .qty-row {
    gap: 7px;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
  }

  .add-cart-btn {
    min-height: 40px;
    padding-inline: 14px;
  }

  .rating-group {
    display: grid;
  }

  .rating-stars {
    justify-content: space-between;
    width: 100%;
  }

  .food-feedback-panel .cart-edit-body {
    gap: 12px;
  }

  .food-feedback-panel .rating-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 9px 11px;
  }

  .food-feedback-panel .rating-stars button {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  .discount-row {
    grid-template-columns: 1fr;
  }

  .journey-step p {
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 6px;
  }

  .moo-points-badge {
    min-width: 48px;
    min-height: 40px;
    padding: 5px 7px;
    font-size: 0.86rem;
  }

  .customer-badge {
    max-width: none;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.88rem;
  }

  .menu-category-tabs {
    top: 70px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .menu-category-tabs button {
    min-height: 44px;
    font-size: 1rem;
  }

  .order-history-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .public-row-media {
    width: 86px;
    height: 86px;
  }

  .order-history-actions {
    justify-items: stretch;
  }

  .order-history-actions strong,
  .order-history-actions span {
    text-align: left;
  }

  .menu-image-preview {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .menu-image-preview img {
    width: 72px;
    height: 72px;
  }

  .menu-image-preview .btn {
    grid-column: 1 / -1;
  }

  .order-journey {
    gap: 6px;
  }

  .food-status-line {
    top: 31px;
  }

  .food-status-node {
    width: 58px;
    height: 58px;
  }

  .food-status-step strong {
    font-size: 0.8rem;
  }

  .pig-grill {
    transform: scale(0.78);
  }

  .ready-check {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }
}

/* Home image is a true full-width background, not a framed illustration. */
.hero {
  padding: 0 0 34px;
}

.hero-content {
  max-width: none;
}

.hero-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: clamp(430px, 62vh, 680px);
  margin: 0 0 16px;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden;
  background-color: #f7f5f2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: left;
}

.hero-brand.has-background-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.34);
}

.hero-brand .hero-copy {
  position: relative;
  z-index: 1;
  justify-items: start;
  width: min(100%, 1080px);
  margin: 0 auto;
  text-align: left;
}

.hero-brand .hero-greeting,
.hero-brand .hero-title,
.hero-brand .hero-tagline {
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.96);
}

.hero-brand .hero-tagline {
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
  color: #342522;
}

.hero-content > .store-status-pill,
.hero-content > .hero-form,
.hero-content > .order-tracker,
.hero-content > .home-rating-prompt {
  margin-left: auto;
  margin-right: auto;
}

.home-rating-prompt {
  position: relative;
  width: min(calc(100% - 32px), 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 151, 58, 0.42);
  border-radius: 8px;
  background: #fffdf8;
}

.home-rating-copy {
  min-width: 0;
}

.home-rating-copy strong,
.home-rating-copy span {
  display: block;
}

.home-rating-copy strong {
  color: var(--red-deep);
  font-size: 1.05rem;
}

.home-rating-copy span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.home-rating-prompt .btn {
  min-height: 44px;
  padding: 9px 16px;
}

.home-rating-dismiss {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.hero-content > .store-status-pill {
  display: flex;
  width: max-content;
}

.order-tracker.has-finished-order {
  max-width: 1080px;
  padding: 16px 18px;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: none;
}

.order-tracker.has-finished-order h2 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.tracked-order-card.is-finished {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tracked-order-card.is-finished .order-history-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
}

.tracked-order-card.is-finished .order-id-line,
.tracked-order-card.is-finished .tracked-order-meta {
  margin: 0;
}

.tracked-order-card.is-finished .tracked-order-meta {
  grid-column: 1 / -1;
}

.tracked-order-card.is-finished .tracker-status {
  justify-self: start;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tracked-order-card.is-finished .order-history-journey-slot {
  display: none;
}

.tracked-order-card.is-finished .order-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tracked-order-card.is-finished .order-history-actions .btn {
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
}

@media (max-width: 759px) {
  .hero-brand {
    min-height: min(66vh, 590px);
    padding: 28px 20px;
    background-position: center;
  }

  .hero-brand.has-background-image::before {
    background: rgba(255, 255, 255, 0.42);
  }

  .hero-brand .hero-copy {
    justify-items: start;
  }

  .hero-brand .hero-title {
    white-space: normal;
  }

  .hero-content > .store-status-pill,
  .hero-content > .hero-form,
  .hero-content > .order-tracker,
  .hero-content > .home-rating-prompt {
    width: calc(100% - 32px);
  }

  .home-rating-prompt {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-rating-prompt .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .home-rating-dismiss {
    grid-column: 2;
    grid-row: 1;
  }

  .tracked-order-card.is-finished,
  .tracked-order-card.is-finished .order-history-main {
    grid-template-columns: 1fr;
  }

  .tracked-order-card.is-finished .order-history-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.hero-brand .hero-greeting {
  color: var(--gold);
}

.moo-points-badge.is-loading #mooPointsValue {
  opacity: 0.65;
}

.moo-points-badge.is-unavailable {
  cursor: pointer;
}

.moo-points-badge.is-unavailable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.special-menu-rail {
  border-color: rgba(201, 151, 58, 0.48);
  background: #fff;
}

.special-menu-rail .signature-rail-head strong {
  color: #8a6200;
}

.special-menu-rail .signature-rail-head span {
  color: var(--red-deep);
}

.special-menu-card {
  border-color: rgba(201, 151, 58, 0.42);
}

.special-menu-card .signature-add-btn {
  background: var(--gold);
  color: #241706;
}

.menu-category-tabs button[data-menu-category="promotion"] {
  border-color: rgba(201, 151, 58, 0.7);
  color: #795500;
}

.menu-category-tabs button[data-menu-category="promotion"].active {
  border-color: var(--gold);
  background: var(--gold);
  color: #241706;
}

/* Checkout emphasis: stable dimensions keep the journey from shifting. */
.journey-steps {
  align-items: stretch;
  padding: 4px 3px;
}

.journey-step {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: scale(0.96);
  transform-origin: center;
}

.journey-step.done {
  cursor: pointer;
  background: #fffaf0;
}

.journey-step.active {
  z-index: 1;
  opacity: 1;
  color: #fff;
  background: var(--red-deep);
  border-color: var(--red-deep);
  box-shadow: 0 8px 18px rgba(178, 13, 24, 0.2);
  transform: scale(1.035);
}

.journey-step.active span {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--red-deep);
  font-size: 1.08rem;
}

.journey-step.active p {
  color: #fff;
  font-size: 1.06rem;
}

.confirm-row.grand {
  align-items: baseline;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid rgba(178, 13, 24, 0.2);
}

.confirm-row.grand span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.confirm-row.grand strong,
.qr-amount strong {
  color: var(--red-deep);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.stackable-promo-row.is-blocked {
  border: 1px dashed rgba(113, 91, 84, 0.35);
  background: #f7f4f1;
}

.stackable-promo-row.is-blocked span strong,
.stackable-promo-row.is-blocked span small {
  display: block;
}

.stackable-promo-row.is-blocked span small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.stackable-promo-row.is-blocked b {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Home header: reserve a stable center column for the customer's full greeting. */
.header-inner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
}

.header-home {
  grid-column: 1;
}

.customer-badge {
  grid-column: 2;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  min-width: max-content;
}

/* Home hero: keep the food visible while giving the brand copy reliable contrast. */
.hero-brand.has-background-image::before {
  background: rgb(31 13 10 / var(--hero-overlay-alpha, 0.62));
}

.hero-brand.has-background-image .hero-copy {
  width: min(100%, 640px);
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 18px;
  border-left: 4px solid #d1a340;
}

.hero-brand.has-background-image .hero-greeting {
  margin-bottom: 8px;
  color: #f2cf7d;
  font-size: 1.08rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-brand.has-background-image .hero-title {
  color: #fff;
  font-size: 2.75rem;
  line-height: 1.12;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.hero-brand.has-background-image .hero-tagline {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.62);
}

@media (max-width: 759px) {
  .header-inner {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .header-actions {
    gap: 4px;
  }

  .customer-badge {
    font-size: 0.86rem;
    padding-inline: 7px;
  }

  .btn-lang {
    width: 42px;
    padding-inline: 0;
  }

  .hero-brand.has-background-image::before {
    background: rgb(31 13 10 / var(--hero-overlay-alpha, 0.62));
  }

  .hero-brand.has-background-image .hero-copy {
    max-width: 100%;
    padding-left: 14px;
    border-left-width: 3px;
  }

  .hero-brand.has-background-image .hero-title {
    font-size: 2.1rem;
  }

  .hero-brand.has-background-image .hero-tagline {
    max-width: 330px;
    font-size: 1.02rem;
    line-height: 1.58;
  }
}

/* Keep branch cards compact after the legacy status-pill rules above. */
.branch-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 560px);
  margin: 14px auto 0;
}

.branch-status-list .branch-status-pill {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

@media (max-width: 520px) {
  .branch-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-status-list .branch-status-pill {
    padding: 9px;
  }

  .branch-status-copy strong {
    font-size: 0.84rem;
  }

  .branch-status-copy small {
    font-size: 0.76rem;
  }
}

/* Final customer-menu cascade. Keep this after legacy component rules. */
#menuSection .menu-tools {
  position: sticky;
  top: 72px;
  z-index: 18;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 0;
  background: rgba(255, 248, 234, 0.96);
  backdrop-filter: blur(12px);
}

#menuSection .menu-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  align-items: center;
  gap: 8px;
}

#menuSection .menu-category-tabs {
  display: block;
  overflow: visible;
  position: static;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

#menuSection .menu-category-select,
#menuSection .menu-category-select label {
  display: block;
  min-width: 0;
  position: relative;
}

#menuSection .menu-category-select select {
  width: 100%;
  min-height: 46px;
  appearance: none;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  padding: 8px 42px 8px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

#menuSection .menu-category-select svg {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
}

#menuSection .menu-tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

#menuSection .menu-tool-icon:hover,
#menuSection .menu-tool-icon:focus-visible,
#menuSection .menu-tool-icon.active {
  border-color: var(--red-deep);
  color: var(--red-deep);
  background: #fff8f5;
}

#menuSection .menu-search-label {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 26, 26, 0.18);
  border-radius: 8px;
  padding: 0 8px 0 12px;
  background: #fff;
}

#menuSection .menu-search-label.hidden {
  display: none;
}

#menuSection .menu-search-label input {
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: 0;
}

#menuSection .menu-search-label input::-webkit-search-cancel-button {
  appearance: none;
}

#menuSection .benefits-preview {
  border-color: var(--benefit-green-border);
  border-radius: 8px;
  background: var(--benefit-green-soft);
  box-shadow: none;
}

#menuSection .benefits-preview-head strong,
#menuSection .benefit-chip strong {
  color: var(--benefit-green);
}

#menuSection .benefit-chip {
  grid-template-columns: 42px minmax(0, 1fr);
  border-color: var(--benefit-green-border);
  border-radius: 8px;
  box-shadow: none;
}

#menuSection .benefit-chip.is-applied {
  border-color: rgba(23, 107, 58, 0.42);
  background: #e5f5ea;
}

#menuSection .benefit-chip-image {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.customer-coupon-wallet {
  border-color: var(--benefit-green-border);
  background: #fff;
}

.coupon-wallet-head {
  border-color: var(--benefit-green-border);
  background: var(--benefit-green-soft);
}

.coupon-wallet-head strong {
  color: var(--benefit-green);
}

.coupon-wallet-head b {
  background: var(--benefit-green);
}

.coupon-wallet-row + .coupon-wallet-row {
  border-top-color: rgba(23, 107, 58, 0.14);
}

.coupon-wallet-row > div > span {
  display: none;
}

@media (max-width: 560px) {
  #menuSection .menu-tools {
    top: 66px;
  }

  #menuSection .group-order-entry {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  #menuSection .group-order-entry .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Four-stage checkout: review discounts before creating the payment QR. */
.journey-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-final-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(178, 13, 24, 0.16);
  background: #fff;
}

.payment-final-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.payment-final-summary strong {
  color: var(--red-deep);
  font-size: 1.55rem;
}

.order-savings-message {
  margin: 8px 0 0;
  color: #176b3a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.stackable-promo-row.offer-code-row.is-selected {
  border-color: rgba(23, 107, 58, 0.38);
  background: #edf8f0;
}

.stackable-promo-row.offer-code-row.is-selected strong,
.stackable-promo-row.offer-code-row.is-selected b {
  color: #176b3a;
}

.points-earned-row,
.points-earned-row strong {
  color: var(--benefit-green);
}

.points-earned-row strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.points-inline-icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex: 0 0 21px;
  object-fit: contain;
}

.history-points-earned {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--success, #2f7a47);
  font-weight: 700;
}

.history-points-earned .points-inline-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.points-inline-icon-fallback {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-countdown {
  margin: 0;
  color: var(--benefit-green);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.qr-refresh-btn {
  width: 100%;
}

.confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 12px;
}

.confirm-actions .btn {
  width: 100%;
  min-width: 0;
}

@media (max-width: 560px) {
  .confirm-actions {
    grid-template-columns: 1fr 1.25fr;
  }

  .confirm-actions .btn {
    padding-inline: 10px;
    font-size: 0.94rem;
  }
}

@media (max-width: 560px) {
  .journey {
    padding-inline: 6px;
  }

  .journey-steps {
    gap: 4px;
  }

  .journey-step {
    min-height: 78px;
    padding-inline: 2px;
  }

  .journey-step p {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .journey-step.active p {
    font-size: 0.78rem;
  }
}

/* Fast, compact ordering surfaces */
.menu-category {
  margin-bottom: 24px;
}

.menu-category h3 {
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom-width: 1px;
}

.menu-item-card {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 128px;
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 8px;
  box-shadow: none;
  contain-intrinsic-size: 128px;
}

.menu-item-card .menu-item-image {
  width: 104px;
  height: 104px;
  border-radius: 7px;
}

.menu-item-content {
  min-width: 0;
}

.menu-item-card .menu-item-head h4 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.menu-item-card .menu-price {
  font-size: 1.02rem;
}

.menu-desc-compact {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.allergen-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: #7a3d00;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.allergen-warning > span {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #c48a27;
  border-radius: 50%;
  color: #7a3d00;
  font-size: 0.74rem;
}

.menu-item-toggle {
  min-width: 78px;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(178, 13, 24, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--red-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-item-toggle::before {
  content: "+";
  margin-right: 6px;
  font-size: 1.1em;
}

.menu-item-card.is-expanded .menu-item-toggle::before {
  content: "−";
}

.menu-item-details {
  display: none;
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(178, 13, 24, 0.12);
}

.menu-item-card.is-expanded .menu-item-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.menu-item-details > * {
  min-width: 0;
}

.menu-item-details .item-options,
.menu-item-details .option-group,
.menu-item-details .option-choices {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.menu-item-details .option-chip {
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
}

.menu-note-field input {
  min-height: 46px;
}

.menu-info-panel {
  display: grid;
  gap: 4px;
  margin: 8px 0 14px;
  padding: 14px 4px 14px 14px;
  border-left: 3px solid var(--gold);
}

.menu-info-panel span {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-info-panel strong {
  color: var(--red-deep);
  font-size: 1.08rem;
}

.menu-info-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

#checkoutSection .checkout-form,
#reviewSection .payment-form,
#paymentSection .payment-form {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#checkoutSection .checkout-customer,
#checkoutSection .fulfillment-select,
#checkoutSection #pickupLocationField,
#checkoutSection .quick-schedule-choice,
#checkoutSection #pickupScheduleFields,
#checkoutSection > form > label,
#checkoutSection > form > fieldset:not(.fulfillment-select) {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(178, 13, 24, 0.13);
}

#checkoutSection .checkout-customer h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

#checkoutSection .radio-card {
  margin-bottom: 6px;
}

#paymentSection .payment-method-lock {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(178, 13, 24, 0.13);
  border-radius: 0;
  background: transparent;
}

#paymentSection .qr-panel {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(178, 13, 24, 0.13);
  border-radius: 0;
  background: transparent;
}

#paymentSection .qr-display {
  border: 0;
  background: transparent;
}

#paymentSection .payment-final-summary:empty {
  display: none;
}

.cart-line .allergen-warning,
.payment-review-line .allergen-warning {
  margin-top: 5px;
}

@media (max-width: 560px) {
  .menu-item-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 116px;
    padding: 10px;
  }

  .menu-item-card .menu-item-image {
    width: 92px;
    height: 92px;
  }

  .menu-item-card .menu-item-head {
    display: grid;
    gap: 3px;
  }

  .menu-item-card .menu-price {
    justify-self: start;
  }

  .menu-item-action-row {
    align-items: flex-end;
  }
}

/* Mobile ordering polish: light journey, readable menus, and unobstructed actions. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
}

.journey {
  padding: 2px 14px 9px;
  background: transparent;
}

.journey-steps {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 5px 0 0;
  gap: 0;
  align-items: start;
}

.journey-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(178, 13, 24, 0.18);
}

.journey-step,
.journey-step.active,
.journey-step.done {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 61px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  opacity: 0.58;
  transform: none;
}

.journey-step span,
.journey-step.active span,
.journey-step.done span {
  display: inline-flex;
  width: 33px;
  height: 33px;
  margin: 0 auto 5px;
  border: 1px solid rgba(178, 13, 24, 0.2);
  background: #fffaf6;
  color: var(--red-deep);
  font-size: 0.88rem;
  box-shadow: 0 0 0 4px rgba(255, 250, 244, 0.96);
}

.journey-step p,
.journey-step.active p {
  margin: 0 auto;
  max-width: 9.5em;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.28;
}

.journey-step.done {
  color: #8a6200;
  opacity: 0.88;
}

.journey-step.done span {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.journey-step.active {
  color: var(--red-deep);
  opacity: 1;
}

.journey-step.active span {
  width: 36px;
  height: 36px;
  border-color: var(--red-deep);
  background: var(--red-deep);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 0 4px rgba(255, 250, 244, 0.98), 0 5px 12px rgba(178, 13, 24, 0.18);
}

.menu-item-card {
  grid-template-columns: 104px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.menu-item-content,
.menu-item-details,
.menu-item-action-row,
.qty-row {
  min-width: 0;
}

.menu-desc-compact {
  display: -webkit-box;
  overflow: hidden;
  max-height: 4.65em;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.menu-item-card.is-expanded .menu-desc-compact {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.menu-item-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 82px;
  min-height: 40px;
  padding: 7px 13px;
}

.menu-item-card .menu-item-toggle::before,
.menu-item-card.is-expanded .menu-item-toggle::before {
  content: none;
}

.menu-item-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.menu-item-card.is-expanded .menu-item-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.menu-item-toggle:disabled::after {
  display: none;
}

.menu-item-details {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
  padding-top: 13px;
}

.menu-item-card.is-expanded .menu-item-details {
  gap: 13px;
}

.menu-item-details .item-options,
.menu-item-details .option-group {
  display: grid;
  gap: 8px;
}

.menu-item-details .option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-item-details .option-chip {
  flex: 1 1 88px;
  justify-content: center;
  min-height: 44px;
  border-color: rgba(178, 13, 24, 0.18);
  background: #fff;
  white-space: nowrap;
}

.menu-item-details .option-chip:has(input:checked) {
  border-color: var(--red-deep);
  background: #fff3f1;
  color: var(--red-deep);
}

.menu-item-details .option-chip input {
  accent-color: var(--red-deep);
}

.menu-item-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.qty-row {
  justify-content: flex-start;
  gap: 8px;
}

.qty-value {
  min-width: 1.5em;
  text-align: center;
  font-weight: 800;
}

.add-cart-btn {
  min-width: 116px;
  max-width: 100%;
  white-space: nowrap;
}

#menuSection {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
  left: 50%;
  right: auto;
  bottom: max(7px, env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 16px), 620px);
  min-height: 70px;
  gap: 1px;
  padding: 6px 4px;
  border-width: 1px;
  border-radius: 14px;
  transform: translateX(-50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.bottom-nav button {
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 4px 2px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.2;
}

.bottom-nav .bottom-nav-primary {
  min-height: 68px;
  margin-top: -9px;
  border-radius: 12px;
}

.bottom-nav-icon,
.bottom-nav svg {
  width: 24px;
  height: 24px;
}

.bottom-nav .bottom-nav-primary .bottom-nav-icon,
.bottom-nav .bottom-nav-primary svg {
  width: 27px;
  height: 27px;
}

.sticky-cart {
  right: 13px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 72;
  width: 48px;
  min-width: 48px;
  height: 48px;
}

body.menu-item-editing .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
}

body.menu-item-editing .sticky-cart {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .journey {
    padding-inline: 9px;
  }

  .journey-step,
  .journey-step.active,
  .journey-step.done {
    min-height: 59px;
    padding-inline: 1px;
  }

  .journey-step p,
  .journey-step.active p {
    font-size: 0.76rem;
  }

  .menu-item-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    min-height: 108px;
    padding: 11px;
  }

  .menu-item-card .menu-item-image {
    width: 88px;
    height: 88px;
  }

  .menu-item-card .menu-item-head h4 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .menu-desc-compact {
    font-size: 0.9rem;
  }

  .menu-item-action-row {
    align-items: center;
  }

  .qty-btn {
    width: 39px;
    height: 39px;
  }

  .add-cart-btn {
    min-height: 42px;
    padding-inline: 13px;
  }
}

@media (max-width: 370px) {
  .menu-item-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .menu-item-card .menu-item-image {
    width: 80px;
    height: 80px;
  }

  .menu-item-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .add-cart-btn {
    width: 100%;
  }

  .bottom-nav button {
    font-size: 0.78rem;
  }
}

/* SOL-inspired customer polish: clear decisions, quiet motion, Dangkrob identity. */
.header-icon-image,
.header-icon-fallback {
  width: 22px;
  height: 22px;
}

.header-icon-image {
  display: block;
  object-fit: contain;
}

.header-icon-fallback {
  display: inline-grid;
  place-items: center;
}

.header-icon-fallback svg {
  width: 100%;
  height: 100%;
}

.header-icon-image:not(.hidden) + .header-icon-fallback {
  display: none;
}

.moo-points-icon-image,
.moo-points-icon-fallback {
  flex: 0 0 22px;
}

.service-entry {
  padding-top: 22px;
}

.service-method-choice {
  min-height: 158px;
  padding: 12px;
  border-color: rgba(34, 26, 26, 0.13);
  box-shadow: none;
}

.service-method-choice:hover {
  box-shadow: none;
}

.service-method-choice.is-selected {
  border-color: rgba(153, 0, 0, 0.48);
  background: #fffaf8;
  box-shadow: none;
}

.service-method-visual {
  width: 96px;
  height: 96px;
  margin-bottom: 6px;
}

.service-branch-choice {
  min-height: 76px;
  border-color: rgba(34, 26, 26, 0.13);
  border-radius: 8px;
}

.service-branch-choice strong {
  letter-spacing: 0;
}

#newsSection {
  max-width: 880px;
  padding-inline: 18px;
}

#newsSection .section-head {
  margin-bottom: 12px;
}

#publicNewsList {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 410px);
  gap: 14px;
  margin-inline: -18px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

#publicNewsList::-webkit-scrollbar {
  display: none;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 26, 26, 0.12);
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.news-card-open {
  width: 100%;
  display: grid;
  padding: 0;
  border: 0;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.news-card-open:focus-visible {
  outline: 3px solid rgba(201, 151, 58, 0.48);
  outline-offset: -3px;
}

.news-card-media-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f1ed;
}

.news-card-media,
.news-card-placeholder {
  width: 100%;
  height: 100%;
}

.news-card-media {
  display: block;
  object-fit: cover;
}

.news-card-placeholder {
  display: block;
  background: #f5f1ed;
}

.news-card-kicker {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-card-copy {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.news-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-top: 2px;
}

.news-card-meta small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.news-card-meta b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-deep);
  font-size: 0.88rem;
}

.news-card-meta b span {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.news-detail-panel {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.news-detail-head {
  padding-bottom: 14px;
}

.news-detail-kicker {
  color: var(--red-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f1ed;
}

.news-detail-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.news-detail-copy h3,
.news-detail-copy p {
  margin: 0;
}

.news-detail-copy h3 {
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.4;
}

.news-detail-copy p {
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
}

.news-detail-copy > span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.menu-item-card.is-sold-out {
  border-color: rgba(34, 26, 26, 0.1);
  background: #f7f6f5;
}

.menu-item-card.is-sold-out .menu-item-image {
  filter: grayscale(1);
  opacity: 0.42;
}

.menu-item-card.is-sold-out .menu-item-content {
  opacity: 0.68;
}

.menu-item-card.is-sold-out .badge-soldout {
  opacity: 1;
}

.order-journey {
  gap: 4px;
  margin-top: 18px;
}

.food-status-line {
  top: 27px;
  height: 2px;
  background: rgba(34, 26, 26, 0.12);
}

.food-status-line span {
  background: var(--red-deep);
  transition-duration: 0.35s;
}

.food-status-step {
  gap: 7px;
  font-size: 0.84rem;
}

.food-status-step strong {
  max-width: 8.5em;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
}

.food-status-node,
.order-journey-mini .food-status-node {
  width: 48px;
  height: 48px;
  border-width: 2px;
  border-color: rgba(34, 26, 26, 0.13);
  background: #fff;
  box-shadow: none;
}

.food-status-step.is-done .food-status-node {
  border-color: rgba(46, 139, 87, 0.5);
  background: #f2faf5;
}

.food-status-step.is-done {
  color: #60766a;
}

.food-status-step.is-done strong {
  color: #60766a;
  font-weight: 700;
}

.food-status-step.is-current .food-status-node {
  border-color: var(--red-deep);
  background: #fffaf8;
  animation: none;
}

.order-status-art,
.order-status-fallback {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.order-status-image-mask {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  background: #b8b3af;
  -webkit-mask-image: var(--order-status-image);
  mask-image: var(--order-status-image);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  overflow: hidden;
}

.order-status-image-mask::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--success);
  -webkit-mask-image: var(--order-status-image);
  mask-image: var(--order-status-image);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: scaleY(0);
  transform-origin: center bottom;
}

.has-custom-status-image .order-status-fallback {
  display: none;
}

.food-status-step.is-done .order-status-image-mask::after {
  transform: scaleY(1);
}

.food-status-step.is-current .order-status-image-mask::after {
  animation: order-status-fill 0.65s ease-out forwards;
}

.order-journey[data-order-status="Ready to serve"] .food-status-step.is-current {
  color: #147a3d;
}

.order-journey[data-order-status="Ready to serve"] .food-status-step.is-current .food-status-node {
  border-color: rgba(30, 132, 73, 0.62);
  background: #edf9f1;
  box-shadow: 0 0 0 4px rgba(30, 132, 73, 0.08);
}

.order-journey[data-order-status="Ready to serve"] .food-status-step.is-current strong {
  color: #147a3d;
  font-weight: 900;
}

.order-journey[data-order-status="Ready to serve"] .food-status-line span {
  background: var(--success);
}

@keyframes order-status-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.food-status-step.is-current .order-status-art {
  animation: status-quiet-breathe 1.8s ease-in-out infinite;
}

.food-status-step.is-current .pig-body,
.food-status-step.is-current .grill-smoke,
.food-status-step.is-current .sent-dot,
.food-status-step.is-current .ready-check,
.food-status-step.is-current .ready-bag {
  animation: none;
}

.order-status-fallback .status-cutlery {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-status-fallback .sent-dot {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 5px rgba(153, 0, 0, 0.1);
}

.order-status-fallback .ready-check,
.order-status-fallback .ready-bag {
  transform: scale(0.78);
}

@keyframes status-quiet-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .food-status-step.is-current .order-status-image-mask::after {
    animation: none;
    transform: scaleY(1);
  }
}

@media (min-width: 760px) {
  #publicNewsList {
    grid-auto-columns: min(43vw, 410px);
  }
}

@media (max-width: 560px) {
  .service-method-choice {
    min-height: 142px;
    padding-inline: 8px;
  }

  .service-method-visual {
    width: 82px;
    height: 82px;
  }

  .service-method-title {
    font-size: 1rem;
  }

  .service-branch-heading {
    align-items: flex-start;
  }

  .service-branch-status {
    white-space: nowrap;
  }

  .food-status-line {
    top: 25px;
  }

  .food-status-node,
  .order-journey-mini .food-status-node {
    width: 44px;
    height: 44px;
  }

  .food-status-step strong {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qr-loading-spinner,
  .food-status-step.is-current .order-status-art {
    animation: none;
  }
}

/* Post-order ticket: operational information first, details available on demand. */
.order-ticket {
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 8px;
  background: #fff;
}

.order-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--red-deep);
}

.order-ticket-head > span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-ticket-head > strong {
  color: var(--success);
  font-size: 0.9rem;
}

.success-order-number {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.success-order-number > span {
  display: block;
  margin-bottom: 3px;
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.success-order-number > strong {
  display: block;
  color: var(--text);
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
}

.success-order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.success-order-meta > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 15px 0;
}

.success-order-meta > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.success-order-meta span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.success-order-meta strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.98rem;
}

.success-live-status {
  margin: 18px 20px 4px;
  color: var(--red-deep);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.success-live-status[data-order-status="Ready to serve"] {
  border-color: rgba(30, 132, 73, 0.26);
  background: #edf9f1;
  color: #147a3d;
  font-weight: 900;
}

.order-ticket > .order-journey {
  margin: 0;
  padding: 12px 20px 20px;
}

.success-order-details {
  margin: 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.success-order-details summary {
  padding: 15px 0;
  color: var(--red-deep);
  font-weight: 700;
  cursor: pointer;
}

#successOrderItems {
  padding-bottom: 12px;
}

.order-ticket-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.order-ticket-item > span:first-child {
  display: grid;
  gap: 2px;
}

.order-ticket-item small,
.order-ticket-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.success-tracking-link {
  margin: 16px 20px 0;
}

.order-ticket > .feedback-panel {
  margin: 20px;
}

@media (max-width: 560px) {
  .order-ticket {
    margin-top: 12px;
  }

  .order-ticket-head,
  .success-order-number,
  .success-order-meta,
  .order-ticket > .order-journey {
    padding-left: 16px;
    padding-right: 16px;
  }

  .success-order-meta {
    grid-template-columns: 1fr;
  }

  .success-order-meta > div + div {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .success-order-details,
  .order-ticket > .feedback-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .success-tracking-link {
    margin-left: 16px;
    margin-right: 16px;
  }
}
.menu-empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--text-muted);
  text-align: center;
}

.decision-panel {
  width: min(420px, calc(100vw - 32px));
}

.decision-message {
  margin: 0;
  padding: 8px 20px 20px;
  color: var(--text-muted);
  line-height: 1.65;
}
