/* Supportchat op support.html (chat.js). Kleuren komen uit style.css. */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { flex: 1; }
.chat-head .link { font-size: 13px; }
.chat-messages { display: flex; flex-direction: column; gap: 8px; padding: 16px; max-height: 420px; min-height: 160px; overflow-y: auto; }
.chat-bubble { max-width: 85%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 15px; }
.chat-bubble.assistant { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.chat-bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.pending { color: var(--muted); font-style: italic; }
.chat-bubble.error { color: var(--danger); }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); }
.chat form button { min-height: 44px; }
.chat-note { margin: 8px 2px 0; }
.handoff { margin-top: 14px; }
.handoff form { display: grid; gap: 10px; margin-top: 10px; max-width: 520px; }
.handoff textarea, .handoff input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text); width: 100%; box-sizing: border-box; }
.handoff textarea { min-height: 90px; resize: vertical; }
.handoff-status { margin: 0; }

/* Floating chat (handleiding.html). */
.chat-launch { position: fixed; right: 16px; bottom: 16px; z-index: 20; padding: 12px 18px; border: 0; border-radius: 99px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 6px 20px #0003; cursor: pointer; }
.chat-float { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 12px; border-radius: 18px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 12px 40px #0004; }
.chat-float .chat-messages { max-height: min(360px, 45vh); }
.chat-float .handoff { margin-top: 10px; }
.chat-head #chat-close { margin-left: 4px; }
