.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  font-family: Arial, sans-serif;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ecc70, #0aa85a);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 204, 112, 0.35);
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 24px));
  height: 520px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  background: #111;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chatbot-header h3 {
  font-size: 1rem;
  margin: 0;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.chatbot-message.user {
  align-self: flex-end;
  background: #0ecc70;
  color: #fff;
}

.chatbot-message.bot {
  align-self: flex-start;
  background: #fff;
  color: #222;
  border: 1px solid #e5e5e5;
}

.chatbot-form {
  padding: 12px;
  border-top: 1px solid #ececec;
  background: #fff;
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  font-size: 0.9rem;
}

.chatbot-send {
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-send:disabled,
.chatbot-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .chatbot-widget {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-panel {
    bottom: 68px;
    width: min(360px, calc(100vw - 12px));
    height: 70vh;
  }
}