/* The site's own chat box (Views/Shared/_ChatWidget.cshtml). Self-contained: it sits on the public pages and on the dashboard. */
.ve-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1040; font-family: inherit; font-size: 14px; line-height: 1.45; }
.ve-chat[hidden] { display: none; }
.ve-chat .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ve-chat-bubble { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #0ab39c; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); display: flex; align-items: center; justify-content: center; }
.ve-chat-bubble:hover { background: #099885; }
.ve-chat-bubble:focus-visible, .ve-chat-close:focus-visible, .ve-chat-form button:focus-visible, .ve-chat-form textarea:focus-visible { outline: 3px solid #405189; outline-offset: 2px; }
.ve-chat-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #f06548; color: #fff;
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.ve-chat-panel { position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 24px); height: 500px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; background: #fff; color: #212529; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.ve-chat-panel[hidden] { display: none; }
.ve-chat-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px; background: #405189; color: #fff; }
.ve-chat-header strong { display: block; font-size: 15px; }
.ve-chat-sub { display: block; font-size: 12px; opacity: .9; }
.ve-chat-close { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ve-chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f3f6f9; }
.ve-chat-msg { margin: 0; padding: 8px 11px; border-radius: 12px; max-width: 86%; white-space: pre-wrap; overflow-wrap: anywhere; }
.ve-chat-ai, .ve-chat-human { align-self: flex-start; background: #fff; border: 1px solid #e3e8ee; }
.ve-chat-human::before { content: "Team"; display: block; font-size: 11px; font-weight: 600; color: #405189; }
.ve-chat-visitor { align-self: flex-end; background: #405189; color: #fff; }
.ve-chat-msg a { color: inherit; text-decoration: underline; }
.ve-chat-typing { align-self: flex-start; color: #6c757d; font-style: italic; padding: 2px 4px; }
.ve-chat-error { margin: 0; padding: 6px 12px; background: #fde8e4; color: #a12c16; font-size: 13px; }
.ve-chat-error[hidden] { display: none; }
.ve-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e8ee; background: #fff; }
.ve-chat-form textarea { flex: 1; resize: none; border: 1px solid #ced4da; border-radius: 8px; padding: 8px 10px; font: inherit; color: inherit; background: #fff; max-height: 96px; }
.ve-chat-form button { border: 0; border-radius: 8px; padding: 0 14px; background: #0ab39c; color: #fff; font-weight: 600; cursor: pointer; }
.ve-chat-form button:disabled { opacity: .55; cursor: default; }
@media (max-width: 599.98px) {
  .ve-chat { right: 12px; bottom: 12px; }
  .ve-chat-panel { position: fixed; right: 8px; left: 8px; bottom: 76px; width: auto; max-width: none; height: min(70vh, 520px); }
}
@media (prefers-reduced-motion: no-preference) { .ve-chat-bubble { transition: background-color .15s ease; } }
