/**
 * QuizOrbit / XpertSTEM - AI Chatbot Stylesheet
 * Custom XpertSTEM Brand Colors (Obsidian / Dark Navy + Gold/Amber & Cyan Accents)
 * Features 3D Robot Mascot Avatar
 */

:root {
  --qo-cb-primary: #f59e0b;
  --qo-cb-primary-dark: #d97706;
  --qo-cb-primary-light: #fef3c7;
  --qo-cb-dark: #0b0f19;
  --qo-cb-dark-surface: #182235;
  --qo-cb-accent-cyan: #38bdf8;
  --qo-cb-text-main: #0f172a;
  --qo-cb-text-muted: #64748b;
  --qo-cb-bg-bubble-bot: #ffffff;
  --qo-cb-bg-bubble-user: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --qo-cb-shadow: 0 20px 45px -8px rgba(11, 15, 25, 0.35), 0 8px 24px -4px rgba(245, 158, 11, 0.15);
  --qo-cb-radius: 20px;
}

/* ============================================================
   Floating Launcher Trigger Button (With 3D Robot Mascot)
   ============================================================ */
#qo-chatbot-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b0f19 0%, #1e293b 60%, #0f172a 100%);
  box-shadow: 0 10px 28px rgba(11, 15, 25, 0.45), 0 0 18px rgba(245, 158, 11, 0.35);
  border: 2px solid #f59e0b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  user-select: none;
  padding: 0;
  overflow: visible;
}

#qo-chatbot-launcher:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(11, 15, 25, 0.55), 0 0 25px rgba(245, 158, 11, 0.5);
  border-color: #fbbf24;
}

#qo-chatbot-launcher:active {
  transform: scale(0.95);
}

.launcher-icon-robot {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: all 0.25s ease;
  pointer-events: none;
}

#qo-chatbot-launcher .launcher-icon-close {
  position: absolute;
  color: #fbbf24;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all 0.25s ease;
}

#qo-chatbot-launcher.is-active .launcher-icon-robot {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

#qo-chatbot-launcher.is-active .launcher-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Pulsing Gold Glow */
#qo-chatbot-launcher::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  opacity: 0;
  animation: qo-cb-pulse 2.5s infinite;
  pointer-events: none;
}

@keyframes qo-cb-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Permanently Visible Tooltip Pill Badge */
.qo-chatbot-badge-tooltip {
  position: absolute;
  right: 76px;
  background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
  color: #fbbf24;
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(245, 158, 11, 0.25);
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: qo-cb-badge-float 3.5s ease-in-out infinite;
}

@keyframes qo-cb-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.qo-chatbot-badge-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #1e293b;
}

#qo-chatbot-launcher:hover .qo-chatbot-badge-tooltip {
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Hide badge when chat window is actively open */
#qo-chatbot-launcher.is-active .qo-chatbot-badge-tooltip {
  opacity: 0;
  pointer-events: none;
  transform: translateX(15px);
  transition: all 0.2s ease;
}

/* ============================================================
   Chat Window Container
   ============================================================ */
#qo-chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 99989;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 130px);
  background: #ffffff;
  border-radius: var(--qo-cb-radius);
  box-shadow: var(--qo-cb-shadow);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px) scale(0.94);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#qo-chatbot-window.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ============================================================
   Chat Header (XpertSTEM Dark & Gold Theme)
   ============================================================ */
.qo-chatbot-header {
  background: linear-gradient(135deg, #0b0f19 0%, #182235 55%, #0f172a 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.qo-chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qo-chatbot-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  padding: 2px;
  overflow: visible;
}

.qo-chatbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qo-chatbot-avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b0f19;
  box-shadow: 0 0 6px #22c55e;
}

.qo-chatbot-title-info {
  display: flex;
  flex-direction: column;
}

.qo-chatbot-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.qo-chatbot-subtitle {
  font-size: 0.72rem;
  color: #fbbf24;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.qo-chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qo-chatbot-btn-end {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  padding: 5px 10px;
  color: #FCA5A5;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.qo-chatbot-btn-end:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.qo-chatbot-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qo-chatbot-btn-icon:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

/* ============================================================
   Lead Capture View
   ============================================================ */
.qo-chatbot-lead-view {
  flex: 1;
  padding: 26px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
}

.qo-chatbot-lead-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.qo-chatbot-lead-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
}

.qo-chatbot-lead-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.qo-chatbot-lead-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.45;
}

.qo-chatbot-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.qo-chatbot-form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.qo-chatbot-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.qo-chatbot-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.qo-chatbot-btn-start {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.qo-chatbot-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

/* ============================================================
   Chat Messages View
   ============================================================ */
.qo-chatbot-chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}

.qo-chatbot-messages-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.qo-chatbot-messages-area::-webkit-scrollbar {
  width: 5px;
}
.qo-chatbot-messages-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Message Rows */
.qo-chatbot-msg-row {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: qo-cb-msg-in 0.25s ease-out;
}

@keyframes qo-cb-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.qo-chatbot-msg-bot {
  align-self: flex-start;
}

.qo-chatbot-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.qo-chatbot-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0b0f19;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px;
}

.qo-chatbot-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qo-chatbot-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}

.qo-chatbot-msg-bot .qo-chatbot-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.qo-chatbot-msg-user .qo-chatbot-msg-bubble {
  background: var(--qo-cb-bg-bubble-user);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  font-weight: 500;
}

.qo-chatbot-msg-time {
  font-size: 0.65rem;
  margin-top: 4px;
  color: #94a3b8;
  text-align: right;
}

.qo-chatbot-msg-user .qo-chatbot-msg-time {
  color: rgba(255, 255, 255, 0.85);
}

/* Markdown formatting inside bubbles */
.qo-chatbot-msg-bubble {
  font-size: 0.88rem;
  line-height: 1.55;
  letter-spacing: 0.15px;
}
.qo-chatbot-msg-bubble p {
  margin: 0 0 8px 0;
}
.qo-chatbot-msg-bubble p:last-child {
  margin-bottom: 0;
}
.qo-chatbot-msg-bubble ul, .qo-chatbot-msg-bubble ol {
  margin: 6px 0 8px 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}
.qo-chatbot-msg-bubble li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.qo-chatbot-msg-bubble li:last-child {
  margin-bottom: 0;
}
.qo-chatbot-msg-bubble strong {
  font-weight: 700;
}
.qo-chatbot-msg-bubble code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
}
.qo-chatbot-msg-bubble a {
  color: #d97706;
  text-decoration: underline;
  font-weight: 600;
}
.qo-chatbot-msg-user .qo-chatbot-msg-bubble a {
  color: #ffffff;
}

/* Typing indicator */
.qo-chatbot-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.qo-chatbot-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: qo-cb-typing 1.4s infinite ease-in-out;
}
.qo-chatbot-typing-dot:nth-child(1) { animation-delay: 0s; }
.qo-chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.qo-chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes qo-cb-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Suggestion Chips */
.qo-chatbot-chips-bar {
  padding: 8px 14px 4px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qo-chatbot-chips-bar::-webkit-scrollbar {
  display: none;
}

.qo-chatbot-chip {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.qo-chatbot-chip:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

/* ============================================================
   Input Bar Area (Unified Capsule)
   ============================================================ */
.qo-chatbot-input-bar {
  padding: 8px 14px 4px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.qo-chatbot-input-container {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 3px 5px 3px 7px;
  gap: 6px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.qo-chatbot-input-container:focus-within {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.qo-chatbot-textarea {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 2px;
  font-size: 0.86rem;
  color: #0f172a;
  resize: none;
  max-height: 80px;
  height: 22px;
  min-height: 22px;
  line-height: 1.4;
  outline: none !important;
  font-family: inherit;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
}

.qo-chatbot-textarea::-webkit-scrollbar {
  display: none;
}

.qo-chatbot-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qo-chatbot-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.qo-chatbot-send-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.qo-chatbot-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Attachment Button */
.qo-chatbot-attach-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.qo-chatbot-attach-btn:hover {
  background: #fef3c7;
  color: #d97706;
  transform: scale(1.05);
}

.qo-chatbot-attach-btn.has-file {
  background: #fef3c7;
  color: #d97706;
}

/* Image Preview Bar */
.qo-chatbot-preview-bar {
  padding: 8px 14px;
  background: #fffdf5;
  border-top: 1px solid #fef3c7;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: qo-cb-msg-in 0.2s ease-out;
}

.qo-chatbot-preview-box {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.qo-chatbot-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qo-chatbot-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.qo-chatbot-preview-remove:hover {
  background: #ef4444;
}

.qo-chatbot-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  color: #475569;
}

.qo-chatbot-preview-title {
  font-weight: 700;
  color: #0f172a;
}

.qo-chatbot-preview-note {
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 600;
}

/* Message Image Bubble */
.qo-chatbot-msg-img-wrap {
  margin-top: 6px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 240px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
}

.qo-chatbot-msg-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.qo-chatbot-msg-img:hover {
  transform: scale(1.02);
}

/* Image Lightbox */
.qo-chatbot-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qo-chatbot-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qo-chatbot-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.qo-chatbot-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qo-chatbot-lightbox-close:hover {
  background: #ef4444;
}

.qo-chatbot-footer-brand {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 4px 0 6px;
  background: #ffffff;
}

.qo-chatbot-footer-brand a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.qo-chatbot-footer-brand a:hover {
  color: #d97706;
  text-decoration: underline;
}

/* ============================================================
   Mobile Responsiveness
   ============================================================ */
@media (max-width: 480px) {
  #qo-chatbot-launcher {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .launcher-icon-robot {
    width: 40px;
    height: 40px;
  }

  .qo-chatbot-badge-tooltip {
    right: 66px;
    font-size: 0.76rem;
    padding: 6px 11px;
  }

  #qo-chatbot-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .qo-chatbot-header {
    border-radius: 0;
    padding-top: max(16px, env(safe-area-inset-top));
  }
}
