/* ============================================================
   ENTERPRISE AI AGENTIC CHATBOT â€” CSS
   Theme: Matched to eiq360 Platform Docs
   Header: #1499ce â†’ #0f8bbf  |  Accent: #1499ce
   Body: white  |  Text: #1a2332  |  Font: Roboto / Open Sans
   ============================================================ */

/* â”€â”€ Google Font (matches MkDocs Material typical stack) â”€â”€â”€ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* â”€â”€ CSS Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --cb-default-w: 420px;
  --cb-default-h: 620px;
  --cb-min-w: 340px;
  --cb-min-h: 420px;

  /* Header â€” exact eiq360 blue */
  --cb-hdr-from: #1289c9;
  --cb-hdr-to:      #0b7aaa;
  --cb-hdr-border:  rgba(255,255,255,0.15);

  /* Accent / interactive */
  --cb-accent:      #1499ce;
  --cb-accent-dark: #0f8bbf;
  --cb-accent-lite: rgba(20,153,206,0.1);
  --cb-accent-ring: rgba(20,153,206,0.22);

  /* Body surfaces */
  --cb-bg:          #ffffff;
  --cb-surface:     #f5f7fa;
  --cb-surface2:    #eef1f5;
  --cb-border:      rgba(0,0,0,0.08);
  --cb-border-md:   rgba(0,0,0,0.13);

  /* Text */
  --cb-text:        #1a2332;
  --cb-text-2:      #4a5568;
  --cb-text-3:      #9daabb;

  /* Bubbles */
  --cb-bot-bubble:  #f5f7fa;
  --cb-user-from:   #1499ce;
  --cb-user-to:     #0f8bbf;

  /* Shape */
  --cb-radius:    16px;
  --cb-radius-sm: 10px;
  --cb-radius-xs: 6px;
  --cb-shadow:
    0 20px 50px rgba(0,0,0,0.14),
    0 4px 14px  rgba(0,0,0,0.09);
  --cb-font: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chatbot-container *,
.chat-toggle * {
  box-sizing: border-box;
  font-family: var(--cb-font);
}

/* ============================================================
   TOGGLE BUTTON
   ============================================================ */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cb-hdr-from), var(--cb-hdr-to));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 18px 0 6px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(20,153,206,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(20,153,206,0.5);
}
.chat-toggle:active { transform: scale(0.97); }
.chat-toggle.hidden { display: none !important; }

.chat-toggle__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(20,153,206,0.45);
  animation: cb-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes cb-pulse-ring {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.3); }
}

.chat-toggle__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-toggle__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: cb-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes cb-blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}
.chat-toggle__label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   BACKDROP
   ============================================================ */
.cb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(10,30,50,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cb-backdrop.visible { display: block; }

/* ============================================================
   CHATBOT CONTAINER
   ============================================================ */
.chatbot-container {
  position: fixed;
  z-index: 99999;
  width: var(--cb-default-w);
  height: var(--cb-default-h);
  min-width: var(--cb-min-w);
  min-height: var(--cb-min-h);
  display: flex;
  flex-direction: column;
  background: var(--cb-bg);
  border-radius: var(--cb-radius);
  overflow: hidden;
  box-shadow: var(--cb-shadow);
  border: 1px solid rgba(20,153,206,0.18);
  transition: border-radius 0.25s ease;
}
.chatbot-container.is-fullscreen {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
}
.chatbot-container.is-dragging { cursor: grabbing; user-select: none; }
.chatbot-container.is-resizing { user-select: none; }

/* ============================================================
   HEADER  â€” eiq360 blue
   ============================================================ */
.chatbot-header {
  background: linear-gradient(135deg, var(--cb-hdr-from) 0%, var(--cb-hdr-to) 100%);
  padding: 13px 12px 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* subtle wave texture â€” matches the soft gradient on the site nav */
.chatbot-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 120% -20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
}

/* Bot avatar */
.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.bot-avatar svg { width: 22px; height: 22px; }
.bot-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  animation: cb-pulse-ring 2.8s ease-out infinite;
  animation-delay: 0.5s;
}

.header-info { display: flex; flex-direction: column; gap: 2px; }

.bot-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.78);
}
.bot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: cb-blink 2s ease-in-out infinite;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.control-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  outline: none;
  flex-shrink: 0;
}
.control-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.control-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}
.control-btn:active { transform: scale(0.93); }
.control-btn[disabled] {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.drag-btn { cursor: grab; }
.drag-btn:active { cursor: grabbing; }

/* size badge */
.cb-size-badge {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 7px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.cb-size-badge.visible { opacity: 1; }

/* drag hint */
.cb-drag-hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,30,50,0.88);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
  animation: cb-fadeup 0.3s ease;
}
@keyframes cb-fadeup {
  from { opacity:0; transform: translateX(-50%) translateY(4px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   AGENT BAR
   ============================================================ */
.cb-agent-bar {
  background: #e8f5fb;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(20,153,206,0.15);
  flex-wrap: wrap;
}
.cb-agent-tag {
  font-size: 11px;
  color: #0f7faa;
  background: rgba(20,153,206,0.1);
  border: 1px solid rgba(20,153,206,0.22);
  padding: 3px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.cb-agent-tag svg { width: 11px; height: 11px; fill: currentColor; }
.cb-agent-sep { flex: 1; }
.cb-model-badge {
  font-size: 11px;
  color: #7a8fa0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cb-model-badge svg { width: 11px; height: 11px; fill: var(--cb-accent); }

/* ============================================================
   CHAT AREA
   ============================================================ */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cb-bg);
  scroll-behavior: smooth;
}
.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }
.chat-area::-webkit-scrollbar-thumb {
  background: rgba(20,153,206,0.25);
  border-radius: 4px;
}
.chat-area::-webkit-scrollbar-thumb:hover { background: rgba(20,153,206,0.45); }

/* â”€â”€ Welcome â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.welcome-message {
  background: linear-gradient(135deg, #f0f9ff, #e8f5fb);
  border: 1px solid rgba(20,153,206,0.2);
  border-left: 3px solid var(--cb-accent);
  border-radius: var(--cb-radius-sm);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--cb-text-2);
  line-height: 1.65;
}
.welcome-message strong { color: var(--cb-accent-dark); }

/* â”€â”€ System msg â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cb-system-msg { text-align: center; margin: -4px 0; }
.cb-system-msg span {
  font-size: 11px;
  color: var(--cb-text-3);
  background: var(--cb-surface2);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--cb-border);
}

/* â”€â”€ Message rows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.message {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  animation: cb-msg-in 0.22s ease;
}
@keyframes cb-msg-in {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}
.message.user { flex-direction: row-reverse; }

/* avatars */
.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
}
.message.bot .message-avatar {
  background: linear-gradient(135deg, var(--cb-hdr-from), var(--cb-hdr-to));
  border: 1.5px solid rgba(20,153,206,0.35);
}
.message.bot .message-avatar svg { width: 16px; height: 16px; }
.message.user .message-avatar {
  background: linear-gradient(135deg, var(--cb-user-from), var(--cb-user-to));
  color: #fff;
}
.message.user .message-avatar svg { width: 13px; height: 13px; fill: #fff; }

/* bubble wrapper */
.message-bubble-wrap { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.message.user .message-bubble-wrap { align-items: flex-end; }

/* bubbles */
.message-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}
.message-bubble.bot {
  background: var(--cb-bot-bubble);
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-bottom-left-radius: 4px;
}
.message-bubble.user {
  background: linear-gradient(135deg, var(--cb-user-from), var(--cb-user-to));
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* timestamp */
.cb-bubble-meta {
  font-size: 10px;
  color: var(--cb-text-3);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 2px;
}
.message.user .cb-bubble-meta { justify-content: flex-end; }
.cb-bubble-meta svg { width: 10px; height: 10px; stroke: var(--cb-accent); fill: none; }

/* â”€â”€ Agent action trace â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cb-agent-action {
  background: #f0f9ff;
  border: 1px solid rgba(20,153,206,0.18);
  border-left: 2px solid var(--cb-accent);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--cb-text-2);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}
.cb-step { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.cb-step svg { width: 12px; height: 12px; flex-shrink: 0; }
.cb-step.done    { color: #15803d; }
.cb-step.done svg { fill: #22c55e; }
.cb-step.spinning { color: #b45309; }
.cb-step.spinning svg { fill: #f59e0b; animation: cb-spin 1s linear infinite; }
.cb-step.waiting  { color: var(--cb-text-3); }
.cb-step.waiting svg { fill: var(--cb-text-3); }
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* â”€â”€ Source chips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cb-source-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.cb-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--cb-accent-lite);
  color: var(--cb-accent-dark);
  border: 1px solid var(--cb-accent-ring);
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.cb-chip:hover { background: rgba(20,153,206,0.18); }
.cb-chip svg { width: 11px; height: 11px; fill: currentColor; }

/* â”€â”€ Doc/Video links â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chat-doc-link-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chat-doc-link,
.chat-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--cb-radius-xs);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: 1px solid;
}
.chat-doc-link {
  background: var(--cb-accent-lite);
  color: var(--cb-accent-dark);
  border-color: var(--cb-accent-ring);
}
.chat-doc-link:hover { background: rgba(20,153,206,0.18); transform: translateY(-1px); }
.chat-video-link {
  background: rgba(239,68,68,0.06);
  color: #b91c1c;
  border-color: rgba(239,68,68,0.18);
}
.chat-video-link:hover { background: rgba(239,68,68,0.12); transform: translateY(-1px); }

/* â”€â”€ Typing indicator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.loading-dots { display: flex; align-items: center; gap: 5px; padding: 2px 0; }
.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cb-accent);
  animation: cb-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes cb-bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

/* â”€â”€ Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrapper { overflow-x: auto; margin: 4px 0; }
.response-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.response-table th {
  background: #e8f5fb;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--cb-text);
  border-bottom: 2px solid rgba(20,153,206,0.25);
  white-space: nowrap;
}
.response-table td {
  padding: 6px 10px;
  color: var(--cb-text-2);
  border-bottom: 1px solid var(--cb-border);
}
.response-table tr:last-child td { border-bottom: none; }
.response-table tr:hover td { background: #f8fcfe; }

/* â”€â”€ Text formatting in bubbles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.message-bubble ul,
.message-bubble ol { padding-left: 18px; margin: 6px 0; }
.message-bubble li  { margin-bottom: 3px; }
.message-bubble p   { margin: 4px 0; }
.message-bubble strong { font-weight: 600; }

.response-heading {
  font-weight: 600;
  font-size: 13px;
  color: var(--cb-accent-dark);
  margin: 8px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(20,153,206,0.18);
}

/* â”€â”€ Charts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chart-wrapper { margin: 4px 0; }
.chart-title { font-size: 12.5px; font-weight: 600; color: var(--cb-text); margin-bottom: 6px; }
.response-echart { width: 100%; height: 220px; }

/* ============================================================
   SUGGESTED PROMPTS
   ============================================================ */
.cb-suggested {
  padding: 0 14px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--cb-bg);
  border-top: 1px solid var(--cb-border);
  padding-top: 10px;
}
.cb-suggest-btn {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid rgba(20,153,206,0.25);
  background: #f0f9ff;
  color: var(--cb-accent-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  white-space: nowrap;
  font-weight: 500;
}
.cb-suggest-btn:hover {
  border-color: var(--cb-accent);
  background: rgba(20,153,206,0.12);
  color: var(--cb-accent-dark);
}
.cb-suggest-btn svg { width: 12px; height: 12px; fill: currentColor; }

/* ============================================================
   INPUT AREA
   ============================================================ */
.input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--cb-border);
  background: var(--cb-bg);
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.cb-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cb-surface);
  border: 1.5px solid var(--cb-border-md);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cb-input-wrap:focus-within {
  border-color: var(--cb-accent);
  box-shadow: 0 0 0 3px var(--cb-accent-ring);
}

.message-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-size: 13.5px;
  color: var(--cb-text);
  font-family: var(--cb-font);
  line-height: 1.5;
  outline: none;
  min-height: 22px;
  max-height: 90px;
}
.message-input::placeholder { color: var(--cb-text-3); }

.cb-inp-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.cb-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--cb-radius-xs);
  border: none;
  background: transparent;
  color: var(--cb-text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  outline: none;
}
.cb-icon-btn:hover { color: var(--cb-accent); background: var(--cb-accent-lite); }
.cb-icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--cb-user-from), var(--cb-user-to));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.1s;
  outline: none;
  flex-shrink: 0;
}
.send-btn svg { width: 15px; height: 15px; fill: #fff; }
.send-btn:hover  { opacity: 0.87; }
.send-btn:active { transform: scale(0.93); }

.cb-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cb-footer-meta span { font-size: 10.5px; color: var(--cb-text-3); }
.cb-powered { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--cb-text-3); }
.cb-powered svg { width: 11px; height: 11px; fill: var(--cb-accent); }

/* ============================================================
   RESIZE HANDLE
   ============================================================ */
.cb-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3px;
  opacity: 0.3;
  transition: opacity 0.15s;
  z-index: 10;
}
.cb-resize-handle:hover { opacity: 0.7; }
.chatbot-container.is-fullscreen .cb-resize-handle { display: none; }
.cb-resize-handle svg { width: 14px; height: 14px; fill: var(--cb-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --cb-default-w: calc(100vw - 20px);
    --cb-default-h: calc(100dvh - 84px);
  }
  .chat-toggle__label { display: none; }
  .chat-toggle { padding: 0 8px; }
}