/* EatsHub customer web: a shared visual system for every ordering step. */
.order-chat-actions { margin-top: 16px; }
.order-chat-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.order-chat-button { display: inline-flex; flex: 1 1 170px; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 13px; background: var(--green-soft); color: var(--green); border: 1px solid #d2e1d5; border-radius: 13px; font-size: .875rem; font-weight: 650; transition: background .18s, border-color .18s; }
.order-chat-button:hover { background: #e0eddf; border-color: #b7cdbd; }
.order-chat-button .icon { width: 19px; height: 19px; }
.order-chat-intro { margin-bottom: 13px; }
.order-chat-intro h3 { font-size: 1.05rem; }
.order-chat-intro p { color: var(--muted); font-size: .8125rem; margin-top: 5px; }
.order-chat-actions.is-detailed { padding: 20px 0 6px; }
.chat-unread { min-width: 23px; min-height: 23px; display: inline-grid; place-items: center; padding: 1px 5px; border-radius: 20px; background: var(--orange); color: white; font-size: .7rem; }
.modal-card.chat-card { display: flex; flex-direction: column; width: min(560px, 100%); height: min(800px, calc(100dvh - 56px)); overflow: hidden; padding-bottom: 0; }
.chat-header { display: flex; align-items: flex-start; gap: 13px; padding: 23px 22px 19px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 45px; height: 45px; flex: none; border-radius: 15px; background: var(--green-soft); color: var(--green); font-weight: 750; }
.chat-heading { flex: 1; min-width: 0; }
.chat-heading h2 { font-size: 1.1rem; line-height: 1.35; overflow-wrap: anywhere; letter-spacing: -.02em; }
.chat-heading p { margin-top: 3px; font-size: .73rem; color: var(--muted); }
.chat-state { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: .67rem; font-weight: 700; }
.chat-state.is-closed { background: #f0f1ee; color: var(--muted); }
.chat-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.chat-close:hover { background: var(--green-soft); }
.chat-connection { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; font-size: .73rem; background: #f8faf6; color: var(--muted); }
.chat-connection-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.chat-messages { flex: 1; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: #f5f7f2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; scrollbar-width: thin; scrollbar-color: #c9d5c7 transparent; }
.chat-bubble { flex: none; max-width: 88%; padding: 12px 15px 9px; border-radius: 17px 17px 17px 4px; border: 1px solid #e2e8dc; background: white; color: var(--ink); box-shadow: 0 2px 4px #172b2304; overflow-wrap: anywhere; }
.chat-bubble.is-mine { align-self: flex-end; border-radius: 17px 17px 4px 17px; background: var(--green); border-color: var(--green); color: white; }
.chat-author { display: block; font-size: .67rem; font-weight: 700; margin-bottom: 4px; }
.chat-bubble p { white-space: pre-wrap; font-size: .9375rem; line-height: 1.5; }
.chat-time { display: block; margin-top: 6px; text-align: right; font-size: .62rem; color: var(--muted); }
.chat-bubble.is-mine .chat-time { color: #d6e8dd; }
.chat-empty { margin: auto; align-self: center; text-align: center; max-width: 280px; padding: 24px 8px; color: var(--muted); }
.chat-empty .icon { width: 36px; height: 36px; margin-bottom: 15px; color: var(--green); }
.chat-empty strong { display: block; color: var(--ink); font-size: .95rem; }
.chat-empty p { margin-top: 8px; font-size: .8125rem; }
.chat-card .chat-earlier { border-radius: 0; font-size: .75rem; min-height: 42px; padding: 8px; background: #f5f7f2; }
.chat-jump { align-self: center; margin-top: -46px; margin-bottom: 10px; position: relative; min-height: 36px; padding: 7px 15px; border: 1px solid #c6d6c5; border-radius: 40px; background: white; box-shadow: 0 3px 12px #142b2318; color: var(--green); font-size: .75rem; font-weight: 650; }
.chat-read-status { background: #fff7f1; }
.chat-read-status .error-text:not(:empty) { margin: 0; padding: 10px 18px 0; }
.chat-read-status .text-button { margin: 0 10px 6px; min-height: 40px; font-size: .8rem; }
.chat-composer { padding: 15px 20px max(16px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
.chat-composer label { margin: 0 0 7px; font-size: .75rem; }
.chat-composer textarea { display: block; width: 100%; margin: 0; min-height: 62px; max-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.45; font-size: 1rem; border: 1px solid #ccd8cb; border-radius: 12px; background: #fbfcf9; color: var(--ink); }
.chat-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; }
.chat-character-count { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-composer .primary-button { width: auto; min-height: 44px; min-width: 100px; padding: 9px 19px; margin: 0; }
.chat-composer .error-text:not(:empty) { margin-bottom: 0; }
.chat-closed { padding: 17px 23px max(18px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .8rem; background: white; border-top: 1px solid var(--line); }
.chat-history-note { text-align: center; font-size: .7rem; color: var(--muted); align-self: center; }
@media (max-width: 700px) {
  #chatModal { padding: 8px; }
  .modal-card.chat-card { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .chat-header { padding: 17px 16px 15px; }
  .chat-messages { padding: 16px; }
  .chat-composer { padding-inline: 16px; }
  .chat-bubble { max-width: 91%; }
}
:root {
  color-scheme: light;
  --bg: #f8f9f6; --paper: #fff; --ink: #192d26; --muted: #607069;
  --line: #e2e8e1; --orange: #c9471f; --orange-dark: #ab3613; --orange-soft: #fff1e9;
  --green: #244f3d; --green-soft: #edf4ed; --danger: #ad302f; --danger-soft: #fff1f0;
  --radius: 22px; --shadow: 0 10px 35px #172b2310;
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.04em; }
h1 { font-size: clamp(2.15rem, 4.1vw, 3.75rem); font-weight: 750; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
em { font-style: normal; color: var(--orange); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
:target { scroll-margin-top: 110px; }
::selection { background: #ffdec5; color: var(--ink); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; background: var(--green); color: white; padding: 12px 20px; border-radius: 10px; transform: translateY(-170%); }
.skip-link:focus { transform: translateY(0); }
.topbar { max-width: 1304px; margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 36px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -.07em; flex: none; }
.brand img { width: 39px; height: 39px; border-radius: 11px; border: 1px solid #dae0d8; }
.brand-accent { color: var(--orange); }
.header-note { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.header-note .status-dot { color: var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-actions a { color: var(--muted); font-size: .875rem; text-decoration: none; padding: 12px 0; }
main { max-width: 1304px; margin: auto; padding: 12px 36px 70px; min-height: calc(100svh - 192px); }
main:focus { outline: none; }
.eyebrow { color: var(--orange); font-size: .75rem; font-weight: 750; letter-spacing: .12em; line-height: 1.4; }
.primary-button, .secondary-button, .ghost-button, .text-button { min-height: 48px; border-radius: 12px; border: 1px solid transparent; font-size: .9375rem; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; transition: background .18s, box-shadow .18s, transform .18s; text-decoration: none; }
.primary-button { width: 100%; min-height: 54px; background: var(--orange); color: #fff; box-shadow: 0 4px 10px #a8441512; }
.primary-button:hover:not(:disabled) { background: var(--orange-dark); box-shadow: 0 7px 16px #a8441520; }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.secondary-button { background: var(--green-soft); color: var(--green); border-color: #d6e5d7; }
.secondary-button:hover:not(:disabled) { background: #deebdf; }
.text-button, .ghost-button { background: transparent; color: var(--muted); }
.ghost-button { border-color: var(--line); }
.text-button:hover, .ghost-button:hover { background: #eaf0e8; color: var(--ink); }
.text-button { text-decoration: underline; text-underline-offset: 4px; }
[aria-busy="true"].primary-button::before, [aria-busy="true"].secondary-button::before, [aria-busy="true"].text-button::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.auth-layout { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 650px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.auth-intro { position: relative; min-width: 0; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 52%; z-index: -2; }
.auth-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10271812 15%, #12271735 38%, #0e211adb 100%); }
.hero-tag { position: absolute; top: 30px; left: 32px; display: inline-flex; align-items: center; gap: 8px; border-radius: 7px; padding: 8px 12px; background: #fffffff0; color: var(--green); font-size: .75rem; font-weight: 750; letter-spacing: .08em; }
.hero-copy { position: absolute; inset: auto 36px 32px; color: #fff; }
.hero-overline { font-size: .9375rem; margin-bottom: 12px; font-weight: 500; color: #fff6e9; }
.hero-copy h1 { font-size: clamp(3.6rem, 5.5vw, 5.25rem); line-height: .99; letter-spacing: -.06em; font-weight: 750; }
.hero-copy h1 em { color: #ffc79c; }
.hero-copy > p:not(.hero-overline) { margin-top: 20px; font-size: 1.05rem; line-height: 1.5; color: #f5f3e9; }
.hero-caption { position: absolute; right: -14px; bottom: -12px; font-size: .75rem; color: #e5e6dc; }
.auth-side { padding: 52px clamp(28px, 4.7vw, 68px) 28px; display: flex; justify-content: center; flex-direction: column; }
.auth-card { width: 100%; max-width: 420px; margin: auto; }
.auth-progress { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 14px; }
.step-label { font-size: .75rem; color: var(--muted); letter-spacing: .06em; font-weight: 650; }
.step-track { display: flex; gap: 5px; }
.step-track i { height: 4px; width: 30px; border-radius: 4px; background: #e4e9e3; }
.step-track i:first-child { background: var(--orange); }
.auth-card:has(#codeInput:not(.hidden)) .step-track i { background: var(--orange); }
.auth-card h2 { font-size: clamp(1.9rem, 2.7vw, 2.65rem); line-height: 1.12; margin-bottom: 14px; letter-spacing: -.05em; }
.auth-description { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 24px; }
label:not(.legal-check):not(.option-choice):not(.sr-only) { display: block; color: var(--ink); font-size: .875rem; font-weight: 600; margin: 20px 0 8px; }
.phone-field { display: flex; align-items: center; min-height: 56px; border: 1px solid #c6d1c7; background: #fff; border-radius: 12px; }
.phone-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #244f3d12; }
.phone-prefix { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid var(--line); white-space: nowrap; color: #485c50; font-size: .9375rem; }
.country-label { font-size: .75rem; font-weight: 700; color: var(--green); }
.phone-field input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px; color: var(--ink); background: transparent; border: 0; outline: 0; border-radius: 12px; font-size: 1.0625rem; letter-spacing: .03em; }
.phone-field:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.phone-field:has(input:disabled) { background: #f2f5f0; }
.field-hint { color: var(--muted); font-size: .8125rem; line-height: 1.5; margin: 8px 0 0; }
.captcha-slot:empty { display: none; }
.captcha-slot { margin: 8px 0; }
.code-input { width: 100%; height: 58px; border: 1px solid #b7c6b9; border-radius: 12px; background: var(--bg); text-align: center; letter-spacing: .55em; padding-left: .55em; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--ink); }
#authButton { margin-top: 22px; }
#changePhoneButton, #cancelAddressButton { width: 100%; margin-top: 10px; }
.error-text { color: var(--danger); font-size: .875rem; line-height: 1.5; margin: 12px 0; border-left: 3px solid var(--danger); border-radius: 4px; padding: 10px 12px; background: var(--danger-soft); }
.error-text:empty { display: none; }
.error-text + .primary-button { margin-top: 12px; }
[aria-invalid="true"]:not(button) { border-color: var(--danger) !important; }
.privacy-note { display: flex; gap: 10px; padding-top: 23px; margin-top: 25px; border-top: 1px solid var(--line); color: var(--muted); }
.privacy-note .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--green); }
.privacy-note p { font-size: .8125rem; line-height: 1.65; }
.welcome-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 23px; color: var(--green); margin: 32px -10px 0; font-size: .8125rem; font-weight: 500; }
.welcome-benefits span { display: flex; align-items: center; gap: 6px; }
.welcome-benefits .icon { width: 17px; height: 17px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.setup-layout { max-width: 1100px; display: grid; grid-template-columns: .95fr 1fr; gap: 70px; margin: 38px auto 0; align-items: start; }
.setup-copy { padding-top: 24px; }
.setup-copy h1 { margin-top: 20px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.setup-copy > p { color: var(--muted); max-width: 390px; margin-top: 20px; }
.setup-steps { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 24px; }
.setup-steps li { display: flex; gap: 14px; }
.setup-steps li > span { flex: none; border: 1px solid #d7e1d5; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: .875rem; font-weight: 700; color: var(--green); }
.setup-steps strong { font-size: .9375rem; }
.setup-steps p { font-size: .875rem; color: var(--muted); margin-top: 4px; max-width: 320px; }
.setup-card { padding: 30px; }
.form-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.form-heading h2 { font-size: 1.45rem; }
.form-heading p { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--orange-soft); color: var(--orange); flex: none; }
.setup-card > input, .setup-card textarea, .cart-footer textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #c6d1c7; border-radius: 11px; background: #fff; color: var(--ink); resize: vertical; }
textarea::placeholder, input::placeholder { color: #77847c; opacity: 1; }
.location-row { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px; background: #f2f6ef; border: 1px solid #e0e8dc; border-radius: 14px; margin: 22px 0; }
.location-row span { color: var(--muted); font-size: .8125rem; }
.legal-check { display: flex; gap: 10px; font-size: .875rem; color: var(--muted); line-height: 1.6; margin: 24px 0; cursor: pointer; }
.legal-check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.shop-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin: 24px 0 32px; }
.shop-heading h1 { margin-top: 10px; font-size: clamp(2rem, 3.2vw, 3rem); }
.delivery-address { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 17px; display: flex; align-items: center; gap: 13px; color: var(--ink); text-align: left; width: 300px; max-width: 100%; flex: none; }
.delivery-address > .icon { color: var(--orange); }
.delivery-address > span { min-width: 0; display: grid; gap: 3px; }
.address-label { font-size: .75rem; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
#addressSummary { display: block; font-size: .875rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-edit { font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; color: var(--orange-dark); }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; align-items: start; }
.catalog-column { min-width: 0; }
.search-row { display: flex; gap: 10px; }
.search-field { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; border: 1px solid #cbd7ca; border-radius: 13px; background: #fff; padding: 0 16px; }
.search-field > .icon { color: var(--muted); width: 20px; height: 20px; }
.search-field input { width: 100%; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-field:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }
.search-row select { border: 1px solid #cbd7ca; border-radius: 13px; min-height: 54px; max-width: 175px; padding: 10px; background: #fff; color: var(--ink); font-size: .875rem; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 17px 3px 10px; scrollbar-width: thin; scrollbar-color: #cbd7ca transparent; }
.category-chips:empty { display: none; }
.category-chips button { border: 1px solid var(--line); border-radius: 30px; min-height: 44px; padding: 9px 17px; font-size: .875rem; color: var(--muted); background: #fff; white-space: nowrap; }
.category-chips button[aria-pressed="true"], .category-chips button.active { color: #fff; background: var(--green); border-color: var(--green); }
.category-chips button:hover:not([aria-pressed="true"]) { background: var(--green-soft); color: var(--green); }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 28px 0 16px; }
.catalog-heading h2 { font-size: 1.45rem; }
.catalog-heading .muted { font-size: .8125rem; text-align: right; }
.message { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0 0 18px; }
.message:empty { display: none; }
.business-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.business-card { display: block; width: 100%; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); color: var(--ink); text-align: left; background: #fff; padding: 0; transition: transform .18s, box-shadow .18s, border-color .18s; }
.business-card:hover { transform: translateY(-3px); border-color: #c0d1be; box-shadow: 0 8px 22px #182b2310; }
.business-media { height: 158px; background: #e8eee2; position: relative; display: flex; align-items: end; padding: 12px; overflow: hidden; }
.business-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.business-card:hover .business-image { transform: scale(1.035); }
.business-monogram { display: grid; place-items: center; position: absolute; inset: 0; font-size: 3.5rem; font-weight: 750; color: #46643e; background: #e6eddd; letter-spacing: -.07em; }
.business-chip { position: relative; z-index: 1; padding: 5px 10px; border-radius: 6px; color: var(--green); font-size: .75rem; font-weight: 650; background: #fffffff2; border: 1px solid #ffffffa8; }
.business-body { display: block; padding: 17px; }
.business-body h3 { font-size: 1.1rem; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.business-body p { font-size: .8125rem; color: var(--muted); margin-top: 5px; }
.business-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #edf0e9; font-size: .8125rem; color: var(--green); font-weight: 600; }
.cart-panel { position: sticky; top: 22px; padding: 24px; scroll-margin-top: 24px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-head h2 { margin-top: 7px; font-size: 1.4rem; }
.cart-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; color: var(--green); flex: none; }
.count-badge { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; border-radius: 20px; min-width: 22px; min-height: 22px; padding: 0 5px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 650; border: 2px solid white; }
.cart-business { font-size: .875rem; color: var(--muted); margin-top: 14px; }
.cart-business:empty { display: none; }
.cart-items { margin-top: 20px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line strong { font-size: .9375rem; overflow-wrap: anywhere; }
.cart-line small { font-size: .8125rem; color: var(--muted); grid-column: 1; }
.qty-control { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.qty-control button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--green); font-size: 1.1rem; border-radius: 10px; }
.qty-control button:hover:not(:disabled) { background: var(--green-soft); }
.qty-control span { min-width: 18px; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.cart-footer { margin-top: 18px; }
.optional { color: var(--muted); font-weight: 400; }
.cart-footer textarea { min-height: 78px; font-size: 1rem; border-color: var(--line); background: #fbfcf9; }
.totals { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 4px; }
.totals span { font-size: .875rem; }
.totals strong { font-size: 1.35rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cart-hint { margin-bottom: 20px; }
.cart-payment { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .75rem; color: var(--muted); margin-top: 16px; }
.cart-payment .icon { width: 18px; height: 18px; }
.empty-state, .loading-state, .empty-copy { text-align: center; padding: 38px 22px; color: var(--muted); font-size: .9375rem; }
.empty-state { border: 1px dashed #ccd8c9; border-radius: 16px; background: #f7f9f3; }
.empty-state strong, .empty-state h3 { display: block; color: var(--ink); margin-bottom: 8px; font-size: 1.05rem; }
.empty-state p { font-size: .875rem; margin-top: 7px; }
.empty-state .icon { width: 32px; height: 32px; margin-bottom: 14px; color: var(--green); }
.business-list > .empty-state, .business-list > .loading-state, .business-list > .empty-copy { grid-column: 1 / -1; }
.cart-items .empty-state { padding: 32px 18px; }
.retry-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 15px; border: 1px solid #cbd8c7; background: #fff; border-radius: 10px; color: var(--green); padding: 10px 16px; font-weight: 600; }
.skeleton-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; padding-bottom: 18px; }
.skeleton-media { height: 158px; background: #e9eee5; }
.skeleton-line { height: 13px; width: 65%; margin: 17px 18px 0; border-radius: 5px; background: #e9eee5; }
.skeleton-line:last-child { width: 42%; }
.skeleton-media, .skeleton-line { animation: pulse 1.5s ease-in-out infinite; }
.orders-section { margin-top: 60px; border-top: 1px solid var(--line); padding-top: 30px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.section-title h2 { margin-top: 7px; font-size: 1.75rem; }
.orders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.orders-list > .empty-state, .orders-list > .loading-state, .orders-list > .empty-copy { grid-column: 1 / -1; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.order-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-header strong { font-size: .9375rem; overflow-wrap: anywhere; }
.status, .status-chip { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 9px; background: var(--green-soft); color: var(--green); font-size: .8125rem; font-weight: 650; line-height: 1.4; }
.status-cancelado, .status-devuelto, .status-regresando_al_negocio { background: #fff0e9; color: #9e3b25; }
.order-card p { color: var(--muted); font-size: .875rem; margin-top: 9px; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.order-actions a { min-height: 44px; font-size: .875rem; }
.order-timeline { display: flex; list-style: none; padding: 22px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.order-timeline li { position: relative; flex: 1; color: #6a776c; font-size: .75rem; padding: 20px 5px 0 0; }
.order-timeline li::before { position: absolute; top: 0; left: 0; content: ""; border-radius: 50%; width: 10px; height: 10px; background: #d8e0d5; }
.order-timeline li:not(:last-child)::after { content: ""; position: absolute; height: 2px; top: 4px; left: 12px; right: 2px; background: #e3e9e0; }
.order-timeline .is-complete::before, .order-timeline .is-complete::after { background: var(--green) !important; }
.order-timeline .is-current { color: var(--orange-dark); font-weight: 650; }
.order-timeline .is-current::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 28px; background: #0f251ca3; backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px; box-shadow: 0 22px 80px #10271840; animation: dialog-in .2s ease-out; scrollbar-width: thin; scrollbar-color: #cad5c5 transparent; }
.menu-card { width: min(780px, 100%); }
.options-card { width: min(570px, 100%); }
.switch-card { width: min(470px, 100%); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; place-items: center; height: 44px; width: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fffffff7; color: var(--ink); box-shadow: 0 3px 10px #12231a0c; }
.modal-close:hover { background: #edf4e9; }
.modal-content { padding: 36px; }
.modal-content h2 { font-size: 1.9rem; margin: 12px 40px 12px 0; line-height: 1.2; }
.menu-banner { height: 190px; overflow: hidden; background: #e7eee1; display: grid; place-items: center; color: #526e49; font-size: 3.2rem; font-weight: 750; background-position: center; background-size: cover; }
.menu-banner img { width: 100%; height: 100%; object-fit: cover; }
.menu-banner .business-monogram { position: static; width: 100%; height: 100%; }
.muted { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.product-list { display: grid; gap: 0; margin-top: 25px; }
.product-row { display: flex; align-items: center; gap: 17px; padding: 21px 0; border-top: 1px solid var(--line); }
.product-copy { flex: 1; min-width: 0; }
.product-copy h3 { font-size: 1.05rem; letter-spacing: -.02em; }
.product-copy p { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.product-copy .price { color: var(--ink); font-size: .9375rem; }
.product-image, .product-monogram { width: 84px; height: 84px; border-radius: 12px; flex: none; object-fit: cover; background: #e9eee3; }
.product-monogram { display: grid; place-items: center; color: #54734a; font-size: 1.75rem; font-weight: 700; }
.price { color: var(--orange-dark); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.add-button { min-width: 85px; min-height: 44px; border: 1px solid #e9c0ae; border-radius: 10px; background: var(--orange-soft); color: var(--orange-dark); padding: 10px 13px; font-size: .875rem; font-weight: 650; }
.add-button:hover:not(:disabled) { background: #fbdcce; }
.menu-bottom { position: sticky; bottom: 0; padding: 16px 36px; background: #fffffff2; border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.menu-bottom button { width: 100%; }
.option-group { padding: 0; margin: 28px 0; border: 0; min-width: 0; }
.option-group legend, .option-group h3 { font-size: 1rem; font-weight: 650; margin: 0 0 8px; width: 100%; }
.option-hint, .option-group > p { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.option-choice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin: 8px 0; font-size: .9375rem; min-height: 52px; cursor: pointer; background: #fff; }
.option-choice:has(input:checked) { border-color: #4c7759; background: var(--green-soft); }
.option-choice input { width: 19px; height: 19px; flex: none; accent-color: var(--green); margin: 0; }
.option-choice span { flex: 1; }
.option-choice small { font-size: .8125rem; color: var(--muted); }
.option-choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.checkout-intro { margin-bottom: 24px; }
.checkout-items { border: 1px solid var(--line); border-radius: 14px; padding: 5px 17px; margin: 22px 0; }
.checkout-item { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 12px 0; font-size: .875rem; border-bottom: 1px solid var(--line); }
.checkout-item:last-child { border-bottom: 0; }
.checkout-item small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.checkout-item strong { font-weight: 600; }
.checkout-address { border-radius: 12px; padding: 16px; background: #f1f5ef; font-size: .875rem; margin: 20px 0; overflow-wrap: anywhere; }
.checkout-address strong { display: block; margin-bottom: 4px; }
.checkout-summary-line { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0; font-size: .9375rem; }
.checkout-summary-line strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.checkout-summary-line:last-of-type { padding: 17px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 1.2rem; }
.pay-note { display: flex; align-items: start; gap: 13px; padding: 18px; border: 1px solid #e2dfb8; border-radius: 13px; background: #faf8e8; color: #55502b; margin: 24px 0; }
.pay-note p { font-size: .875rem; margin-top: 4px; color: #706b46; }
.pay-note strong { font-size: .9375rem; }
.pay-note .icon { margin-top: 2px; }
.dialog-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 26px; }
.switch-card .icon-tile { margin-bottom: 12px; }
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 90; transform: translate(-50%, 18px); opacity: 0; visibility: hidden; width: max-content; max-width: min(90vw, 540px); color: #fff; background: var(--green); border: 1px solid #437453; border-radius: 13px; box-shadow: 0 8px 30px #152b2425; padding: 14px 20px; font-size: .9375rem; text-align: center; transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.mobile-cart { display: none; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: 1232px; padding: 24px 0 30px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer-brand { color: var(--ink); font-size: 1.2rem; letter-spacing: -.05em; font-weight: 750; }
.footer-dot { color: var(--orange); }
.site-footer nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; font-size: .8125rem; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.copyright { font-size: .75rem; }
.noscript-message { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); padding: 20px; z-index: 99; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 901px) { .search-row:has(+ .category-chips:not(:empty)) select { display: none; } }
@media (max-width: 1100px) {
  .topbar { padding-inline: 26px; }
  main { padding-inline: 26px; }
  .auth-side { padding: 38px 30px 24px; }
  .auth-layout { min-height: 620px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
  .cart-panel { padding: 20px; }
  .business-list { gap: 15px; }
  .business-body { padding: 14px; }
  .setup-layout { gap: 40px; }
  .site-footer { margin-inline: 26px; }
}
@media (max-width: 900px) {
  .header-note { display: none; }
  .auth-layout { grid-template-columns: .9fr 1fr; }
  .hero-copy { left: 24px; right: 24px; }
  .hero-copy h1 { font-size: 3.65rem; }
  .hero-tag { left: 23px; top: 24px; padding: 7px 10px; font-size: .75rem; letter-spacing: .025em; }
  .auth-side { padding: 35px 25px 25px; }
  .auth-card h2 { font-size: 2rem; }
  .shop-grid { grid-template-columns: 1fr; }
  .cart-panel { position: static; margin-top: 8px; }
  .cart-items { max-height: none; }
  .business-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-media { height: 180px; }
  .mobile-cart { display: flex; align-items: center; gap: 12px; position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 20px; right: 20px; z-index: 30; background: var(--green); color: #fff; min-height: 62px; border: 1px solid #3e6650; border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 24px #132d2630; font-size: .9375rem; font-weight: 600; }
  .mobile-cart-count { background: #ffffff20; border-radius: 8px; min-width: 32px; height: 32px; display: grid; place-items: center; }
  .mobile-cart strong { margin-left: auto; font-variant-numeric: tabular-nums; }
  body:has(.mobile-cart:not(.hidden)) .site-footer { padding-bottom: 110px; }
  body:has(.mobile-cart:not(.hidden)) .toast { bottom: 94px; }
  .setup-layout { gap: 30px; grid-template-columns: .85fr 1fr; }
  .setup-card { padding: 24px; }
  .setup-copy h1 { font-size: 2.55rem; }
}
@media (max-width: 700px) {
  .topbar { min-height: 72px; padding: 12px 20px; gap: 14px; }
  .brand { font-size: 1.5rem; }
  .brand img { width: 34px; height: 34px; }
  .topbar-actions { gap: 10px; }
  .topbar-actions a { font-size: .8125rem; }
  .topbar-actions:has(#logoutButton:not(.hidden)) > a { display: none; }
  .ghost-button { min-height: 44px; font-size: .8125rem; padding: 10px 12px; }
  main { padding: 0 20px 46px; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; border-radius: 21px; }
  .auth-intro { height: 232px; }
  .hero-photo { object-position: 70% 45%; }
  .auth-intro::after { background: linear-gradient(90deg, #102719cf, #10271945 60%, #10271900); }
  .hero-tag { top: 16px; left: 22px; padding: 5px 9px; font-size: .75rem; }
  .hero-copy { left: 23px; right: 22px; bottom: 24px; }
  .hero-overline { display: none; }
  .hero-copy h1 { font-size: 2.75rem; line-height: 1.02; }
  .hero-copy > p:not(.hero-overline) { margin-top: 10px; font-size: .875rem; line-height: 1.35; }
  .hero-caption { right: -6px; bottom: -11px; font-size: .75rem; }
  .auth-side { padding: 28px 26px 24px; }
  .auth-progress { margin-top: 14px; }
  .auth-card { max-width: 490px; }
  .auth-card h2 { font-size: 1.9rem; }
  .auth-description { margin-bottom: 20px; font-size: .9375rem; }
  .welcome-benefits { margin-top: 22px; }
  .setup-layout { grid-template-columns: 1fr; margin-top: 22px; gap: 24px; }
  .setup-copy { padding: 0 2px; }
  .setup-copy h1 { font-size: 2.2rem; margin-top: 12px; }
  .setup-copy h1 br { display: none; }
  .setup-copy h1 br::after { content: " "; }
  .setup-copy > p { margin-top: 13px; max-width: none; font-size: .9375rem; }
  .setup-steps { display: none; }
  .setup-card { padding: 24px; }
  .form-heading { margin-bottom: 20px; }
  .shop-heading { flex-direction: column; align-items: stretch; gap: 20px; margin: 20px 0 24px; }
  .shop-heading h1 { font-size: 2.15rem; }
  .delivery-address { width: 100%; }
  .delivery-address > span { width: 100%; }
  .address-label { font-size: .75rem; }
  .search-row { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .search-row select { max-width: none; width: 100%; min-height: 46px; }
  .search-row:has(+ .category-chips:not(:empty)) select { display: none; }
  .category-chips { padding-top: 14px; margin-right: -20px; padding-right: 20px; }
  .catalog-heading { margin-top: 25px; }
  .catalog-heading h2 { font-size: 1.3rem; }
  .business-list { gap: 15px; }
  .business-media { height: 150px; }
  .business-body h3 { font-size: 1rem; }
  .business-meta { font-size: .75rem; }
  .orders-list { grid-template-columns: 1fr; }
  .orders-section { margin-top: 38px; padding-top: 25px; }
  .section-title h2 { font-size: 1.55rem; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-card { max-height: calc(100dvh - 28px); border-radius: 22px; padding-bottom: env(safe-area-inset-bottom); }
  .modal-content { padding: 27px 22px; }
  .modal-content h2 { font-size: 1.6rem; margin-right: 34px; }
  .menu-banner { height: 145px; }
  .menu-bottom { padding: 13px 22px; }
  .product-row { gap: 12px; flex-wrap: wrap; }
  .product-image, .product-monogram { width: 70px; height: 70px; }
  .product-copy { flex-basis: calc(100% - 85px); }
  .product-row .add-button { margin-left: auto; min-width: 104px; }
  .site-footer { margin-inline: 20px; gap: 8px 14px; padding-top: 20px; }
  .site-footer nav { width: 100%; margin: 0; gap: 20px; order: 3; }
  .copyright { margin-left: auto; }
}
@media (max-width: 420px) {
  main { padding-inline: 14px; }
  .topbar { padding-inline: 16px; }
  .auth-side { padding-inline: 21px; }
  .auth-intro { height: 207px; }
  .hero-copy h1 { font-size: 2.4rem; }
  .hero-copy > p:not(.hero-overline) { font-size: .8125rem; }
  .hero-tag { font-size: .75rem; }
  .business-list { grid-template-columns: 1fr; }
  .business-media { height: 178px; }
  .business-body { padding: 17px; }
  .business-body h3 { font-size: 1.1rem; }
  .business-meta { font-size: .8125rem; }
  .shop-heading h1 { font-size: 2rem; }
  .catalog-heading { flex-wrap: wrap; gap: 6px; }
  .category-chips { margin-right: -14px; padding-right: 14px; }
  .mobile-cart { left: 14px; right: 14px; gap: 9px; font-size: .875rem; }
  .mobile-cart .icon { width: 18px; }
  .cart-panel { padding: 19px; }
  .qty-control button { width: 44px; }
  .setup-card { padding: 21px; }
  .order-header { flex-direction: column; }
  .site-footer { margin-inline: 14px; }
  .copyright { margin-left: 0; }
}
/* Details for data-driven cards and accessible control states. */
.business-name { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.business-categories { display: block; font-size: .8125rem; color: var(--muted); margin-top: 5px; }
.business-chip.is-closed { background: #fff6eeeF; color: #725f49; }
.business-card.is-closed .business-image { filter: saturate(.7); }
.business-card.is-closed .business-link { color: var(--muted); }
.menu-banner { position: relative; }
.menu-category { font-size: .8125rem; text-transform: uppercase; letter-spacing: .065em; color: var(--muted); padding: 23px 0 13px; }
.menu-category:first-child { padding-top: 0; }
.product-side { flex: none; width: 90px; display: flex; align-items: center; flex-direction: column; gap: 10px; }
.product-media { width: 84px; height: 84px; position: relative; overflow: hidden; border-radius: 12px; }
.product-media .product-image { position: absolute; inset: 0; }
.product-customizable { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.cart-line-copy { min-width: 0; }
.cart-line-copy strong, .cart-line-copy small, .cart-line-price { display: block; }
.cart-line-copy small { margin-top: 5px; }
.cart-line-price { color: var(--ink); font-size: .875rem; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cart-line .qty-control { grid-row: auto; }
.empty-state-symbol { display: flex; justify-content: center; margin-bottom: 13px; }
.empty-state-symbol .icon { width: 30px; height: 30px; margin: 0; }
.option-group legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.option-badge { font-size: .75rem; border-radius: 5px; padding: 3px 7px; background: #f1f4ed; color: var(--muted); font-weight: 500; }
.option-group[aria-invalid="true"] { border-left: 3px solid var(--danger); padding-left: 13px; }
.location-row .is-success { color: var(--green); font-weight: 600; }
.location-row .is-warning { color: #865119; font-weight: 600; }
.phone-field:has(input[readonly]) { background: #f2f5f0; }
.checkout-business h3 { margin: 18px 0 8px; }
.checkout-business .checkout-items { margin-top: 12px; }
.checkout-notes { font-size: .875rem; margin: 15px 0; padding-left: 13px; border-left: 2px solid var(--line); }
.checkout-notes span, .checkout-notes strong { display: block; }
.checkout-notes span { color: var(--muted); margin-top: 5px; }
.credit-line { color: var(--green); }
.checkout-grand-total strong { font-size: 1.5rem; font-weight: 750; }
.order-number { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .045em; margin-bottom: 8px; }
.order-header h3 { font-size: 1.1rem; line-height: 1.35; }
.order-card.is-active { border-color: #c7d9c5; }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.order-meta strong { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.order-status-copy { line-height: 1.5; }
.order-items { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px !important; }
.tracking-updated { color: var(--muted); font-size: .75rem; }
.order-timeline li { padding-top: 29px; }
.order-timeline li::before { display: none; }
.order-timeline li:not(:last-child)::after { top: 10px; left: 24px; right: 4px; }
.timeline-dot { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #e8eee4; color: var(--muted); display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
.is-complete .timeline-dot { background: var(--green); color: #fff; }
.is-current .timeline-dot { background: var(--orange); color: #fff; box-shadow: 0 0 0 3px var(--orange-soft); }
@media (max-width: 700px) {
  .product-row { flex-wrap: nowrap; align-items: flex-start; }
  .product-copy { flex-basis: auto; }
  .product-side { width: 84px; }
  .product-media { width: 76px; height: 76px; }
  .product-media .product-image, .product-media .product-monogram { width: 76px; height: 76px; }
  .product-row .add-button { min-width: 84px; margin: 0; }
  .setup-copy h1 br { display: initial; }
  .setup-copy h1 br:first-of-type { display: initial; }
}
/* Address selection and delivery detail. Map layers stay below site dialogs. */
.setup-copy { position: sticky; top: 30px; }
.address-map-section { margin: 22px 0 26px; }
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-heading h3 { font-size: 1.05rem; letter-spacing: -.02em; margin-top: 7px; line-height: 1.4; }
.map-help { color: var(--muted); font-size: .875rem; line-height: 1.55; margin: 12px 0 16px; }
.address-map-wrap { position: relative; isolation: isolate; z-index: 0; border: 1px solid #cbd8c6; border-radius: 16px; overflow: hidden; background: #edf2e7; }
.address-map { width: 100%; height: 320px; font-family: inherit; }
.address-map[aria-busy="true"]::after { content: "Preparando tu mapa…"; position: absolute; inset: 0; display: grid; place-items: center; background: #edf2e7; font-size: .875rem; color: var(--green); z-index: 1000; }
.address-map .leaflet-control-attribution { font-size: 11px; background: #fffffff2; }
.address-map .leaflet-control-attribution a { color: #29503d; }
.address-map .leaflet-control-zoom { box-shadow: 0 3px 13px #172a2320; border: 1px solid #cad6c7; border-radius: 12px; overflow: hidden; }
.address-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: var(--green); border-color: #dae3d5; }
.address-map .leaflet-control-zoom a:focus-visible { outline-offset: -4px; }
.delivery-marker { background: transparent; border: 0; }
.delivery-marker-pin { display: grid; place-items: center; width: 32px; height: 32px; margin: 2px; background: var(--orange); border: 3px solid #fff; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); box-shadow: -3px 4px 9px #172a2340; }
.delivery-marker-pin > span { width: 9px; height: 9px; background: white; border-radius: 50%; }
.delivery-marker.is-invalid .delivery-marker-pin { background: var(--danger); }
.delivery-marker:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; border-radius: 12px; }
.map-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.map-footer .text-button { font-size: .8125rem; padding-inline: 8px; }
.map-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.gps-dot, .pin-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #276bae; box-shadow: 0 0 0 3px #276bae15; }
.pin-dot { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.map-selection-status { margin: 7px 0 0; padding: 11px 13px; border-radius: 9px; background: #f1f4ed; color: var(--muted); font-size: .8125rem; line-height: 1.6; transition: background .2s, color .2s; }
.map-selection-status.is-success { background: #ecf4e8; color: var(--green); }
.map-selection-status.is-success::before { content: "✓ "; font-weight: 800; }
.map-selection-status.is-invalid { background: var(--danger-soft); color: var(--danger); }
.map-fine-control { margin: 8px 0 16px; font-size: .8125rem; }
.map-fine-control summary { cursor: pointer; padding: 13px 0; min-height: 44px; color: var(--green); font-weight: 600; }
.map-fine-control p { color: var(--muted); }
.map-nudge-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.map-nudge-buttons button { min-height: 44px; border: 1px solid #ccd9c8; border-radius: 10px; background: #fff; color: var(--green); font-size: .8125rem; }
.map-nudge-buttons button:hover:not(:disabled) { background: var(--green-soft); }
.courier-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 18px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.courier-avatar { width: 52px; height: 52px; flex: none; position: relative; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd9c6; background: #e7eedf; color: #365533; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.courier-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.courier-info { min-width: 0; }
.courier-info > span { display: block; font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.courier-info > .courier-role { font-size: .75rem; font-weight: 600; letter-spacing: .06em; margin-top: 0; }
.courier-info strong { display: block; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; margin-top: 3px; }
.courier-call { min-height: 44px; padding: 10px 12px; border: 1px solid #c5d9c4; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: .8125rem; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.courier-call:hover { background: #dcebd6; }
.courier-awaiting { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px dashed #d8e1d3; border-radius: 12px; margin: 20px 0 0; background: #f9fbf6; }
.courier-awaiting p { margin: 0; font-size: .8125rem; }
.courier-awaiting strong { display: block; color: var(--ink); font-size: .875rem; font-weight: 600; }
.courier-awaiting span:not(.courier-placeholder-icon) { display: block; margin-top: 4px; }
.courier-placeholder-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--green); background: #eaf1e4; font-size: 1.125rem; }
.order-details-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 3px 3px; min-height: 48px; border: 0; border-top: 1px solid var(--line); margin-top: 18px; color: var(--orange-dark); background: transparent; font-size: .875rem; font-weight: 650; text-align: left; }
.order-details-button span { transition: transform .2s; }
.order-details-button:hover span { transform: translate(3px, -2px); }
.order-detail-card { width: min(690px, 100%); }
.detail-status-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 20px 0 13px; }
.detail-status-heading .muted { font-size: .8125rem; }
.detail-status-copy { color: var(--muted); font-size: .9375rem; }
.order-detail-card .order-timeline { padding-bottom: 14px; }
.courier-card.is-detailed { grid-template-columns: 64px minmax(0, 1fr) auto; background: #f4f8ef; border: 1px solid #dce6d3; border-radius: 16px; padding: 18px; }
.courier-card.is-detailed .courier-avatar { width: 64px; height: 64px; }
.courier-card.is-detailed .courier-info strong { font-size: 1.125rem; }
.detail-tracking { margin-top: 18px; }
.order-detail-section { padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--line); }
.order-detail-section > h3 { font-size: 1.05rem; margin-bottom: 14px; }
.order-delivery-address { background: #f6f8f3; border: 1px solid var(--line); border-radius: 12px; padding: 15px; font-size: .9375rem; overflow-wrap: anywhere; }
.ordered-products { list-style: none; padding: 0; margin: 0; }
.ordered-products li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #edf0e9; }
.ordered-products li:last-child { border: 0; }
.ordered-product-image { width: 58px; height: 58px; position: relative; flex: none; border-radius: 12px; display: grid; place-items: center; color: #4e6842; background: #e9efdf; overflow: hidden; font-weight: 650; }
.ordered-product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ordered-product-copy { flex: 1; min-width: 0; }
.ordered-product-copy strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ordered-product-copy span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 5px; }
.ordered-product-price { flex: none; font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.order-notes { padding: 15px 17px; border-left: 3px solid #bdcfb2; background: #f6f8f2; margin-top: 15px; border-radius: 4px 10px 10px 4px; font-size: .875rem; }
.order-notes strong { font-weight: 600; }
.order-notes p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.order-payment-note { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); margin-top: 20px; }
.order-costs { font-variant-numeric: tabular-nums; }
.auth-layout:not(.hidden), .setup-layout:not(.hidden), #shopView:not(.hidden) { animation: view-enter .26s ease-out both; }
.mobile-cart:not(.hidden) { animation: cart-enter .25s ease-out both; }
.business-card { animation: card-enter .28s ease-out both; }
.business-card:nth-child(2) { animation-delay: .035s; }
.business-card:nth-child(3) { animation-delay: .07s; }
.business-card:nth-child(4) { animation-delay: .105s; }
.category-chips button { transition: background .18s, color .18s, border-color .18s; }
.status-en_camino::before, .status-esperando_cliente::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; margin-right: 7px; animation: delivery-pulse 1.8s ease-in-out 3; }
@keyframes view-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-enter { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cart-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes delivery-pulse { 50% { opacity: .35; } }
@media(max-width: 700px) {
  .setup-copy { position: static; }
  .address-map { height: 290px; }
  .courier-card.is-detailed { grid-template-columns: 54px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .courier-card.is-detailed .courier-avatar { width: 54px; height: 54px; }
  .courier-card.is-detailed .courier-call { grid-column: 2; justify-self: start; }
  .ordered-products li { gap: 10px; flex-wrap: wrap; }
  .ordered-product-copy { min-width: 120px; }
  .ordered-product-price { margin-left: auto; }
}
@media(max-width: 420px) {
  .map-heading { align-items: start; flex-direction: column; }
  .map-footer { align-items: start; flex-direction: column; gap: 0; }
  .map-nudge-buttons { grid-template-columns: repeat(2, 1fr); }
  .courier-card { grid-template-columns: 48px minmax(0, 1fr); }
  .courier-call { grid-column: 2; justify-self: start; }
  .courier-avatar { width: 48px; height: 48px; }
  .address-map { height: 265px; }
}
.sound-settings { display: flex; gap: 16px; align-items: center; padding: 20px 22px; margin: 0 0 28px; border: 1px solid #d8e1d3; border-radius: 18px; background: #fff; }
.sound-symbol { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #edf3e8; color: var(--green); font-size: 1.5rem; }
.sound-copy { flex: 1; min-width: 0; }
.sound-copy h2 { font-size: 1rem; margin: 0 0 5px; letter-spacing: -.015em; }
.sound-copy p { font-size: .875rem; margin: 0; line-height: 1.55; }
.sound-copy .sound-hint, .sound-hint { font-size: .8125rem; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.sound-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 240px; }
.sound-actions .text-button { min-height: 44px; padding: 10px; }
.sound-settings.is-enabled { border-color: #adc6a0; background: #f7fbf3; }
.sound-settings.is-enabled .sound-symbol { color: #fff; background: var(--green); }
.arrival-card { width: min(480px, 100%); border: 2px solid #dba883; }
.arrival-symbol { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #fff0e5; color: var(--orange-dark); margin-bottom: 24px; box-shadow: 0 0 0 8px #fff8f1; animation: arrival-emphasis 1.5s ease-out 3; }
.arrival-symbol .icon { width: 30px; height: 30px; }
.arrival-card .eyebrow { display: block; color: var(--orange-dark); }
.arrival-card h2 { margin-right: 0; }
#arrivalMessage { line-height: 1.6; overflow-wrap: anywhere; }
.arrival-hint { font-size: .875rem; color: var(--muted); line-height: 1.6; margin: 12px 0 22px; }
.arrival-actions { display: grid; gap: 10px; margin-bottom: 18px; }
@keyframes arrival-emphasis { 50% { box-shadow: 0 0 0 13px #fff8f1; } }
@media(max-width: 700px) {
  .sound-settings { align-items: flex-start; gap: 12px; padding: 18px; flex-wrap: wrap; }
  .sound-copy { flex-basis: calc(100% - 60px); }
  .sound-actions { max-width: none; width: 100%; justify-content: flex-start; padding-left: 56px; }
}
@media(max-width: 420px) { .sound-actions { padding-left: 0; } }
/* Customer navigation, menu browsing and order overview. */
.customer-nav { display: flex; align-items: center; gap: 7px; width: fit-content; padding: 6px; margin: -8px 0 28px; border: 1px solid #dce4d7; background: #fff; border-radius: 18px; }
.customer-nav button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 20px; border: 0; background: transparent; color: var(--green); border-radius: 12px; font-size: .875rem; font-weight: 650; }
.customer-nav button:hover { background: #edf4e7; }
.customer-nav .icon { width: 19px; height: 19px; }
.nav-count { display: inline-flex; min-width: 21px; height: 21px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 7px; background: #f6e9dc; color: #9b421e; margin-left: 5px; font-size: .75rem; font-variant-numeric: tabular-nums; }
.active-order-overview { display: flex; align-items: center; gap: 19px; padding: 22px 26px; border: 1px solid #345f48; border-radius: 22px; margin-bottom: 28px; color: #fff; background: linear-gradient(120deg, #173f31, #2c5840); box-shadow: 0 8px 26px #183b2212; }
.active-order-overview > div { min-width: 0; flex: 1; }
.active-order-overview .eyebrow { color: #d9eac9; font-size: .75rem; letter-spacing: .09em; }
.active-order-overview strong { display: block; margin-top: 5px; font-size: 1.2rem; font-weight: 650; }
.active-order-overview > div > span:last-child { display: block; font-size: .875rem; margin-top: 5px; color: #deeadc; overflow-wrap: anywhere; }
.active-order-overview .secondary-button { background: #f1f7e9; border-color: #f1f7e9; color: #244b33; flex: none; }
.active-order-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border: 1px solid #6d8f70; border-radius: 16px; color: #e3f0d7; background: #ffffff0c; }
.catalog-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 13px; }
.open-filter { display: flex; gap: 9px; align-items: center; font-size: .875rem; font-weight: 500; min-height: 44px; margin: 0; cursor: pointer; }
.open-filter input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.sort-control { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin: 0; font-weight: 400; }
.sort-control select { border: 1px solid #d3dfce; background: #fff; border-radius: 10px; min-height: 44px; padding: 8px 11px; color: var(--ink); font: inherit; }
.catalog-heading { margin-top: 23px; }
.catalog-heading h2 { font-size: 1.35rem; line-height: 1.4; letter-spacing: -.035em; }
.business-card { border-radius: 22px; box-shadow: 0 3px 12px #1d382306; animation-fill-mode: backwards; }
.business-media { height: 182px; }
.business-body { padding: 20px; }
.business-chip { border-radius: 8px; padding: 6px 10px; backdrop-filter: blur(8px); }
.business-name { line-height: 1.4; }
.business-categories { line-height: 1.5; }
.business-meta { margin-top: 16px; font-size: .875rem; }
.cart-panel { border-radius: 22px; box-shadow: 0 8px 25px #21342507; border-top: 4px solid #28533c; }
.cart-head { padding-bottom: 18px; border-bottom: 1px solid #e2e9db; }
.cart-panel .eyebrow { color: #59704b; }
.cart-line { padding: 18px 0; gap: 12px; }
.cart-line-price { font-variant-numeric: tabular-nums; }
.cart-undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-top: 14px; padding: 12px 14px; background: #f0f5e9; border: 1px solid #d7e3cb; border-radius: 12px; font-size: .875rem; }
.cart-undo > span { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.cart-undo button { min-height: 44px; }
.menu-card { width: min(780px, 100%); }
.menu-card .modal-content { padding-top: 29px; }
.menu-card #menuTitle { font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.menu-card #menuAddress { font-size: .9375rem; line-height: 1.6; }
.menu-schedule { display: inline-block; margin-top: 12px; padding: 8px 11px; background: #f1f5ea; border-radius: 9px; color: #466039; font-size: .875rem; line-height: 1.5; }
.menu-tools { position: sticky; top: 0; z-index: 4; padding: 14px 0 10px; margin-top: 16px; background: #fff; border-bottom: 1px solid #e3eadb; }
.menu-tools .search-field { background: #f8faf5; }
.search-clear { border: 0; background: transparent; color: var(--muted); width: 44px; height: 44px; flex: none; font-size: 1.5rem; }
.menu-categories { margin: 0; padding: 13px 1px 7px; }
.menu-categories:empty { display: none; }
.menu-tools #menuResultsCount { margin: 4px 0 0; }
.menu-category { padding-top: 24px; margin-top: 4px; font-size: 1.15rem; letter-spacing: -.025em; }
.product-row { border: 1px solid #e0e7d9; border-radius: 16px; padding: 18px; margin: 12px 0; gap: 22px; background: #fff; transition: border-color .18s, background .18s; }
.product-row:hover { border-color: #b6c9a8; background: #fdfefb; }
.product-row.is-unavailable { background: #f5f6f2; }
.product-copy h3 { font-size: 1.075rem; line-height: 1.4; }
.product-copy > p:not(.price) { font-size: .875rem; line-height: 1.65; margin-top: 7px; }
.price-from { font-size: .8125rem; font-weight: 450; color: var(--muted); }
.product-in-cart { display: inline-block; border-radius: 7px; padding: 5px 8px; margin-top: 8px; color: #365728; background: #ecf4e2; font-size: .8125rem; font-weight: 600; }
.product-customizable { font-size: .75rem; }
.menu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 34px; background: #fcfefa; border-top: 1px solid #dce7d2; box-shadow: 0 -8px 24px #24362208; }
.menu-bottom > div { min-width: 0; }
.menu-bottom span, .menu-bottom strong { display: block; font-size: .875rem; }
.menu-bottom span { color: var(--muted); }
.menu-bottom strong { color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.menu-bottom .primary-button { width: auto; margin: 0; flex: none; padding: 12px 19px; font-size: .875rem; }
.order-filters { display: flex; width: fit-content; max-width: 100%; padding: 5px; gap: 4px; background: #edf2e8; border: 1px solid #d8e1d0; border-radius: 13px; margin: 8px 0 12px; overflow-x: auto; }
.order-filters button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 9px 18px; color: var(--muted); background: transparent; white-space: nowrap; font-size: .875rem; }
.order-filters button[aria-pressed="true"] { color: var(--green); background: #fff; border-color: #d5dfce; box-shadow: 0 2px 5px #18362309; font-weight: 650; }
.order-card { border-radius: 21px; box-shadow: 0 4px 18px #20342506; }
.order-card.is-active { border-color: #bdcfae; }
.more-orders { display: block; margin: 24px auto 0; min-width: 200px; }
.orders-section .sound-settings { margin-bottom: 32px; box-shadow: none; }
.connection-banner { padding: 13px 24px; text-align: center; color: #784318; background: #fff0dc; border-block: 1px solid #eed4ad; font-size: .875rem; line-height: 1.5; }
#catalogSection, #ordersSection { scroll-margin-top: 24px; }
@media(max-width: 980px) {
  .customer-nav { position: fixed; z-index: 29; bottom: 0; inset-inline: 0; width: auto; margin: 0; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); justify-content: space-around; border-radius: 20px 20px 0 0; border-color: #d4dfca; box-shadow: 0 -5px 25px #1632200c; }
  .customer-nav button { flex: 1; gap: 5px; padding: 4px 8px; flex-direction: column; font-size: .8125rem; }
  .customer-nav .icon { width: 20px; height: 20px; }
  .nav-count { min-width: 18px; height: 18px; font-size: .75rem; margin-left: 3px; }
  .mobile-cart { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.is-shopping .site-footer { padding-bottom: 120px; }
  body.is-shopping:has(.mobile-cart:not(.hidden)) .site-footer { padding-bottom: 200px; }
  body.is-shopping .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  body.is-shopping:has(.mobile-cart:not(.hidden)) .toast { bottom: calc(161px + env(safe-area-inset-bottom)); }
}
@media(max-width: 700px) {
  .shop-heading { gap: 16px; }
  .shop-heading h1 { font-size: 2.1rem; line-height: 1.15; letter-spacing: -.045em; }
  .active-order-overview { flex-wrap: wrap; padding: 20px; gap: 13px; border-radius: 18px; }
  .active-order-overview > div { min-width: 160px; }
  .active-order-overview .secondary-button { margin-left: 63px; min-height: 44px; }
  .active-order-overview strong { font-size: 1.05rem; }
  .catalog-controls { gap: 3px 12px; }
  .catalog-heading { align-items: flex-start; }
  .catalog-heading h2 { font-size: 1.25rem; }
  .catalog-heading #resultsCount { max-width: 110px; line-height: 1.5; }
  .menu-tools { padding-top: 10px; }
  .product-row { padding: 15px; gap: 14px; }
  .menu-bottom { padding: 14px 22px; gap: 10px; }
  .menu-bottom .primary-button { padding: 11px 13px; }
  .order-filters { width: 100%; }
  .order-filters button { flex: 1; padding-inline: 12px; }
}
@media(max-width: 480px) {
  .business-list { grid-template-columns: 1fr; gap: 14px; }
  .business-card { display: grid; grid-template-columns: 114px minmax(0, 1fr); border-radius: 17px; }
  .business-media { height: 100%; min-height: 152px; padding: 8px; align-items: flex-end; }
  .business-chip { font-size: .75rem; padding: 5px 6px; line-height: 1.35; }
  .business-monogram { font-size: 2.6rem; }
  .business-body { padding: 15px; }
  .business-name { font-size: 1rem; }
  .business-meta { gap: 6px; margin-top: 11px; padding-top: 10px; font-size: .8125rem; }
  .business-link { font-size: .8125rem; }
  .sort-control { width: 100%; justify-content: space-between; }
  .menu-bottom > div { flex: 1; }
  .menu-bottom span { font-size: .8125rem; }
  .menu-bottom .primary-button { max-width: 155px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  button, .panel, .business-card, .phone-field, .option-choice { border: 1px solid ButtonText; }
  .hero-copy, .hero-tag { background: Canvas; color: CanvasText; }
  .hero-copy em, .hero-copy p { color: CanvasText; }
}
.tracking-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.tracking-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tracking-detail-heading h3 { margin: 5px 0 0; font-size: 1.08rem; letter-spacing: -.02em; }
.tracking-detail-heading .text-button { min-height: 40px; flex: none; }
.tracking-detail-map { position: relative; z-index: 0; height: 335px; min-height: 260px; overflow: hidden; border: 1px solid #d5dfcf; border-radius: 20px; background: #edf3e9; box-shadow: inset 0 0 0 1px #ffffff66; }
.tracking-map-empty { display: grid; place-items: center; height: 100%; padding: 24px; color: var(--muted); text-align: center; line-height: 1.5; }
.tracking-courier-pin, .tracking-destination-pin { background: transparent; border: 0; }
.tracking-courier-pin span { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 16px; color: #fff; background: #203c32; box-shadow: 0 3px 12px #18362355, 0 0 0 5px #203c3219; font-size: 27px; }
.tracking-courier-pin.is-stale span { background: #727873; box-shadow: 0 3px 12px #18362333; }
.tracking-destination-pin span { display: grid; place-items: center; width: 38px; height: 40px; border: 3px solid #fff; border-radius: 14px 14px 14px 5px; color: #fff; background: var(--orange); box-shadow: 0 3px 10px #18362355; font-size: 27px; font-weight: 800; }
.tracking-detail-section .field-hint { margin-top: 9px; }
.tracking-live-status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; border-radius: 99px; padding: 7px 10px; background: #e5f3e9; color: #24603b; font-size: .72rem; font-weight: 800; }
.tracking-live-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #24603b12; }
.tracking-live-status.is-delayed { color: #865e25; background: #fff3de; }
.tracking-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tracking-map-toolbar .text-button, .tracking-retry-actions .text-button { min-height: 44px; padding: 7px 4px; font-size: .78rem; }
.tracking-map-legend { display: flex; gap: 14px; color: var(--muted); font-size: .72rem; }
.tracking-map-legend span { display: flex; align-items: center; gap: 6px; }
.tracking-map-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-courier { background: #203c32; }
.legend-home { background: var(--orange); }
.tracking-route-summary { margin: 4px 0 8px; padding: 10px 12px; background: #f2f5ee; border-radius: 10px; color: var(--green); font-size: .8rem; font-weight: 700; }
.tracking-retry-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tracking-external-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--green); font-size: .76rem; text-underline-offset: 3px; }
.tracking-detail-map .leaflet-control-zoom { overflow: hidden; border: 1px solid #d5dfcf; border-radius: 12px; box-shadow: 0 4px 14px #203c321a; }
.tracking-detail-map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; color: var(--green); }
.tracking-detail-map .leaflet-control-attribution { font-size: 10px; }
@media (max-width: 480px) { .tracking-detail-heading { gap: 8px; } .tracking-detail-heading h3 { font-size: .98rem; } .tracking-detail-map { height: 295px; } .tracking-live-status { font-size: .65rem; padding: 7px 9px; } }
@media (prefers-reduced-motion: no-preference) { .tracking-courier-pin { transition: transform 700ms linear; } }
