/* LIMBS AI Help floating chatbot */
#limbs-ai-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

#limbs-ai-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, #5a2d82, #2575fc);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

#limbs-ai-chatbox {
  width: 420px;
  max-height: 640px;
  min-height: 320px;
  min-width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 62px;
  resize: both;
}

.limbs-ai-header {
  background: linear-gradient(120deg, #5a2d82, #3f51b5);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  cursor: move;
}

.limbs-ai-status {
  font-size: 12px;
  opacity: 0.85;
}

.limbs-ai-body {
  padding: 12px;
  max-height: 440px;
  overflow-y: auto;
  background: #f6f8fc;
}

.limbs-ai-row {
  display: flex;
  margin-bottom: 10px;
}
.limbs-ai-row.user { justify-content: flex-end; }
.limbs-ai-row.bot { justify-content: flex-start; }

.limbs-ai-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 82%;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.limbs-ai-row.bot .limbs-ai-bubble { background: #fff; border: 1px solid #e6eaf3; color: #111827; }
.limbs-ai-row.user .limbs-ai-bubble { background: #2575fc; color: #fff; }

.limbs-ai-quick {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}
.limbs-ai-chip {
  border: 1px solid #d1d5db;
  background: #f3f6fb;
  color: #374151;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.limbs-ai-footer {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.limbs-ai-input {
  display: flex;
  gap: 6px;
}
.limbs-ai-input input {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.limbs-ai-input button {
  padding: 9px 12px;
  background: #3f51b5;
  border: none;
  color: #fff;
  border-radius: 8px;
}

.limbs-ai-statusline {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.limbs-ai-typing {
  display: inline-block;
  width: 36px;
  text-align: center;
}
.limbs-ai-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  background: #9ca3af;
  border-radius: 50%;
  animation: limbs-bounce 1.4s infinite ease-in-out both;
}
.limbs-ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.limbs-ai-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes limbs-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
