/* Minimal chatbot widget styles */
.chat-widget {
  position: fixed;
  /* move widget slightly left so slider arrow and other floating elements remain visible */
  right: 56px;
  bottom: 24px;
  width: 260px;
  max-width: 85%;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2000;
}
.chat-widget .chat-bar {
  background: #2b95ff;
  color: white;
  padding: 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.chat-widget .chat-body {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-top: 8px;
  display: none;
}
.chat-widget.open .chat-body { display: block; }
.chat-widget .messages { padding: 10px; max-height: 240px; overflow-y: auto; }
.chat-widget .message { margin-bottom: 8px; }
.chat-widget .typing { font-style: italic; opacity: 0.8; }
.chat-widget .message.user { text-align: right; }
.chat-widget input[type="text"] { width: calc(100% - 18px); padding: 6px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; }
.chat-widget .controls { padding: 8px; background: #f8f8f8; border-top: 1px solid #eee; }
.chat-widget .message.bot { background: #f1f5f9; display: inline-block; padding: 8px; border-radius: 8px; }
.chat-widget .message.user { background: #2b95ff; color: #fff; display: inline-block; padding: 8px; border-radius: 8px; }

/* On small screens keep the widget closer to the edge to avoid losing space */
@media (max-width: 768px) {
  .chat-widget { right: 24px; bottom: 18px; width: 220px; }
  .chat-widget .messages { max-height: 200px; }
}
