/* VEYRA Support Chat Widget — global, mounts on all public pages */
#veyra-chat-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 9990;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #040D2E 0%, #1D34A8 100%);
  box-shadow: 0 10px 28px rgba(4, 13, 46, .32);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
#veyra-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(4, 13, 46, .4); }
#veyra-chat-bubble svg { width: 26px; height: 26px; }
#veyra-chat-bubble.veyra-chat-offset { bottom: 88px; }
#veyra-chat-bubble .veyra-chat-dot {
  position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: #2DD4BF; border: 2px solid #FFFFFF;
}
#veyra-chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 9991;
  width: 360px; max-width: calc(100vw - 28px); max-height: 78vh;
  background: #FFFFFF; border: 1px solid #E5ECF5; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(4, 13, 46, .22);
  display: none; flex-direction: column; overflow: hidden;
  font-family: 'Inter', sans-serif;
}
#veyra-chat-panel.veyra-chat-open { display: flex; }
.veyra-chat-head {
  background: linear-gradient(135deg, #040D2E 0%, #1D34A8 100%);
  padding: 16px 18px; display: flex; align-items: center; gap: 10px;
}
.veyra-chat-head-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.veyra-chat-head-icon svg { width: 18px; height: 18px; }
.veyra-chat-head-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; }
.veyra-chat-head-sub { font-size: 11px; color: #B8C8E8; margin-top: 1px; }
.veyra-chat-close {
  margin-left: auto; background: none; border: none; cursor: pointer; padding: 6px; line-height: 0;
}
.veyra-chat-body { flex: 1; overflow-y: auto; padding: 16px 16px 6px; background: #F8FAFF; }
.veyra-chat-msg { max-width: 88%; margin-bottom: 10px; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.veyra-chat-msg-bot { background: #FFFFFF; border: 1px solid #E5ECF5; color: #040D2E; border-bottom-left-radius: 4px; }
.veyra-chat-msg-user { background: #1D34A8; color: #FFFFFF; margin-left: auto; border-bottom-right-radius: 4px; }
.veyra-chat-msg-ref { font-size: 11px; color: #6B7C96; margin: -4px 0 10px 4px; }
.veyra-chat-msg-urgent { border-color: #F3C6D3; background: #FFF5F7; }
.veyra-chat-msg-medical { border-color: #C7D9F5; background: #F3F8FF; }
.veyra-chat-msg-urgent p { color: #7A0B2E; font-weight: 600; }
.veyra-chat-pre { padding: 0 16px 12px; background: #F8FAFF; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.veyra-chat-pre input {
  height: 38px; border: 1px solid #D9E3F0; border-radius: 9px; padding: 0 10px;
  font-size: 13px; font-family: 'Inter', sans-serif; color: #040D2E; background: #FFFFFF; width: 100%;
}
.veyra-chat-pre input:focus { outline: 2px solid #099EF8; outline-offset: -1px; }
.veyra-chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #E5ECF5; background: #FFFFFF; }
.veyra-chat-input-row textarea {
  flex: 1; height: 42px; max-height: 96px; resize: none; border: 1px solid #D9E3F0; border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; font-family: 'Inter', sans-serif; color: #040D2E; background: #FFFFFF;
}
.veyra-chat-input-row textarea:focus { outline: 2px solid #099EF8; outline-offset: -1px; }
.veyra-chat-send {
  width: 44px; height: 44px; border-radius: 10px; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, #1D34A8, #6B0DD8); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.veyra-chat-send:disabled { opacity: .6; cursor: default; }
.veyra-chat-send svg { width: 18px; height: 18px; }
@media (max-width: 430px) {
  #veyra-chat-panel { right: 14px; left: 14px; width: auto; bottom: 86px; max-height: 72vh; }
  #veyra-chat-bubble { right: 16px; }
  #veyra-chat-bubble.veyra-chat-offset { bottom: 82px; }
}
