#chatbot-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #A8C256;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#chatbot-btn:hover { background: #8faa3e; }

#chatbot-window {
  position: fixed;
  bottom: 94px;
  right: 28px;
  width: 340px;
  max-height: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

#chatbot-header {
  background: #A8C256;
  color: #fff;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#chatbot-header span { font-size: 13px; opacity: 0.85; }
#chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg.user {
  background: #A8C256;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-msg.bot {
  background: #f1f1f1;
  color: #222;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.chat-msg.typing { color: #888; font-style: italic; }

#chatbot-form {
  display: flex;
  border-top: 1px solid #eee;
  padding: 8px;
  gap: 6px;
}
#chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
}
#chatbot-input:focus { border-color: #A8C256; }
#chatbot-send {
  background: #A8C256;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
#chatbot-send:hover { background: #8faa3e; }
#chatbot-send:disabled { background: #aaa; cursor: default; }

@media (max-width: 480px) {
  #chatbot-window {
    right: 10px;
    bottom: 82px;
    width: calc(100vw - 20px);
  }
  #chatbot-btn { bottom: 18px; right: 14px; }
}
