/* ValidSign Chat Widget — Self-contained styles (scoped via .vs-chat-*) */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ── Reset & Scope ─────────────────────────────────────────────── */
.vs-chat-root,
.vs-chat-root *,
.vs-chat-root *::before,
.vs-chat-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Floating Button ───────────────────────────────────────────── */
.vs-chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #17224d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(23, 34, 77, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.vs-chat-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(23, 34, 77, 0.45);
}

.vs-chat-button:active {
  transform: scale(0.96);
}

.vs-chat-button svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.vs-chat-button .vs-chat-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.vs-chat-button.vs-chat-open .vs-chat-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.vs-chat-button.vs-chat-open .vs-chat-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Unread badge */
.vs-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f26522;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.vs-chat-badge.vs-chat-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Chat Window ───────────────────────────────────────────────── */
.vs-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 999999;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vs-chat-window.vs-chat-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Header ────────────────────────────────────────────────────── */
.vs-chat-header {
  background: #17224d;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vs-chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-chat-header-avatar svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.vs-chat-header-agents {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.vs-chat-agent-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #f26522;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #17224d;
  margin-right: -8px;
  cursor: default;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.vs-chat-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-chat-agent-avatar:last-child {
  margin-right: 0;
}

.vs-chat-agent-avatar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Offline / no agents header avatar */
.vs-chat-agent-avatar.vs-chat-agent-avatar-offline {
  background: #69798C;
}

/* Live agent avatar in header */
.vs-chat-agent-avatar.vs-chat-agent-live {
  background: #f26522;
  border-color: #f26522;
}

.vs-chat-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81b20f;
  margin-right: 2px;
}

.vs-chat-header-info {
  flex: 1;
  min-width: 0;
}

.vs-chat-header-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.vs-chat-header-status {
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vs-chat-header-status .vs-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81b20f;
  display: inline-block;
}

.vs-chat-header-status .vs-chat-dot.vs-chat-offline {
  background: #69798C;
}

.vs-chat-header-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.vs-chat-header-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.vs-chat-header-close svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* ── Messages Area ─────────────────────────────────────────────── */
.vs-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fb;
  scroll-behavior: smooth;
}

.vs-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.vs-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.vs-chat-messages::-webkit-scrollbar-thumb {
  background: #dde1ec;
  border-radius: 3px;
}

/* ── Message Bubbles ───────────────────────────────────────────── */
.vs-chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: vs-chat-fadeIn 0.25s ease;
}

@keyframes vs-chat-fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vs-chat-msg-visitor {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.vs-chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  align-self: flex-end;
}

.vs-chat-msg-ai .vs-chat-msg-avatar {
  background: #17224d;
}

.vs-chat-msg-agent .vs-chat-msg-avatar {
  background: #f26522;
}

.vs-chat-msg-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  align-self: flex-end;
}

.vs-chat-msg-sender-name {
  font-size: 10px;
  color: #69798C;
  text-align: center;
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.vs-chat-msg-avatar svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.vs-chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.vs-chat-msg-ai .vs-chat-msg-bubble,
.vs-chat-msg-agent .vs-chat-msg-bubble {
  background: #ffffff;
  color: #231f20;
  border: 1px solid #edf0f4;
  border-bottom-left-radius: 4px;
}

.vs-chat-msg-visitor .vs-chat-msg-bubble {
  background: #17224d;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.vs-chat-msg-bubble a {
  color: #3585d8;
  text-decoration: none;
}

.vs-chat-msg-bubble a:hover {
  text-decoration: underline;
}

.vs-chat-msg-time {
  font-size: 11px;
  color: #69798C;
  margin-top: 4px;
  padding: 0 4px;
}

.vs-chat-msg-visitor .vs-chat-msg-time {
  text-align: right;
}

/* ── System Messages ───────────────────────────────────────────── */
.vs-chat-system {
  text-align: center;
  font-size: 12px;
  color: #69798C;
  padding: 8px 0;
  animation: vs-chat-fadeIn 0.25s ease;
}

.vs-chat-system-agent {
  background: rgba(53, 133, 216, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  color: #3585d8;
}

/* ── Typing Indicator ──────────────────────────────────────────── */
.vs-chat-typing {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 85%;
  animation: vs-chat-fadeIn 0.25s ease;
}

.vs-chat-typing-dots {
  background: #ffffff;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.vs-chat-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b1bece;
  animation: vs-chat-bounce 1.2s infinite;
}

.vs-chat-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.vs-chat-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes vs-chat-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* ── Input Area ────────────────────────────────────────────────── */
.vs-chat-input-area {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.vs-chat-input {
  flex: 1;
  border: 1px solid #dde1ec;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 100px;
  font-family: 'Open Sans', sans-serif;
  color: #231f20;
  background: #f8f9fb;
  transition: border-color 0.15s, background 0.15s;
}

.vs-chat-input::placeholder {
  color: #b1bece;
}

.vs-chat-input:focus {
  border-color: #17224d;
  background: #ffffff;
}

.vs-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f26522;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.vs-chat-send:hover {
  background: #d4551b;
}

.vs-chat-send:active {
  transform: scale(0.94);
}

.vs-chat-send:disabled {
  background: #dde1ec;
  cursor: not-allowed;
}

.vs-chat-send svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* ── Ticket Form ───────────────────────────────────────────────── */
.vs-chat-ticket-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fb;
  animation: vs-chat-fadeIn 0.25s ease;
}

.vs-chat-ticket-form h3 {
  font-size: 14px;
  font-weight: 700;
  color: #17224d;
  margin-bottom: 4px;
}

.vs-chat-ticket-form p {
  font-size: 13px;
  color: #69798C;
  line-height: 1.4;
}

.vs-chat-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-chat-field label {
  font-size: 12px;
  font-weight: 600;
  color: #17224d;
}

.vs-chat-field input,
.vs-chat-field textarea {
  border: 1px solid #dde1ec;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #231f20;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.vs-chat-field input:focus,
.vs-chat-field textarea:focus {
  border-color: #17224d;
}

.vs-chat-field textarea {
  resize: vertical;
  min-height: 70px;
}

.vs-chat-ticket-submit {
  background: #f26522;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.vs-chat-ticket-submit:hover {
  background: #d4551b;
}

.vs-chat-ticket-submit:disabled {
  background: #dde1ec;
  cursor: not-allowed;
}

.vs-chat-ticket-success {
  text-align: center;
  padding: 24px 16px;
  animation: vs-chat-fadeIn 0.25s ease;
}

.vs-chat-ticket-success svg {
  width: 48px;
  height: 48px;
  fill: #81b20f;
  margin-bottom: 12px;
}

.vs-chat-ticket-success h3 {
  font-size: 16px;
  font-weight: 700;
  color: #17224d;
  margin-bottom: 6px;
}

.vs-chat-ticket-success p {
  font-size: 13px;
  color: #69798C;
  line-height: 1.5;
}

/* ── Quick Actions / Connect Human ─────────────────────────────── */
.vs-chat-actions {
  padding: 8px 16px 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8f9fb;
}

.vs-chat-action-btn {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #dde1ec;
  background: #ffffff;
  color: #17224d;
  cursor: pointer;
  transition: all 0.15s;
}

.vs-chat-action-btn:hover {
  border-color: #17224d;
  background: rgba(23, 34, 77, 0.04);
}

.vs-chat-action-btn.vs-chat-action-primary {
  background: #17224d;
  color: #ffffff;
  border-color: #17224d;
}

.vs-chat-action-btn.vs-chat-action-primary:hover {
  background: #1e2d5f;
}

/* ── Powered By ────────────────────────────────────────────────── */
.vs-chat-powered {
  text-align: center;
  padding: 6px;
  font-size: 11px;
  color: #b1bece;
  background: #ffffff;
  flex-shrink: 0;
}

.vs-chat-powered a {
  color: #69798C;
  text-decoration: none;
  font-weight: 600;
}

/* ── Online Agents Panel (intro form) ─────────────────────────── */
.vs-chat-online-agents {
  width: 100%;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: vs-chat-fadeIn 0.4s ease;
}

.vs-chat-online-avatars {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.vs-chat-online-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.vs-chat-online-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f26522;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(242, 101, 34, 0.25);
  transition: transform 0.2s ease;
}

.vs-chat-online-avatar svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.vs-chat-online-avatar-offline {
  background: #69798C;
  box-shadow: 0 2px 8px rgba(105, 121, 140, 0.2);
}

.vs-chat-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #81b20f;
  border: 2px solid #f8f9fb;
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 1;
  animation: vs-chat-pulse 2s infinite;
}

@keyframes vs-chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 178, 15, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(129, 178, 15, 0); }
}

.vs-chat-online-name {
  font-size: 11px;
  font-weight: 600;
  color: #17224d;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.vs-chat-online-text {
  font-size: 13px;
  color: #69798C;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ── Department Hint ──────────────────────────────────────────── */
.vs-chat-dept-hint {
  min-height: 20px;
  font-size: 12px;
  color: #69798C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
  width: 100%;
  text-align: center;
  animation: vs-chat-fadeIn 0.2s ease;
}

.vs-chat-dept-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81b20f;
  display: inline-block;
  flex-shrink: 0;
}

.vs-chat-dept-hint-offline {
  color: #b1bece;
  font-style: italic;
}

/* ── Live Agent Header (enhanced) ─────────────────────────────── */
.vs-chat-agent-live-dot {
  position: absolute;
  bottom: 0;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #81b20f;
  border: 2px solid #17224d;
  animation: vs-chat-pulse 2s infinite;
}

/* ── Mobile Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Full-screen chat window on mobile */
  .vs-chat-window {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    transform: translateY(100%);
  }

  .vs-chat-window.vs-chat-visible {
    transform: translateY(0);
  }

  /* Hide the floating button when chat is open (it's behind the full-screen window anyway) */
  .vs-chat-button.vs-chat-open {
    opacity: 0;
    pointer-events: none;
  }

  /* Slightly smaller button, safe distance from edges */
  .vs-chat-button {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  /* Touch-friendly close button (min 44px tap target) */
  .vs-chat-header-close {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .vs-chat-header-close svg {
    width: 22px;
    height: 22px;
  }

  /* Ensure header is comfortable on mobile */
  .vs-chat-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top, 14px));
  }

  /* Messages area: use all available space, respect safe areas */
  .vs-chat-messages {
    padding: 12px;
  }

  /* Prevent iOS zoom on input focus — font-size must be >= 16px */
  .vs-chat-input {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 10px;
  }

  /* Touch-friendly send button (min 44px) */
  .vs-chat-send {
    width: 44px;
    height: 44px;
  }

  /* Input area: respect bottom safe area (home indicator on notch phones) */
  .vs-chat-input-area {
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }

  /* Powered-by bar: also respect safe area */
  .vs-chat-powered {
    padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
  }

  /* Intro form: scrollable on small screens */
  .vs-chat-intro-form {
    padding: 20px 16px;
    overflow-y: auto;
    max-height: 100%;
  }

  /* Prevent iOS zoom on intro form inputs */
  .vs-chat-intro-input {
    font-size: 16px;
    padding: 12px 14px;
  }

  /* Touch-friendly start button */
  .vs-chat-intro-btn {
    font-size: 16px;
    padding: 14px;
    min-height: 48px;
  }

  /* Touch-friendly department buttons */
  .vs-chat-dept-btn {
    padding: 14px 12px;
    font-size: 14px;
    min-height: 48px;
  }

  /* Touch-friendly action buttons */
  .vs-chat-action-btn {
    font-size: 14px;
    padding: 10px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Ticket form fields: prevent iOS zoom */
  .vs-chat-field input,
  .vs-chat-field textarea {
    font-size: 16px;
    padding: 12px;
  }

  .vs-chat-ticket-submit {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 48px;
  }

  /* Transcript email input */
  .vs-chat-transcript-bar input.vs-chat-intro-input {
    font-size: 16px;
  }

  /* Ensure message bubbles don't get too cramped */
  .vs-chat-msg {
    max-width: 90%;
  }

  .vs-chat-msg-bubble {
    font-size: 15px;
    padding: 10px 12px;
  }

  /* Online agents: slightly smaller on mobile to fit */
  .vs-chat-online-avatars {
    gap: 12px;
  }

  .vs-chat-online-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .vs-chat-intro-title {
    font-size: 18px;
  }
}

/* ── Intro Form ───────────────────────────────────────────────── */
.vs-chat-intro-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
}
.vs-chat-intro-title {
  font-family: 'League Spartan', 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #17224d;
  margin-bottom: 6px;
}
.vs-chat-intro-subtitle {
  font-size: 13px;
  color: #69798C;
  margin-bottom: 20px;
}
.vs-chat-intro-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dde1ec;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.vs-chat-intro-input:focus {
  border-color: #f26522;
}
.vs-chat-intro-error {
  color: #f22222;
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
  margin-bottom: 8px;
}
.vs-chat-intro-btn {
  width: 100%;
  padding: 12px;
  background: #f26522;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.vs-chat-intro-btn:hover {
  background: #d4551b;
}

/* ── Department Selector ──────────────────────────────────────── */
.vs-chat-dept-label {
  font-size: 13px;
  font-weight: 600;
  color: #17224d;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
}
.vs-chat-dept-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
.vs-chat-topic-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
}
.vs-chat-topic-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #dde1ec;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  color: #17224d;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.vs-chat-topic-btn:hover {
  border-color: #f26522;
  background: #fff7ed;
}
.vs-chat-topic-btn.vs-chat-dept-active {
  border-color: #f26522;
  background: #f26522;
  color: #fff;
}
.vs-chat-topic-btn.vs-chat-dept-active svg {
  fill: #fff;
}
.vs-chat-topic-btn svg {
  flex-shrink: 0;
}
.vs-chat-dept-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #dde1ec;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  color: #17224d;
  cursor: pointer;
  transition: all 0.2s;
}
.vs-chat-dept-btn:hover {
  border-color: #f26522;
  background: #fff7ed;
}
.vs-chat-dept-btn.vs-chat-dept-active {
  border-color: #f26522;
  background: #f26522;
  color: #fff;
}
.vs-chat-dept-btn.vs-chat-dept-active svg {
  fill: #fff;
}
.vs-chat-dept-btn svg {
  fill: #17224d;
  flex-shrink: 0;
}

/* ── Transcript Bar ───────────────────────────────────────────── */
.vs-chat-transcript-bar {
  padding: 8px 12px;
}
.vs-chat-transcript-success {
  font-size: 13px;
  color: #81b20f;
  text-align: center;
  padding: 8px 0;
}
.vs-chat-transcript-error {
  font-size: 13px;
  color: #f22222;
  text-align: center;
  padding: 8px 0;
}
