.customer-body {
  --ink: #1d2e29;
  --muted: #66756f;
  --green: #2f6b59;
  --dark: #234b40;
  --soft: #e8f1ed;
  --cream: #f4f6f2;
  --paper: #ffffff;
  --line: #dfe6e1;
  --orange: #b8643d;
  --orange-soft: #fbede5;
  --shadow: 0 8px 28px rgba(30, 61, 51, .07);
  min-height: 100vh;
  --customer-nav-height: 72px;
  --customer-nav-space: calc(var(--customer-nav-height) + 14px);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
}

html[data-customer-theme="terracotta"] .customer-body {
  --ink: #3d2b26;
  --muted: #7e6c65;
  --green: #a84f36;
  --dark: #7f3f2e;
  --soft: #f4e4dd;
  --cream: #f8f4ef;
  --line: #eaded7;
  --orange: #9c5f2f;
  --orange-soft: #f8e9dd;
  --shadow: 0 8px 28px rgba(91, 54, 40, .07);
}

html[data-customer-theme="espresso"] .customer-body {
  --ink: #302722;
  --muted: #766b64;
  --green: #66483b;
  --dark: #49342c;
  --soft: #eee7e1;
  --cream: #f5f2ee;
  --line: #e3dbd4;
  --orange: #a45f3f;
  --orange-soft: #f5e8e0;
  --shadow: 0 8px 28px rgba(55, 39, 32, .08);
}

.customer-app { flex: 1; }
.customer-body > .site-footer { padding: 18px 24px; }
.customer-body:has(.customer-app:not([hidden])) > .site-footer { padding-bottom: calc(18px + var(--customer-nav-space)); }
.customer-header { position: sticky; top: 0; z-index: 30; width: min(800px, 100%); height: 72px; margin: auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--cream) 90%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); backdrop-filter: blur(16px); }
.customer-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.customer-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--green); transform: none; }
.customer-brand .brand-mark svg { width: 21px; height: 21px; }
.customer-brand strong { font: 700 18px Fraunces, Georgia, serif; letter-spacing: -.2px; }
.customer-avatar { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.customer-view { width: min(800px, 100%); margin: auto; padding: 28px 22px 38px; }

.customer-hero { min-height: 158px; margin-bottom: 14px; padding: 27px; border-radius: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; background: var(--dark); color: #fff; box-shadow: 0 12px 32px color-mix(in srgb, var(--dark) 18%, transparent); }
.customer-hero h1 { margin: 0; font-size: clamp(28px, 6vw, 36px); }
.customer-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .68); font-size: 12px; }
.customer-hero .button { flex: 0 0 auto; background: #fff; color: var(--dark); }

.customer-balance-card { min-height: 104px; margin-bottom: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.customer-balance-card small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.customer-balance-card strong { display: block; margin-top: 4px; color: var(--ink); font: 700 30px Fraunces, Georgia, serif; }
.balance-state { padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--green); font-size: 10px; font-weight: 800; }

.customer-section { margin-top: 28px; }
.customer-section-heading { margin-bottom: 12px; }
.customer-section-heading h2 { margin: 0; font: 700 19px Fraunces, Georgia, serif; }
.customer-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.customer-list { display: grid; gap: 9px; }
.customer-status-card, .customer-history-row, .customer-tab-row { padding: 16px 17px; border: 1px solid var(--line); background: var(--paper); }
.customer-status-card { border-radius: 15px; }
.customer-status-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.customer-status-card h3 { margin: 0; font-size: 13px; }
.customer-status-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.customer-status-chip { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.customer-status-chip.completed { background: #dff3e5; color: #21663b; }
.customer-status-chip.in_progress { background: #e0edff; color: #24578d; white-space: nowrap; flex-shrink: 0; }
.customer-status-chip.cancelled { background: #f1eeee; color: var(--muted); }
.customer-status-footer { margin-top: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-order-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.customer-order-actions .button { min-height: 34px; margin: 0; text-decoration: none; }
.customer-order-actions .danger { background: #fff4f4; color: #a64040; }
.customer-expandable-order > summary { cursor: pointer; list-style: none; }
.customer-expandable-order > summary::-webkit-details-marker { display: none; }
.customer-expandable-order > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 8px; }
.customer-order-disclosure { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 11px; }
.customer-expandable-order[open] .customer-order-disclosure > span { transform: rotate(180deg); }
.customer-expandable-order > .customer-order-actions { padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line); }
.customer-order-actions .customer-calendar-link { color: var(--green); background: var(--soft); border-color: var(--line); }
.customer-calendar-link svg { width: 19px; height: 19px; }
.customer-repeat-label { display: block; margin-top: 6px; color: var(--green); font-size: 9px; font-weight: 800; }
.customer-cancel-order { flex: 0 0 auto; min-height: 34px; }
.customer-cancel-closed { color: var(--muted); font-size: 9px; text-align: right; }
.customer-history-row, .customer-tab-row { border-radius: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.customer-history-row strong, .customer-tab-row strong { display: block; font-size: 13px; }
.customer-history-row small, .customer-tab-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.customer-row-amount { color: var(--green); font-size: 13px; font-weight: 800; text-align: right; }
.customer-row-amount.charge { color: var(--ink); }

.customer-order-intro { margin: 2px 0 20px; }
.customer-order-intro h1 { margin: 0; font-size: 27px; }
.customer-order-intro.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-history-group + .customer-history-group { margin-top: 24px; }
.customer-history-group > h2 { margin: 0 0 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.customer-history-swipe { position: relative; overflow: hidden; border-radius: 15px; background: #b84c4c; touch-action: pan-y; }
.customer-history-swipe .customer-status-card { position: relative; z-index: 1; transition: transform .2s ease; }
.customer-history-swipe.swiped .customer-status-card { transform: translateX(-88px); }
.history-swipe-delete { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 88px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: #b84c4c; color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.history-swipe-delete svg { width: 18px; height: 18px; }
.customer-status-card.selecting { padding-left: 52px; }
.history-select { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 48px; display: grid; place-items: center; cursor: pointer; }
.history-select input { position: absolute; opacity: 0; }
.history-select span { width: 21px; height: 21px; border: 2px solid var(--line); border-radius: 7px; background: var(--paper); }
.history-select input:checked + span { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px var(--paper); }
.history-bulk-actions { margin: -7px 0 13px; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.history-bulk-actions span { flex: 1; color: var(--muted); font-size: 10px; text-align: center; }
.history-bulk-actions svg { width: 14px; height: 14px; }
.customer-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-menu-item { position: relative; min-width: 0; padding: 17px; border: 2px solid var(--line); border-radius: 30px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.customer-menu-item.selected { border-color: var(--green); background: var(--soft); }
.customer-drink-select { width: 100%; flex: 1; padding: 10px 0 0; border: 0; background: transparent; color: var(--ink); cursor: default; }
.customer-drink-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: var(--soft); color: var(--green); }
.customer-drink-icon svg { width: 32px; height: 32px; }
.customer-menu-item.selected .customer-drink-icon { background: var(--paper); }
.customer-favorite { position: absolute; z-index: 1; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--green); font-size: 25px; cursor: pointer; }
.customer-favorite[aria-pressed="true"] { color: #a33350; }
.customer-menu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.customer-menu-filters button { min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-weight: 700; cursor: pointer; }
.customer-menu-filters button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.customer-menu-hint, .customer-order-intro > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.customer-reorders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.customer-reorder { padding: 16px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.customer-reorder span { color: var(--green); font-size: 11px; }
.customer-checkout-items { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--paper); }
.customer-checkout-items > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.customer-password-settings { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.customer-menu-item h3 { margin: 0; font-size: 14px; }
.customer-menu-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.customer-menu-price { display: block; margin-top: 7px; color: var(--green); font-size: 13px; font-weight: 800; }
.quantity-control { display: grid; grid-template-columns: 38px 34px 38px; align-items: center; }
.quantity-control button { height: 38px; border: 1px solid var(--line); background: var(--paper); color: var(--green); font-size: 18px; cursor: pointer; }
.quantity-control button:first-child { border-radius: 10px 0 0 10px; }
.quantity-control button:last-child { border-radius: 0 10px 10px 0; }
.quantity-control output { height: 38px; display: grid; place-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 800; }

.customer-checkout { margin-top: 18px; padding: 17px; border-radius: 17px; background: var(--dark); color: #fff; box-shadow: 0 14px 36px color-mix(in srgb, var(--dark) 25%, transparent); }
.customer-cart-summary { position: sticky; bottom: 94px; z-index: 2; }
.customer-checkout, .customer-checkout * { min-width: 0; }
.pickup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.customer-checkout .field label { color: rgba(255, 255, 255, .78); }
.customer-checkout .field label span { color: rgba(255, 255, 255, .48); font-weight: 500; }
.customer-checkout .field input, .customer-checkout .field select { max-width: 100%; border-color: transparent; }
.pickup-help { margin: 7px 1px 0; color: rgba(255, 255, 255, .58); font-size: 9px; line-height: 1.4; }
.checkout-note { margin-top: 11px; }
.customer-order-option { margin-top: 11px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 11px; background: rgba(255, 255, 255, .07); cursor: pointer; }
.customer-order-option input { width: 17px; height: 17px; min-height: 0; margin: 1px 0 0; flex: 0 0 auto; accent-color: #fff; }
.customer-order-option span { display: grid; gap: 2px; }
.customer-order-option strong { font-size: 11px; }
.customer-order-option small { color: rgba(255, 255, 255, .58); font-size: 9px; line-height: 1.4; }
.customer-repeat-options { margin-top: 9px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; border-radius: 11px; background: rgba(255, 255, 255, .07); }
.customer-repeat-options[hidden] { display: none; }
.customer-repeat-length { margin: 0; padding: 0; display: grid; grid-template-columns: auto 72px; align-items: center; gap: 7px 9px; border: 0; }
.customer-repeat-length legend { margin-bottom: 7px; color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 700; }
.customer-repeat-length label { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 10px; }
.customer-repeat-length input[type="radio"] { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: #fff; }
.customer-repeat-length input[type="number"] { min-height: 36px; padding: 7px 9px; }
.customer-repeat-length label:nth-of-type(2) { grid-column: 1 / -1; }
.customer-repeat-length small { grid-column: 1 / -1; color: rgba(255, 255, 255, .58); font-size: 9px; line-height: 1.4; }
.customer-checkout-total { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.customer-checkout-total span { color: rgba(255, 255, 255, .68); font-size: 11px; }
.customer-checkout-total strong { font: 700 22px Fraunces, Georgia, serif; }
.customer-checkout .button { width: 100%; margin-top: 13px; background: #fff; color: var(--dark); }
.customer-checkout .button:disabled { cursor: not-allowed; opacity: .48; }
.coffee-chat-payment-options { display: grid; gap: 10px; margin: 14px 0; }
.coffee-chat-apple-pay { min-height: 44px; border: 0; border-radius: 8px; background: #000; color: #fff; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.coffee-chat-apple-pay[hidden] { display: none; }
.coffee-chat-saved-cards { margin: 0; padding: 0; border: 0; }
.coffee-chat-saved-cards legend { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.coffee-chat-saved-cards [data-saved-card-list] { display: grid; gap: 7px; }
.coffee-chat-saved-card { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.coffee-chat-saved-card:has(input:checked) { border-color: var(--green); background: var(--soft); }
.coffee-chat-payment-dialog .coffee-chat-saved-card label { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; color: var(--dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.coffee-chat-saved-card label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coffee-chat-saved-card label small { color: var(--muted); font-size: 11px; font-weight: 600; }
.coffee-chat-saved-card input { width: 16px; height: 16px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.coffee-chat-add-card { width: 100%; min-height: 42px; margin-top: 7px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--green); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.coffee-chat-add-card span { width: 16px; font-size: 18px; font-weight: 400; line-height: 1; text-align: center; }
.coffee-chat-add-card:hover, .coffee-chat-add-card:focus-visible, .coffee-chat-add-card.selected { border-color: var(--green); background: var(--soft); }
.coffee-chat-payment-dialog .coffee-chat-save-card { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.coffee-chat-save-card input { margin: 1px 0 0; accent-color: var(--green); }
.saved-card-remove { width: 34px; height: 34px; flex: 0 0 auto; padding: 7px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #b42318; cursor: pointer; }
.saved-card-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.saved-card-remove:hover, .saved-card-remove:focus-visible { background: #fff0ed; border-color: #b42318; }
.customer-order-message { margin-top: 12px; padding: 10px 11px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 11px; line-height: 1.45; }
.customer-order-message.error { background: rgba(189, 78, 78, .28); color: #ffe8e8; }

.customer-settings { display: grid; gap: 12px; }
#customer-interface-options:empty { display: none; }
.customer-interface-choice { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.customer-interface-choice > p { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.customer-interface-choice > p small { color: var(--muted); font-size: 11px; font-weight: 500; }
.customer-interface-choice .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-interface-choice .theme-option { min-height: 44px; }
.customer-settings .card { padding: 20px; }
.customer-settings h2 { margin: 0 0 16px; font: 700 17px Fraunces, Georgia, serif; }
.customer-settings .card > p { margin: -8px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.customer-settings .form-grid { gap: 13px; }
.customer-settings .field label span { color: var(--muted); font-weight: 500; }
.customer-settings #bug-report-word-count { text-align: right; }
.customer-settings #bug-report-word-count.over-limit { color: #b84c4c; font-weight: 800; }
.customer-settings .button { width: 100%; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.theme-option { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); cursor: pointer; text-align: left; }
.theme-option[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 12%, transparent); color: var(--ink); }
.theme-option strong { display: block; padding: 7px 2px 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.theme-preview { height: 42px; padding: 7px; border-radius: 8px; display: flex; align-items: flex-end; gap: 4px; }
.theme-preview i { display: block; width: 11px; border-radius: 3px; background: currentColor; }
.theme-preview i:nth-child(1) { height: 14px; }
.theme-preview i:nth-child(2) { height: 24px; opacity: .65; }
.theme-preview i:nth-child(3) { height: 19px; opacity: .35; }
.theme-preview-forest { color: #2f6b59; background: #e8f1ed; }
.theme-preview-terracotta { color: #a84f36; background: #f4e4dd; }
.theme-preview-espresso { color: #66483b; background: #eee7e1; }
.install-steps { margin: 0; padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.customer-account-row { padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.customer-account-row span { color: var(--muted); }
.customer-account-row strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.customer-account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#customer-account-section { scroll-margin-top: 96px; }
.customer-notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.customer-settings .customer-notification-heading h2 { margin: 0; }
.customer-settings .card > #customer-notification-status { margin: 12px 0 0; }
.customer-notification-switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; padding: 3px; border: 0; border-radius: 999px; background: var(--muted); cursor: pointer; transition: background .2s; }
.customer-notification-switch::after { content: ""; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0003; transition: transform .2s; }
.customer-notification-switch[aria-checked="true"] { background: var(--green); }
.customer-notification-switch[aria-checked="true"]::after { transform: translateX(20px); }
.customer-notification-switch:disabled { opacity: .55; cursor: wait; }
.customer-password-disclosure summary { cursor: pointer; color: var(--green); font-weight: 700; }
.customer-password-disclosure .customer-password-settings { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .customer-notification-switch, .customer-notification-switch::after { transition: none; } }
.customer-account-row + .button { margin-top: 12px; }

.customer-empty { padding: 38px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.customer-empty svg { width: 27px; height: 27px; color: var(--green); }
.customer-empty h3 { margin: 10px 0 5px; color: var(--ink); font-size: 14px; }
.customer-empty p { margin: 0; font-size: 11px; line-height: 1.5; }

.customer-nav { position: fixed; z-index: 50; left: 50%; bottom: 14px; width: min(740px, calc(100% - 28px)); height: 72px; padding: 7px 10px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 34px rgba(31, 48, 42, .13); backdrop-filter: blur(16px); }
.customer-nav button { height: 52px; padding: 4px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; font-weight: 700; cursor: pointer; }
.customer-nav { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.customer-nav button, .customer-nav button * { touch-action: none; }
.customer-nav::before { content: ""; position: absolute; left: 0; top: 0; width: var(--nav-width, calc((100% - 20px) / 5)); height: var(--nav-height, 56px); border-radius: var(--nav-radius, 13px); background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent); transform: translate3d(calc(var(--nav-left, 40px) - 50%), var(--nav-top, 7px), 0); will-change: transform; transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .25s ease, height .25s ease, border-radius .25s ease; pointer-events: none; }
.customer-nav.dragging::before { transition: none; }
.customer-nav::before { translate: calc(var(--nav-left, 40px) - 50%) var(--nav-top, 7px); transform: translate3d(var(--nav-bob-x, 0px), var(--nav-bob, 0px), 0) scale(var(--nav-stretch, 1), var(--nav-squash, 1)); transition-property: translate, width, height, border-radius; will-change: translate, transform; }
.customer-nav::before { border-radius: calc(var(--nav-radius, 13px) + var(--nav-rounding, 0px)); }
.customer-nav.dragging::before { transition: none; }
.customer-nav button { z-index: 1; }
.customer-nav button svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .customer-nav::before { transition: none; transform: none; } }
.customer-nav button.active { color: var(--green); }
.customer-nav .customer-order-button { width: 56px; height: 56px; margin: -24px auto 0; border: 5px solid var(--paper); border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 7px 18px color-mix(in srgb, var(--green) 32%, transparent); }
.customer-nav .customer-order-button span { position: absolute; top: 56px; color: var(--muted); }
.customer-nav.order-highlight .customer-order-button { border-color: transparent; background-clip: padding-box; color: var(--soft); }
.customer-nav.dragging, .customer-nav.dragging button { cursor: grabbing; }
.customer-nav .customer-order-button.active span { color: var(--green); }
.customer-auth .auth-panel { width: min(430px, 100%); }
.customer-body button:focus-visible, .customer-body a:focus-visible, .customer-body input:focus-visible, .customer-body select:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 25%, transparent); outline-offset: 2px; }

@media (max-width: 590px) {
  .customer-body { --customer-nav-height: calc(72px + env(safe-area-inset-bottom)); --customer-nav-space: var(--customer-nav-height); }
  .customer-header { height: 66px; padding: 11px 15px; }
  .customer-brand .brand-mark { width: 36px; height: 36px; }
  .customer-view { padding: 14px 14px 28px; }
  .customer-hero { min-height: 148px; padding: 21px; align-items: flex-start; flex-direction: column; }
  .customer-hero .button { width: 100%; }
  .customer-order-intro { margin-bottom: 16px; }
  .customer-order-intro h1 { font-size: 25px; }
  .customer-checkout { bottom: 80px; }
  .pickup-fields { grid-template-columns: 1fr; }
  .customer-repeat-options { grid-template-columns: 1fr; }
  .customer-status-footer { align-items: stretch; flex-direction: column; }
  .customer-order-actions { justify-content: stretch; }
  .customer-order-actions .button { flex: 1 1 100%; }
  .customer-menu-item { padding: 14px; }
  .customer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-nav { bottom: 0; width: 100%; height: var(--customer-nav-height); padding-bottom: calc(7px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; box-shadow: 0 -6px 24px rgba(31, 48, 42, .08); }
  .customer-nav .customer-order-button span { top: 54px; }
  .theme-options { gap: 7px; }
  .theme-option { padding: 6px; }
  .customer-settings .card { padding: 18px; }
  .history-bulk-actions { align-items: stretch; flex-wrap: wrap; }
  .history-bulk-actions span { order: 3; flex-basis: 100%; }
}

@media (max-width: 390px) {
  .customer-brand strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .customer-menu-item { grid-template-columns: minmax(0, 1fr) auto; }
  .quantity-control { grid-template-columns: 35px 30px 35px; }
  .quantity-control button, .quantity-control output { height: 36px; }
}

.customer-prompt { border: 0; border-radius: 20px; padding: 24px; width: min(480px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; background: var(--paper, #fff); color: var(--ink, #222); }
.customer-prompt::backdrop { background: #0008; }
.customer-prompt form, .customer-prompt label { display: grid; gap: 12px; }
.customer-prompt textarea { min-height: 100px; width: 100%; }
.repeat-day-list { margin: 16px 0; border: 0; padding: 0; }
.repeat-day-list label, .recurring-date { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #8884; }
.recurring-date small { display: block; }
.prompt-error { color: #b42318; }

.customer-tab-payment { margin: -4px 0 24px; }
.customer-tab-payment .button { width: 100%; text-decoration: none; }
.customer-tab-payment .button + .button { margin-top: 8px; }
.customer-tab-payment p { margin: 10px 0 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.customer-venmo-fallback { color: var(--green); font-size: 12px; }

.customer-favorite-banner { display:flex; gap:16px; align-items:center; padding:20px; margin-bottom:20px; border-radius:22px; background:var(--soft); border:1px solid var(--line); }
.customer-favorite-banner > span { font-size:32px; color:var(--green); }
.customer-favorite-banner strong { display:block; margin:4px 0; font-size:20px; }
.customer-favorite-banner p { margin:0; color:var(--muted); }
.customer-rating-stars { display:flex; justify-content:center; flex-wrap:wrap; }
.customer-rating-stars button { min-width:28px; min-height:44px; padding:2px; border:0; background:transparent; color:var(--green); font-size:24px; cursor:pointer; }
.customer-rating-stars button:focus-visible { outline:2px solid var(--green); outline-offset:1px; }
.customer-drink-rating small { color:var(--muted); font-size:11px; }
#tab-funding-links { display:grid; gap:12px; margin-top:14px; }
#tab-funding-amount { width:100%; margin-top:8px; }

button.customer-drink-select { cursor:pointer; }
.customer-drink-name { display:block; font-size:14px; font-weight:700; }
.customer-drink-category { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.customer-drink-icon { position:relative; }
.customer-compact-rating { position:absolute; bottom:-6px; padding:3px 8px; border-radius:20px; background:var(--paper); border:1px solid var(--line); font-size:11px; font-weight:700; white-space:nowrap; }
.customer-popular { padding:4px 8px; border-radius:12px; background:var(--soft); color:var(--green); font-size:10px; font-weight:700; }
.customer-drink-dialog [data-drink-content] { line-height:1.5; overflow-wrap:anywhere; }
.customer-drink-dialog section { margin-top:20px; }
.customer-drink-dialog h3 { margin:0 0 8px; font-size:16px; }
.customer-detail-review { border-top:1px solid var(--line); padding-top:18px; }
.customer-drink-dialog .customer-rating-stars { justify-content:flex-start; }
.customer-drink-dialog .customer-rating-stars button { min-width:44px; font-size:30px; }

/* Coffee Chat receipt history */
.coffee-chat-receipt { margin-bottom: 12px; padding: 20px; }
.coffee-chat-receipt summary > span { min-width: 0; overflow-wrap: anywhere; }
.coffee-chat-receipt summary > strong { flex-shrink: 0; }
.customer-hero + .card { padding: 20px; }
.coffee-chat-receipt summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.coffee-chat-receipt small { display: block; font-size: .8rem; opacity: .7; margin-top: 4px; }
.coffee-chat-receipt .receipt-total { color: var(--green, #2d6a5a); display: inline-flex; align-items: center; gap: 8px; }
.coffee-chat-receipt.receipt-cancelled .receipt-total { color: #b42318; flex-direction: column-reverse; align-items: flex-end; }
.receipt-cancelled-label { color: #b42318; display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.receipt-payment-details > a.button { display: inline-flex; width: auto; margin: 4px 0 8px; text-decoration: none; }
.receipt-body { border-top: 1px solid var(--border, #ddd); margin-top: 12px; padding-top: 16px; overflow-wrap: anywhere; }
.receipt-body dl > div { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; }
.receipt-body dd { margin: 0; white-space: nowrap; }
#coffee-chat-verify-form { margin-top: 16px; }
#coffee-chat-phone-status { margin-top: 14px; line-height: 1.5; }

.coffee-chat-payment-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #d6ddd7; border-radius: 20px; padding: 24px; color: #263c30; background: #fffef9; }
.coffee-chat-payment-dialog::backdrop { background: #17291db3; }
.coffee-chat-payment-head, .coffee-chat-payment-lines > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.coffee-chat-payment-head h2 { margin: 0; font-size: 1.3rem; }
.coffee-chat-payment-lines > div { margin: 12px 0; }
.coffee-chat-payment-lines dd { margin: 0; white-space: nowrap; }
.coffee-chat-payment-dialog [data-payment-submit] { width: 100%; }
.coffee-chat-payment-dialog [data-payment-status] { overflow-wrap: anywhere; }
.coffee-chat-payment-dialog [data-payment-submit] { background: #2d6a5a; color: white; }
.customer-checkout #coffee-chat-receipt-channel + small { color: #d9e9df; }
.coffee-chat-payment-dialog label { display: block; }
