:root {
  --red: #b60008;
  --red-dark: #9e0006;
  --bg: #f6f6f6;
  --text: #26262d;
  --muted: #72727c;
  --line: #ececef;
  --green: #178a43;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #202124;
  color: var(--text);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.35);
}

.screen {
  display: none;
  min-height: 100vh;
  padding-bottom: 86px;
  background: var(--bg);
}
.screen.active { display: block; }
.content { padding: 16px; }

.home-hero {
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero-image {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}
.point-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  min-height: 112px;
  border-radius: 16px;
  background: linear-gradient(135deg, #151515, #2e2925 60%, #b60008);
  color: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.mini-label {
  display: block;
  opacity: .75;
  margin-bottom: 8px;
  font-size: 13px;
}
.point-card strong { font-size: 23px; }
.plain-link {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}
h2 {
  margin: 20px 0 12px;
  font-size: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-grid button {
  border: 0;
  background: #fff;
  border-radius: 8px;
  padding: 12px 6px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.quick-grid span { font-size: 24px; }
.quick-grid b { font-size: 12px; }
.status-card, .profile-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: #202124;
}

.red-header {
  height: 64px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  position: sticky;
  top: 0;
  z-index: 2;
}
.red-header h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.menu-content { padding-top: 14px; }
.search-box {
  height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e6e8;
  border-radius: 8px;
  overflow: hidden;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  padding: 0 14px;
}
.search-box button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 24px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 8px;
  scrollbar-width: none;
}
.chips button {
  white-space: nowrap;
  border: 1px solid #e3e3e6;
  background: #fff;
  color: #4d4d56;
  border-radius: 999px;
  padding: 8px 13px;
}
.chips button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 700;
}

.product-list {
  display: grid;
  gap: 10px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  min-height: 104px;
}
.product-card img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
}
.product-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.product-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  color: var(--red);
  font-weight: 800;
}
.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 11px;
  margin-left: 5px;
}
.add-mini {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-weight: 900;
}
.badge {
  display: inline-block;
  background: #fff0f0;
  color: var(--red);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}
.empty {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 402px);
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}
.hidden { display: none !important; }

.login-screen {
  padding-bottom: 0;
  background: #fff7f9;
}
.login-bg {
  min-height: 100vh;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff7f9 url("https://api.cabebesar.lalapan.id/assets/background.png") center/cover no-repeat;
}
.login-logo {
  width: 119px;
  height: 148px;
  object-fit: contain;
  margin-top: 8px;
}
.login-bg h1 {
  width: 100%;
  text-align: center;
  color: var(--red);
  font-size: 20px;
  margin: 8px 0 20px;
}
.phone-login-box {
  width: 100%;
  height: 56px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.phone-login-box img {
  width: 32px;
  height: 20px;
  object-fit: cover;
}
.phone-login-box b {
  padding-right: 12px;
  border-right: 1px solid #e0e0e0;
}
.phone-login-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}
.google-btn {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}
.google-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guest-btn, .secondary-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #dedee3;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}
.otp-panel {
  width: 100%;
  margin-top: 14px;
}
.otp-box {
  display: grid;
  gap: 7px;
  color: #555;
  font-size: 13px;
  margin-bottom: 10px;
}
.otp-box input {
  width: 100%;
  border: 1px solid #dedee3;
  border-radius: 8px;
  padding: 13px;
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
  outline: 0;
}
.login-note {
  width: 100%;
  min-height: 22px;
  color: #5f5f67;
  text-align: center;
  font-size: 13px;
}

.pickup-screen {
  background: #fff;
}
.pickup-hero {
  height: 174px;
  overflow: hidden;
  background: #fff1ce;
}
.pickup-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pickup-store-card {
  margin: -47px 16px 14px;
  min-height: 92px;
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 7px rgba(0,0,0,.16);
}
.pickup-store-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.pickup-store-card b {
  font-size: 24px;
  color: #2d2d34;
}
.pickup-store-card p {
  margin: 5px 0 0;
  display: flex;
  gap: 10px;
  color: #767676;
  font-size: 17px;
  min-width: 0;
}
.pickup-store-card strong {
  color: #008c74;
  white-space: nowrap;
}
.pickup-store-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pickup-screen .content {
  padding: 0 18px 18px;
}
.pickup-screen .search-box {
  height: 58px;
  border-radius: 8px;
  background: #f7f7fb;
}
.pickup-screen .search-box input {
  font-size: 20px;
}
.pickup-screen .search-box button {
  width: 88px;
  height: 58px;
  font-size: 0;
  position: relative;
}
.pickup-screen .search-box button::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: 31px;
  top: 17px;
}
.pickup-screen .search-box button::after {
  content: "";
  width: 16px;
  height: 4px;
  background: #fff;
  position: absolute;
  left: 49px;
  top: 37px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.pickup-screen .chips {
  gap: 0;
  padding: 14px 0 14px;
}
.pickup-screen .chips button {
  font-size: 20px;
  padding: 14px 22px;
  border-radius: 999px;
  margin-right: 0;
}
.pickup-screen .chips button.active {
  box-shadow: 0 2px 5px rgba(182,0,8,.22);
}
.star {
  margin-right: 8px;
}
.pickup-screen .product-list {
  gap: 12px;
}
.product-card.menu-card {
  grid-template-columns: 130px 1fr 44px;
  align-items: center;
  min-height: 130px;
  border-radius: 0;
  padding: 12px;
  border: 1px solid #bfc1c8;
  box-shadow: none;
}
.product-card.menu-card img {
  width: 112px;
  height: 112px;
  border-radius: 0;
}
.product-card.menu-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.product-card.menu-card p {
  font-size: 18px;
  line-height: 1.12;
  -webkit-line-clamp: 2;
}
.product-card.menu-card .product-foot {
  justify-content: flex-start;
  gap: 10px;
}
.product-card.menu-card .price {
  color: #23823d;
  font-size: 18px;
}
.product-card.menu-card .old-price {
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
}
.product-card.menu-card .badge {
  display: inline-block;
  font-size: 14px;
  padding: 4px 9px;
  margin-left: 4px;
}
.product-card.menu-card .add-mini {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.detail-screen {
  padding-bottom: 150px;
  background: #fff;
}
.detail-back {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: calc(50% - min(50vw, 215px) + 12px);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  color: #111;
  font-weight: 900;
}
.detail-hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.detail-info {
  padding: 18px 16px 24px;
  border-bottom: 1px solid #efefef;
}
.detail-info h1 {
  font-size: 29px;
  margin-bottom: 10px;
  color: #111;
}
.detail-price {
  margin: 0 0 16px;
  font-size: 20px;
  color: #4a4a4a;
}
.detail-desc {
  margin: 0;
  color: #666;
  line-height: 1.28;
  font-size: 19px;
}
.addon-groups {
  background: #f8f8f8;
}
.addon-group {
  background: #fff;
  margin-top: 10px;
  padding: 0 14px;
}
.addon-group header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.addon-group h2 {
  font-size: 22px;
  margin: 0;
}
.addon-group header span {
  color: #666;
  font-size: 18px;
}
.addon-option {
  width: 100%;
  min-height: 70px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: #333;
  text-align: left;
  font-size: 20px;
}
.addon-option.with-divider {
  border-bottom: 2px dashed #eeeeee;
}
.addon-option b {
  color: #666;
  font-size: 15px;
  margin-left: 6px;
}
.radio, .check {
  width: 30px;
  height: 30px;
  border: 4px solid #9d9d9d;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.check {
  border-radius: 7px;
}
.radio.selected, .check.selected {
  border-color: var(--red);
}
.radio.selected::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  left: 3px;
  top: 3px;
}
.check.selected::after {
  content: "";
  width: 14px;
  height: 7px;
  border-left: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  position: absolute;
  left: 4px;
  top: 6px;
  transform: rotate(-45deg);
}
.qty-mini {
  min-width: 30px;
  text-align: center;
  color: var(--red);
  font-weight: 900;
}
.points-strip {
  position: fixed;
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  min-height: 40px;
  display: grid;
  place-items: center;
  background: #fff3f3;
  color: #222;
  font-style: italic;
  font-size: 16px;
  z-index: 5;
}
.points-strip b {
  color: var(--red);
}
.detail-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 65px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  z-index: 6;
  box-shadow: 0 -2px 14px rgba(0,0,0,.08);
}
.compact-qty {
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
}
.compact-qty button {
  width: 48px;
  height: 44px;
  border-radius: 6px;
  color: var(--red);
  background: #fff;
  border: 1px solid #e5e5e5;
}
.compact-qty b {
  min-width: 24px;
  text-align: center;
  font-size: 22px;
}
.add-detail-btn {
  flex: 1;
  border-radius: 6px;
  min-height: 48px;
  font-size: 19px;
}
.cart-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.voucher-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.voucher-card img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}
.voucher-card p, .profile-card p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}

.orders-content { padding: 12px; }
.order-card {
  background: #fff;
  border: 1.5px solid #f0a2a2;
  margin: 12px 0;
  padding: 18px;
  border-radius: 0;
  min-height: 148px;
  position: relative;
}
.order-card h3 {
  margin: 0 0 12px;
  color: #4d4b55;
  font-size: 18px;
}
.order-card p {
  margin: 4px 0;
  color: #62626c;
}
.order-card .paid {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--green);
  font-weight: 900;
  transform: rotate(-7deg);
  border: 3px solid var(--green);
  padding: 6px 10px;
}
.order-card button {
  margin-top: 14px;
  width: 100%;
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 11px;
  font-weight: 800;
}

.account-header {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.token-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.token-box textarea, .field input {
  width: 100%;
  border: 1px solid #dedee3;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  outline: 0;
}

dialog {
  border: 0;
  padding: 0;
  width: min(100vw, 430px);
  max-width: 430px;
  background: transparent;
}
dialog::backdrop { background: rgba(0,0,0,.5); }
.sheet {
  background: #fff;
  border-radius: 12px 12px 0 0;
  margin: auto 0 0;
  padding: 18px;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  max-height: 90vh;
  overflow: auto;
}
.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  font-size: 24px;
}
.sheet > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f1f1;
}
.sheet h2 { margin-top: 14px; }
.sheet p { color: var(--muted); line-height: 1.45; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 12px 0 18px;
}
.qty-row button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 22px;
  font-weight: 800;
}
.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  padding: 13px 16px;
  font-weight: 800;
}
.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.cart-line, .total-lines span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.total-lines span:last-child {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 0;
}
.checkout-note {
  min-height: 20px;
  font-size: 13px;
  text-align: center;
}

.checkout-screen {
  padding-bottom: 92px;
  background: #fff;
}
.checkout-scroll {
  padding: 14px 10px 24px;
}
.checkout-scroll h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #46464e;
}
.checkout-item {
  border: 1px solid #dddddf;
  background: #fff;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
  min-height: 116px;
  margin-bottom: 10px;
}
.checkout-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: #eee;
}
.checkout-item-main {
  position: relative;
  min-width: 0;
  padding-right: 28px;
}
.checkout-item h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #46464e;
}
.checkout-item p {
  margin: 0;
  color: #9a9aa1;
  line-height: 1.16;
  font-size: 16px;
}
.remove-item {
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #bd474d;
  color: #fff;
  font-weight: 900;
}
.checkout-item-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a3a3a8;
  font-size: 17px;
}
.cart-qty {
  height: 34px;
  min-width: 118px;
  border: 2px solid var(--red);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--red);
  background: #fff;
}
.cart-qty button {
  width: 32px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}
.cart-qty b {
  color: #222;
}
.upsell-title {
  color: #39a446 !important;
  margin-top: 18px !important;
}
.upsell-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 31%;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 8px 16px;
  scrollbar-width: none;
}
.upsell-card {
  min-width: 0;
}
.upsell-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #eee;
}
.upsell-card b {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  color: #4b4b52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upsell-card span {
  display: block;
  margin: 8px 0;
  color: #4b4b52;
  font-size: 18px;
}
.upsell-card button {
  width: 100%;
  height: 38px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.voucher-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 12px;
  margin-top: 8px;
}
.voucher-row input {
  min-width: 0;
  height: 50px;
  border: 1px solid #d9d9df;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 20px;
}
.voucher-row button {
  border: 0;
  background: #e0e0e0;
  color: #9a9a9a;
  font-size: 18px;
  font-weight: 800;
}
.see-voucher-btn {
  display: block;
  width: 62%;
  margin: 12px auto 24px;
  border: 0;
  background: #b93a40;
  color: #fff;
  padding: 12px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
}
.payment-summary h2 {
  margin-top: 0;
}
.payment-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 19px;
  color: #3d3d44;
}
.payment-summary .total {
  border-top: 1px solid #e3e3e3;
  color: #4d9a25;
  font-weight: 900;
}
.checkout-points {
  margin-top: 16px;
  background: #fff3f3;
  color: #222;
  padding: 14px;
  text-align: center;
  font-style: italic;
}
.checkout-points b {
  color: var(--red);
}
.checkout-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  padding: 12px 10px;
  background: #fff;
  box-shadow: 0 -2px 14px rgba(0,0,0,.08);
  z-index: 5;
}
.checkout-bottom .primary-btn {
  border-radius: 999px;
  min-height: 56px;
  font-size: 21px;
}
.payment-screen {
  background: #fff;
  padding-bottom: 24px;
}
.payment-content {
  padding: 24px 18px;
  text-align: center;
}
.payment-label {
  margin: 0 0 12px;
  color: #4b4b52;
  font-size: 23px;
}
.payment-content h2 {
  margin: 0 0 24px;
  color: #a01821;
  font-size: 34px;
}
.qris-timer {
  background: var(--red);
  color: #fff;
  padding: 14px;
  font-size: 24px;
  margin-bottom: 18px;
}
.payment-warning {
  color: #a01821;
  line-height: 1.25;
  font-size: 19px;
  margin: 0 0 22px;
}
.qr-box {
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: 4px solid #9d1018;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 0 16px 26px rgba(0,0,0,.16);
}
.qr-box img, .qr-box canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-hint {
  color: #a01821;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}
.payment-step {
  margin: 26px 8px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 6px;
  color: #5b5b63;
  font-size: 18px;
}
.cancel-payment {
  margin-top: 10px;
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 14px 34px;
  font-size: 20px;
  font-weight: 800;
}
.hosted-payment {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #fff4f4;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
  padding: 18px;
}
.order-detail-sheet {
  border-radius: 12px 12px 0 0;
}
.order-detail-meta p,
.order-detail-total {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.order-detail-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-detail-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.order-detail-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.order-detail-total {
  border-bottom: 0;
  font-size: 20px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 76px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #666;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-size: 12px;
}
.bottom-nav span {
  display: block;
  font-size: 24px;
  line-height: 1;
}
.bottom-nav button.active {
  color: var(--red);
  font-weight: 800;
}

@media (min-width: 431px) {
  body { padding: 18px 0; }
  .phone-shell { min-height: calc(100vh - 36px); border-radius: 18px; }
  .bottom-nav { bottom: 18px; border-radius: 0 0 18px 18px; }
  .cart-bar { bottom: 98px; }
}
