/* Cart first, then original customer controls. Desktop structure restores via view adapter. */
.touch-cart-scrim { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileCart.mobile-visible + #touchCartScrim {
  display: block !important; position: fixed; inset: 0; z-index: 1999;
  background: rgba(29, 37, 31, .32); backdrop-filter: blur(2px);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileCart.mobile-visible {
  display: flex !important; flex-direction: column; position: fixed; inset: 0; z-index: 2000;
  width: min(680px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 auto !important;
  padding: 0 !important; background: var(--touch-canvas) !important; overflow: hidden !important;
  border: 0; border-radius: 0; box-shadow: 0 -8px 36px #17231d22 !important;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-handle {
  display: none;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-header {
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; background: var(--touch-surface); border-bottom: 1px solid var(--touch-line);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-header h2 { margin: 0; color: var(--touch-ink); font-size: 18px; line-height: 1.25; letter-spacing: -.3px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartClose {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 12px;
  border: 0; border-radius: 50%; background: transparent; color: var(--touch-muted);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartClose svg { display: block; width: 20px; height: 20px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartClose:focus-visible,
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartContinue:focus-visible { outline: 2px solid var(--touch-cart-accent); outline-offset: -3px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 14px 16px 8px; scrollbar-width: none; overscroll-behavior: contain; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileCart #touchCartScroll :is(.cart-left, .cart-summary, .cart-items) { width: auto !important; max-width: none !important; max-height: none !important; height: auto !important; overflow: visible !important; position: static !important; flex: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll :is(.checkout-top-navbar, .checkout-bottom-bar, .desktop-only) { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileCart #touchCartScroll #cart {
  display: block; margin: 0 0 16px; padding: 0 !important; background: white;
  border: 1px solid var(--touch-line); border-radius: 18px; overflow: hidden;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileCart #touchCartScroll #cart:empty { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart > li.cart-item {
  display: grid; position: relative; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  column-gap: 10px; row-gap: 6px; list-style: none; background: white !important;
  border: 0; border-bottom: 1px solid var(--touch-line); border-radius: 0;
  padding: 15px 12px !important; margin: 0 !important; color: var(--touch-ink); overflow-wrap: anywhere;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart > li.cart-item:last-child { border-bottom: 0; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart > li.cart-item::before {
  content: ""; grid-column: 1; grid-row: 1 / 4; width: 48px; height: 54px; border-radius: 10px;
  background: radial-gradient(ellipse 7px 8px at 50% 17px, transparent 64%, #656f60 67% 81%, transparent 84%) center top / 24px 22px no-repeat, #edf0e7;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart > li.cart-item::after {
  content: ""; position: absolute; left: 25px; top: 34px; width: 22px; height: 21px;
  box-sizing: border-box; border: 1.6px solid #656f60; border-radius: 2px 2px 3px 3px;
  pointer-events: none;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart :is(.cart-item-header, .cart-item-label) { display: contents; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-item-name {
  grid-column: 2 / 4; grid-row: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-item-toppings {
  grid-column: 2 / 4; grid-row: 2; min-width: 0; color: var(--touch-muted); font-size: 12px; line-height: 1.5;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-item-toppings-token {
  padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 400; white-space: normal;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-qty-control {
  grid-column: 2; grid-row: 3; width: max-content; max-width: 100%; min-height: 44px;
  padding: 0; gap: 0; border-radius: 14px; background: #eff0e9; box-shadow: none;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-qty-button {
  width: 44px; height: 44px; border-radius: 14px; background: transparent; color: var(--touch-muted);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-qty-display { min-width: 24px; color: var(--touch-ink); font-size: 13px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart .cart-item-price {
  grid-column: 3; grid-row: 3; align-self: center; justify-self: end; color: var(--touch-ink); font-size: 14px;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart :is(button, select) { min-height: 44px; min-width: 44px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cart :is(.cart-item-name, .cart-item-options, .cart-item-preferences) { white-space: normal; overflow: visible; text-overflow: clip; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #remark { width: 100%; box-sizing: border-box; min-height: 66px; max-height: 180px; overflow-y: auto; resize: vertical; font-family: inherit; font-size: 16px; line-height: 1.45; background: white; border: 1px solid var(--touch-line); border-radius: 12px; padding: 11px 12px; margin: 7px 0 14px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-remark-label { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 650; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-remark-label span:last-child { color: var(--touch-muted); font-weight: 400; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchSuppliesToggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; align-content: center; width: calc(100% - 16px); min-height: 48px; margin: 0 8px; padding: 6px 4px; border: 0 !important; border-block: 1px solid var(--touch-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--touch-ink); text-align: left; font: inherit; font-size: 14px; font-weight: 650; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchSuppliesToggle [data-supplies-label] { grid-column: 1; grid-row: 1; min-width: 0; }
/* The edit label spans both left text rows, including a wrapping summary. */
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchSuppliesToggle .touch-supplies-indicator { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-left: 0; white-space: nowrap; font-size: 22px; font-weight: 400; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchSuppliesSummary:not([hidden]) { grid-column: 1; grid-row: 2; min-width: 0; padding: 0; color: var(--touch-muted); font-size: 11px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.touch-supplies-summary[hidden] { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #cartExtrasContainer[hidden] { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 4px 0; font-size: 12px; color: var(--touch-muted); }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll :is(.discount-row select, #tipSelect) { min-height: 44px; border: 1px solid var(--touch-line); border-radius: 12px; font-size: 16px; padding: 8px; background: white; color: var(--touch-ink); }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .touch-tip-row { padding-block: 0; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .touch-tip-row #tipSelect { margin: 0; border-color: #e9eae3; box-shadow: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .touch-tip-row #tipSelect:focus-visible { outline: 2px solid var(--touch-cart-accent); outline-offset: -3px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .discount-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; margin: 4px 0 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-discount-label { display: block; color: var(--touch-ink); font-size: 13px; font-weight: 650; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #discountCode { flex: none; min-width: 0; width: 100%; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #discountCode option[data-discount-label="none"] { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #validateDiscountBtn { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .spacer { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .price-details {
  margin: 0 4px 12px; padding: 0; border: 0; background: transparent; border-radius: 0;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .price-details .total-row { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartScroll .price-details .btw-note { margin-top: 5px; color: var(--touch-muted); font-size: 11px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-footer {
  display: grid; flex: none; grid-template-columns: minmax(0, 1fr); gap: 9px;
  padding: 12px 20px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--touch-line); background: white;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-footer-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--touch-muted); font-size: 13px;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartTotal { color: var(--touch-ink); font-size: 24px; font-weight: 750; white-space: nowrap; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartContinue {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  border: 0; border-radius: 15px; background: var(--touch-accent); color: white; font-size: 16px; font-weight: 700;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartContinue svg { width: 19px; height: 19px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-next-step {
  margin: 0; color: var(--touch-muted); font-size: 10px; line-height: 1.4; text-align: center;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartContinue:disabled { opacity: .45; cursor: not-allowed; }
@media (max-height: 520px) {
  body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-cart-footer { gap: 5px; padding-top: 8px; }
  body:is([data-layout="mobile"], [data-layout="portrait"]) #touchCartContinue { min-height: 44px; }
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .customer-details-sheet { width: min(680px, 100vw); max-width: 100vw; max-height: 95dvh; background: var(--touch-canvas); border-radius: 24px 24px 0 0; padding: 18px; overflow-y: auto; scrollbar-width: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .customer-details-compact-controls { display: flex; flex-direction: column; gap: 14px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .customer-details-compact-controls > * { width: 100%; box-sizing: border-box; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .customer-details-date-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid var(--touch-line); border-radius: 15px; background: white; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsFieldsMount { margin: 18px 0; padding: 16px; background: white; border: 1px solid var(--touch-line); border-radius: 18px; }
#touchDeliveryAddress[hidden] { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddress { margin-top: 14px; border-top: 1px solid var(--touch-line); }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddress summary { min-height: 48px; display: flex; align-items: center; list-style: none; cursor: pointer; color: var(--touch-ink); font-size: 14px; font-weight: 650; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddress summary::-webkit-details-marker { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddress summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddress[open] summary::after { content: '−'; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddressFields { display: grid; gap: 10px; padding: 4px 0 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchDeliveryAddressFields > :is(input, .pc-hn-row, #mapLinkContainer) { width: 100%; min-width: 0; box-sizing: border-box; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .customer-details-sheet :is(input, select, button) { min-height: 44px; font-size: 16px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsSave { position: sticky; bottom: -18px; width: 100%; min-height: 50px; background: var(--touch-accent); color: white; border: 8px solid var(--touch-canvas); border-radius: 20px; margin: 8px 0 0; box-sizing: border-box; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal {
  box-sizing: border-box; padding: 0 !important; width: 100%; max-width: 100vw; place-items: end center;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal[aria-hidden="true"] { visibility: hidden; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal[aria-hidden="false"] { visibility: visible; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal .customer-details-sheet {
  box-sizing: border-box; width: min(680px, 100%) !important; max-width: 100% !important;
  padding: 18px !important; margin: 0; max-height: 95dvh !important; overflow: auto !important;
  background: var(--touch-canvas) !important; border: 0; border-radius: 24px 24px 0 0;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal .customer-details-sheet > * { flex-shrink: 0; min-width: 0; max-width: 100%; box-sizing: border-box; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal .customer-details-title { color: var(--touch-ink) !important; font-size: 22px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal .customer-details-compact-controls { display: flex !important; flex-direction: column; gap: 14px !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #customerDetailsModal #customerDetailsSave { min-height: 56px !important; background: var(--touch-accent) !important; color: white !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) :is(#touchCartScroll, .customer-details-sheet, .sauce-modal, .nova-product-options, .favorites-panel)::-webkit-scrollbar { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .checkout-order-time-wheel { scrollbar-width: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .checkout-order-time-wheel::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
  body:is([data-layout="mobile"], [data-layout="portrait"]) :is(.customer-details-sheet, #mobileCart, .touch-menu-tools) { scroll-behavior: auto; transition: none; }
}
