﻿#chatbot-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: #f58220;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform .2s;
}
#chatbot-bubble:hover { transform: scale(1.08); }
#chatbot-bubble svg { width: 28px; height: 28px; fill: #fff; }

#chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
#chatbot-panel.open { display: flex; }

#chatbot-header {
  background: #1e1e24;
  color: #fff;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chatbot-header button {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
#chatbot-header button:hover { color: #fff; }

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8f8f8;
}
#chatbot-messages .msg {
  margin-bottom: 12px;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}
#chatbot-messages .msg.user {
  background: #f58220;
  color: #fff;
  margin-left: auto;
}
#chatbot-messages .msg.bot {
  background: #fff;
  color: #1e1e24;
  border: 1px solid #e5e7eb;
}
#chatbot-messages .msg.typing {
  background: #fff;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  font-style: italic;
}

#chatbot-input {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 10px;
  background: #fff;
}
#chatbot-input textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 13.5px;
  padding: 6px 8px;
  font-family: inherit;
  line-height: 1.4;
}
#chatbot-input button {
  background: #f58220;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
}
#chatbot-input button:hover { background: #e07010; }
#chatbot-input button:disabled { background: #ccc; cursor: default; }
