/*
 * Portalul clientului + magazinul online, ca O SINGURĂ experiență pe kitul UI GA1 (docs/obiecte/PORTAL_CLIENT.md § 20).
 * Peste ga1-shell.css + ga1-ds.css (aceleași componente ca aplicația internă: antetul, meniul lateral, bara de jos, carduri,
 * butoane, formulare, tabele, stări goale). Aici stau DOAR piesele proprii clientului: coșul din antet, rezumatul de pe
 * „Acasă”, fișele magazinului, calendarul programărilor (ore ca chip-uri), conversația. Culoarea brandului vine din
 * layout (`--cp-color`, `--cp-on`, `--cp-link`, `--cp-subtle`), pusă peste tokenii accentului (`--ds-accent*`).
 * Mobil întâi; tema e mereu deschisă (culorile brandului sunt verificate pe alb).
 */

:root { --cp-color: var(--ds-accent); --cp-on: var(--ds-on-accent); --cp-link: var(--ds-link); --cp-subtle: var(--ds-accent-subtle); }
.cp-body { min-height: 100vh; background: var(--ds-canvas); }
.cp-body [hidden] { display: none !important; }
.cp-body a { color: var(--ds-link); }
.cp-body .ga1-header a, .cp-body .ga1-side a, .cp-body .ga1-tabbar a, .cp-body .ds-btn, .cp-body a.ds-card--interactive { color: inherit; }
.cp-body .ds-btn { color: var(--ds-on-accent); }
.cp-body .ds-btn--secondary, .cp-body .ds-btn--ghost { color: var(--ds-text); }
.cp-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; }

/* ------------------------------------------------------------------ Antetul */
.cp-header { border-bottom: 1px solid var(--ds-border); box-shadow: inset 0 3px 0 var(--cp-color); }
.cp-home, .ga1-header > .ga1-brand.cp-home { display: flex; min-width: 0; flex-shrink: 1; }
.cp-logo { display: block; max-height: 36px; max-width: 168px; width: auto; height: auto; object-fit: contain; }
.cp-wordmark { font-size: 18px; font-weight: 800; line-height: 1.15; color: var(--cp-link); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 46vw; }
.cp-context { padding-left: 14px; border-left: 1px solid var(--ds-border); color: var(--ds-text-muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cp-header-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--ds-text); white-space: nowrap; }
.cp-header-link:hover { background: var(--ga1-hover-bg); }
.cp-cart { position: relative; padding: 0 12px; color: var(--ds-text); }
.cp-cart.has-items { background: var(--cp-subtle); color: var(--cp-link); }
.cp-cart__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ds-surface-sunken); color: var(--ds-text-secondary); font-size: 12px; font-weight: 800; line-height: 1; }
.cp-cart.has-items .cp-cart__count { background: var(--cp-color); color: var(--cp-on); }
.cp-profile .ga1-avatar { background: var(--cp-subtle); color: var(--cp-link); }
.cp-profile .ga1-menu-panel { width: 300px; }
.cp-profile .ga1-profile-head small { overflow-wrap: anywhere; }
.cp-menu-icon { display: inline-flex; width: 22px; color: var(--ds-text-muted); }

/* ------------------------------------------------------------------ Meniul (lateral pe desktop, bara de jos pe telefon) */
.cp-shell { --ga1-shell-side: 232px; }
.cp-side .ga1-side-group + .ga1-side-group { margin-top: 18px; }
.cp-side .ga1-side-link.is-active, .cp-body .ga1-sheet-link.is-active { box-shadow: 0 6px 16px color-mix(in srgb, var(--cp-color) 28%, transparent); }
.cp-body .ga1-sheet-link.is-active { box-shadow: none; color: var(--cp-link); }
.cp-side-help { margin-top: auto; padding: 12px 10px 4px; color: var(--ds-text-muted); font-size: 12px; line-height: 1.45; }
.cp-body .ga1-tabbar > a.is-active, .cp-body .ga1-more[open] > summary { color: var(--cp-link); }
.cp-body .ga1-sheet form { margin: 0; }
.cp-body .ga1-sheet button.ga1-sheet-link { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ds-danger-text); cursor: pointer; text-align: left; }

/* ------------------------------------------------------------------ Conținutul */
.cp-main { width: 100%; }
.cp-main--solo { max-width: 1120px; margin: 0 auto; padding: var(--ds-space-6) var(--ds-space-6) var(--ds-space-12); }
.cp-main > .ds-alert { margin-bottom: var(--ds-space-4); }
.cp-stack { display: flex; flex-direction: column; gap: var(--ds-space-4); }
.cp-two { display: grid; gap: var(--ds-space-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .cp-two { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.cp-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: var(--ds-space-2); font-size: var(--ds-text-sm); font-weight: 700; text-decoration: none; }
.cp-back:hover { text-decoration: underline; }
.cp-brand { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px 2px 4px; border: 1px solid var(--ds-border); border-radius: 999px; background: var(--ds-surface); color: var(--ds-text-secondary); font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.cp-brand img { height: 16px; max-width: 44px; object-fit: contain; }
.cp-brand i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.cp-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4); }
.cp-filter .ds-field { min-width: 220px; }
.cp-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-card-pad { padding: var(--ds-space-5); }
.cp-body .ds-card__body > :first-child { margin-top: 0; }
.cp-body .ds-card__body > :last-child { margin-bottom: 0; }
.cp-body .ds-list__item { padding: var(--ds-space-3) var(--ds-space-5); }
.cp-body .ds-list__text strong, .cp-body .ds-list__text small { white-space: normal; }
.cp-body .ds-list__item a.cp-row-link { color: var(--ds-text); text-decoration: none; }
.cp-body .ds-list__item a.cp-row-link:hover { color: var(--ds-link); text-decoration: underline; }
.cp-body .ds-table td a { font-weight: 700; }
.cp-body .ds-card .ds-table { font-size: var(--ds-text-md); }
.cp-body .ds-pagination, .cp-body nav[role="navigation"] { padding: var(--ds-space-3) var(--ds-space-5); }

/* „Acasă”: rezumatul de sus (ce e de făcut), apoi listele */
.cp-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-4); margin-bottom: var(--ds-space-5); }
.cp-hello h1 { margin: 0; font-size: var(--ds-text-3xl); }
.cp-hello p { margin: var(--ds-space-1) 0 0; color: var(--ds-text-muted); max-width: 70ch; }
.cp-tiles { display: grid; gap: var(--ds-space-3); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: var(--ds-space-5); }
.cp-tile { display: flex; flex-direction: column; gap: 2px; padding: var(--ds-space-4); border: 1px solid var(--ds-border); border-top: 3px solid var(--ds-border-strong); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-xs); color: var(--ds-text) !important; text-decoration: none; transition: box-shadow var(--ds-duration) var(--ds-ease), border-color var(--ds-duration) var(--ds-ease); }
.cp-tile:hover { box-shadow: var(--ds-shadow-md); border-color: var(--ds-border-strong); text-decoration: none; }
.cp-tile.is-attention { border-top-color: var(--ds-warning); }
.cp-tile.is-accent { border-top-color: var(--cp-color); }
.cp-tile__label { display: flex; align-items: center; gap: 6px; color: var(--ds-text-muted); font-size: var(--ds-text-sm); font-weight: 700; }
.cp-tile__value { font-size: var(--ds-text-2xl); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cp-tile__meta { color: var(--ds-text-muted); font-size: var(--ds-text-sm); }

/* ------------------------------------------------------------------ Pașii cazului (path pe orizontală, listă pe telefon) */
.cp-steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: cp-step; }
.cp-steps li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 0; color: var(--ds-text-muted); font-weight: 600; }
.cp-steps li::before { counter-increment: cp-step; content: counter(cp-step); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--ds-surface-sunken); color: var(--ds-text-secondary); font-size: 13px; font-weight: 800; }
.cp-steps li.is-done { color: var(--ds-text); }
.cp-steps li.is-done::before { content: "✓"; background: var(--ds-success-subtle); color: var(--ds-success-text); }
.cp-steps li.is-current { color: var(--ds-text); font-weight: 800; }
.cp-steps li.is-current::before { background: var(--cp-color); color: var(--cp-on); }

/* ------------------------------------------------------------------ Conversația */
.cp-chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: var(--ds-space-4); background: var(--ds-surface-sunken); border-radius: var(--ds-radius-lg); }
.cp-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--ds-surface); border: 1px solid var(--ds-border); white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-bubble--mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--cp-color); border-color: var(--cp-color); color: var(--cp-on); }
.cp-bubble small { display: block; opacity: .8; font-size: 12px; margin-top: 4px; }

/* ------------------------------------------------------------------ Intrarea (fără meniu) */
.cp-auth { max-width: 480px; margin: var(--ds-space-6) auto; }
.cp-auth .ds-card__body { padding: var(--ds-space-6); }
.cp-auth h1 { margin: 0 0 var(--ds-space-2); font-size: var(--ds-text-2xl); }
.cp-form { display: flex; flex-direction: column; gap: var(--ds-space-4); }
.cp-form .ds-btn--block, .cp-body .ds-btn--block { width: 100%; }
.cp-body .ds-input, .cp-body .ds-select, .cp-body .ds-textarea { font-size: 16px; } /* fără zoom pe iPhone */
.cp-body .ds-btn { min-height: 44px; }
.cp-body .ds-btn--sm { min-height: 36px; }
.cp-check { display: flex; align-items: flex-start; gap: var(--ds-space-2); font-size: var(--ds-text-md); cursor: pointer; }
.cp-check input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--cp-color); }

/* ------------------------------------------------------------------ Magazinul */
.sh-hero { margin-bottom: var(--ds-space-5); }
.sh-hero h1 { margin: 0 0 var(--ds-space-1); font-size: var(--ds-text-3xl); }
.sh-hero p { margin: 0; color: var(--ds-text-muted); max-width: 72ch; }
.sh-search { display: flex; gap: var(--ds-space-2); margin: var(--ds-space-4) 0 var(--ds-space-3); }
.sh-search .ds-input { flex: 1; min-width: 0; min-height: 44px; }
.sh-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sh-chips .ds-chip { min-height: 36px; white-space: nowrap; }
.sh-chips .ds-chip[aria-current="true"] { background: var(--cp-color); border-color: var(--cp-color); color: var(--cp-on); }
.sh-grid { display: grid; gap: var(--ds-space-4); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sh-product { height: 100%; }
.sh-product .ds-card__body { display: flex; flex-direction: column; gap: var(--ds-space-2); height: 100%; }
.sh-product h2 { margin: 0; font-size: var(--ds-text-lg); }
.sh-product h2 a { color: var(--ds-text); text-decoration: none; }
.sh-product h2 a:hover { color: var(--ds-link); text-decoration: underline; }
.sh-family { color: var(--ds-text-muted); font-size: var(--ds-text-xs); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sh-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ds-radius-md); background: var(--cp-subtle); }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumb img.sh-icon { width: 36%; height: 60%; object-fit: contain; }
.sh-thumb span { font-size: 40px; font-weight: 800; color: var(--cp-link); }
.sh-price { font-size: var(--ds-text-2xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-vat { color: var(--ds-text-muted); font-size: var(--ds-text-xs); }
.sh-actions { display: flex; gap: var(--ds-space-2); margin-top: var(--ds-space-2); }
.sh-actions > * { flex: 1; }
.sh-actions form { display: flex; }
.sh-actions .ds-btn { width: 100%; white-space: normal; text-align: center; }
.sh-bottom { margin-top: auto; padding-top: var(--ds-space-2); }
.sh-includes { margin: 0; padding: 0; list-style: none; }
.sh-includes li { position: relative; padding: 3px 0 3px 24px; }
.sh-includes li::before { content: "✓"; position: absolute; left: 2px; color: var(--cp-link); font-weight: 800; }
.sh-buy { position: sticky; top: calc(var(--ga1-header-height) + 16px); }
.sh-qty { display: flex; align-items: center; gap: var(--ds-space-2); }
.sh-qty .ds-input { width: 76px; text-align: center; }
.sh-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-3); }
.sh-line__name { flex: 1 1 220px; min-width: 0; }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ds-space-3); padding: var(--ds-space-4) var(--ds-space-5); border-top: 1px solid var(--ds-border); font-size: var(--ds-text-lg); font-weight: 800; }
.sh-section-title { margin: var(--ds-space-5) 0 var(--ds-space-2); font-size: var(--ds-text-lg); }
.sh-foot { max-width: 1120px; margin: 0 auto; padding: var(--ds-space-6) var(--ds-space-6) var(--ds-space-8); color: var(--ds-text-muted); font-size: var(--ds-text-sm); line-height: 1.6; }
.cp-shell ~ .sh-foot { padding-left: calc(var(--ga1-shell-side) + var(--ds-space-8)); max-width: none; }

/* Pașii finalizării (MAGAZIN_ONLINE.md § 13): Coș › Cont › Date › Plată — cercuri numerotate unite de o linie */
.sh-steps-wrap { margin: 0 0 var(--ds-space-5); }
.sh-steps { display: flex; margin: 0 auto; padding: 0; max-width: 640px; list-style: none; counter-reset: sh-step; }
.sh-steps li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ds-text-muted); font-size: var(--ds-text-sm); font-weight: 700; text-align: center; }
.sh-steps li::before { counter-increment: sh-step; content: counter(sh-step); position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--ds-surface); box-shadow: inset 0 0 0 2px var(--ds-border-strong); color: var(--ds-text-secondary); font-size: 14px; font-weight: 800; }
.sh-steps li + li::after { content: ""; position: absolute; top: 15px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--ds-border-strong); }
.sh-steps li.is-done, .sh-steps li.is-current { color: var(--ds-text); }
.sh-steps li.is-done::before { content: "✓"; background: var(--cp-color); box-shadow: none; color: var(--cp-on); }
.sh-steps li.is-current::before { background: var(--cp-color); box-shadow: 0 0 0 4px var(--cp-subtle); color: var(--cp-on); }
.sh-steps li.is-current { font-weight: 800; }
.sh-steps li.is-done::after, .sh-steps li.is-current::after { background: var(--cp-color); }
.sh-steps a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
/* Pasul „Cont”: cele două alegeri una lângă alta (desktop), una sub alta (telefon) */
.sh-account { display: grid; gap: var(--ds-space-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .sh-account { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.sh-account .ds-card__body { padding: var(--ds-space-5); }
.sh-account h2 { display: flex; align-items: center; gap: var(--ds-space-2); margin: 0 0 var(--ds-space-1); font-size: var(--ds-text-xl); }
.sh-account h2 .cp-menu-icon { color: var(--cp-link); }
.sh-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2); margin: 0 0 var(--ds-space-4); padding: var(--ds-space-3) var(--ds-space-4); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface); font-size: var(--ds-text-sm); }
.sh-mini strong { font-variant-numeric: tabular-nums; }
.sh-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-md); background: var(--cp-subtle); }
.sh-who form { margin: 0; }
.sh-who button { padding: 0; border: 0; background: none; color: var(--ds-link); font: inherit; font-size: var(--ds-text-sm); text-decoration: underline; cursor: pointer; }
.sh-pay { display: grid; gap: var(--ds-space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sh-pay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sh-pay .ds-card__body { display: flex; flex-direction: column; gap: var(--ds-space-3); height: 100%; }
.sh-pay h2 { display: flex; align-items: center; gap: var(--ds-space-2); margin: 0; font-size: var(--ds-text-lg); }
.sh-iban { display: block; padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-md); background: var(--ds-surface-sunken); font-size: var(--ds-text-md); overflow-wrap: anywhere; user-select: all; }
.sh-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--ds-space-3); margin: 0; font-size: var(--ds-text-sm); }
.sh-kv dt { color: var(--ds-text-muted); }
.sh-kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Programările: luna / săptămâna, orele ca chip-uri */
.ap-steps { display: grid; gap: var(--ds-space-4); }
.ap-step__title { display: flex; align-items: center; gap: var(--ds-space-2); margin: 0 0 var(--ds-space-3); font-size: var(--ds-text-lg); }
.ap-step__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--cp-color); color: var(--cp-on); font-size: 13px; font-weight: 800; }
.ap-types { display: grid; gap: var(--ds-space-2); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ap-type { display: flex; flex-direction: column; gap: 2px; padding: var(--ds-space-3) var(--ds-space-4); border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-lg); background: var(--ds-surface); color: var(--ds-text) !important; text-decoration: none; }
.ap-type:hover { border-color: var(--cp-color); text-decoration: none; }
.ap-type[aria-current="true"] { border-color: var(--cp-color); box-shadow: inset 0 0 0 1px var(--cp-color); background: var(--cp-subtle); }
.ap-type strong { font-size: var(--ds-text-md); }
.ap-type small { color: var(--ds-text-muted); }
.ap-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2); margin-bottom: var(--ds-space-3); }
.ap-period { margin: 0; font-size: var(--ds-text-lg); font-weight: 800; text-transform: capitalize; }
.ap-nav { display: flex; gap: var(--ds-space-2); }
.ap-switch { display: inline-flex; padding: 3px; border-radius: var(--ds-radius-md); background: var(--ds-surface-sunken); }
.ap-switch a { padding: 6px 14px; border-radius: 6px; color: var(--ds-text-secondary) !important; font-size: var(--ds-text-sm); font-weight: 700; text-decoration: none; }
.ap-switch a[aria-current="page"] { background: var(--ds-surface); color: var(--ds-text) !important; box-shadow: var(--ds-shadow-xs); }
.ap-tz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--ds-space-3); color: var(--ds-text-muted); font-size: var(--ds-text-sm); }
.ap-tz strong { color: var(--ds-text); }

/* Luna: grila de zile; zilele cu ore libere sunt linkuri */
.ap-month { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.ap-month th { padding: 4px 0; color: var(--ds-text-muted); font-size: var(--ds-text-xs); font-weight: 800; text-align: center; text-transform: uppercase; }
.ap-month td { padding: 0; text-align: center; }
.ap-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: var(--ds-radius-md); color: var(--ds-text-disabled); font-weight: 700; text-decoration: none; }
a.ap-day { background: var(--cp-subtle); color: var(--ds-text) !important; }
a.ap-day:hover { box-shadow: inset 0 0 0 2px var(--cp-color); text-decoration: none; }
a.ap-day small { color: var(--cp-link); font-size: 11px; font-weight: 700; }
.ap-day[aria-current="date"] { background: var(--cp-color); color: var(--cp-on) !important; }
.ap-day[aria-current="date"] small { color: var(--cp-on); }
.ap-day.is-today { box-shadow: inset 0 0 0 1px var(--ds-border-strong); }
.ap-day.is-out { visibility: hidden; }

/* Săptămâna: o coloană pe zi (desktop), zilele una sub alta (telefon) */
.ap-week { display: grid; gap: var(--ds-space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ap-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--ds-space-2); } }
.ap-col { min-width: 0; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface); }
.ap-col.is-empty { background: var(--ds-surface-sunken); }
.ap-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: var(--ds-space-2) var(--ds-space-3); border-bottom: 1px solid var(--ds-border); }
@media (min-width: 900px) { .ap-col__head { flex-direction: column; align-items: center; gap: 0; text-align: center; } }
.ap-col__day { font-size: var(--ds-text-sm); font-weight: 800; text-transform: capitalize; }
.ap-col__date { color: var(--ds-text-muted); font-size: var(--ds-text-xs); font-weight: 700; }
.ap-col__body { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--ds-space-2); }
@media (min-width: 900px) { .ap-col__body { flex-direction: column; flex-wrap: nowrap; max-height: 420px; overflow-y: auto; scrollbar-width: thin; } }
.ap-col__none { margin: 0; padding: 4px 2px; color: var(--ds-text-muted); font-size: var(--ds-text-xs); }

/* Ora = un chip apăsabil (radio ascuns peste el, ca să meargă și fără JS și cu tastatura) */
.ap-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-slot { position: relative; display: inline-flex; }
.ap-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ap-slot span { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-md); background: var(--ds-surface); color: var(--ds-text); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .ap-col .ap-slot, .ap-col .ap-slot span { width: 100%; min-width: 0; min-height: 38px; } }
.ap-slot:hover span { border-color: var(--cp-color); }
.ap-slot input:focus-visible + span { outline: 2px solid var(--cp-color); outline-offset: 2px; }
.ap-slot input:checked + span { background: var(--cp-color); border-color: var(--cp-color); color: var(--cp-on); }
.ap-slot input:disabled + span { border-style: dashed; color: var(--ds-text-disabled); text-decoration: line-through; }
.ap-confirm { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-md); }
.ap-confirm__text { margin: 0; font-weight: 700; }
.ap-confirm__text small { display: block; color: var(--ds-text-muted); font-weight: 500; }
@media (max-width: 900px) { .ap-confirm { bottom: calc(68px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------------ Telefon */
@media (max-width: 900px) {
    .cp-shell ~ .sh-foot { padding-left: var(--ds-space-4); }
    .cp-main--solo { padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-10); }
    .sh-buy { position: static; }
    .sh-account .ds-card__body { padding: var(--ds-space-4); }
}
@media (max-width: 640px) {
    .cp-header { padding: 0 12px; }
    .cp-logo { max-height: 30px; max-width: 128px; }
    /* Numele brandului (fără logo): pe două rânduri, mai mic, niciodată tăiat la două litere. */
    .cp-wordmark { font-size: 14px; max-width: 42vw; }
    .cp-hello h1, .sh-hero h1 { font-size: var(--ds-text-2xl); }
    .cp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-tile__value { font-size: var(--ds-text-xl); }
    .cp-body .ds-page-header__title { font-size: var(--ds-text-2xl); }
    .cp-body .ds-list__item { flex-wrap: wrap; padding: var(--ds-space-3) var(--ds-space-4); }
    .cp-body .ds-list__meta { width: 100%; justify-content: flex-start; }
    .cp-auth { margin: var(--ds-space-2) auto; }
    .cp-auth .ds-card__body { padding: var(--ds-space-5) var(--ds-space-4); }
    .sh-foot { padding: var(--ds-space-5) var(--ds-space-4) var(--ds-space-8); }
    .sh-steps li { font-size: var(--ds-text-xs); }
    .sh-steps-wrap { margin-bottom: var(--ds-space-4); }
    .ap-day { min-height: 44px; }
    .ap-month { border-spacing: 2px; }
}
@media print {
    .cp-header, .ga1-side, .ga1-tabbar, .ap-confirm { display: none !important; }
}
