.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  cursor: pointer;
  font-size: 24px;
}
.chatbot-panel {
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  display: none;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-direction: column;
}
.chatbot-panel.open { display: flex; height: 70vh; }
.chatbot-header {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chatbot-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0;
}
.chatbot-header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}
.chatbot-body { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }
.chatbot-services { padding: 12px 14px 0; background: #f8fafc; border-bottom: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 8px; max-height: 30vh; overflow-y: auto; }
.chatbot-services-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.chatbot-service-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chatbot-service-button { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.chatbot-service-button:hover { background: #e0f2fe; border-color: #93c5fd; }
.chatbot-message { max-width: 85%; padding: 10px 12px; border-radius: 12px; line-height: 1.4; font-size: 0.95rem; display: flex; flex-direction: column; gap: 6px; }
.chatbot-message.user { align-self: flex-end; background: #dbeafe; color: #1e3a8a; }
.chatbot-message.bot { align-self: flex-start; background: #f1f5f9; color: #0f172a; }
.chatbot-text { white-space: pre-wrap; line-height: 1.5; }
.chatbot-time { font-size: 0.72rem; opacity: 0.75; align-self: flex-end; }
.chatbot-message.user .chatbot-time { color: #1e3a8a; }
.chatbot-message.bot .chatbot-time { color: #64748b; }
.chatbot-footer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e5e7eb; }
.chatbot-footer input { flex: 1; border: 1px solid #cbd5e1; border-radius: 999px; padding: 10px 14px; }
.chatbot-footer button { border: none; background: #1d4ed8; color: #fff; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.chatbot-typing { color: #64748b; font-style: italic; font-size: 0.9rem; }
@media (max-width: 576px) {
  .chatbot-widget { right: 12px; bottom: 12px; }
  .chatbot-panel { width: calc(100vw - 16px); }
}
