/* =========================================================
   CHECKOUT SHEET — sole visual owner of the payment tray
   Spacing scale: 12 / 16 / 24 / 32
   Type scale: heading / section / body / caption / price
   Layout/motion: correspondence.css + site.css
   Submitted states: guest-tray-submitted.css
   ========================================================= */

:root {
  --checkout-space-1: 0.75rem;   /* 12 */
  --checkout-space-2: 1rem;      /* 16 */
  --checkout-space-3: 1.5rem;    /* 24 */
  --checkout-space-4: 2rem;      /* 32 */

  --checkout-type-heading: 1rem;
  --checkout-type-section: 0.9375rem;
  --checkout-type-body: 0.875rem;
  --checkout-type-caption: 0.75rem;
  --checkout-type-price: 1.0625rem;

  --checkout-sheet-bg: #faf7f2;
  --checkout-sheet-fg: #1a1209;
  --checkout-sheet-muted: #5c4a32;
  --checkout-sheet-muted-2: #7a6348;
  --checkout-sheet-line: #d6c4a8;
  --checkout-sheet-card: #ffffff;
  --checkout-sheet-ink: #1a1209;
  --checkout-sheet-ink-fg: #faf7f2;
  --checkout-sheet-selected: #2a6655;
  --checkout-sheet-overlay: rgba(0, 0, 0, 0.42);
  --checkout-sheet-radius: 1.25rem;
  --checkout-sheet-shadow:
    0 -16px 48px rgba(0, 0, 0, 0.22),
    0 -2px 0 rgba(255, 255, 255, 0.65) inset;
  --checkout-chip-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

/* ---------- Overlay ---------- */
#order-tray-backdrop.order-tray-backdrop-layer.is-visible,
#order-tray-backdrop.order-tray-backdrop.is-visible {
  background: var(--checkout-sheet-overlay);
}

/* ---------- Sheet shell ---------- */
#order-tray-sheet.order-tray-sheet,
.order-tray-sheet.checkout-sheet {
  background: var(--checkout-sheet-bg);
  background-image: none;
  color: var(--checkout-sheet-fg);
  border: 1px solid var(--checkout-sheet-line);
  border-radius: var(--checkout-sheet-radius) var(--checkout-sheet-radius) 0.35rem 0.35rem;
  box-shadow: var(--checkout-sheet-shadow);
  overflow: hidden;
}

.order-tray-root--sheet-open .order-tray-sheet,
#order-tray-root.order-tray-root--sheet-open #order-tray-sheet {
  box-shadow: var(--checkout-sheet-shadow);
  max-height: min(78dvh, 720px);
}

#order-tray-sheet .postal-airmail-edge {
  display: none;
}

/* ---------- Header (tight) ---------- */
#order-tray-sheet .annap-tray-header,
#order-tray-sheet .order-tray-header-compact {
  display: flex;
  align-items: center;
  gap: var(--checkout-space-1);
  padding: var(--checkout-space-1) var(--checkout-space-2);
  padding-top: calc(var(--checkout-space-1) + 0.2rem);
  background: var(--checkout-sheet-bg);
  border-bottom: 1px solid var(--checkout-sheet-line);
}

.order-tray-handle {
  background: rgba(26, 18, 9, 0.22);
  width: 2rem;
  height: 0.25rem;
  top: 0.35rem;
}

.order-tray-header__stamp,
.order-tray-header__stamp--compact {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
  background: var(--checkout-sheet-card);
  border: 1px solid var(--checkout-sheet-line);
  color: var(--checkout-sheet-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

#traySheetTitle {
  margin: 0;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 650;
  font-size: var(--checkout-type-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--checkout-sheet-fg);
}

#trayCountLine {
  margin: 0.15rem 0 0;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--checkout-type-caption);
  line-height: 1.3;
  color: var(--checkout-sheet-muted);
}

.order-tray-table-meta {
  margin: 0.15rem 0 0;
  font-size: var(--checkout-type-caption);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--checkout-sheet-muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-tray-root--checkout .order-tray-table-meta,
.order-tray-root--checkout-payment .order-tray-table-meta {
  display: block;
}

#annap-tray-close,
#order-tray-clear {
  color: var(--checkout-sheet-muted-2);
}

#annap-tray-close {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
}

#annap-tray-close:hover,
#order-tray-clear:hover {
  color: var(--checkout-sheet-fg);
  background-color: #f0e6d6;
}

.order-tray-root--checkout #order-tray-clear {
  display: none;
}

/* ---------- Cart lines host ---------- */
#order-tray-lines-wrap {
  background: var(--checkout-sheet-bg);
  padding: var(--checkout-space-1) var(--checkout-space-2) 0;
}

.order-tray-empty,
#cart > p.order-tray-empty {
  margin: var(--checkout-space-2) 0;
  padding: var(--checkout-space-3) var(--checkout-space-2);
  background: var(--checkout-sheet-card);
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 0.85rem;
  color: var(--checkout-sheet-muted);
  font-size: var(--checkout-type-body);
  font-style: normal;
  text-align: center;
}

/* Line cards — quieter, fewer outlines */
.tray-correspondence-card {
  margin-bottom: var(--checkout-space-1);
}

.tray-correspondence-card__shadow {
  display: none;
}

.tray-correspondence-card__layer {
  display: none;
}

.tray-correspondence-card__body {
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 0.75rem;
  background: var(--checkout-sheet-card);
  box-shadow: none;
  padding: var(--checkout-space-1);
  gap: var(--checkout-space-1);
}

.tray-correspondence-card__visual {
  border: 0;
  border-radius: 0.5rem;
  background: var(--checkout-sheet-bg);
}

.tray-correspondence-card__name {
  font-size: var(--checkout-type-body);
  font-weight: 600;
  font-style: normal;
  color: var(--checkout-sheet-fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-correspondence-card__note {
  font-size: var(--checkout-type-caption);
  font-style: normal;
  color: var(--checkout-sheet-muted);
}

.tray-correspondence-card__price {
  font-size: var(--checkout-type-body);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-style: normal;
  color: var(--checkout-sheet-fg);
  text-align: right;
  white-space: nowrap;
  min-width: 4.5rem;
}

.tray-correspondence-card__qty-ring {
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 999px;
}

.order-tray-qty {
  min-height: 44px;
  min-width: 44px;
  height: auto;
  font-size: var(--checkout-type-body);
  color: var(--checkout-sheet-muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.order-tray-qty:hover {
  background-color: #f0e6d6;
}

.order-tray-remove {
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--checkout-type-caption);
  font-style: normal;
  letter-spacing: 0;
  color: var(--checkout-sheet-muted-2);
  border-radius: 999px;
  text-decoration: none;
}

.order-tray-remove:hover {
  background: rgba(140, 35, 24, 0.08);
  color: #8c2318;
}

.tray-line-temp {
  display: flex;
  flex-wrap: wrap;
  gap: var(--checkout-space-1) var(--checkout-space-2);
  margin-top: 0.5rem;
}

.tray-line-temp__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: var(--checkout-type-caption);
  color: var(--checkout-sheet-muted);
  cursor: pointer;
}

.tray-line-temp__opt input {
  accent-color: var(--checkout-sheet-ink);
  width: 1.05rem;
  height: 1.05rem;
}

/* ---------- Footer ---------- */
#order-tray-sheet-footer.order-tray-sheet-footer {
  background: var(--checkout-sheet-bg);
  border-top: 1px solid var(--checkout-sheet-line);
  padding: var(--checkout-space-2);
  /* Safe area lives on the dock shell (chip). Sheet sits above chip — no double inset. */
}

.order-tray-checkout-body {
  min-height: 0;
}

/* ---------- Receipt card (primary) ---------- */
.order-tray-checkout {
  margin: 0;
  padding: var(--checkout-space-2);
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 0.85rem;
  background: var(--checkout-sheet-card);
  box-shadow: none;
}

#order-tray-checkout-payment.order-tray-checkout {
  margin-top: var(--checkout-space-2);
}

.order-tray-checkout__kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--checkout-type-section);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--checkout-sheet-fg);
  line-height: 1.25;
}

.order-tray-checkout__note {
  margin: var(--checkout-space-1) 0 0;
  font-size: var(--checkout-type-caption);
  line-height: 1.4;
  color: var(--checkout-sheet-muted);
}

.order-tray-checkout__lines {
  margin: var(--checkout-space-2) 0 0;
  padding: 0;
  list-style: none;
  max-height: 9rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--checkout-sheet-line);
}

.order-tray-checkout__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem minmax(4.75rem, auto);
  align-items: baseline;
  gap: var(--checkout-space-1);
  padding: var(--checkout-space-1) 0;
  font-size: var(--checkout-type-body);
  line-height: 1.35;
}

.order-tray-checkout__line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-weight: 500;
  color: var(--checkout-sheet-fg);
}

.order-tray-checkout__line-qty {
  text-align: right;
  color: var(--checkout-sheet-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-tray-checkout__line-total,
#order-tray-checkout-total,
#order-tray-subtotal {
  margin: 0;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--checkout-type-price);
  color: var(--checkout-sheet-fg);
  text-align: right;
  white-space: nowrap;
  min-width: 0;
}

.order-tray-checkout__line-total {
  font-size: var(--checkout-type-body);
  font-weight: 650;
}

/* Subtotal — one clear row */
.order-tray-subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--checkout-space-2);
  margin-top: var(--checkout-space-1);
  padding-top: var(--checkout-space-1);
  border-top: 1px solid var(--checkout-sheet-line);
}

.order-tray-subtotal-row > span {
  font-size: var(--checkout-type-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--checkout-sheet-fg);
}

.order-tray-checkout .order-tray-subtotal-row {
  margin-top: var(--checkout-space-1);
}

.order-tray-checkout--compact .order-tray-checkout__lines,
.order-tray-checkout--compact .order-tray-checkout__note,
.order-tray-checkout--compact .order-tray-checkout__kicker {
  display: none;
}

.order-tray-checkout--compact .order-tray-subtotal-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.order-tray-root--checkout .order-tray-cart-footer > .order-tray-subtotal-row,
.order-tray-root--checkout-payment .order-tray-cart-footer > .order-tray-subtotal-row {
  display: none;
}

#menu-table-identity {
  border-color: var(--checkout-sheet-line);
  background-color: var(--checkout-sheet-card);
}

#menu-table-primary {
  font-family: var(--font-ui);
  font-size: var(--checkout-type-body);
  color: var(--checkout-sheet-fg);
}

#menu-table-need-qr,
.order-tray-need-qr {
  margin-top: var(--checkout-space-1);
  padding: var(--checkout-space-1);
  font-family: var(--font-ui);
  font-size: var(--checkout-type-caption);
  color: var(--checkout-sheet-muted);
  border: 1px solid var(--checkout-sheet-line);
  background: var(--checkout-sheet-card);
  border-radius: 0.5rem;
}

/* ---------- Payment methods ---------- */
.order-tray-payment-options {
  display: grid;
  gap: var(--checkout-space-1);
  margin-top: var(--checkout-space-1);
}

.order-tray-payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: var(--checkout-space-1) 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--checkout-sheet-line);
  background: var(--checkout-sheet-card);
  font-size: var(--checkout-type-caption);
  line-height: 1.25;
  color: var(--checkout-sheet-fg);
  text-align: center;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.order-tray-payment-options--triple .order-tray-payment-option {
  min-height: 3.25rem;
  padding: 0.55rem 0.35rem;
}

.order-tray-payment-options--triple .order-tray-payment-option__title {
  font-size: 0.6875rem;
}

.order-tray-payment-options--triple .order-tray-payment-option__subtitle {
  font-size: 0.5625rem;
  line-height: 1.2;
}

.order-tray-payment-option__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.order-tray-payment-option__title {
  font-size: var(--checkout-type-body);
  font-weight: 650;
  line-height: 1.25;
  color: inherit;
}

.order-tray-payment-option__subtitle,
.order-tray-payment-option__hint {
  font-size: 0.625rem;
  line-height: 1.25;
  color: var(--checkout-sheet-muted);
}

.order-tray-payment-option__hint {
  display: block;
  margin-top: 0.15rem;
}

.order-tray-payment-option--selected,
.order-tray-payment-option[aria-pressed="true"] {
  border-color: var(--checkout-sheet-ink);
  background: var(--checkout-sheet-ink);
  color: var(--checkout-sheet-ink-fg);
  box-shadow: none;
}

.order-tray-payment-option--selected .order-tray-payment-option__subtitle,
.order-tray-payment-option[aria-pressed="true"] .order-tray-payment-option__subtitle,
.order-tray-payment-option--selected .order-tray-payment-option__hint,
.order-tray-payment-option[aria-pressed="true"] .order-tray-payment-option__hint {
  color: rgba(250, 247, 242, 0.78);
}

.order-tray-payment-option--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f0ebe3;
}

.order-tray-payment-preview {
  margin-top: var(--checkout-space-1);
  padding: var(--checkout-space-1);
  border-radius: 0.75rem;
  border: 1px solid var(--checkout-sheet-line);
  background: var(--checkout-sheet-bg);
}

.order-tray-payment-preview__title {
  display: none;
}

.order-tray-payment-preview__body {
  margin: 0;
  color: var(--checkout-sheet-fg);
  font-size: var(--checkout-type-body);
  line-height: 1.45;
}

.order-tray-payment-preview__note {
  margin: 0.35rem 0 0;
  color: var(--checkout-sheet-muted);
  font-size: var(--checkout-type-caption);
  line-height: 1.35;
}

.order-tray-payment-preview__keepopen {
  margin: var(--checkout-space-1) 0 0;
  padding: 0.5rem var(--checkout-space-1);
  border-radius: 0.5rem;
  font-size: var(--checkout-type-caption);
  line-height: 1.4;
  font-weight: 600;
  color: #5c3d18;
  background: #f5e6c8;
  border: 1px solid #e0c48a;
}

/* ---------- Sticky CTA ---------- */
.order-tray-root--checkout-payment .order-tray-sheet-footer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.order-tray-root--checkout-payment .order-tray-checkout-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.order-tray-checkout-sticky {
  flex-shrink: 0;
  margin-top: var(--checkout-space-2);
}

.order-tray-checkout-sticky--pinned {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: var(--checkout-space-1);
  padding-top: var(--checkout-space-1);
  padding-bottom: 0;
  background: var(--checkout-sheet-bg);
  box-shadow: 0 -8px 18px -12px rgba(0, 0, 0, 0.14);
}

.order-tray-root--checkout-payment .order-tray-checkout-sticky--pinned {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--checkout-space-1);
  align-items: stretch;
}

.order-tray-root--checkout-payment .order-tray-checkout-actions:not(.hidden) {
  display: flex;
}

.order-tray-root--checkout-payment .order-tray-checkout-actions.hidden + .order-tray-submit {
  grid-column: 1 / -1;
}

.order-tray-root--checkout-payment .order-tray-submit,
.order-tray-cart-footer--checkout .order-tray-submit {
  margin-top: 0;
}

/* Primary CTA — full width, lighter weight */
#menuSubmitBtn.order-tray-submit,
.order-tray-submit.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 0.7rem var(--checkout-space-2);
  border-radius: 0.75rem;
  background: var(--checkout-sheet-ink);
  color: var(--checkout-sheet-ink-fg);
  border: 0;
  font-size: var(--checkout-type-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 14px rgba(26, 18, 9, 0.16);
}

#menuSubmitBtn.order-tray-submit:disabled,
.order-tray-submit.btn-ink:disabled {
  background: #cbb89a;
  color: #fff;
  box-shadow: none;
  opacity: 1;
}

#menuSubmitBtn.order-tray-submit--preparing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #20150c 0%, #3a2816 50%, #20150c 100%);
}

#menuSubmitBtn.order-tray-submit--preparing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 239, 205, 0.24) 48%, transparent 76%);
  transform: translateX(-120%);
  animation: checkout-sheet-preparing-shimmer 1.45s ease-in-out infinite;
}

@keyframes checkout-sheet-preparing-shimmer {
  to { transform: translateX(120%); }
}

#menuSubmitBtn.order-tray-submit--success,
.order-tray-submit--success {
  background: var(--checkout-sheet-selected);
  color: #fff;
}

/* Secondary — quieter than CTA */
.order-tray-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem var(--checkout-space-1);
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--checkout-sheet-muted);
  font-size: var(--checkout-type-caption);
  font-weight: 500;
  box-shadow: none;
}

.order-tray-back-btn:hover {
  color: var(--checkout-sheet-fg);
  background: rgba(26, 18, 9, 0.04);
}

.order-tray-confirm {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: var(--checkout-type-caption);
  font-weight: 500;
  color: var(--checkout-sheet-muted-2);
}

#orderResult {
  margin-top: var(--checkout-space-1);
  font-family: var(--font-ui);
  font-size: var(--checkout-type-caption);
  font-style: normal;
  color: var(--checkout-sheet-muted);
  text-align: center;
}

#orderResult a {
  font-family: var(--font-ui);
  font-size: var(--checkout-type-caption);
  letter-spacing: 0;
  text-transform: none;
  color: var(--checkout-sheet-muted);
}

/* ---------- Collapsed chip (sole layout owner: lead | price | chevron) ---------- */
#order-tray-chip.order-tray-chip,
#order-tray-chip.checkout-sheet-chip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--checkout-space-2);
  overflow: hidden;
  background: var(--checkout-sheet-bg);
  background-image: none;
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 1rem;
  box-shadow: var(--checkout-chip-shadow);
}

.order-tray-chip__impact {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.order-tray-chip__lead {
  display: flex;
  align-items: center;
  gap: var(--checkout-space-2);
  flex: 0 1 auto;
  min-width: 0;
}

.order-tray-chip__stack {
  flex: 0 0 auto;
}

.order-tray-chip__copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.order-tray-chip__kicker,
#order-tray-chip-title,
#order-tray-chip-sub,
#order-tray-chip-guest {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-tray-chip__price {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.order-tray-chip__total {
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: visible;
  text-overflow: clip;
  font-size: var(--checkout-type-price);
  line-height: 1.2;
}

.order-tray-chevron {
  flex: 0 0 auto;
}

#order-tray-chip:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.order-tray-root--sheet-open #order-tray-chip {
  border-radius: 999px;
  box-shadow:
    0 6px 18px rgba(26, 18, 9, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  min-height: 2.75rem;
  align-items: center;
}

.order-tray-root--sheet-open #order-tray-chip-impact,
.order-tray-root--sheet-open .order-tray-chip__stack,
.order-tray-root--sheet-open .order-tray-chip__kicker,
.order-tray-root--sheet-open #order-tray-chip-sub,
.order-tray-root--sheet-open #order-tray-chip-guest {
  display: none;
}

.order-tray-root--sheet-open .order-tray-chip__lead {
  flex: 1 1 auto;
  min-width: 0;
}

.order-tray-root--sheet-open .order-tray-chip__price {
  flex: 0 0 auto;
}

.order-tray-root--sheet-open .order-tray-chip__total {
  white-space: nowrap;
  overflow: visible;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.order-tray-root--sheet-open #order-tray-chip-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#order-tray-chip-title {
  font-style: normal;
  font-weight: 650;
  color: var(--checkout-sheet-fg);
}

#order-tray-chip-sub {
  font-style: normal;
  color: var(--checkout-sheet-muted);
}

.order-tray-chip__kicker {
  color: var(--checkout-sheet-muted-2);
}

.order-tray-chip__total,
.order-tray-root--empty .order-tray-chip__total {
  color: var(--checkout-sheet-fg);
  font-weight: 700;
  font-style: normal;
}

.order-tray-root--empty .order-tray-chip__total--empty {
  color: var(--checkout-sheet-muted-2);
  font-weight: 500;
}

.order-tray-chevron {
  background: var(--checkout-sheet-card);
  border: 1px solid var(--checkout-sheet-line);
  box-shadow: none;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
}

.order-tray-chip__card {
  border: 1px solid var(--checkout-sheet-line);
  border-radius: 0.52rem;
  background: var(--checkout-sheet-card);
  box-shadow: none;
  color: var(--checkout-sheet-muted);
  font-style: normal;
}

.order-tray-chip__empty-line {
  border: none;
  background: linear-gradient(90deg, transparent, var(--checkout-sheet-line), transparent);
  box-shadow: none;
}

@media (max-width: 430px) {
  #order-tray-sheet.order-tray-sheet,
  .order-tray-sheet.checkout-sheet {
    border-radius: 1rem 1rem 0.35rem 0.35rem;
  }

  .order-tray-checkout__line {
    grid-template-columns: minmax(0, 1fr) 2rem minmax(4.25rem, auto);
    gap: 0.5rem;
  }

  .order-tray-checkout__lines {
    max-height: 7.5rem;
  }
}

@media (max-width: 360px) {
  #order-tray-sheet .annap-tray-header,
  #order-tray-sheet .order-tray-header-compact,
  #order-tray-sheet-footer.order-tray-sheet-footer,
  #order-tray-lines-wrap {
    padding-left: var(--checkout-space-1);
    padding-right: var(--checkout-space-1);
  }

  .order-tray-checkout {
    padding: var(--checkout-space-1);
  }

  .order-tray-checkout__line-total,
  #order-tray-checkout-total,
  #order-tray-subtotal {
    font-size: 0.9375rem;
  }
}

@media (max-width: 320px) {
  .order-tray-payment-options--triple .order-tray-payment-option__subtitle {
    display: none;
  }

  .order-tray-checkout__line {
    grid-template-columns: minmax(0, 1fr) minmax(3.75rem, auto);
  }

  .order-tray-checkout__line-qty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-tray-payment-option,
  #menuSubmitBtn.order-tray-submit--preparing::after {
    transition: none;
    animation: none;
  }
}
