/* =========================================================
   OZIIX – assistent.css
   OZIIX Assistentie: chatvenster rechtsonder op elke pagina.
   ========================================================= */
.oz-chat {
    --oz-c: #0E7490; --oz-cd: #0b5d73; --oz-cl: #5eb8d0; --oz-ink: #0f172a; --oz-mute: #64748b; --oz-line: #e2e8f0;
    --oz-ease: cubic-bezier(.22, 1, .36, 1); --oz-spring: cubic-bezier(.34, 1.45, .64, 1);
    position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px; line-height: 1.5; color: var(--oz-ink); -webkit-font-smoothing: antialiased;
}
.oz-chat *, .oz-chat *::before, .oz-chat *::after { box-sizing: border-box; }
:where(.oz-chat) button { font: inherit; color: inherit; cursor: pointer; }
.oz-chat svg { display: block; flex: none; }
.oz-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- startknop ---------- */
.oz-launch {
    position: relative; width: 62px; height: 62px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; padding: 0;
    background: linear-gradient(135deg, #0f172a, #123a52 60%, #0E7490);
    box-shadow: 0 14px 34px -10px rgba(15, 23, 42, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transition: transform .35s var(--oz-spring), box-shadow .3s;
    animation: ozPop .7s .4s var(--oz-spring) backwards;
}
.oz-launch:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 40px -12px rgba(14, 116, 144, .65); }
.oz-launch:active { transform: scale(.94); }
.oz-launch::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--oz-cl); opacity: 0; animation: ozRing 3.2s 1.6s ease-out infinite;
}
.oz-launch .oz-ic { width: 27px; height: 27px; position: absolute; transition: transform .45s var(--oz-spring), opacity .25s; }
.oz-launch .oz-i-x { opacity: 0; transform: rotate(-90deg) scale(.4); }
.oz-chat.is-open .oz-launch::before { animation: none; }
.oz-chat.is-open .oz-launch .oz-i-chat { opacity: 0; transform: rotate(90deg) scale(.4); }
.oz-chat.is-open .oz-launch .oz-i-x { opacity: 1; transform: none; }
.oz-dot { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.oz-badge {
    position: absolute; right: -3px; top: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff;
    font-size: .74rem; font-weight: 700; display: none; place-items: center; border: 2px solid #fff; animation: ozPop .4s var(--oz-spring);
}
.oz-badge.on { display: grid; }
@keyframes ozPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ozRing { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.65); opacity: 0; } }

/* ---------- tekstballon ---------- */
.oz-hello {
    position: absolute; right: 4px; bottom: 82px; width: 268px; background: #fff; border-radius: 20px 20px 6px 20px; padding: 14px 40px 14px 58px;
    box-shadow: 0 22px 50px -18px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05); font-size: .95rem; line-height: 1.4; font-weight: 600; color: var(--oz-ink); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85); transform-origin: bottom right;
    transition: opacity .35s, transform .55s var(--oz-spring), visibility 0s .55s;
}
.oz-hello::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; box-shadow: 3px 3px 5px -2px rgba(15, 23, 42, .12); }
.oz-hello.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .6s var(--oz-spring); }
.oz-hello p { margin: 0; }
.oz-wave { position: absolute; left: 14px; top: 50%; margin-top: -21px; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 50%; background: #ecfeff; transform-origin: 70% 75%; animation: ozWave 2.2s ease-in-out .6s infinite; }
@keyframes ozWave { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(16deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
.oz-hello .oz-hx { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--oz-mute); display: grid; place-items: center; transition: background .2s, transform .2s; }
.oz-hello .oz-hx:hover { background: #f1f5f9; transform: rotate(90deg); }
.oz-hello .oz-hx .oz-ic { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .oz-wave { animation: none; } }

/* ---------- vaste snelkoppelingen ---------- */

/* ---------- venster ---------- */
.oz-panel {
    position: absolute; right: 0; bottom: 80px; width: 392px; max-width: calc(100vw - 32px); height: min(660px, calc(100vh - 118px)); display: flex; flex-direction: column;
    background: #fff; border-radius: 24px; overflow: hidden; transform-origin: bottom right;
    box-shadow: 0 40px 90px -28px rgba(15, 23, 42, .6), 0 0 0 1px rgba(15, 23, 42, .06);
    opacity: 0; visibility: hidden; transform: translateY(28px) scale(.9);
    transition: opacity .3s, transform .55s var(--oz-spring), visibility 0s .55s;
}
.oz-chat.is-open .oz-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .6s var(--oz-spring); }
.oz-chat.is-open .oz-hello { opacity: 0; visibility: hidden; }

/* kop */
.oz-head {
    position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 160% at 100% 0%, rgba(14, 116, 144, .75), transparent 60%), linear-gradient(135deg, #0b1220, #0f172a 55%, #12304a);
}
.oz-head::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 16px 16px; opacity: .5; pointer-events: none; }
.oz-head > * { position: relative; z-index: 1; }
.oz-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    font-weight: 700; font-size: 1.05rem; color: #fff; position: relative; transition: background .4s;
}
.oz-avatar .oz-ic { width: 22px; height: 22px; }
.oz-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #0f172a; }
.oz-avatar.is-wait::after { background: #f59e0b; animation: ozBlink 1.4s infinite; }
.oz-who { flex: 1; min-width: 0; }
.oz-who img { height: 22px; width: auto; display: block; margin-bottom: 3px; }
.oz-who b { display: block; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oz-who small { display: block; font-size: .78rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oz-hb { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #cbd5e1; display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--oz-spring); }
.oz-hb:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.oz-hb:active { transform: scale(.9); }
.oz-hb[hidden] { display: none; }
@keyframes ozBlink { 50% { opacity: .35; } }

/* beëindigen-balk */
.oz-confirm { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; max-height: 0; overflow: hidden; background: #fef2f2; color: #991b1b; font-size: .88rem; transition: max-height .35s var(--oz-ease), padding .35s; }
.oz-confirm.on { max-height: 70px; padding: 11px 16px; }
.oz-confirm span { flex: 1; }
.oz-confirm button { border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: .84rem; }
.oz-confirm .oz-yes { background: #dc2626; color: #fff; }
.oz-confirm .oz-no { background: #fff; color: #334155; }

/* berichten */
.oz-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; background: linear-gradient(#f8fafc, #f1f5f9); scroll-behavior: smooth; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.oz-body::-webkit-scrollbar { width: 6px; } .oz-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9px; }
.oz-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: ozIn .45s var(--oz-spring) backwards; }
.oz-msg.me { flex-direction: row-reverse; }
.oz-msg .oz-ava { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #0E7490); color: #fff; font-size: .74rem; font-weight: 700; }
.oz-msg .oz-ava .oz-ic { width: 15px; height: 15px; }
.oz-msg.me .oz-ava, .oz-msg.sys .oz-ava { display: none; }
.oz-bub { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .04); overflow-wrap: anywhere; white-space: pre-wrap; }
.oz-msg.me .oz-bub { background: linear-gradient(135deg, #0E7490, #0b5d73); color: #fff; border-radius: 18px 18px 5px 18px; box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .8); }
.oz-bub a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.oz-time { display: block; margin-top: 3px; font-size: .68rem; opacity: .6; text-align: right; }
.oz-name { display: block; font-size: .72rem; font-weight: 600; color: var(--oz-c); margin-bottom: 1px; }
@keyframes ozIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* bestand in bericht */
.oz-file { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; margin: 2px 0; }
.oz-file i { width: 38px; height: 38px; border-radius: 10px; background: rgba(14, 116, 144, .12); color: var(--oz-c); display: grid; place-items: center; flex: none; font-style: normal; }
.oz-msg.me .oz-file i { background: rgba(255, 255, 255, .2); color: #fff; }
.oz-file span { display: block; min-width: 0; }
.oz-file b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.oz-file small { opacity: .7; font-size: .74rem; }
.oz-img { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; margin-bottom: 4px; }

/* systeemmeldingen */
.oz-note { align-self: center; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--oz-mute); background: #fff; border: 1px solid var(--oz-line); border-radius: 99px; padding: 6px 14px; animation: ozIn .45s var(--oz-spring) backwards; text-align: center; }
.oz-note .oz-ic { width: 15px; height: 15px; color: var(--oz-c); }
.oz-note.ok .oz-ic { color: #16a34a; }

/* typen */
.oz-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.oz-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: ozDot 1.1s infinite; }
.oz-typing i:nth-child(2) { animation-delay: .15s; } .oz-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ozDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* suggesties */
.oz-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px 36px; }
.oz-chip {
    display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(14, 116, 144, .35); background: #fff; color: var(--oz-cd); border-radius: 99px; padding: 8px 14px; font-size: .86rem; font-weight: 600;
    animation: ozIn .5s var(--oz-spring) backwards; animation-delay: calc(var(--i, 0) * 70ms); transition: background .2s, color .2s, border-color .2s, transform .25s var(--oz-spring), box-shadow .2s;
}
.oz-chip .oz-ic { width: 16px; height: 16px; }
.oz-chip:hover { background: var(--oz-c); color: #fff; border-color: var(--oz-c); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(14, 116, 144, .9); }
.oz-chip:active { transform: scale(.96); }
.oz-chip.human { border-color: #0f172a; color: #0f172a; }
.oz-chip.human:hover { background: #0f172a; border-color: #0f172a; color: #fff; }
.oz-chip.ghost { border-color: var(--oz-line); color: var(--oz-mute); }
.oz-chip.ghost:hover { background: #f1f5f9; color: var(--oz-ink); border-color: #cbd5e1; box-shadow: none; }

/* formulier (doorverbinden) */
.oz-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .05); animation: ozIn .5s var(--oz-spring) backwards; }
.oz-card h4 { margin: 0 0 2px; font-size: 1rem; }
.oz-card p { margin: 0 0 12px; color: var(--oz-mute); font-size: .86rem; }
.oz-f { margin-bottom: 10px; }
.oz-f label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 4px; }
.oz-f label em { color: var(--oz-mute); font-style: normal; font-weight: 500; }
.oz-f input, .oz-f textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--oz-line); border-radius: 11px; background: #fff; color: var(--oz-ink); font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.oz-f textarea { resize: none; min-height: 78px; line-height: 1.45; }
.oz-f input:focus, .oz-f textarea:focus { outline: none; border-color: var(--oz-c); box-shadow: 0 0 0 4px rgba(14, 116, 144, .13); }
.oz-f.bad input, .oz-f.bad textarea { border-color: #ef4444; }
.oz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.oz-langs { display: flex; gap: 6px; }
.oz-langs button { flex: 1; border: 1.5px solid var(--oz-line); background: #fff; border-radius: 11px; padding: 8px 4px; font-size: .84rem; font-weight: 600; color: var(--oz-mute); transition: all .2s; }
.oz-langs button:hover { border-color: #94a3b8; }
.oz-langs button.on { border-color: var(--oz-c); background: rgba(14, 116, 144, .08); color: var(--oz-cd); }
.oz-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 12px; font-size: .84rem; margin-bottom: 10px; }
.oz-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0f172a, #12304a); transition: transform .25s var(--oz-spring), box-shadow .25s, opacity .2s; }
.oz-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(15, 23, 42, .9); }
.oz-btn:disabled { opacity: .6; pointer-events: none; }
.oz-btn.alt { background: #fff; color: var(--oz-ink); border: 1.5px solid var(--oz-line); }
.oz-btn.alt:hover { box-shadow: none; border-color: #94a3b8; }
.oz-link { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--oz-mute); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.oz-spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: ozSpin .7s linear infinite; }
@keyframes ozSpin { to { transform: rotate(360deg); } }

/* zoeken naar medewerker */
.oz-search { text-align: center; padding: 22px 16px 18px; }
.oz-radar { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; }
.oz-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--oz-c); opacity: 0; animation: ozRadar 2.4s ease-out infinite; }
.oz-radar i:nth-child(2) { animation-delay: .8s; } .oz-radar i:nth-child(3) { animation-delay: 1.6s; }
.oz-radar b { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #0E7490); box-shadow: 0 12px 24px -10px rgba(14, 116, 144, .8); }
.oz-radar b .oz-ic { width: 26px; height: 26px; }
@keyframes ozRadar { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.oz-search h4 { margin: 0 0 4px; font-size: 1rem; }
.oz-search p { margin: 0; color: var(--oz-mute); font-size: .86rem; }
.oz-dots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: ozDots 1.4s steps(4) infinite; }
@keyframes ozDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

/* medewerker even weg */
@keyframes ozTick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }

/* invoer */
.oz-foot { flex: none; background: #fff; border-top: 1px solid var(--oz-line); padding: 10px 12px 8px; }
.oz-form { display: flex; align-items: flex-end; gap: 8px; }
.oz-in { flex: 1; min-width: 0; border: 1.5px solid var(--oz-line); border-radius: 16px; padding: 10px 14px; font: inherit; font-size: .93rem; resize: none; max-height: 110px; background: #f8fafc; color: var(--oz-ink); transition: border-color .2s, box-shadow .2s, background .2s; line-height: 1.4; }
.oz-in:focus { outline: none; border-color: var(--oz-c); background: #fff; box-shadow: 0 0 0 4px rgba(14, 116, 144, .12); }
.oz-in:disabled { opacity: .6; }
.oz-ib { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--oz-spring), background .2s, opacity .2s; }
.oz-ib[hidden] { display: none; }
.oz-attach { background: #f1f5f9; color: #475569; }
.oz-attach:hover { background: #e2e8f0; transform: rotate(-12deg); }
.oz-send { background: linear-gradient(135deg, #0E7490, #0b5d73); color: #fff; box-shadow: 0 10px 18px -10px rgba(14, 116, 144, .9); }
.oz-send:hover { transform: scale(1.08) rotate(-8deg); }
.oz-send:active { transform: scale(.92); }
.oz-send:disabled, .oz-attach:disabled { opacity: .45; pointer-events: none; }
.oz-disc { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: .7rem; color: #94a3b8; text-align: center; }
.oz-disc .oz-ic { width: 12px; height: 12px; }

/* einde gesprek + review */
.oz-end { text-align: center; }
.oz-end .oz-ok { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 8px; background: #dcfce7; color: #16a34a; display: grid; place-items: center; animation: ozPop .6s var(--oz-spring); }
.oz-end .oz-ok .oz-ic { width: 28px; height: 28px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ozDraw .6s .3s ease forwards; }
@keyframes ozDraw { to { stroke-dashoffset: 0; } }
.oz-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 10px; }
.oz-stars button { border: 0; background: none; padding: 3px; color: #cbd5e1; transition: transform .25s var(--oz-spring), color .15s; }
.oz-stars button .oz-ic { width: 32px; height: 32px; stroke-width: 1.5; }
.oz-stars button.on { color: #f59e0b; } .oz-stars button.on .oz-ic { fill: currentColor; }
.oz-stars button:hover { transform: scale(1.22) rotate(-6deg); }
.oz-stars.done button { pointer-events: none; }
.oz-thanks { display: flex; align-items: center; justify-content: center; gap: 8px; color: #15803d; font-weight: 600; padding: 6px 0; animation: ozIn .5s var(--oz-spring); }
.oz-actions { display: flex; flex-direction: column; gap: 8px; }

/* telefoon: volledig scherm */
@media (max-width: 600px) {
    .oz-chat { right: 14px; bottom: 14px; }
    .oz-launch { width: 56px; height: 56px; }
    .oz-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; transform: translateY(40px); }
    .oz-chat.is-open .oz-launch { display: none; }
    .oz-hello { width: min(260px, calc(100vw - 100px)); bottom: 70px; }
    .oz-head { padding-top: max(16px, env(safe-area-inset-top)); }
    .oz-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .oz-in { font-size: 16px; }
}
@media (max-width: 1100px) { body:has(.ck.is-in) .oz-chat:not(.is-open) { bottom: 190px; } }
@media (prefers-reduced-motion: reduce) { .oz-chat *, .oz-chat *::before, .oz-chat *::after { animation: none !important; transition-duration: .01s !important; } }

/* ---------- "in behandeling": gewone chatbubbel van de medewerker ---------- */
.oz-holdmsg { transition: opacity .4s, transform .4s, max-height .4s; max-height: 160px; }
.oz-holdmsg.out { opacity: 0; transform: translateY(6px) scale(.97); max-height: 0; margin: -4px 0; overflow: hidden; }
.oz-holdmsg .oz-bub { position: relative; padding: 12px 16px 14px; min-width: 210px; }
.oz-holdmsg .oz-hl { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--oz-c); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.oz-holdmsg .oz-hl i { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ecfeff; flex: none; }
.oz-holdmsg .oz-hl i::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--oz-c); border-right-color: rgba(14, 116, 144, .25); animation: ozSpin 1.4s linear infinite; }
.oz-holdmsg .oz-hl .oz-ic { width: 14px; height: 14px; animation: ozFlip 2.8s cubic-bezier(.6, 0, .3, 1) infinite; }
.oz-holdmsg p { margin: 0; font-size: .92rem; line-height: 1.45; }
.oz-holdmsg em { display: inline-flex; gap: 4px; margin-top: 6px; }
.oz-holdmsg em u { width: 6px; height: 6px; border-radius: 50%; background: var(--oz-cl); animation: ozDot 1.2s infinite; }
.oz-holdmsg em u:nth-child(2) { animation-delay: .15s; } .oz-holdmsg em u:nth-child(3) { animation-delay: .3s; }
@keyframes ozSpin { to { transform: rotate(360deg); } }
@keyframes ozFlip { 0%, 55% { transform: rotate(0); } 80%, 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .oz-holdmsg .oz-hl i::before, .oz-holdmsg .oz-hl .oz-ic, .oz-holdmsg em u { animation: none; } }

/* ---------- snelle vragen: altijd zichtbaar, klikbaar zonder swipen ---------- */
@media (prefers-reduced-motion: reduce) { .oz-holdmsg, .oz-holdmsg i, .oz-holdmsg i .oz-ic { animation: none; } }

/* ---------- snelle vragen: één nette rij, pijltjes op pc, vegen op mobiel ---------- */
.oz-quick { position: relative; flex: none; display: none; border-top: 1px solid var(--oz-line); background: #fff; }
.oz-chat.is-bot .oz-quick { display: block; }
.oz-qs { display: flex; gap: 8px; padding: 11px 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.oz-qs::-webkit-scrollbar { display: none; }
.oz-qs.drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.oz-q { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--oz-line); background: #f8fafc; color: var(--oz-ink); border-radius: 999px; padding: 8px 13px; font-size: .82rem; font-weight: 600; white-space: nowrap; animation: ozPop .45s var(--oz-spring) both; animation-delay: calc(var(--i) * 50ms); transition: background .2s, color .2s, transform .2s, border-color .2s, box-shadow .2s; }
.oz-q .oz-ic { width: 15px; height: 15px; color: var(--oz-c); transition: color .2s; }
.oz-q:hover { background: var(--oz-c); color: #fff; border-color: var(--oz-c); transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(14, 116, 144, .9); }
.oz-q:hover .oz-ic { color: #fff; }
.oz-q:active { transform: scale(.95); }
.oz-q.human { background: #0f172a; color: #fff; border-color: #0f172a; }
.oz-q.human .oz-ic { color: #5eb8d0; }
.oz-q.human:hover { background: #1e293b; border-color: #1e293b; }
/* zachte rand + pijltjes (alleen met muis) */
.oz-quick::before, .oz-quick::after { content: ""; position: absolute; top: 1px; bottom: 0; width: 38px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 1; }
.oz-quick::before { left: 0; background: linear-gradient(90deg, #fff 30%, transparent); }
.oz-quick::after { right: 0; background: linear-gradient(270deg, #fff 30%, transparent); }
.oz-quick.can-l::before, .oz-quick.can-r::after { opacity: 1; }
.oz-qa { display: none; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 1px solid var(--oz-line); border-radius: 50%; background: #fff; color: var(--oz-ink); place-items: center; padding: 0; z-index: 2; box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .5); opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .25s, transform .25s var(--oz-spring), background .2s, color .2s; }
.oz-qa .oz-ic { width: 15px; height: 15px; }
.oz-qa.l { left: 6px; } .oz-qa.l .oz-ic { transform: rotate(180deg); } .oz-qa.r { right: 6px; }
.oz-qa:hover { background: var(--oz-c); color: #fff; border-color: var(--oz-c); }
@media (hover: hover) and (pointer: fine) {
    .oz-qa { display: grid; }
    .oz-quick.can-l .oz-qa.l, .oz-quick.can-r .oz-qa.r { opacity: 1; transform: none; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .oz-q { animation: none; } .oz-qs { scroll-behavior: auto; } }

/* ---------- beveiligd-badge met dot (in de header) ---------- */
.oz-secure { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 7px; margin-top: 7px; max-width: 100%; padding: 4px 10px 4px 9px; border: 1px solid rgba(74, 222, 128, .35); border-radius: 999px; background: rgba(34, 197, 94, .14); color: #bbf7d0; font: inherit; font-size: .72rem; line-height: 1.3; cursor: pointer; text-align: left; transition: background .25s, border-radius .3s, transform .3s var(--oz-spring); animation: ozPop .5s var(--oz-spring) both; }
.oz-secure[hidden] { display: none; }
.oz-secure:hover { background: rgba(34, 197, 94, .24); }
.oz-secure:active { transform: scale(.97); }
.oz-secure strong { font-weight: 600; }
.oz-sd { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.oz-sd::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: ozRing 2s ease-out infinite; }
.oz-secure em { flex-basis: 100%; font-style: normal; color: #86efac; max-height: 0; opacity: 0; overflow: hidden; word-break: break-all; transition: max-height .35s var(--oz-ease), opacity .3s, margin .3s; }
.oz-secure.open { border-radius: 14px; }
.oz-secure.open em { max-height: 48px; opacity: 1; margin-top: 3px; }
@keyframes ozPop { from { opacity: 0; transform: translateY(-4px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .oz-sd::after, .oz-secure { animation: none; } }

/* ---------- emoji ---------- */
.oz-foot { position: relative; }
.oz-emo { background: #f1f5f9; color: #475569; }
.oz-emo:hover, .oz-emo.on { background: #fef3c7; color: #b45309; transform: translateY(-2px) rotate(-6deg); }
.oz-emo .oz-ic { width: 20px; height: 20px; }
.oz-emojis { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--oz-line); border-radius: 18px; box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .45); opacity: 0; transform: translateY(10px) scale(.94); transform-origin: bottom left; transition: opacity .2s, transform .35s var(--oz-spring); z-index: 5; }
.oz-emojis[hidden] { display: none; }
.oz-emojis.on { opacity: 1; transform: none; }
.oz-e { height: 42px; border: 0; background: none; border-radius: 12px; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; padding: 0; transition: transform .2s var(--oz-spring), background .2s; animation: ozPop .35s var(--oz-spring) both; animation-delay: calc(var(--i) * 18ms); }
.oz-e:hover { background: #f1f5f9; transform: scale(1.22); }
.oz-e:active { transform: scale(.9); }
.oz-emo-i { width: 1.25em; height: 1.25em; vertical-align: -.22em; display: inline-block; }
.oz-e .oz-emo-i { width: 28px; height: 28px; vertical-align: 0; }
.oz-chat { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* slot-icoon in de beveiligd-badge */
.oz-sl { display: inline-flex; flex: none; color: #86efac; }
.oz-sl .oz-ic { width: 12px; height: 12px; }

/* onderwerpen-paneel (vervangt de zijwaartse snelkoppelingenbalk) */
.oz-topics { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--oz-line); border-radius: 18px; box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .45); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; transition: opacity .2s, transform .35s var(--oz-spring); z-index: 5; }
.oz-topics[hidden] { display: none; }
.oz-topics.on { opacity: 1; transform: none; }
.oz-topics .oz-q { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--oz-line); border-radius: 12px; background: #f8fafc; color: #0f172a; font: inherit; font-size: .84rem; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .25s; animation: ozPop .4s var(--oz-spring) both; animation-delay: calc(var(--i, 0) * 25ms); }
.oz-topics .oz-q:hover { background: #ecf7fa; border-color: rgba(14, 116, 144, .5); transform: translateY(-1px); }
.oz-topics .oz-q .oz-ic { flex: none; width: 17px; height: 17px; color: #0E7490; }
.oz-topics .oz-q.human { grid-column: 1 / -1; background: #0f172a; border-color: #0f172a; color: #fff; justify-content: center; }
.oz-topics .oz-q.human .oz-ic { color: #5eb8d0; }
.oz-tp.on { background: rgba(14, 116, 144, .14); color: #0E7490; }
.oz-tp[hidden] { display: none; }
.oz-chips { flex-wrap: wrap; }

/* taalkeuze: klein venstertje bij het openen van de chat */
.oz-langpop { position: absolute; left: 0; right: 0; top: 74px; bottom: 120px; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(241, 245, 249, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.oz-langpop[hidden] { display: none; }
.oz-langpop.on { opacity: 1; }
.oz-lp-card { width: min(300px, 100%); padding: 22px 20px 20px; text-align: center; background: #fff; border: 1px solid var(--oz-line); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .5); transform: translateY(14px) scale(.95); transition: transform .5s var(--oz-spring); }
.oz-langpop.on .oz-lp-card { transform: none; }
.oz-lp-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0E7490, #0b5a70); }
.oz-lp-ico .oz-ic { width: 22px; height: 22px; }
.oz-lp-card b { display: block; margin-top: 12px; font-size: 1.05rem; color: #0f172a; }
.oz-lp-card small { display: block; margin-top: 3px; font-size: .76rem; color: #64748b; }
.oz-lp-btns { display: grid; gap: 8px; margin-top: 16px; }
.oz-lp-btns button { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--oz-line); border-radius: 12px; background: #f8fafc; color: #0f172a; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, transform .25s; }
.oz-lp-btns button i { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: #0f172a; color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.oz-lp-btns button:hover { background: #ecf7fa; border-color: rgba(14, 116, 144, .5); transform: translateY(-1px); }
@media (max-width: 600px) { .oz-langpop { top: 70px; bottom: 110px; } }

.oz-lp-btns button i.fl { width: 30px; height: 22px; padding: 0; overflow: hidden; background: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .14); }
.oz-lp-btns button i.fl svg { display: block; width: 100%; height: 100%; }
