/* Onboarding / objednávka kartičiek (order.html): chat s krokmi,
   vyhľadanie podniku, produkty, formulár, plán a náhľad telefónu. */

/* Tokeny, písma a polia (.field, .grid-2, .msg) sú v admin_base.html.
   Tu je len rozloženie onboardingu. Čiernobiele: farbu má iba náhľad. */
body.onboarding .wrap { max-width: 1180px; }
body.onboarding .topbar { margin-bottom: 28px; }
body.onboarding .msg.err {
    background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
    font-size: 13.5px; line-height: 1.5;
}
body.onboarding .msg.err a { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ob { --ease: cubic-bezier(.23, 1, .32, 1); --r: 14px; }
.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.ob-chat { min-width: 0; max-width: 640px; }

/* ---- hlavička a postup ---- */
.ob-head { margin-bottom: 28px; }
.ob-head h1 { font: 600 clamp(26px, 3.6vw, 34px)/1.15 var(--font-head); letter-spacing: -.02em; margin: 0 0 22px; }
.ob-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ob-progress li { position: relative; padding-top: 10px; font: 600 10.5px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ob-progress li::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: var(--line); transition: background-color .3s var(--ease);
}
.ob-progress li.is-done::before, .ob-progress li.is-current::before { background: var(--ink); }
.ob-progress li.is-current { color: var(--ink); }
.ob-progress li.is-done { color: var(--muted); }

/* ---- konverzácia ---- */
.ob-step { padding: 6px 0 18px; }
.ob-step[hidden] { display: none; }
.ob-step.is-entering { animation: ob-in .32s var(--ease) both; }
.ob-step.is-entering .ob-block { animation: ob-in .36s var(--ease) .08s both; }
@keyframes ob-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ob-msg { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ob-avatar {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
    display: grid; place-items: center; background: var(--surface); overflow: hidden;
}
.ob-avatar img { width: 20px; height: 20px; }
.ob-msg p {
    margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r);
    background: var(--surface); font-size: 15px; line-height: 1.55; max-width: 520px;
}
.ob-msg strong { font-weight: 600; }
.ob-typing {
    display: inline-flex; gap: 4px; padding: 16px 18px; border: 1px solid var(--line);
    border-radius: 4px var(--r) var(--r) var(--r); background: var(--surface);
}
.ob-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: ob-dot 1s ease-in-out infinite; }
.ob-typing i:nth-child(2) { animation-delay: .15s; }
.ob-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ob-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
/* Vypisovanie správy po slovách (onboarding.js enter → ob-stream). */
.ob-stream .ob-w { opacity: 0; animation: ob-w .28s ease forwards; animation-delay: var(--d, 0ms); }
@keyframes ob-w { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }

.ob-answer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 6px 44px; }
.ob-answer[hidden] { display: none; }
.ob-answer-text {
    margin: 0; padding: 10px 14px; border-radius: var(--r) 4px var(--r) var(--r);
    background: var(--ink); color: var(--bg); font-size: 14.5px; line-height: 1.45; max-width: 420px; overflow-wrap: anywhere;
}
.ob-answer-text small { display: block; opacity: .65; font-size: 12.5px; }
.ob-edit {
    order: -1; border: 0; background: none; padding: 4px; cursor: pointer;
    font: 600 10.5px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
    transition: color .15s ease;
}
.ob-edit:hover, .ob-edit:focus-visible { color: var(--ink); }

.ob-block {
    margin-left: 44px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r);
    background: rgba(23, 23, 23, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ob-block[hidden] { display: none; }
.ob-label { display: block; font: 600 10.5px var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ob-sub { font: 600 10.5px var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.ob-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ob-btn {
    padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
    background: var(--ink); color: var(--bg); font: 600 13.5px var(--font-body);
    transition: transform 140ms var(--ease), background-color .15s ease, color .15s ease;
}
.ob-btn:active { transform: scale(.97); }
.ob-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ob-btn-ghost:hover { border-color: var(--ink); }
.ob-btn:focus-visible, .ob-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-link {
    border: 0; background: none; padding: 0; margin-top: 14px; cursor: pointer; color: var(--muted);
    font: 400 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.ob-link:hover { color: var(--ink); }
.ob-link[hidden] { display: none; }
.ob-inline-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; }
.ob-inline-error[hidden] { display: none; }
body.onboarding .field input.missing { border-color: var(--danger); }

/* ---- 1: vyhľadávanie ---- */
.ob-own { margin-bottom: 18px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip {
    padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
    color: var(--ink); font: 500 13.5px var(--font-body); cursor: pointer; transition: border-color .15s ease;
}
.ob-chip:hover, .ob-chip:focus-visible { border-color: var(--ink); outline: none; }
.ob-search { position: relative; }
.ob-search input {
    width: 100%; padding: 15px 44px 15px 46px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--surface); color: var(--ink); font: 400 16px var(--font-body);
    transition: border-color .15s ease;
}
.ob-search input:focus { outline: none; border-color: var(--ink); }
.ob-search-icon { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.ob-spinner {
    position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
    border: 1.5px solid var(--line-strong); border-top-color: var(--ink); animation: ob-spin .7s linear infinite;
}
.ob-spinner[hidden] { display: none; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-results { list-style: none; margin: 8px 0 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.ob-results[hidden] { display: none; }
.ob-result { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ob-result b { font-weight: 500; font-size: 14.5px; }
.ob-result span { font-size: 12.5px; color: var(--muted); }
.ob-result:hover, .ob-result[aria-selected="true"] { background: var(--surface-2); }
.ob-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 0; }
.ob-status:empty { display: none; }

.ob-confirm {
    margin-top: 4px; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--surface);
    animation: ob-in .3s var(--ease) both;
}
.ob-confirm[hidden] { display: none; }
.ob-confirm-media { position: relative; aspect-ratio: 600 / 220; background: #111; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.ob-confirm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-confirm-media img[hidden] { display: none; }
/* tmavý prechod dole, aby bol popisok autora čitateľný na každej fotke */
.ob-confirm-media:has(img:not([hidden]))::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.ob-confirm-credit { position: absolute; z-index: 1; left: 12px; bottom: 9px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .78); }
.ob-confirm-credit[hidden] { display: none; }
.ob-confirm-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.ob-confirm-placeholder { width: 64px; height: 40px; fill: none; stroke: #3a3a3a; stroke-width: 1.4; stroke-linejoin: round; }
.ob-confirm-body { padding: 16px 18px 18px; }
.ob-confirm-body h3 { font: 600 19px var(--font-head); margin: 0 0 4px; }
.ob-confirm-addr { margin: 0; color: var(--muted); font-size: 13.5px; }
.ob-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; }
.ob-rating[hidden] { display: none; }
.ob-stars { --pct: 0%; position: relative; font-size: 15px; letter-spacing: 2px; color: var(--line-strong); }
.ob-stars::before { content: "★★★★★"; }
.ob-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--ink); white-space: nowrap; }
.ob-manual { margin-top: 4px; }
.ob-manual[hidden] { display: none; }

/* ---- 2: produkty ---- */
.ob-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-product {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
    padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ink);
    cursor: pointer; font-family: inherit; transition: border-color .15s ease, transform 140ms var(--ease);
}
.ob-product:hover { border-color: var(--muted); }
.ob-product:active { transform: scale(.98); }
.ob-product[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ob-product:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-product-art { width: 100%; height: 74px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; margin-bottom: 6px; }
.ob-mini-card {
    width: 70px; height: 44px; border-radius: 5px; background: #0a0a0a; border: 1px solid #333;
    display: grid; place-items: center; transform: rotate(-6deg); transition: transform .3s var(--ease);
}
.ob-product:hover .ob-mini-card, .ob-product[aria-checked="true"] .ob-mini-card { transform: rotate(0) translateY(-2px); }
.ob-mini-mark { color: #fafafa; font: 700 17px var(--font-head); }
.ob-mini-mark svg { width: 20px; height: 20px; fill: none; stroke: #fafafa; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ob-product-name { font: 600 14.5px var(--font-head); }
.ob-product-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ob-tag { position: absolute; top: 10px; right: 10px; font: 600 9.5px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- 2: vlastný odkaz ---- */
.ob-url { margin-top: 16px; }
.ob-url[hidden] { display: none; }

/* ---- 3: formulár ---- */
.ob-drop {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer;
    border: 1px dashed var(--line-strong); border-radius: 12px; transition: border-color .15s ease, background-color .15s ease;
}
.ob-drop:hover, .ob-drop.is-over { border-color: var(--ink); background: var(--surface); }
.ob-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-drop img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.ob-drop img[hidden] { display: none; }
.ob-drop-text { font-size: 13px; color: var(--muted); }
.ob-drop-text strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.ob-fieldset { border: 0; padding: 0; margin: 22px 0 0; }
.ob-fieldset .hint { display: block; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.ob-fieldset .hint[hidden] { display: none; }
.ob-first { margin-top: 0; }
.ob-pill, .ob-seg label, .ob-color { position: relative; cursor: pointer; }
.ob-pill input, .ob-seg input, .ob-color input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-pill span {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    font: 500 13.5px var(--font-body); color: var(--muted); transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ob-pill:hover span { border-color: var(--muted); color: var(--ink); }
.ob-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ob-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ob-seg span {
    display: block; padding: 8px 16px; border-radius: 999px; text-align: center; white-space: nowrap;
    font: 600 12.5px var(--font-body); color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.ob-seg input:checked + span { background: var(--ink); color: var(--bg); }
.ob-pill input:focus-visible + span, .ob-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ob-color span {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18); transition: transform 140ms var(--ease), box-shadow .15s ease;
}
.ob-color:hover span { transform: scale(1.06); }
.ob-color input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.ob-color input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
.ob-color-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ob-color-custom span {
    background: conic-gradient(#e0292b, #f59e0b, #16a34a, #2563eb, #9333ea, #e0292b); color: #fff;
    font: 600 16px var(--font-body); text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.ob-color-custom.is-on span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.ob-pro-hint { margin: 20px 0 0; font-size: 12.5px; color: var(--muted); }
.ob-ptypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-ptype {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .15s ease, transform 140ms var(--ease);
}
.ob-ptype input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-ptype:hover { border-color: var(--muted); }
.ob-ptype:active { transform: scale(.98); }
.ob-ptype:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ob-ptype:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-ptype-icon svg { width: 24px; height: 24px; color: var(--ink); }
.ob-ptype-name { font: 600 15px var(--font-head); }
.ob-ptype-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ob-ptype-best { font-size: 12px; color: var(--faint); font-style: italic; }
.ob-ptype-none { justify-content: center; border-style: dashed; }
.ob-ptype-badge {
    position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px;
    background: var(--ink); color: var(--bg); font: 600 10px var(--font-label); letter-spacing: .06em;
}
.ob-ptype-badge[hidden] { display: none; }
.ob-seg label[hidden], .ob-ptype-note[hidden], .ob-cashback[hidden], .ob-reward-part[hidden],
.ob-tiers[hidden] { display: none; }
@media (max-width: 640px) { .ob-ptypes { grid-template-columns: minmax(0, 1fr); } }
/* Šablóny podľa typu podniku (looks.LOOKS) a kartičky (looks.CARD_LOOKS) */
.ob-looks, .ob-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-look, .ob-card-look {
    display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; overflow: hidden; text-align: left; cursor: pointer;
    background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px;
    font: inherit; transition: border-color .15s ease, transform 140ms var(--ease);
}
.ob-look:hover, .ob-card-look:hover { border-color: var(--muted); }
.ob-look:active, .ob-card-look:active { transform: scale(.98); }
.ob-look[aria-checked="true"], .ob-card-look[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ob-look:focus-visible, .ob-card-look:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-look-art { display: block; aspect-ratio: 3 / 1; background: var(--line); }
.ob-look-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ob-look-color { display: grid; place-items: center; width: 100%; height: 100%; }
.ob-look-color span { width: 38%; height: 26%; border-radius: 999px; }
.ob-look-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px 0; font: 600 13.5px var(--font-head); }
.ob-look-dots { display: inline-flex; gap: 3px; }
.ob-look-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.ob-look-note { padding: 0 10px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ob-look-none { justify-content: center; padding: 10px 0; border-style: dashed; }
.ob-card-art {
    position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8px;
    aspect-ratio: 16 / 9; margin: 8px 8px 2px; padding: 0 0 10%; overflow: hidden;
    border-radius: 9px; background: var(--cl-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.ob-card-art img { position: absolute; inset: 0 0 auto; width: 100%; height: 48%; object-fit: cover; }
.ob-card-look:not(.is-wallet) .ob-card-art img { height: 34%; }
.ob-card-dots { position: relative; display: flex; gap: 4px; }
.ob-card-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--cl-dot); opacity: .55; }
.ob-card-dots i.on { background: var(--cl-dot); opacity: 1; }
.ob-card-qr {
    position: relative; width: 16px; height: 16px; border-radius: 3px; background:
    repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 5px 5px; box-shadow: 0 0 0 2px #fff;
}
/* mini karta v rozložení Google Wallet: logo v kruhu hore, QR, pás s guličkami dole */
.ob-card-look.is-google .ob-card-art { flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; padding: 7% 0 0; }
.ob-card-look.is-google .ob-card-art::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ob-card-look.is-google .ob-card-art img { inset: auto 0 0; height: 38%; }
.ob-card-look.is-google .ob-card-dots { position: absolute; bottom: 11%; }
.ob-card-look.is-google .ob-card-dots i { border-color: #fff; }
.ob-card-look.is-google .ob-card-dots i.on { background: #fff; }
@media (max-width: 640px) { .ob-looks, .ob-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#theme-field[hidden] { display: none; }
.ob-loyalty-fields { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ob-loyalty-fields[hidden] { display: none; }
.ob-loyalty-fields .field { margin-bottom: 14px; }
.ob-chips-sm { margin-top: 8px; }
.ob-label-gap { margin-top: 16px; }
.ob-stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-stamp { position: relative; cursor: pointer; }
.ob-stamp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-stamp-dot {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--line-strong); color: var(--muted);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform 140ms var(--ease);
}
.ob-stamp-dot svg { width: 62%; height: 62%; }
.ob-stamp:hover .ob-stamp-dot { border-color: var(--muted); color: var(--ink); }
.ob-stamp:active .ob-stamp-dot { transform: scale(.94); }
.ob-stamp input:checked + .ob-stamp-dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ob-stamp input:focus-visible + .ob-stamp-dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.pv-switch { display: grid; width: 100%; margin: 0 0 16px; border-color: #2c2c2c; }
.pv-switch[hidden] { display: none; }
.pv-switch span { color: #8a8a8a; }
.pv-switch input:checked + span { background: #fafafa; color: #111; }
.ob-chips-sm .ob-chip { padding: 5px 11px; font-size: 12.5px; }
.ob-plan li[hidden] { display: none; }
.ob-plan-note { margin: 10px 0 0; font-size: 13px; color: var(--ink); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.ob-plan-note[hidden] { display: none; }
.ob-pack[hidden] { display: none; }

/* ---- 5: plán ---- */
.ob-qty-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ob-qty-row .hint { margin: 0; }
.ob-qty-row .ob-label { margin-bottom: 4px; }
.ob-qty { display: flex; align-items: center; gap: 4px; }
.ob-qty input {
    width: 46px; text-align: center; font: 500 16px var(--font-mono); padding: 6px 0; border: 0;
    background: transparent; color: var(--ink); -moz-appearance: textfield;
}
.ob-qty input:focus { outline: 1px solid var(--line-strong); border-radius: 6px; }
.ob-qty input::-webkit-inner-spin-button, .ob-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ob-qty-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
    color: var(--ink); font: 400 17px var(--font-mono); cursor: pointer; transition: border-color .15s ease, transform 140ms var(--ease);
}
.ob-qty-btn:hover { border-color: var(--ink); }
.ob-qty-btn:active { transform: scale(.94); }

.ob-billing {
    position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 20px 0 14px; padding: 4px;
    border: 1px solid var(--line-strong); border-radius: 999px; isolation: isolate;
}
.ob-billing-btn {
    position: relative; z-index: 1; padding: 8px 16px; border: 0; background: none; cursor: pointer; border-radius: 999px;
    font: 600 12.5px var(--font-body); color: var(--muted); transition: color .2s var(--ease); white-space: nowrap;
}
.ob-billing-btn[aria-pressed="true"] { color: var(--bg); }
.ob-billing-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-save { font: 600 10px var(--font-label); letter-spacing: .08em; opacity: .7; margin-left: 4px; }
/* Úzky mobil: „2 mesiace zadarmo“ pod „Ročne“, inak prepínač pretečie. */
@media (max-width: 480px) {
    .ob-save { display: block; margin: 1px 0 0; }
}
.ob-billing-thumb {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
    background: var(--ink); transition: transform .28s var(--ease);
}
.ob-billing.is-year .ob-billing-thumb { transform: translateX(100%); }

.ob-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
#card-contact[hidden], .ob-fine[hidden], .js-cards-only[hidden] { display: none; }
.ob-billing + .ob-plans { margin-top: 0; }
/* Bez kariet je „Jednorazovo“ skryté — ostávajú dva plány. */
@media (min-width: 641px) {
    .ob-plans:has(> #plan-free[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ob-plan {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .15s ease, opacity .2s ease;
}
.ob-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ob-plan:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-plan-name { font: 600 17px var(--font-head); }
.ob-plan-price { font: 400 12.5px var(--font-mono); color: var(--muted); }
.ob-plan-price strong { font: 700 15px var(--font-mono); color: var(--ink); }
.ob-plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ob-plan li { padding-left: 18px; position: relative; }
.ob-plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 4px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.ob-plan li strong { color: var(--ink); font-weight: 600; }
.ob-plan-badge { position: absolute; top: 14px; right: 14px; font: 600 9.5px var(--font-label); letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.ob-plans.is-off .ob-plan { opacity: .4; pointer-events: none; }
.ob-plan:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.ob-pack {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px;
    border: 1px dashed var(--line-strong); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
    font: 400 13px/1.45 var(--font-body); text-align: left; transition: border-color .15s ease;
}
.ob-pack:hover { border-color: var(--muted); }
.ob-pack[aria-pressed="true"] { border-style: solid; border-color: var(--ink); }
.ob-pack-state { flex: none; font: 600 10.5px var(--font-label); letter-spacing: .14em; text-transform: uppercase; }

.ob-summary { margin: 24px 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ob-summary > .muted { font-size: 13px; margin: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 4px 0; }
.sum-row small { font: 400 11px var(--font-mono); color: var(--muted); margin-left: 6px; }
.sum-row > span:last-child { font: 500 13.5px var(--font-mono); white-space: nowrap; }
.sum-row.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.sum-row.total > span:last-child { font: 700 20px var(--font-mono); }
.sum-row.vat { font-size: 12px; color: var(--muted); padding-top: 0; }
.sum-row.vat > span:last-child { font-size: 12px; }
.sum-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.consents { display: grid; gap: 10px; margin: 0 0 16px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent[hidden] { display: none; }
.consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; }
#client-error { margin: 0 0 14px; padding: 11px 12px; }
#client-error[hidden] { display: none; }

.ob-pay {
    width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 17px 18px;
    border: 0; border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--bg);
    font: 700 13px var(--font-label); letter-spacing: .1em; text-transform: uppercase;
    transition: transform 140ms var(--ease), box-shadow .2s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.ob-pay:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.ob-pay:active { transform: scale(.98); }
.ob-pay[disabled] { background: #2a2a2a; color: #777; cursor: not-allowed; box-shadow: none; transform: none; }
.pay-amount:not(:empty)::before { content: "\00a0·\00a0"; }
.ob-fine { margin: 12px 0 0; text-align: center; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.ob-fine a { color: var(--muted); }

/* firma + našepkávanie obce (rovnaké ako predtým) */
.switch { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--line-strong); position: relative; flex: none; transition: background .2s ease, border-color .2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s ease; }
.switch input:checked + .switch-track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(16px); background: var(--bg); }
.switch input:focus-visible + .switch-track { outline: 1px solid var(--ink); outline-offset: 2px; }
.switch-label { font: 600 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.company-fields { padding: 16px 16px 2px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 16px; }
.company-fields .hint { display: block; margin: 0 0 14px; }
.ac { position: relative; }
.ac-list {
    position: absolute; z-index: 25; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5); max-height: 290px; overflow-y: auto;
}
.ac-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ac-item span { font: 400 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.ac-item:hover, .ac-item[aria-selected="true"] { background: var(--surface-2); }

/* ---- náhľad ---- */
.ob-preview { position: sticky; top: 24px; }
.pv-inner {
    position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #222 0%, #141414 55%, #0e0e0e 100%);
}
.pv-caption { display: block; font: 600 10px var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 16px; }
.pv-place { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #2c2c2c; border-radius: 14px; background: rgba(255, 255, 255, .02); margin-bottom: 22px; transition: opacity .3s var(--ease); }
.pv-place-map { flex: none; width: 52px; height: 52px; border-radius: 10px; background: #1e1e1e center / cover no-repeat; border: 1px solid #2c2c2c; }
.pv-place-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-place-body strong { color: #fafafa; font: 600 14.5px var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-place-body span { color: #8a8a8a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* telefón — iPhone 15 Pro ako na landing page (.ph-frame v site.css):
   titánový rám, čierny lem (::before), odlesk skla (::after), Dynamic
   Island a bočné tlačidlá. Obrazovka a iframe s formulárom sú vnútri. */
.device {
    position: relative; margin: 0 auto; width: 100%; aspect-ratio: 71.6 / 146.6;
    border-radius: 16% / 7.8%;
    background: linear-gradient(135deg, #8d8983 0%, #d9d5cf 14%, #77736e 32%, #c7c3bd 55%, #6e6a65 78%, #b9b5af 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 0 0 2.5px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .5);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}
.device::before {
    content: ""; position: absolute; inset: .5% 1.1%; border-radius: 15.2% / 7.35%;
    background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.device::after {
    content: ""; position: absolute; z-index: 4; inset: 1.76% 3.6%; border-radius: 13.4% / 6.26%;
    background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}
.dev-btn { position: absolute; width: 1.6%; border-radius: 2px; background: linear-gradient(90deg, #5d5955, #bdb9b3 55%, #7d7974); }
.dev-btn-action   { left: -1.1%;  top: 17%;   height: 4.2%; }
.dev-btn-vol-up   { left: -1.1%;  top: 24.5%; height: 7.6%; }
.dev-btn-vol-down { left: -1.1%;  top: 34%;   height: 7.6%; }
.dev-btn-power    { right: -1.1%; top: 27%;   height: 11%; background: linear-gradient(270deg, #5d5955, #bdb9b3 55%, #7d7974); }
.device-screen {
    position: absolute; z-index: 1; inset: 1.76% 3.6%; border-radius: 13.4% / 6.26%;
    overflow: hidden; background: #FCF9F2; transition: background .25s ease;
}
.device.is-dark .device-screen { background: #141213; }
.device-status {
    position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 3;
    display: grid; grid-template-columns: 1fr 34% 1fr; align-items: center;
    font: 600 12.5px/1 -apple-system, 'SF Pro Text', system-ui, sans-serif;
    color: #111; pointer-events: none; transition: color .25s ease;
}
.device.is-dark .device-status { color: #f4efe8; }
.device-time { justify-self: center; }
.device-island { justify-self: center; width: 100%; height: 25px; border-radius: 999px; background: #000; }
.device-icons { grid-column: 3; justify-self: center; display: flex; gap: 4px; align-items: center; }
.device-icons svg { height: 9px; width: auto; display: block; }
.device-icons .device-battery { height: 11px; }
.device-battery text { fill: #FCF9F2; font-family: inherit; }
.device.is-dark .device-battery text { fill: #141213; }
.device-frame { position: absolute; top: 40px; left: 0; width: 100%; height: calc(100% - 40px); border: 0; display: block; background: transparent; }
.device-home { position: absolute; bottom: 7px; left: 50%; width: 34%; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(0, 0, 0, .35); z-index: 3; pointer-events: none; }
.device.is-dark .device-home { background: rgba(255, 255, 255, .45); }
.pv-note { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: #8a8a8a; }

.pv-sum { display: grid; gap: 0; margin: 0; padding-top: 4px; }
.pv-sum[hidden] { display: none; }
.pv-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #262626; font-size: 13px; }
.pv-sum dt { color: #8a8a8a; }
.pv-sum dd { margin: 0; color: #fafafa; font-family: var(--font-mono); text-align: right; }
.ob-preview[data-view="summary"] .device, .ob-preview[data-view="summary"] .pv-note { display: none; }

/* ---- mobil: náhľad pod aktívnym krokom (onboarding.js ho presúva) ---- */
@media (max-width: 900px) {
    .ob-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ob-chat { max-width: none; }
    .ob-preview { position: static; margin: 14px 0 0 44px; }
    .pv-inner { padding: 16px; border-radius: 16px; }
    .pv-place, .pv-caption { display: none; }
    .device { width: min(100%, 340px); }
    .ob-preview[data-view="summary"], .ob-preview[data-view="business"] { display: none; }
}
@media (max-width: 640px) {
    .ob-block { margin-left: 0; padding: 16px; }
    .ob-answer { margin-left: 0; }
    .ob-preview { margin-left: 0; }
    .ob-products { grid-template-columns: minmax(0, 1fr); }
    .ob-product { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .ob-product-art { width: 84px; height: 56px; margin: 0; }
    .ob-product-name { flex: 1; }
    .ob-product-hint { flex-basis: 100%; }
    .ob-plans { grid-template-columns: minmax(0, 1fr); }
    .ob-progress li span { display: none; }
    .ob-msg p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .ob-step.is-entering, .ob-step.is-entering .ob-block, .ob-confirm { animation: none; }
    .ob-typing i, .ob-spinner { animation: none; }
    .ob-stream .ob-w { animation: none; opacity: 1; }
    .ob-billing-thumb, .ob-mini-card, .ob-seg span, .ob-color span { transition: none; }
    .ob-btn:active, .ob-pay:active, .ob-qty-btn:active, .ob-product:active, .ob-color:hover span { transform: none; }
}
