/*
 * Support-chat widget (zwevende knop rechtsonder), zie support-chat-widget.js.
 * --scw-accent is de huisstijlkleur van de knop/kaders; standaard de neutrale
 * De Nisse-groen (admin-paneel). Een pagina kan dit overschrijven met een
 * eigen --scw-accent op .scw-widget of een voorouder (zie aanmelden/bootstrap.php
 * voor het DAIT-blauw op de publieke site).
 */
.scw-widget { position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: 'Inter', system-ui, sans-serif; --scw-accent: #2F6B5E; }
.scw-bubble {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--scw-accent); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18); position: relative;
}
.scw-bubble:hover { filter: brightness(1.08); }
.scw-badge {
    position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%;
    background: #B42318; border: 2px solid #fff;
}
.scw-paneel {
    position: absolute; right: 0; bottom: 68px; width: min(340px, calc(100vw - 32px)); max-height: min(480px, calc(100vh - 120px));
    background: #fff; border: 1px solid #E3E5E2; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    display: flex; flex-direction: column; overflow: hidden;
}
.scw-paneel[hidden] { display: none; }
.scw-kop {
    background: #1E2226; color: #fff; padding: .9rem 1rem; font-weight: 700; font-size: .92rem;
    display: flex; align-items: center; justify-content: space-between;
}
.scw-kop-tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scw-ticket { font-weight: 500; font-size: .74rem; opacity: .72; }
.scw-auto-label { display: block; font-size: .7rem; font-weight: 600; opacity: .6; margin-bottom: 3px; }
.scw-opgelost { color: #7A828A; font-size: .8rem; text-align: center; margin: .4rem .5rem 0; }
.scw-sluit { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0; box-shadow: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scw-berichten { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; min-height: 120px; background: #F5F6F4; }
.scw-leeg { color: #7A828A; font-size: .85rem; margin: auto; text-align: center; }
.scw-bericht { max-width: 85%; padding: .55rem .75rem; border-radius: 10px; font-size: .88rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.scw-van-mij { align-self: flex-end; background: var(--scw-accent); color: #fff; border-bottom-right-radius: 3px; }
.scw-van-platform { align-self: flex-start; background: #fff; border: 1px solid #E3E5E2; color: #1E2226; border-bottom-left-radius: 3px; }
.scw-form { border-top: 1px solid #E3E5E2; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; background: #fff; }
.scw-veld {
    width: 100%; box-sizing: border-box; border: 1px solid #E3E5E2; border-radius: 9px; padding: .55rem .7rem;
    font: inherit; font-size: 16px; color: #1E2226; background: #F5F6F4; resize: none;
}
.scw-veld:focus { outline: none; border-color: var(--scw-accent); }
.scw-invoerrij { display: flex; gap: .5rem; align-items: flex-end; }
.scw-invoerrij textarea { flex: 1; min-height: 40px; }
.scw-invoerrij button { flex-shrink: 0; background: var(--scw-accent); color: #fff; border: none; border-radius: 9px; padding: .6rem 1rem; font-weight: 700; font-size: .85rem; cursor: pointer; }
.scw-invoerrij button:hover { filter: brightness(1.08); }
.scw-invoerrij button:disabled { opacity: .6; cursor: default; }
.scw-fout { color: #B42318; font-size: .82rem; margin: 0; }
@media (max-width: 480px) {
    .scw-widget { right: 12px; bottom: 12px; }
    .scw-paneel { right: -6px; }
}
