.order-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 490px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}
.order-dialog[open] { animation: none; }
.order-dialog::backdrop { background: rgb(28 20 14 / 55%); }
@keyframes drawer-enter { from { transform: translateX(18px); opacity: .55; } to { transform: none; opacity: 1; } }
.order-drawer { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 23px 17px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { margin: 0; font: 400 clamp(28px, 5vw, 36px)/1.08 var(--serif); letter-spacing: -.045em; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); flex: none; }
.icon-button:hover { background: #eee2d4; }
.drawer-close { border-radius: 100px; }
.drawer-scroll { overflow: auto; overscroll-behavior: contain; padding: 18px 23px 24px; }
.cart-empty { text-align: center; padding: 42px 6px; }
.cart-empty > .icon { width: 33px; height: 33px; margin: 0 auto 15px; color: var(--coffee); }
.cart-empty h3 { margin: 0; font: 400 29px/1.15 var(--serif); }
.cart-empty p { margin: 9px 0 20px; color: var(--muted); }
.cart-lines, .receipt-lines { list-style: none; padding: 0; margin: 0; }
.cart-row { display: grid; grid-template-columns: 67px minmax(0, 1fr) auto; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row img { width: 67px; height: 67px; border-radius: 6px; object-fit: cover; }
.cart-name { margin: 0; font-size: 16px; font-weight: 750; }
.cart-size { display: block; color: var(--muted); font-size: 13px; }
.cart-stepper { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.cart-stepper .icon { width: 17px; height: 17px; }
.cart-stepper span { min-width: 23px; text-align: center; font-size: 14px; font-weight: 750; }
.cart-side { display: flex; flex-direction: column; align-items: end; gap: 7px; }
.cart-subtotal { white-space: nowrap; }
.text-button { min-height: 44px; background: transparent; color: var(--coffee); border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; gap: 7px; }
.text-button:hover { color: var(--ink); }
.text-button .icon { width: 16px; height: 16px; }
.back-arrow { transform: rotate(180deg); }
.drawer-footer { padding: 13px 23px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.order-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.order-total strong { font-size: 23px; }
.drawer-primary { width: 100%; }
.form-field { display: grid; gap: 6px; margin: 10px 0 16px; }
.form-field label, .payment-options legend { font-weight: 700; font-size: 15px; }
.form-field input, .form-field select { width: 100%; min-height: 47px; padding: 7px 10px; border: 1px solid #c5b5a5; border-radius: 6px; background: #fffcf8; color: var(--ink); }
.form-field input::placeholder { color: #776b61; opacity: 1; }
.payment-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.payment-options legend { margin-bottom: 7px; }
.payment-choice { display: flex; align-items: center; gap: 9px; border: 1px solid #c5b5a5; border-radius: 7px; padding: 8px 10px; min-height: 47px; margin-bottom: 7px; cursor: pointer; }
.payment-choice:has(:checked) { border-color: #92623e; background: #f4e7d6; }
.payment-choice input { accent-color: #75482f; margin: 0; width: 17px; height: 17px; }
.payment-choice .icon { width: 19px; height: 19px; color: var(--coffee); }
.demo-notice { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.receipt-intro { margin: 5px 0 20px; }
.receipt-check { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; color: #61391f; background: var(--gold); }
.receipt-intro p { color: var(--muted); margin: 12px 0 0; }
.receipt-label { margin: 0 0 7px; font-size: 15px; }
.receipt-lines li, .receipt-details div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-lines li strong { white-space: nowrap; }
.receipt-details { margin: 17px 0 0; }
.receipt-details dt { flex: none; color: var(--muted); }
.receipt-details dd { text-align: right; margin: 0; font-weight: 700; }
.receipt-details .receipt-total { font-size: 20px; border-bottom: 0; }
.receipt-total dt { color: var(--ink); font-weight: 700; }


@media (max-width: 420px) {
  .order-dialog { width: 100%; }
  .drawer-heading { padding: 12px 15px; }
  .drawer-scroll { padding: 12px 15px 18px; }
  .drawer-footer { padding-inline: 15px; }
}
@media (max-width: 352px) {
.filters button { padding-inline: 12px; }
  .cart-row { grid-template-columns: 53px minmax(0, 1fr) auto; gap: 7px; }
  .cart-row img { width: 53px; height: 53px; }
  .cart-stepper { gap: 3px; }
  .cart-stepper span { min-width: 17px; }
}
