/* Компоненти концепту V2 (поверх base.css). Кольори — через токени, тож
   світла й темна теми ділять ці правила; тему задає :root у v2-*.html. */

.v2-header { display: flex; align-items: center; gap: 10px; padding: 24px 16px 10px; flex: none; }
.v2-header img.v2-logo { height: 30px; display: block; }
.switcher {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; min-height: 40px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.switcher.icon-only { margin-left: 0; padding: 0; width: 40px; justify-content: center; }
.v2-header .switcher:nth-of-type(1) { margin-left: auto; }
.switcher .ava { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--ink-2); display: grid; place-items: center; flex: none; }

.v2-greet { padding: 6px 20px 2px; }
.v2-greet h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; }
.v2-greet p { margin-top: 3px; font-size: 0.8125rem; color: var(--ink-2); }

.hero {
  margin: 14px 16px 0; padding: 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(137,220,101,0.16), var(--surface));
  border: 1px solid var(--line);
}
.hero.calm { background: var(--surface); }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 650; color: var(--green-deep); }
.hero .kicker .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; }
.hero h2 { font-size: 1.1875rem; font-weight: 650; line-height: 1.25; margin-top: 12px; text-wrap: balance; }
.hero .meta { margin-top: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.hero .btn { margin-top: 16px; width: 100%; }

.sec { padding: 18px 20px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-head h3 { font-size: 0.9375rem; font-weight: 650; }
.sec-head a { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; }

.order-card { width: 100%; text-align: left; background: var(--surface); border: 0; border-radius: 16px; padding: 16px; cursor: pointer; color: inherit; display: block; }
.order-card.wide { cursor: default; }
.order-card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.order-card .title { font-size: 0.9375rem; font-weight: 600; }
.order-card .sum { font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.order-meta { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-3); }
.order-meta .unpaid { color: var(--coral-ink); font-weight: 600; }
.pay-hint { display: inline-block; margin-top: 8px; font-size: 0.6875rem; font-weight: 600; color: var(--coral-ink); background: var(--coral-tint); padding: 3px 10px; border-radius: 999px; }
.pay-btn { margin-top: 14px; width: 100%; min-height: 46px; }

/* міні-степер статусу замовлення (4 стадії) */
.stepper { display: flex; align-items: center; margin-top: 14px; }
.stepper .node { width: 11px; height: 11px; border-radius: 50%; background: var(--line); flex: none; }
.stepper .node.done { background: var(--green); }
.stepper .node.current { background: var(--green); box-shadow: 0 0 0 4px rgba(137,220,101,0.28); }
.stepper .bar { height: 3px; flex: 1; background: var(--line); }
.stepper .bar.done { background: var(--green); }
.stepper-now { margin-top: 8px; font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.order-meta .paid { color: var(--green-deep); font-weight: 600; }

/* промо / акція */
.promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; cursor: pointer;
  background: var(--ink); border: 0; border-radius: 16px; padding: 14px 16px; }
.promo .promo-badge { flex: none; font-size: 0.8125rem; font-weight: 750; color: var(--on-green); background: var(--green); padding: 6px 10px; border-radius: 10px; }
.promo .promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.promo .promo-txt b { font-size: 0.875rem; font-weight: 650; }
.promo .promo-txt span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.promo .chev { color: rgba(255,255,255,0.6); flex: none; }

.cta-wrap2 { padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); margin-top: auto; }
.btn-order { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--green); color: var(--on-green); font: inherit; font-size: 1rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* списки (результати, замовлення, профіль) */
.list { padding: 8px 20px 0; }
.list-cap { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); padding: 6px 0 10px; }
.list-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: inherit; background: var(--surface); border: 0; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.list-card.add { background: none; border: 1.5px dashed var(--line); }
.list-card .ready-dot { width: 40px; height: 40px; }
.list-card .ready-dot.alt { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); }
.list-card .txt { flex: 1; min-width: 0; }
.list-card .name { font-size: 0.875rem; font-weight: 600; line-height: 1.3; display: block; }
.list-card .meta { margin-top: 3px; font-size: 0.75rem; color: var(--ink-2); display: block; }
.list-card .pdf-only { font-size: 0.6875rem; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.empty { font-size: 0.8125rem; color: var(--ink-2); background: var(--surface); border-radius: 16px; padding: 16px; line-height: 1.5; }

/* графік у шторці шеру динаміки */
.share-chart { margin: 14px 0 4px; padding: 12px 12px 4px; background: var(--surface); border-radius: 16px; }
.share-chart svg { display: block; width: 100%; height: auto; overflow: visible; }

/* вторинний CTA «Знайти відділення» на Головній */
.btn-branches { width: 100%; min-height: 48px; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ===== Екран «Замовити» ===== */
.search-stub { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 6px 20px 0; width: calc(100% - 40px); background: var(--surface); border: 0; border-radius: 12px; padding: 13px 14px; color: var(--ink-3); font: inherit; font-size: 0.875rem; cursor: pointer; }
.search-stub .s-ic { color: var(--ink-3); display: inline-flex; }
.promo-list, .pkg-list { display: grid; gap: 10px; }
.pkg-card { width: 100%; text-align: left; background: var(--surface); border: 0; border-radius: 16px; padding: 16px; cursor: pointer; color: inherit; display: block; }
.pkg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pkg-name { font-size: 0.9375rem; font-weight: 650; }
.pkg-count { font-size: 0.75rem; font-weight: 600; color: var(--on-green); background: var(--green); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pkg-note { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; }
.deliver-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; background: var(--surface); border: 0; border-radius: 16px; padding: 15px 16px; margin-bottom: 10px; cursor: pointer; }
.deliver-card .d-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--green-deep); display: grid; place-items: center; }
.deliver-card .d-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deliver-card .d-txt b { font-size: 0.9375rem; font-weight: 600; }
.deliver-card .d-txt span { font-size: 0.75rem; color: var(--ink-2); }

/* ===== Екран «Відділення» ===== */
.map-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 6px 20px 0; height: 130px; border-radius: 16px; background: linear-gradient(135deg, rgba(137,220,101,0.12), var(--surface)); border: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.map-stub svg { color: var(--green-deep); width: 26px; height: 26px; }
.city-chips { display: flex; gap: 8px; padding: 14px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.city-chips::-webkit-scrollbar { display: none; }
.city-chip { font: inherit; font-size: 0.8125rem; font-weight: 600; padding: 8px 16px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; white-space: nowrap; }
.city-chip.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.branch-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border-radius: 16px; padding: 15px 16px; margin-bottom: 10px; }
.branch-card .d-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--bg); color: var(--green-deep); display: grid; place-items: center; }
.branch-card .d-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.branch-card .d-txt b { font-size: 0.9375rem; font-weight: 600; }
.branch-card .d-txt span { font-size: 0.8125rem; color: var(--ink-2); }
.branch-card .branch-hours { color: var(--ink-3) !important; font-size: 0.75rem !important; }

/* сімейний перемикач — опції у шторці */
.switch-list { display: grid; gap: 8px; margin-top: 14px; }
.switch-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; background: var(--surface); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.switch-opt.is-current { border-color: var(--green-deep); }
.switch-opt .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.switch-opt .ok { margin-left: auto; color: var(--green-deep); }
