/* RemUI-friendly: uses Bootstrap variables and simple, clean shapes */
.local-aichatbot { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: inherit; }

/* If RemUI has its own floating buttons, lift chatbot to avoid overlap */
.local-aichatbot.local-aichatbot--remui-offset { bottom: 92px; }

.local-aichatbot__launcher {
  border-radius: 999px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.15);
}

.local-aichatbot__launcher-icon { font-size: 20px; line-height: 1; }

.local-aichatbot__panel {
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 480px;
  max-height: calc(100vh - 110px);
  position: absolute;
  right: 0;
  bottom: 62px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 .75rem 2rem rgba(0,0,0,.18);
  display: none;
}

.local-aichatbot__panel.is-open { display: block; }

.local-aichatbot__body { display: flex; flex-direction: column; height: 100%; }

.local-aichatbot__messages {
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.local-aichatbot__msg {
  margin: .4rem 0;
  display: flex;
}

.local-aichatbot__bubble {
  max-width: 85%;
  border-radius: 14px;
  padding: .55rem .7rem;
  font-size: .95rem;
  line-height: 1.25rem;
  white-space: pre-wrap;
}

.local-aichatbot__msg.user { justify-content: flex-end; }
.local-aichatbot__msg.user .local-aichatbot__bubble { background: rgba(13,110,253,.12); }

.local-aichatbot__msg.assistant { justify-content: flex-start; }
.local-aichatbot__msg.assistant .local-aichatbot__bubble { background: rgba(33,37,41,.06); }

.local-aichatbot__sources { margin-top: .35rem; font-size: .85rem; }
.local-aichatbot__sources a { text-decoration: none; }

.local-aichatbot__quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }

.local-aichatbot__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; display: inline-block;
}

.local-aichatbot__disclaimer { border-radius: 12px; }
