/* UI/UX pelanggan: lapisan komponen di atas gaya asas sedia ada. */
:root {
  --bg: #fff8f1;
  --paper: #fff;
  --ink: #24272b;
  --muted: #59616b;
  --accent: #a84a25;
  --line: #e5e3e0;
  color-scheme: light;
  background: #f4f3f1;
}
body {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}
body h1,
body h2,
body h3 {
  letter-spacing: -0.5px;
}
body .header-inner {
  height: 80px;
  padding: 16px 20px;
}
body .brand {
  font-size: 23px;
  gap: 10px;
}
body .brand-cake {
  width: 36px;
  height: 36px;
}
body .basket-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
body .basket-button svg {
  width: 24px;
  height: 24px;
}
body .count {
  font-size: 12px;
  top: -6px;
  right: -6px;
}
body .menu-main,
body .page-main {
  padding: 24px 20px 112px;
}
body .menu-main > h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 340px;
}
body .search-field {
  height: 50px;
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
}
body .search-field input {
  font-size: 16px;
}
body .category-tabs {
  gap: 8px;
  margin: 16px 0 20px;
  padding-bottom: 4px;
}
body .category-tabs button {
  min-height: 44px;
  min-width: auto;
  padding: 10px 18px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
body .category-tabs button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
body .product-grid {
  gap: 14px;
}
body .product-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  border-radius: 14px;
}
body .product-card .food-photo {
  aspect-ratio: 1.12;
  height: auto;
}
body .product-body {
  padding: 12px 12px 62px;
  min-height: 150px;
}
body .product-title {
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
  max-width: none;
  overflow-wrap: anywhere;
  letter-spacing: -0.2px;
}
body .product-price {
  font-size: 17px;
  margin-top: 8px;
}
body .stock-note {
  font-size: 13px;
  color: #326641;
  margin-top: 8px;
}
body .stock-note.sold-out {
  color: #a03737;
}
body .add-button {
  width: 44px;
  height: 44px;
  right: 10px;
  bottom: 10px;
  font-size: 27px;
}
body .add-button:disabled {
  background: #d7d9dc;
  color: #59616b;
  opacity: 1;
}
body .quantity-badge {
  top: -10px;
  font-size: 12px;
  background: #fff;
}
body .menu-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
body .mobile-nav {
  max-width: 520px;
  background: #fff;
  backdrop-filter: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
body .mobile-nav a {
  font-size: 13px;
  min-height: 48px;
  gap: 6px;
}
body .mobile-nav a.active {
  color: var(--accent);
  font-weight: 600;
}
body .primary,
body .secondary {
  min-height: 48px;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 16px;
  line-height: 1.4;
  text-align: center;
}
body .primary {
  background: var(--accent);
  color: #fff;
}
body .primary:hover {
  background: #8f3d1e;
}
body .secondary {
  background: #fff;
  border: 1px solid var(--line);
}
body .icon-button {
  width: 44px;
  height: 44px;
  color: var(--muted);
}
body .surface {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
}
body .page-heading {
  margin: 0 0 24px;
}
body .page-heading h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
body .page-heading p,
body .muted,
body .fine-print {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
body .eyebrow {
  font-size: 12px;
  letter-spacing: 0.5px;
}
body .field {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}
body .field input,
body .field textarea {
  background: #fff;
  font-size: 16px;
  min-height: 48px;
  padding: 12px;
  border-color: var(--line);
  border-radius: 10px;
}
body .field textarea {
  min-height: 96px;
}
body .form-error {
  font-size: 14px;
}
body[data-view='cart'] .site-header {
  display: block;
}
body[data-view='cart'] .mobile-nav {
  display: flex;
}
body .cart-heading {
  margin: 0 0 20px;
  gap: 8px;
}
body .cart-heading h1 {
  font-size: 27px;
}
body .cart-heading > .icon-button {
  width: 44px;
  height: 44px;
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.checkout-steps [aria-current='step'] {
  color: var(--accent);
  font-weight: 600;
}
.checkout-steps [aria-current='step'] b {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.checkout-steps::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
body .cart-items {
  gap: 12px;
}
body .cart-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 40px;
  gap: 8px 12px;
  padding: 12px;
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
body .cart-line > .food-photo {
  width: 66px;
  height: 66px;
  grid-row: span 2;
  border-radius: 10px;
}
body .cart-line h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.4;
}
body .cart-line-info > strong {
  font-size: 14px;
  color: var(--muted);
}
body .cart-line > .remove {
  grid-column: 3;
  grid-row: 1;
  width: 40px;
  height: 40px;
}
body .cart-line > .stepper {
  grid-column: 2 / -1;
  grid-row: 2;
  justify-self: start;
}
body .stepper {
  border-color: var(--line);
  background: #fff;
  border-radius: 10px;
}
body .stepper button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
body .stepper span {
  min-width: 32px;
  font-size: 16px;
}
body .field-section {
  margin-top: 24px;
}
body .field-section h2,
body .delivery-location-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
body .method-options {
  gap: 10px;
}
body .method-option {
  min-height: 60px;
  padding: 12px 10px;
  align-items: center;
  background: #fff;
}
body .method-option > span {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}
body .method-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}
body .method-option svg {
  width: 22px;
  height: 22px;
}
body .method-option strong {
  font-size: 14px;
  white-space: normal;
  letter-spacing: 0;
}
body .method-option.selected {
  background: #fff8f1;
  border-color: var(--accent);
}
body .note-field {
  margin-top: 24px;
}
body .order-summary {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 24px;
}
body .summary-row {
  font-size: 15px;
  margin: 12px 0;
}
body .total {
  font-size: 19px;
  margin: 16px 0 20px;
  padding-top: 16px;
}
body .total strong:last-child {
  color: var(--ink);
}
body .continue-button,
body #checkout-submit {
  min-height: 52px;
  font-size: 16px;
  box-shadow: none;
  border-radius: 12px;
}
.checkout-review {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 20px;
}
.checkout-review h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.checkout-review ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checkout-review li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.checkout-review li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.checkout-review p {
  font-size: 14px;
  margin: 12px 0 0;
  color: var(--muted);
}
.payment-advice {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #edf4ff;
  color: #234d78;
  font-size: 14px;
  margin: 16px 0;
}
.payment-advice svg {
  margin-top: 2px;
  flex-shrink: 0;
}
body .delivery-rate {
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #fff1dc;
  color: #6e461c;
}
body .delivery-location-section {
  border-top: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
body .pin-selection,
body .delivery-pin-review {
  font-size: 14px;
}
body .delivery-quote-result {
  background: #fff8f1;
  border-color: #e5cbbd;
}
body .delivery-quote-result strong {
  color: var(--accent);
  font-size: 26px;
}
body .delivery-quote-result span,
body .delivery-quote-result small {
  font-size: 14px;
}
body .delivery-help,
body .delivery-help summary {
  font-size: 14px;
}
body .profile-panel h2 {
  font-size: 20px;
}
body .profile-panel p,
body .profile-panel .field {
  font-size: 14px;
}
body .profile-panel .primary {
  font-size: 15px;
}
.auth-card {
  text-align: center;
}
.auth-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: #fff1e2;
  color: var(--accent);
}
.auth-symbol svg {
  width: 34px;
  height: 34px;
}
body .auth-card h2 {
  font-size: 24px;
  line-height: 1.3;
}
body .auth-card .google-button {
  margin-top: 12px;
  min-height: 52px;
  font-size: 16px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1e9df;
  color: #6c584b;
  font-size: 22px;
  font-weight: 600;
}
.account-identity > div {
  min-width: 0;
}
.account-identity h2 {
  font-size: 20px;
  margin: 0 0 4px;
}
.account-identity p {
  margin: 0;
  overflow-wrap: anywhere;
}
body .order-list {
  gap: 20px;
}
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-tabs button {
  flex: 1;
  min-height: 44px;
  font-size: 15px;
  border-radius: 8px;
  color: var(--muted);
}
.order-tabs button[aria-pressed='true'] {
  background: #fff0e4;
  color: var(--accent);
  font-weight: 600;
}
body .section-heading {
  align-items: start;
  flex-wrap: wrap;
}
body .section-heading h2 {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
body .order-status {
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: 8px;
  color: #80511c;
  background: #fff1d6;
  white-space: normal;
}
body .order-status[data-status='delivering'] {
  background: #edf4ff;
  color: #2c6083;
}
body .order-status[data-status='completed'],
body .order-status[data-status='ready'],
body .order-status[data-status='accepted'] {
  background: #eaf5ed;
  color: #326641;
}
body .order-status[data-status='cancelled'] {
  background: #fff0f0;
  color: #a03737;
}
body .order-card .eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
body .order-items strong {
  font-size: 14px;
}
body .order-items span {
  min-width: 0;
  overflow-wrap: anywhere;
}
body .order-items small {
  font-size: 13px;
  line-height: 1.5;
}
body .order-card > .summary-row {
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
body .order-amount {
  font-size: 20px;
  color: var(--ink);
}
body details {
  font-size: 14px;
}
body details summary {
  min-height: 36px;
  padding-block: 4px;
}
body .order-card > .secondary {
  width: 100%;
}
.order-progress {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.order-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--muted);
  font-size: 14px;
}
.order-progress li::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}
.order-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  width: 2px;
  height: 28px;
  background: var(--line);
}
.order-progress .is-complete::before {
  border-color: var(--accent);
  background: var(--accent);
}
.order-progress [aria-current='step'] {
  font-weight: 700;
  color: var(--ink);
}
.order-progress [aria-current='step']::before {
  border-color: var(--accent);
}
body .payment-qr {
  padding: 20px;
  background: #fff;
  border-color: var(--line);
  border-radius: 12px;
}
body .payment-qr p {
  color: var(--muted);
  font-size: 14px;
}
body .payment-qr h2 {
  font-size: 22px;
}
body .payment-qr-image {
  max-width: 260px;
}
body .empty-state {
  padding: 48px 20px;
}
body .empty-state h2,
body .empty-state h3 {
  font-size: 24px;
}
body .empty-state p {
  font-size: 15px;
}
body .empty-state .primary {
  font-size: 15px;
}
body .empty-symbol {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #fff0e0;
  color: var(--accent);
  border-radius: 50%;
}
body .empty-symbol svg {
  width: 36px;
  height: 36px;
}
body .demo-strip {
  padding: 12px 20px;
  font-size: 14px;
  background: #edf4ff;
  color: #234d78;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .toast {
  font-size: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  max-width: min(90vw, 440px);
}
body dialog {
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
}
body dialog h2 {
  font-size: 27px;
}
body dialog p {
  font-size: 15px;
}
body .dialog-close {
  width: 44px;
  height: 44px;
  top: 10px;
  right: 10px;
  background: #fff;
  box-shadow: 0 1px 4px #0001;
}
body .detail-photo {
  aspect-ratio: 1.25;
  height: auto;
  margin-bottom: 20px;
}
body .product-bottom {
  display: grid;
  gap: 16px;
}
body .product-bottom > strong {
  font-size: 26px;
}
body .product-bottom .primary {
  font-size: 16px;
  width: 100%;
}
.detail-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.detail-quantity > span {
  font-weight: 600;
}
body .delivery-map-dialog {
  width: min(640px, calc(100% - 24px));
  max-width: 640px;
  padding: 20px;
  background: #fff;
}
body .map-dialog-heading h2 {
  font-size: 21px;
}
body .delivery-map {
  height: min(400px, 43dvh);
  border-radius: 12px;
}
body .pin-tools button,
body .delivery-map-dialog summary {
  font-size: 14px;
}
body .pin-coordinate-fields {
  min-width: 0;
}
body .pin-coordinate-fields input {
  font-size: 16px;
  min-height: 44px;
}
@media (min-width: 900px) {
  body {
    max-width: 100%;
    border: 0;
  }
  body .header-inner {
    max-width: 1120px;
    margin: auto;
    padding-inline: 32px;
  }
  body .menu-main {
    max-width: 1120px;
    margin: auto;
    padding: 32px 32px 120px;
  }
  body .menu-main > h1 {
    max-width: none;
    font-size: 34px;
  }
  body .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  body .product-body {
    min-height: 164px;
  }
  body .page-main {
    max-width: 760px;
    margin: auto;
    padding: 32px 28px 120px;
  }
  body .mobile-nav {
    max-width: 520px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
  }
}
@media (max-width: 380px) {
  body .menu-main,
  body .page-main {
    padding-inline: 16px;
  }
  body .header-inner {
    padding-inline: 16px;
  }
  body .brand {
    font-size: 21px;
  }
  body .product-grid {
    gap: 10px;
  }
  body .product-body {
    padding: 10px 10px 60px;
  }
  body .product-title {
    font-size: 15px;
  }
  body .product-price {
    font-size: 16px;
  }
  body .method-option > span {
    flex-direction: column;
  }
  body .method-option {
    gap: 5px;
  }
  body .cart-line {
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 10px;
  }
  body .cart-line > .food-photo {
    width: 52px;
    height: 60px;
  }
  body .cart-line > .remove {
    width: 32px;
  }
  body .order-summary {
    padding: 16px;
  }
  body .order-card {
    padding: 16px;
  }
  body .summary-row {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  body .delivery-map-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: max(16px, env(safe-area-inset-top)) 16px
      max(20px, env(safe-area-inset-bottom));
  }
}

.pin-review {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pin-review p {
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 899px) {
  body .cart-main {
    padding-bottom: calc(188px + env(safe-area-inset-bottom, 0px));
  }
  body .continue-button,
  body #checkout-submit {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 40px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    margin: 0;
    box-shadow: 0 0 0 10px var(--bg);
  }
}
body[data-view='cart'] .toast {
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
}
/* Padanan rujukan: saiz sebenar telefon, kad padat dan butiran sebagai halaman. */
:root {
  --bg: #fcf8f3;
  --ink: #101b2b;
  --muted: #697386;
  --accent: #b43f18;
  --line: #e5e5e7;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
body .header-inner {
  height: 76px;
  padding: 14px 20px;
}
body .site-header {
  border-bottom: 0;
  background: var(--bg);
}
body .brand {
  font-size: 20px;
  font-weight: 700;
  gap: 8px;
}
body .brand-cake {
  width: 31px;
  height: 34px;
  object-fit: contain;
}
body .basket-button {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
}
body .basket-button svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
body .count {
  top: -2px;
  right: -2px;
  background: var(--accent);
}
body .menu-main,
body .page-main {
  padding: 16px 18px 100px;
}
body .menu-main > h1 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 20px;
}
body .search-field {
  height: 44px;
  border-radius: 8px;
}
body .search-field input {
  font-weight: 400;
}
body .category-tabs {
  margin: 18px 0;
  gap: 10px;
}
body .category-tabs button {
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 400;
}
body .category-tabs button.active {
  font-weight: 600;
}
body .product-grid {
  gap: 16px;
}
body .product-card {
  border-radius: 10px;
}
body .product-card .food-photo {
  aspect-ratio: 1.15;
  border-radius: 9px 9px 0 0;
}
body .product-body {
  padding: 10px 11px 16px;
  min-height: 104px;
}
body .product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
body .product-price {
  font-size: 16px;
  margin-top: 7px;
}
body .stock-note {
  font-size: 13px;
  margin-top: 6px;
  color: #485364;
  padding-right: 38px;
}
body .stock-note.sold-out {
  color: #c62828;
}
body .add-button {
  width: 38px;
  height: 38px;
  right: 8px;
  bottom: 10px;
  font-size: 24px;
  font-weight: 400;
}
body .add-button::before {
  content: '';
  position: absolute;
  inset: -4px;
}
body .mobile-nav {
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}
body .mobile-nav a {
  font-size: 12px;
  min-height: 51px;
  gap: 5px;
  color: #465062;
}
body .mobile-nav a svg {
  width: 24px;
  height: 24px;
}
body .mobile-nav a.active::after {
  width: 64px;
  height: 2px;
  bottom: -4px;
}
body .primary,
body .secondary {
  border-radius: 8px;
  font-size: 15px;
  min-height: 44px;
  padding: 11px 14px;
}
body .primary {
  background: linear-gradient(110deg, #b83e19, #b54c20);
}
body .primary:hover {
  background: #9f3415;
}
body .surface {
  border-radius: 12px;
  padding: 16px;
}
body .page-heading {
  margin-bottom: 18px;
}
body .page-heading h1 {
  font-size: 27px;
}
body .cart-heading {
  margin-bottom: 4px;
}
body .cart-heading h1 {
  font-size: 29px;
}
body[data-checkout='false'] .cart-heading > .icon-button {
  display: none;
}
.cart-count-label {
  margin: 0 0 16px;
  font-size: 14px;
}
body .cart-line {
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  gap: 4px 12px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  position: relative;
}
body .cart-line > .food-photo {
  width: 78px;
  height: 88px;
  border-radius: 8px;
}
body .cart-line h3 {
  font-size: 16px;
}
body .cart-line-info > strong {
  font-weight: 400;
  font-size: 13px;
}
body .cart-line > .remove {
  width: 30px;
  height: 32px;
}
body .cart-line > .remove svg {
  width: 17px;
}
body .cart-line > .stepper {
  grid-column: 2;
}
.cart-line-total {
  grid-row: 2;
  grid-column: 3;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
  font-size: 14px;
}
body .stepper {
  border: 0;
  gap: 5px;
  background: transparent;
  overflow: visible;
}
body .stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2f2f3;
  font-size: 21px;
  position: relative;
}
body .stepper button::before {
  content: '';
  position: absolute;
  inset: -6px -2px;
}
body .stepper button:last-child {
  color: #fff;
  background: var(--accent);
}
body .stepper span {
  min-width: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 32px;
  display: grid;
  place-items: center;
}
body .field-section h2 {
  font-size: 16px;
}
body .method-option {
  min-height: 52px;
  border-radius: 8px;
  position: relative;
  padding: 10px 8px;
}
body .method-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
}
body .method-option:focus-within {
  outline: 3px solid #ba8052;
  outline-offset: 2px;
}
body .method-option > span {
  gap: 8px;
}
body .method-option strong {
  font-weight: 400;
  font-size: 14px;
}
body .method-option.selected strong {
  font-weight: 600;
}
body .field {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 18px;
}
body .field input,
body .field textarea {
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
}
body .field textarea {
  min-height: 78px;
}
body .order-summary {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 24px;
  border-radius: 0;
}
body .summary-row {
  margin: 12px 0;
  font-size: 14px;
}
body .total {
  font-size: 17px;
  margin: 16px 0 22px;
  padding-top: 16px;
}
body .continue-button,
body #checkout-submit {
  font-size: 16px;
  border-radius: 8px;
  min-height: 52px;
}
body .checkout-steps {
  justify-content: center;
  gap: 96px;
  position: relative;
  margin: 14px 0 28px;
}
.checkout-steps span {
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  z-index: 1;
}
.checkout-steps b {
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border: 0;
}
.checkout-steps::after {
  position: absolute;
  width: 92px;
  height: 1px;
  background: var(--accent);
  top: 16px;
  left: calc(50% - 46px);
}
body[data-checkout='true'] .cart-heading h1 {
  font-size: 22px;
}
body .customer-fields h2,
body .checkout-review-title {
  font-size: 21px;
  margin: 0 0 16px;
}
body .checkout-review-title {
  margin-top: 24px;
}
body .checkout-review {
  padding: 16px;
  border-radius: 10px;
  margin: 0;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.checkout-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 8px;
  font-size: 14px;
}
.checkout-method > svg {
  color: var(--accent);
  width: 26px;
  height: 26px;
}
.checkout-method > div {
  flex: 1;
}
.checkout-method small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.checkout-method .text-link {
  padding: 0;
  min-width: 0;
  font-size: 14px;
  text-decoration: underline;
}
body .checkout-review li {
  align-items: center;
  font-size: 14px;
  gap: 10px;
}
.checkout-review li .food-photo {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  flex-shrink: 0;
}
.checkout-review li > span {
  flex: 1;
}
body[data-checkout='true'] .order-summary {
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: white;
}
body[data-checkout='true'] .order-summary > .summary-row:not(.total) {
  display: none;
}
body[data-checkout='true'] .order-summary .total {
  margin-top: 0;
  padding-top: 16px;
}
body[data-checkout='true'] .payment-advice {
  margin: 20px -16px 0;
  border: 1px solid #b8d3fc;
  background: #eaf2ff;
}
body .order-tabs {
  border: 0;
  background: transparent;
  border-bottom: 3px solid #e7e4e1;
  border-radius: 0;
  padding: 0;
  gap: 0;
  margin-bottom: 18px;
}
.order-tabs button {
  position: relative;
  border-radius: 0;
  font-size: 14px;
}
.order-tabs button[aria-pressed='true'] {
  background: transparent;
}
.order-tabs button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
body .order-list {
  gap: 14px;
}
.order-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  font-size: 14px;
}
.order-card-heading time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.order-card-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}
.order-card-state > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
body .order-status {
  display: inline-flex;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.order-status svg {
  width: 15px;
  height: 15px;
}
body .order-status[data-status='preparing'],
body .order-status[data-status='delivering'] {
  color: #0065bd;
  background: #e6f0ff;
}
body .order-status[data-status='accepted'],
body .order-status[data-status='completed'],
body .order-status[data-status='ready'] {
  background: #e0f6e9;
  color: #086b31;
}
body .order-items > div {
  gap: 10px;
  margin-bottom: 12px;
}
body .order-items .food-photo {
  width: 54px;
  height: 54px;
  border-radius: 6px;
}
body .order-items strong {
  font-size: 13px;
  font-weight: 600;
}
body .order-items small {
  font-size: 12px;
}
body .order-card > .summary-row {
  padding-top: 12px;
  margin: 8px 0 14px;
}
body .order-amount {
  font-size: 19px;
}
body .order-card .primary,
body .order-card .secondary {
  min-height: 42px;
  font-size: 14px;
  display: flex;
  justify-content: center;
}
body .order-card .secondary {
  margin-top: 8px;
}
body .order-card .order-chat-button {
  border: 0;
  color: var(--muted);
  margin: 4px 0 -4px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 400;
  padding: 8px;
}
body .tracking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  padding: 10px;
}
.back-to-orders {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--muted);
}
.order-detail-page > h1 {
  font-size: 26px;
  margin: 0 0 12px;
}
.order-detail-id {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.order-detail-id > strong {
  font-size: 19px;
}
.order-detail-date {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.order-detail-page > .surface,
.order-detail-page > [data-order-payment],
.order-detail-page > .primary {
  margin-bottom: 14px;
}
.order-detail-page .surface h2,
body .order-detail-page .payment-qr h2 {
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
body .order-detail-page .total {
  margin-bottom: 0;
}
.order-progress {
  margin: 6px 0 0;
}
.order-progress li {
  min-height: 38px;
  font-size: 13px;
}
.order-progress li::before {
  width: 20px;
  height: 20px;
  background: #ddd;
  border: 0;
}
.order-progress li:not(:last-child)::after {
  left: 9px;
  top: 22px;
  height: 30px;
}
.order-progress .is-complete::before,
.order-progress [aria-current='step']::before {
  content: '✓';
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
}
body .payment-qr {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
body .payment-qr .payment-qr-heading {
  order: -3;
}
body .payment-qr .payment-qr-amount {
  order: -2;
  text-align: center;
  margin: 0 0 8px;
}
body .payment-qr .payment-qr-amount strong {
  font-size: 25px;
  color: var(--ink);
}
body .payment-qr-image {
  width: 176px;
  margin: 0 auto 10px;
}
body .payment-qr > .text-link {
  order: 1;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
body .payment-qr p {
  font-size: 12px;
  text-align: center;
}
.order-customer-panel p {
  font-size: 14px;
  margin-bottom: 8px;
}
body .account-identity {
  margin-bottom: 14px;
  gap: 16px;
}
body .account-avatar {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 28px;
  color: #72685f;
  background: #f0e7dd;
}
body .account-identity h2 {
  font-size: 17px;
  margin-bottom: 3px;
}
body .account-identity p {
  font-size: 13px;
}
.account-identity small {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  gap: 6px;
}
.google-mark {
  font-size: 23px;
  font-weight: 700;
  color: #4285f4;
}
body .profile-panel {
  margin-bottom: 14px;
}
body .profile-panel h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
body .profile-panel p {
  font-size: 13px;
  margin-bottom: 14px;
}
body .profile-panel .field {
  margin-bottom: 14px;
  font-weight: 400;
}
body .profile-panel .form-error:empty {
  display: none;
}
body .account-links {
  padding: 0 16px;
  margin: 16px 0;
}
.account-links button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  text-align: left;
  font-size: 14px;
}
.account-links button + button {
  border-top: 1px solid var(--line);
}
.account-links button > span {
  flex: 1;
}
.account-links button svg:last-child {
  width: 16px;
  color: var(--muted);
}
.account-logout {
  color: #d32314;
}
.auth-card {
  padding: 70px 0 20px;
  min-height: 650px;
}
.auth-symbol {
  width: 140px;
  height: 120px;
  margin-bottom: 24px;
  background: #fff0df;
  border-radius: 50%;
}
.auth-symbol img {
  width: 90px;
  height: 90px;
}
body .auth-card h2 {
  max-width: 290px;
  margin: auto;
  font-size: 26px;
}
.auth-card .muted {
  margin: 10px 0 28px;
}
body .auth-card .google-button {
  width: 100%;
  background: white;
  border: 1px solid #bfc3ca;
  border-radius: 8px;
  min-height: 56px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-footnote {
  margin-top: 90px;
  color: var(--muted);
  font-size: 12px;
}
body[data-login='true'] .order-summary,
body[data-login='true'] .cart-heading,
body[data-login='true'] .checkout-steps {
  display: none;
}
body .empty-state.surface {
  background: transparent;
  border: 0;
  padding: 100px 20px 40px;
}
body .empty-symbol {
  width: 150px;
  height: 150px;
  margin-bottom: 28px;
}
body .empty-symbol svg {
  width: 78px;
  height: 78px;
  stroke-width: 1;
  color: var(--ink);
}
body .empty-state h2 {
  font-size: 28px;
}
body .empty-state .primary {
  display: inline-flex;
  padding-inline: 40px;
  margin-top: 20px;
}
body .demo-strip {
  margin: 12px 18px;
  border-radius: 8px;
}
body #info-dialog[data-view='product'] {
  max-width: 520px;
  width: 100%;
  max-height: 100dvh;
  height: 100dvh;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: var(--bg);
  margin: 0 auto;
}
body #info-dialog[data-view='product'] > .dialog-close {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
body #info-dialog[data-view='product'] > .dialog-close:focus-visible {
  width: 44px;
  height: 44px;
  opacity: 1;
  pointer-events: auto;
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 6px;
  padding: 12px 16px;
}
.detail-header > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
}
.detail-header img {
  width: 30px;
  height: 34px;
}
.detail-back {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  min-height: 44px;
  padding: 0;
}
.detail-back svg {
  width: 18px;
}
.product-detail-content {
  padding: 14px 18px 28px;
}
body .detail-photo {
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 12px;
}
body #info-dialog h2 {
  font-size: 31px;
  margin: 0 0 8px;
}
.detail-price-stock {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-price-stock > strong {
  color: var(--accent);
  font-size: 29px;
}
body .detail-price-stock .stock-note {
  margin: 0;
  padding: 5px 12px;
  background: #dff2e5;
  border-radius: 20px;
  color: #17673b;
  font-size: 14px;
}
body .detail-price-stock .sold-out {
  background: #ffe9e9;
  color: #bb2424;
}
body .detail-portion {
  color: var(--muted);
  margin: 4px 0 20px;
}
body .detail-allergens {
  display: flex;
  align-items: start;
  gap: 10px;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 24px;
}
.detail-quantity {
  flex-direction: column;
  align-items: start;
  gap: 12px;
  margin: 20px 0 24px;
}
.detail-quantity .stepper button,
.detail-quantity .stepper span {
  width: 52px;
  height: 46px;
  font-size: 22px;
}
body .product-bottom .primary {
  min-height: 56px;
  font-size: 16px;
}
body .delivery-quote-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  gap: 16px;
}
.delivery-quote-result > div {
  display: flex;
  flex-direction: column;
}
.delivery-quote-result > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
body .delivery-quote-result strong {
  font-size: 23px;
}
body .delivery-quote-result span,
body .delivery-quote-result small {
  font-size: 13px;
}
@media (min-width: 900px) {
  body .menu-main {
    padding: 30px 32px 110px;
  }
  body .page-main {
    padding: 24px 28px 110px;
  }
  body .product-body {
    min-height: 110px;
  }
}
@media (max-width: 380px) {
  body .menu-main,
  body .page-main {
    padding-inline: 14px;
  }
  body .product-grid {
    gap: 12px;
  }
  body .product-body {
    padding-inline: 9px;
  }
  body .product-title {
    font-size: 14px;
  }
  body .cart-line {
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    gap: 6px;
  }
  body .cart-line > .food-photo {
    width: 54px;
    height: 72px;
  }
  body .cart-line-total {
    grid-column: 3;
    grid-row: 3;
  }
  body .cart-line > .stepper {
    grid-column: 2/-1;
  }
  body .method-option strong {
    font-size: 12px;
  }
  body .account-avatar {
    flex-basis: 56px;
    height: 56px;
    font-size: 23px;
  }
  .detail-header > span {
    font-size: 15px;
  }
}
@media (max-width: 899px) {
  body .continue-button,
  body #checkout-submit {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: min(484px, calc(100% - 36px));
  }
}
body .delivery-map-dialog {
  padding: 0;
  overflow-y: auto;
  background: white;
}
body .map-dialog-heading {
  height: 64px;
  padding: 12px 18px;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  gap: 16px;
}
body .map-dialog-heading h2 {
  flex: 1;
  font-size: 20px;
  margin: 0;
  text-align: center;
  padding-right: 38px;
}
body .map-dialog-heading .icon-button {
  font-size: 24px;
  color: var(--ink);
}
body .delivery-map-dialog > .muted {
  margin: 0;
  padding: 0 18px 10px;
  font-size: 12px;
  text-align: center;
}
body .delivery-map {
  height: 52dvh;
  min-height: 260px;
  border: 0;
  border-radius: 0;
}
body .pin-tools {
  display: flex;
  justify-content: start;
  padding: 0 16px;
  gap: 8px;
  position: relative;
  z-index: 500;
  margin: -60px 0 16px;
}
body .pin-tools .secondary {
  background: white;
  font-size: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px #0002;
}
.map-bottom-sheet {
  position: relative;
  z-index: 500;
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px #0001;
}
.map-bottom-sheet::before {
  content: '';
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: #d4d4d4;
  position: absolute;
  top: 6px;
  left: calc(50% - 22px);
}
body .pin-review {
  padding: 6px 4px 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
body .pin-review strong {
  font-size: 16px;
}
body .pin-review p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.map-bottom-sheet > details {
  padding: 8px 4px;
}
body .map-bottom-sheet > details summary {
  min-height: 42px;
}
body .map-bottom-sheet > .form-error:empty {
  display: none;
}
body .map-attribution {
  font-size: 10px;
  text-align: center;
  margin: 12px 0 0;
}
@media (max-width: 600px) {
  body .delivery-map-dialog {
    padding: 0;
  }
}
body .order-items .food-photo {
  flex: 0 0 54px;
}
body .checkout-review li .food-photo {
  flex: 0 0 46px;
}
body .product-bottom {
  display: block;
}
body .product-bottom .primary {
  width: 100%;
}
body .product-detail-content > p:not(.detail-portion) {
  color: var(--ink);
}
body .site-header {
  box-shadow: none;
}
body[data-order-detail='true'] .mobile-nav {
  display: none;
}
body[data-order-detail='true'] .page-main {
  padding-bottom: 32px;
}
body .delivery-map-dialog {
  color: var(--ink);
}
body #info-dialog[data-view='product'] > .dialog-close {
  display: none;
}
body .order-items > div {
  padding: 6px 0;
  margin-bottom: 2px;
}
.order-detail-page .order-progress li {
  min-height: 32px;
}
.order-detail-page .order-progress li:not(:last-child)::after {
  height: 25px;
}
body .product-detail-content {
  padding-top: 10px;
}
body .product-detail-content .detail-photo {
  aspect-ratio: 1.06;
  margin-bottom: 16px;
}
body .product-detail-content > p {
  margin-top: 12px;
  margin-bottom: 16px;
}
body .product-detail-content .detail-allergens {
  padding-block: 16px;
  margin-top: 18px;
}
body .product-detail-content .detail-quantity {
  margin: 18px 0 20px;
}
.account-identity small svg {
  width: 22px;
  height: 22px;
}
body[data-checkout='true']
  #checkout-form[data-method='delivery']
  .order-summary
  > .delivery-row {
  display: flex;
  padding-top: 10px;
  margin-top: 0;
}
