/* =============================================================================
 * voice-order-widget.css — lebegő MunkaMester kabala + hangos rendelés ablak
 * (templates/fragments/voice-order-widget.html). Önálló: világos (platform) és sötét (portal) oldalon is
 * ugyanúgy néz ki, ezért a színeket a .vow saját változói adják (a kabala színei a platform.html-ből).
 * Hangulat: .vow[data-mood] = idle · listening · speaking · happy · sad (a voice-order-widget.js állítja).
 * Mobil-első: alap = telefon (alsó lap), szélesebb nézet @media (min-width: 640px).
 * doc: D:\IdeaProjects\workOrderManagement\docs\hangos-rendeles-asszisztens\01-WEBES-HANGOS-RENDELES-TERV-FAZIS1-2026-12-03.md §17
 * ============================================================================= */

.vow {
    --vow-brand: #0b5fff;
    --vow-brand-dark: #0847c2;
    --vow-orange: #FF6B35;
    --vow-text: #0b1c2f;
    --vow-muted: #52606d;
    --vow-surface: #ffffff;
    --vow-soft: #f1f5f9;
    --vow-border: #dbe3ec;
    --vow-success: #16a34a;
    --vow-danger: #dc2626;
    --vow-shadow: 0 18px 44px rgba(11, 28, 47, .28);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* A „hidden” attribútum mindig nyerjen (a gomb-stílusok display-t állítanak). */
.vow [hidden] { display: none !important; }

/* ── A figura (lebegő gomb) ── */
.vow-mascot {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1080;
    width: 78px;
    height: 100px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
    transition: transform .2s ease;
}
.vow-mascot:hover { transform: scale(1.06); }
.vow-mascot:focus-visible { outline: 3px solid var(--vow-brand); outline-offset: 4px; border-radius: 18px; }
.vow-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.vow-body, .vow-eyes, .vow-halo, .vow-listen-ring, .vow-tear, .vow-check, .vow-mouth-talk { transform-box: fill-box; }
.vow-body { transform-origin: center bottom; animation: vow-bob 2.2s ease-in-out infinite alternate; }
.vow-eyes { transform-origin: center; animation: vow-blink 5.5s infinite; }
.vow-halo { transform-origin: center; animation: vow-halo 4.2s ease-in-out infinite; }

/* Hangulat szerinti részek — alapból csak a mosoly és a pipa látszik. */
.vow-listen-ring, .vow-tear, .vow-brows-sad, .vow-mic,
.vow-mouth-talk, .vow-mouth-grin, .vow-mouth-sad { opacity: 0; }

/* Hallgat: pulzáló kék gyűrű + mikrofon-jel */
.vow[data-mood="listening"] .vow-listen-ring { opacity: 1; transform-origin: center; animation: vow-ring 1.6s ease-out infinite; }
.vow[data-mood="listening"] .vow-mic,
.vow[data-mood="speaking"] .vow-mic { opacity: 1; }
.vow[data-mood="listening"] .vow-check,
.vow[data-mood="speaking"] .vow-check { opacity: 0; }

/* Beszél: a száj nyílik-csukódik */
.vow[data-mood="speaking"] .vow-mouth-smile { opacity: 0; }
.vow[data-mood="speaking"] .vow-mouth-talk { opacity: 1; transform-origin: center; animation: vow-talk .32s ease-in-out infinite alternate; }

/* Boldog: ugrál, nagy nevetés, kiugró pipa */
.vow[data-mood="happy"] .vow-mouth-smile { opacity: 0; }
.vow[data-mood="happy"] .vow-mouth-grin { opacity: 1; }
.vow[data-mood="happy"] .vow-body { animation: vow-jump .55s cubic-bezier(.3, 1.6, .5, 1) 6 alternate, vow-bob 2.2s ease-in-out 3.3s infinite alternate; }
.vow[data-mood="happy"] .vow-check { transform-origin: center; animation: vow-pop .6s cubic-bezier(.3, 1.8, .5, 1) both; }

/* Szomorú: lehajtott fej, szomorú száj és szemöldök, könnycsepp, fakóbb szín */
.vow[data-mood="sad"] .vow-svg { filter: saturate(.45); }
.vow[data-mood="sad"] .vow-body { animation: none; transform: rotate(-6deg) translateY(8px); transition: transform .6s ease; }
.vow[data-mood="sad"] .vow-mouth-smile,
.vow[data-mood="sad"] .vow-brows-normal,
.vow[data-mood="sad"] .vow-check { opacity: 0; }
.vow[data-mood="sad"] .vow-mouth-sad,
.vow[data-mood="sad"] .vow-brows-sad { opacity: 1; }
.vow[data-mood="sad"] .vow-tear { opacity: 1; transform-origin: center top; animation: vow-tear 1.8s ease-in infinite; }
.vow[data-mood="sad"] .vow-pupil { transform: translateY(4px); }

@keyframes vow-bob   { from { transform: translateY(2px); } to { transform: translateY(-7px); } }
@keyframes vow-blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes vow-halo  { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes vow-ring  { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes vow-talk  { from { transform: scaleY(.25); } to { transform: scaleY(1.1); } }
@keyframes vow-jump  { from { transform: translateY(0) rotate(0); } to { transform: translateY(-34px) rotate(4deg); } }
@keyframes vow-pop   { 0% { transform: scale(0); } 70% { transform: scale(1.5); } 100% { transform: scale(1.15); } }
@keyframes vow-tear  { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }

/* ── Szövegbuborék ── */
.vow-bubble {
    position: fixed;
    right: calc(max(14px, env(safe-area-inset-right)) + 86px);
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px);
    z-index: 1080;
    max-width: min(230px, calc(100vw - 120px));
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    background: var(--vow-surface);
    color: var(--vow-text);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: var(--vow-shadow);
    cursor: pointer;
    animation: vow-bubble-in .35s ease both;
}
.vow[data-mood="happy"] .vow-bubble { background: #dcfce7; }
.vow[data-mood="sad"] .vow-bubble { background: #e0f2fe; }
@keyframes vow-bubble-in { from { opacity: 0; transform: translateY(8px) scale(.95); } to { opacity: 1; transform: none; } }

/* ── Beszélgető ablak — telefonon alsó lap ── */
.vow-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1090;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    background: var(--vow-surface);
    color: var(--vow-text);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--vow-shadow);
    padding-bottom: env(safe-area-inset-bottom);
    animation: vow-panel-in .28s ease both;
}
@keyframes vow-panel-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.vow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 12px 18px;
    border-bottom: 1px solid var(--vow-border);
}
.vow-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--vow-text); }
.vow-title i { color: var(--vow-orange); }
.vow-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--vow-soft);
    color: var(--vow-text);
    font-size: 1.1rem;
    cursor: pointer;
}

.vow-body-scroll {
    overflow-y: auto;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vow-intro { margin: 0; color: var(--vow-muted); font-size: .95rem; }
.vow-consent-text { margin: 0 0 6px; color: var(--vow-muted); font-size: .85rem; }
.vow-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.vow-check-label input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--vow-brand); }
.vow-check-label a, .vow-alt a { color: var(--vow-brand); }

.vow-controls { display: flex; flex-direction: column; gap: 8px; }
.vow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.vow-btn-primary { border: 0; background: var(--vow-brand); color: #fff; min-height: 54px; }
.vow-btn-primary:hover:not(:disabled) { background: var(--vow-brand-dark); }
.vow-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.vow-btn-outline { border: 2px solid var(--vow-border); background: var(--vow-surface); color: var(--vow-text); }
.vow-btn-outline[aria-pressed="true"] { border-color: #f59e0b; color: #b45309; }
.vow-btn:focus-visible, .vow-close:focus-visible, .vow-check-label input:focus-visible {
    outline: 3px solid var(--vow-brand);
    outline-offset: 2px;
}

.vow-status { margin: 0; font-weight: 600; }
.vow-result, .vow-declined, .vow-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
}
.vow-result { background: #dcfce7; border-left: 4px solid var(--vow-success); }
.vow-result i { color: var(--vow-success); font-size: 1.3rem; }
.vow-declined { background: #e0f2fe; border-left: 4px solid #0284c7; }
.vow-declined i { color: #0284c7; font-size: 1.3rem; }
.vow-error { background: #fee2e2; border-left: 4px solid var(--vow-danger); }
/* Karbantartás (doc 01 §18): csak az üzenet látszik. */
.vow-maintenance { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
                   background: #fef3c7; border-left: 4px solid #f59e0b; }
.vow-maintenance i { color: #b45309; font-size: 1.3rem; }
.vow-maintenance a { color: var(--vow-brand); }
.vow.is-maintenance .vow-intro, .vow.is-maintenance .vow-consent, .vow.is-maintenance .vow-controls,
.vow.is-maintenance .vow-status, .vow.is-maintenance .vow-error, .vow.is-maintenance .vow-transcript,
.vow.is-maintenance .vow-alt { display: none; }
.vow-error i { color: var(--vow-danger); }

.vow-transcript {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 52vh;
    max-height: 52dvh;
    min-height: 140px;
    padding: 10px;
    border: 1px solid var(--vow-border);
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.5;
    overscroll-behavior: contain;
    overflow-y: auto;
}
.vow-transcript:empty { display: none; }
/* A sorokat a voice-order.js „vo-line” osztállyal hozza létre. */
.vow-transcript .vo-line {
    max-width: 90%;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--vow-soft);
    overflow-wrap: anywhere;
}
.vow-transcript .vo-line-user { align-self: flex-end; background: #dbeafe; }
.vow-transcript .vo-speaker { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 600; color: var(--vow-muted); }
.vow-alt { margin: 0; color: var(--vow-muted); font-size: .9rem; }

/* ── Konfetti-vászon ── */
.vow-confetti {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    pointer-events: none;
}

/* ── „LEMONDVA” pecsét (doc 01 §23) ── */
.vow-stamp {
    position: fixed;
    left: 50%;
    top: 42%;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 28px;
    background: #fff;
    border: 4px solid var(--vow-success);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
    color: #14532d;
    text-align: center;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-4deg);
    animation: vow-stamp-in .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
.vow-stamp[hidden] { display: none; }
.vow-stamp svg { width: 92px; height: 92px; }
.vow-stamp-ring { fill: #dcfce7; stroke: var(--vow-success); stroke-width: 6; }
.vow-stamp-tick {
    fill: none;
    stroke: var(--vow-success);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: vow-tick-draw .5s .35s ease-out forwards;
}
.vow-stamp-title { font-size: 1.6rem; letter-spacing: .12em; text-transform: uppercase; }
.vow-stamp-text { font-weight: 600; }
.vow-stamp.is-leaving { animation: vow-stamp-out .4s ease-in forwards; }
@keyframes vow-stamp-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(-14deg); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
}
@keyframes vow-tick-draw { to { stroke-dashoffset: 0; } }
@keyframes vow-stamp-out { to { opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-4deg); } }

/* Nyitott ablaknál telefonon a figura a lap FÖLÉ, középre ül (a lap max. 85vh), hogy a reakciója látsszon;
   a buborék ilyenkor elbújik (az ablakban úgyis ott az üzenet). */
.vow.is-open .vow-mascot {
    z-index: 1095;
    width: 60px;
    height: 78px;
    right: calc(50% - 30px);
    bottom: auto;
    top: max(4px, calc(15vh - 84px));
}
.vow.is-open .vow-bubble { display: none; }

/* ── Szélesebb kijelző: kártya a figura fölött ── */
@media (min-width: 640px) {
    .vow-mascot { width: 96px; height: 124px; right: 22px; bottom: 22px; }
    .vow-bubble { right: 124px; bottom: 74px; max-width: 250px; }
    .vow-panel {
        left: auto;
        right: 22px;
        bottom: 156px;
        width: 440px;
        max-height: min(760px, calc(100vh - 190px));
        border-radius: 20px;
        padding-bottom: 0;
    }
    .vow-controls { flex-direction: row; flex-wrap: wrap; }
    .vow-controls .vow-btn-primary { flex: 1 1 100%; }
    .vow.is-open .vow-mascot { width: 96px; height: 124px; right: 22px; bottom: 22px; top: auto; }
    .vow.is-open .vow-bubble { display: block; }
    .vow-transcript { max-height: min(420px, calc(100vh - 470px)); }
}

/* ─── doc 01 §24 — „Legújabb” gomb az átiraton + rendelés-összefoglaló panel ─── */
.vow-transcript-wrap { position: relative; }
.vow-jump {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--vow-border);
    border-radius: 999px;
    background: var(--vow-surface);
    color: var(--vow-brand);
    font: inherit;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(11, 28, 47, .18);
    cursor: pointer;
}
.vow-jump:focus-visible { outline: 3px solid var(--vow-brand); outline-offset: 2px; }

/* A panel átveszi az átirat helyét; az átirat a gombbal visszahozható. */
.vow .has-summary .vow-intro,
.vow .has-summary .vow-transcript-wrap { display: none; }
.vow .has-summary.show-transcript .vow-transcript-wrap { display: block; }

.vow-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: vow-summary-in .35s ease both;
}
@keyframes vow-summary-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vow-summary-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px 14px;
    border-radius: 16px;
    background: #dcfce7;
    color: #14532d;
    text-align: center;
}
.vow-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--vow-success);
    color: #fff;
    font-size: 1.8rem;
}
.vow-summary-title { margin: 4px 0 0; font-size: 1.2rem; font-weight: 800; color: #14532d; }
.vow-summary-code-label { font-size: .8rem; font-weight: 600; }
.vow-summary-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #fff;
    color: var(--vow-text);
    font: 700 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.vow-summary-code:focus-visible { outline: 3px solid var(--vow-brand); outline-offset: 2px; }
.vow-summary-copied { font-size: .85rem; font-weight: 600; }

.vow-summary-rows { margin: 0; }
.vow-summary .vo-summary-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px 2px;
    border-top: 1px solid var(--vow-border);
}
.vow-summary .vo-summary-row:first-child { border-top: 0; }
.vow-summary .vo-summary-row i { grid-row: span 2; color: var(--vow-muted); font-size: 1.15rem; line-height: 1.3; }
.vow-summary .vo-summary-row dt { font-size: .8rem; font-weight: 600; color: var(--vow-muted); }
.vow-summary .vo-summary-row dd { margin: 0; font-size: 1rem; color: var(--vow-text); overflow-wrap: anywhere; }

.vow-summary-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--vow-soft);
    color: var(--vow-muted);
    font-size: .9rem;
    line-height: 1.45;
}
.vow-summary-actions { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) {
    .vow-summary-actions { flex-direction: row; }
    .vow-summary-actions .vow-btn { flex: 1 1 0; }
}

/* ─── doc 01 §25 C2 — pihenő figura: 30 mp tétlenség után (JS: is-resting) a nyugalmi animációk állnak,
   csak csukott ablaknál és nyugalmi hangulatban. Miért: a végtelen animáció + drop-shadow folyamatos újrarajzolás. ─── */
.vow.is-resting:not(.is-open)[data-mood="idle"] .vow-body,
.vow.is-resting:not(.is-open)[data-mood="idle"] .vow-eyes,
.vow.is-resting:not(.is-open)[data-mood="idle"] .vow-halo { animation-play-state: paused; }

/* Mozgáscsökkentés: nincs animáció, a hangulat színnel / ikonnal látszik (konfetti sincs — JS). */
@media (prefers-reduced-motion: reduce) {
    .vow *, .vow *::before, .vow *::after { animation: none !important; transition: none !important; }
    /* Animáció nélkül a pipa azonnal teljes legyen (különben a dashoffset miatt láthatatlan). */
    .vow-stamp-tick { stroke-dashoffset: 0; }
}

/* ─── doc 01 §26 — rendelés-ELŐNÉZET a mentés előtt: kék fej (még nem kész), két gomb ─── */
.vow-preview-head { background: #e0edff; color: #0b2a5c; }
.vow-preview-badge { background: var(--vow-brand); }
.vow-preview .vow-summary-title { color: #0b2a5c; }
.vow-preview-sub { font-size: .85rem; font-weight: 600; }
.vow-preview .vow-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── doc 01 §28 K3 — homokóra keresés közben ─── */
.vow-working { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--vow-brand); font-weight: 600; }
.vow-working[hidden] { display: none; }
.vow-working .bi { display: inline-block; font-size: 1.2rem; animation: vow-hourglass 1.6s ease-in-out infinite; }
@keyframes vow-hourglass { 0%, 40% { transform: rotate(0deg); } 60%, 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .vow-working .bi { animation: none; } }

/* ─── docs 01 §31 U2 — mobilon az ablak alja nem lóghat ki; az előnézet gombjai mindig látszanak ─── */
/* Flex-oszlopban a görgethető rész csak min-height: 0-val tud összemenni — enélkül az ablak a képernyő alá nőtt,
   és az előnézet gombjai se nem látszottak, se nem voltak elgörgethetők (élő teszt 12-04, telefon). */
.vow-body-scroll { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
/* Az előnézet gombsora az ablak alján ragad, amíg az előnézet látszik. */
.vow-preview .vow-summary-actions {
    position: sticky;
    bottom: -18px;               /* a görgethető rész alsó belső margója — így a sáv egészen az aljáig ér */
    z-index: 2;
    margin: 0 -18px -18px;
    padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--vow-surface);
    border-top: 1px solid var(--vow-border);
    box-shadow: 0 -6px 14px rgba(11, 28, 47, .08);
}
/* Telefonon tömörebb előnézet: kisebb fejléc, sűrűbb sorok — több fér ki görgetés nélkül. */
@media (max-width: 639px) {
    .vow-preview .vow-summary-head { padding: 10px 12px; gap: 2px; }
    .vow-preview .vow-summary-badge { display: none; }
    .vow-preview .vow-summary-title { margin: 0; font-size: 1.05rem; }
    .vow-preview .vo-summary-row { padding: 6px 2px; }
    .vow-preview .vow-summary-actions .vow-btn { min-height: 48px; }
}

/* ─── doc 01 §32 — „Megrendelem” a lezárult beszélgetés után: villogó fő gomb ─── */
.vow-preview.is-late-order { box-shadow: 0 0 0 2px var(--vow-brand); }
.vow-preview.is-late-order #voPreviewConfirm {
    font-weight: 700;
    animation: vow-late-pulse 1.4s ease-in-out infinite;
}
.vow-preview.is-late-order #voPreviewConfirm:disabled { animation: none; }
@keyframes vow-late-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(11, 95, 255, .55); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(11, 95, 255, 0); transform: scale(1.03); }
}
/* Mozgás-érzékenyeknek: nincs villogás, csak vastag, jól látható keret. */
@media (prefers-reduced-motion: reduce) {
    .vow-preview.is-late-order #voPreviewConfirm { animation: none; outline: 3px solid var(--vow-brand); outline-offset: 2px; }
}

/* ─── doc 01 §40 D — helyben szerkeszthető előnézet- és összefoglaló-sorok (§40 D, D3) + a billentyűzet fölé emelt panel ─── */
.vow-summary .vo-summary-row.is-editable { cursor: pointer; border-radius: 10px; }
.vow-summary .vo-summary-row.is-editable:hover,
.vow-summary .vo-summary-row.is-editable:focus-visible { background: var(--vow-soft); outline: none; }
.vow-summary .vo-summary-row.is-editable:focus-visible { box-shadow: 0 0 0 3px var(--vow-brand); }
.vow-summary .vo-row-edit-hint { margin-left: 8px; color: var(--vow-brand); font-weight: 700; white-space: nowrap; }
.vow-summary .vo-summary-row.is-editing { cursor: default; background: var(--vow-soft); }
.vow-summary .vo-summary-row.is-editing .vo-row-edit-hint { display: none; }
.vow-preview.is-late-order .vo-row-edit-hint { display: none; }
.vow-summary.is-editing .vow-summary-actions { display: none; }
.vow-summary .vo-row-editor { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.vow-summary .vo-row-editor-label { font-size: .85rem; font-weight: 600; color: var(--vow-muted); }
.vow-summary .vo-row-editor-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--vow-border);
    border-radius: 10px;
    background: var(--vow-surface);
    color: var(--vow-text);
    font-size: 16px; /* 16 px alatt az iOS ránagyítana a mezőre */
}
.vow-summary .vo-row-editor-input:focus-visible { outline: 3px solid var(--vow-brand); outline-offset: 1px; }
.vow-summary .vo-row-editor-error { margin: 0; color: #b42318; font-size: .9rem; font-weight: 600; }
.vow-summary .vo-row-editor-error[hidden] { display: none; }
.vow-summary .vo-row-editor-actions { display: flex; gap: 8px; margin-top: 4px; }
.vow-summary .vo-row-editor-actions button {
    flex: 1 1 0;
    min-height: 44px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.vow-summary .vo-row-editor-save { border: 0; background: var(--vow-brand); color: #fff; }
.vow-summary .vo-row-editor-cancel { border: 1px solid var(--vow-border); background: var(--vow-surface); color: var(--vow-text); }
.vow-summary .vo-row-editor-actions button:disabled { opacity: .6; cursor: wait; }
/* A JS a billentyűzet magasságát a --vo-kb változóba írja (visualViewport): a panel ennyivel feljebb kerül. */
html.vo-editing-preview .vow-panel {
    bottom: var(--vo-kb, 0px);
    max-height: calc(92dvh - var(--vo-kb, 0px));
}
@media (min-width: 640px) {
    html.vo-editing-preview .vow-panel {
        bottom: calc(156px + var(--vo-kb, 0px));
        max-height: min(760px, calc(100vh - 190px - var(--vo-kb, 0px)));
    }
}

/* ─── doc 01 §42 — tömör összefoglaló + szebb indítás (élő teszt 12-04, telefon: a panel teteje kicsúszott) ─── */
/* Hozzájárulás: kiemelt, egészében koppintható kártya. */
.vow-consent-card {
    padding: 12px;
    border: 2px solid var(--vow-brand);
    border-radius: 14px;
    background: #e0edff;
    color: #0b2a5c;
    font-size: .95rem;
}
.vow-consent-card input { width: 26px; height: 26px; }
/* Megjegyzett hozzájárulás / beszélgetés közben: csak a zöld pirula. */
.vow-consent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #14532d;
    font-size: .85rem;
    font-weight: 600;
}
.vow-consent-chip[hidden] { display: none; }
.vow-consent-details {
    min-height: 32px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.vow-consent-details:focus-visible { outline: 3px solid var(--vow-brand); outline-offset: 2px; }
#voiceOrder.consent-remembered .vow-consent { display: none; }
#voiceOrder.is-talking .vow-intro,
#voiceOrder.is-talking .vow-consent,
#voiceOrder.is-talking #voStart { display: none; }
/* Kerek indító gomb hullámforma-ikonnal, alatta a felirat. */
.vow-btn-primary.vow-start-round {
    flex-direction: column;
    gap: 6px;
    align-self: center;
    min-height: 0;
    padding: 4px 12px;
    background: transparent;
    color: var(--vow-brand);
}
.vow-btn-primary.vow-start-round:hover:not(:disabled) { background: transparent; }
.vow-start-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--vow-brand);
    color: #fff;
    font-size: 2.1rem;
    box-shadow: 0 6px 16px rgba(11, 95, 255, .3);
}
.vow-start-round:hover:not(:disabled) .vow-start-circle { background: var(--vow-brand-dark); }
@media (min-width: 640px) { .vow-controls .vow-btn-primary.vow-start-round { flex: 0 0 auto; } }

/* Tömör fej: pipa + cím + azonosító egy sorban. */
.vow-summary { gap: 8px; }
.vow-summary-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px;
    border-radius: 12px;
    text-align: left;
}
.vow-summary-badge { width: 28px; height: 28px; font-size: 1rem; }
.vow-summary-title { margin: 0; font-size: 1rem; }
.vow-summary-code-label { display: none; }
.vow-summary-code { min-height: 36px; margin-left: auto; padding: 0 10px; font-size: .9rem; }
.vow-preview-sub { flex-basis: 100%; font-size: .8rem; }
/* Sor: ikon · érték · ceruza; a címke csak a képernyőolvasónak szól. */
.vow-summary .vo-summary-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    padding: 6px 2px;
    position: relative;
}
.vow-summary .vo-summary-row i { grid-row: auto; font-size: 1rem; }
.vow-summary .vo-summary-row dt {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.vow-summary .vo-summary-row dd { font-size: .95rem; line-height: 1.35; }
.vow-summary .vo-row-edit-hint { margin: 0; font-size: 1rem; }
.vow-summary .vo-summary-row.is-editing dd { grid-column: 2 / 4; }
.vow-summary-note { padding: 6px 10px; font-size: .8rem; }
/* Gombok mindig egy sorban, kisebbek. */
.vow-summary-actions { flex-direction: row; }
.vow-summary-actions .vow-btn { flex: 1 1 0; min-height: 44px; padding: 8px 10px; font-size: .9rem; }
/* A ceruza a kiemelő színt kapja (a sor-ikonok szürkék). */
.vow-summary .vo-row-edit-hint i { color: var(--vow-brand); }
/* Kész összefoglaló / előnézet alatt nem kell az indítás és a hozzájárulás (a „Bezárás” után visszajönnek). */
#voiceOrder.has-summary .vow-consent,
#voiceOrder.has-summary #voStart { display: none; }

