/* Garden cafe visual layer. Original UI is preserved in ui-backups/. */
:root, html .customer-body {
  --ink: #2d3327;
  --muted: #626b59;
  --green: #376b2d;
  --dark: #30251e;
  --soft: #edf2df;
  --cream: #f7f6ef;
  --paper: #fffef9;
  --line: #dedfd2;
  --orange: #965a32;
  --shadow: 0 10px 30px #41341e09;
  --radius: 20px;
  --walnut: #30251e;
  --leaf: #c7e994;
}
html[data-customer-theme="terracotta"] .customer-body { --green: #954d32; --soft: #f4e9dc; --cream: #faf5ed; }
html[data-customer-theme="espresso"] .customer-body { --green: #624534; --soft: #eee8dc; --cream: #f6f2e9; }
body { background: radial-gradient(ellipse at 90% 0, #fffff5 0, transparent 55%), var(--cream); }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.customer-body button:focus-visible, .customer-body a:focus-visible { outline: 3px solid #77a23a; outline-offset: 4px; }
.button { min-height: 46px; border-radius: 12px; font-size: 14px; }
.button.primary { box-shadow: 0 4px 10px #376b2d15; }
.button:disabled { cursor: not-allowed; }
.field label { font-size: 13px; }
.field input, .field select, .field textarea { min-height: 46px; background: #fffefa; font-size: 16px; }
.field small { font-size: 12px; line-height: 1.6; }
.brand-mark { background: var(--leaf); color: var(--walnut); border-radius: 50%; transform: none; }
.customer-header { width: min(1120px, 100%); height: 88px; padding: 18px 32px; background: #f7f6eff2; }
.customer-brand { gap: 14px; }
.customer-brand .brand-mark { width: 44px; height: 44px; background: var(--green); border-radius: 50%; }
.customer-brand strong { font-size: 23px; }
.customer-avatar { width: 44px; height: 44px; background: var(--soft); border-color: #c7d2b6; }
.customer-view { width: min(1120px, 100%); padding: 30px 32px 40px; }
.customer-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; padding: 40px; border-radius: 24px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 25px; background: var(--walnut); box-shadow: 0 15px 40px #30251e15; }
.customer-hero::before { content: ""; position: absolute; inset: 0 0 0 35%; z-index: -2; background: url('assets/garden-cafe.svg') center / cover; }
.customer-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #30251e 25%, #30251ef2 38%, #30251e00 72%); }
.customer-hero > div { max-width: 55%; }
.customer-hero .cafe-eyebrow { margin: 0 0 16px; color: #c7e994; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.customer-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.15; }
.customer-hero p { color: #eee9db; font-size: 14px; line-height: 1.6; }
.customer-hero .button { background: var(--leaf); color: #25371b; padding: 0 22px; }
.customer-balance-card { padding: 22px 26px; margin-top: 20px; box-shadow: none; border-radius: 18px; }
.customer-balance-card small { font-size: 12px; }
.customer-balance-card strong { font-size: 34px; }
.balance-state { font-size: 12px; padding: 8px 14px; }
.customer-section { margin-top: 32px; }
.customer-section-heading h2 { font-size: 24px; }
.customer-section-heading p, .customer-status-card p, .customer-history-row small, .customer-tab-row small { font-size: 13px; }
.customer-status-card { padding: 22px; border-radius: 18px; }
.customer-history-swipe { border-radius: 18px; background: var(--paper); }
.history-swipe-delete { background: #b84c4c; }
.customer-status-card h3, .customer-history-row strong, .customer-tab-row strong { font-size: 15px; }
.customer-status-chip { font-size: 10px; line-height: 1.5; }
.customer-empty { background: #fffef980; padding: 40px 22px; border-style: solid; }
.customer-empty h3 { font-size: 16px; }
.customer-empty p { font-size: 13px; }
.customer-order-intro { margin: 0 0 26px; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.customer-order-intro h1 { font-size: 36px; }
.customer-order-intro > p { font-size: 14px; margin-bottom: 0; }
.customer-order-intro > .button { margin-bottom: 18px; }
.customer-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.customer-menu-item { padding: 24px 20px 20px; border: 1px solid var(--line); border-radius: 20px; gap: 20px; box-shadow: 0 8px 20px #30251e05; transition: border-color .18s, box-shadow .18s; }
.customer-menu-item:hover { border-color: #9aaf81; box-shadow: 0 10px 25px #30251e0d; }
.customer-menu-item.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #f4f7ec; }
.customer-drink-icon { width: 94px; height: 94px; margin-bottom: 20px; background: radial-gradient(circle at 30% 25%, #fcfff2, #dce8c4); color: #486039; border: 1px solid #e0e7d2; box-shadow: inset 0 -5px 12px #64754109; }
.customer-menu-item:nth-child(3n + 2) .customer-drink-icon { background: radial-gradient(circle at 30% 25%, #fdf5e9, #e8d7be); color: #765333; }
.customer-drink-icon svg { width: 42px; height: 42px; stroke-width: 1.5; }
.customer-drink-name { font-size: 17px; line-height: 1.35; }
.customer-drink-category { font-size: 12px; margin-top: 6px; }
.customer-menu-price { font-size: 16px; margin-top: 9px; }
.quantity-control { grid-template-columns: 44px 42px 44px; }
.quantity-control button, .quantity-control output { height: 44px; }
.quantity-control button:last-child { background: var(--green); color: #fff; border-color: var(--green); }
.quantity-control button:disabled { opacity: .4; }
.customer-menu-filters { gap: 10px; margin-bottom: 24px; }
.customer-menu-filters button { font-size: 13px; }
.customer-checkout { padding: 24px; background: var(--walnut); border-radius: 18px; }
.customer-checkout .pickup-help, .customer-checkout .customer-order-option small { color: #e3ddcf; font-size: 12px; }
.customer-checkout .field label { color: #f5f0e5; }
.customer-tab-payment h2 { font: 600 24px Fraunces, Georgia, serif; }
#tab-funding-amount { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; }
.customer-checkout .button[type="submit"], #proceed-to-order { background: var(--leaf); color: #25371b; min-height: 48px; font-size: 14px; }
.customer-nav { background: #30251ef7; border-color: #584737; box-shadow: 0 10px 34px #30251e26; }
.customer-nav button { color: #ddd8cb; font-size: 11px; }
.customer-nav button.active { color: #d6f2b2; }
.customer-nav::before { background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff10; }
.customer-nav .customer-order-button { background: var(--leaf); color: #25371b; border-color: var(--walnut); }
.customer-nav .customer-order-button span, .customer-nav .customer-order-button.active span { color: #e8f5d4; }
.customer-nav.order-highlight .customer-order-button { background: var(--leaf); color: #25371b; }
.customer-settings { display: grid; gap: 18px; }
.customer-settings .card { padding: 26px; margin: 0; box-shadow: none; }
.customer-settings .card h2 { font-size: 21px; }
.customer-settings .card > p, .install-steps { font-size: 13px; line-height: 1.7; }
.customer-account-row { font-size: 13px; gap: 15px; }
.customer-account-row strong { overflow-wrap: anywhere; }
.theme-option { padding: 12px; border-radius: 14px; }
.theme-option strong { font-size: 13px; }
.theme-preview-forest { background: #f7f6ef; }
.theme-preview-forest i:nth-child(1) { background: #30251e; }
.theme-preview-forest i:nth-child(2) { background: #376b2d; }
.theme-preview-forest i:nth-child(3) { background: #c7e994; }
.sidebar { background: repeating-linear-gradient(92deg, transparent 0 37px, #ffffff02 38px 39px), var(--walnut); padding-top: 34px; }
.brand small, .privacy-note { color: #c3c6ac; }
.nav-item { color: #d4d0bf; min-height: 48px; }
.sidebar .nav-item.active { background: var(--leaf); color: #293620; }
.topbar { background: #fffef973; }
.welcome { min-height: 190px; padding: 32px; background: linear-gradient(90deg, #30251e 20%, #30251ee8 50%, #30251e10), url('assets/garden-cafe.svg') right 55% / 66% auto no-repeat, var(--walnut); }
.welcome:after { display: none; }
.welcome h2 { font-size: 29px; }
.welcome p { color: #eeeadb; max-width: 440px; line-height: 1.6; }
.welcome .button { background: var(--leaf); }
.metric { padding: 23px; border-radius: 18px; }
.metric-head { color: #626b59; }
.metric strong { font-size: 29px; }
.dashboard-grid { align-items: start; }
.card-header h2, .settings-section h2 { font-size: 20px; }
.settings-section > p { font-size: 13px; }
.auth-screen { background: linear-gradient(90deg, #30251ef0, #30251e80 50%, #30251e10), url('assets/garden-cafe.svg') center / cover; }
.auth-screen::before, .auth-screen::after { display: none; }
.auth-panel { padding: 36px; border: 1px solid #fffc; box-shadow: 0 28px 70px #30251e26; }
.auth-panel > p, .auth-brand small, .auth-switch { font-size: 13px; }
.site-footer { font-size: 12px; }
.customer-body:has(.customer-app:not([hidden])) > .site-footer { padding-bottom: 18px; margin-bottom: calc(var(--customer-nav-space) + 18px); }
@media (min-width: 850px) {
  .customer-settings { grid-template-columns: 1fr 1fr; align-items: start; }
  .customer-settings .appearance-card { grid-column: 1; }
  .customer-settings .card:has(#customer-bug-report-form) { grid-column: 2; grid-row: 1 / span 3; }
  .customer-settings #customer-account-section { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .mobile-nav { background: #30251efa; border-color: #584737; }
  .mobile-nav .nav-item { color: #ded8c9; }
  .mobile-nav .nav-item.active, .mobile-nav .nav-item:hover { color: var(--leaf); }
  .metric-head { min-height: 32px; align-items: flex-start; }
  .toast-root { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .welcome { padding: 25px; background-size: auto, cover; }
  .welcome h2 { font-size: 25px; }
}
@media (max-width: 560px) {
  .customer-header { height: 76px; padding: 14px 18px; }
  .customer-brand strong { font-size: 21px; }
  .customer-view { padding: 18px 16px 30px; }
  .customer-hero { min-height: 300px; padding: 26px; gap: 22px; }
  .customer-hero::before { left: 12%; background-position: 65% center; }
  .customer-hero::after { background: linear-gradient(90deg, #30251ef7, #30251edb 45%, #30251e30); }
  .customer-hero > div { max-width: 90%; }
  .customer-hero h1 { font-size: 36px; }
  .customer-hero .button { width: auto; }
  .customer-hero .cafe-eyebrow { font-size: 10px; }
  .customer-hero p { max-width: 230px; }
  .customer-order-intro { padding-top: 10px; }
  .customer-order-intro h1 { font-size: 30px; }
  .customer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .customer-menu-item { padding: 22px 10px 16px; gap: 16px; border-radius: 17px; }
  .customer-drink-icon { width: 76px; height: 76px; }
  .customer-drink-name { font-size: 15px; }
  .quantity-control { grid-template-columns: 40px 32px 40px; }
  .customer-checkout, .customer-settings .card { padding: 20px; }
  .customer-status-card { padding: 18px; }
  .customer-nav { border-radius: 0; }
  .customer-nav button { font-size: 10px; }
  .auth-screen { padding: 22px 16px; }
  .auth-panel { padding: 28px 22px; }
  .event-inline { flex-direction: column; align-items: stretch; }
  .event-inline .event-grow { width: 100%; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
