#ai-chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1e90ff;
  color: #fff;
  border-radius: 24px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

#ai-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 330px;
  max-height: 60vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
}

#ai-chat-panel.open { display: flex; }

.ai-chat-header {
  background: #1e90ff;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-messages {
  padding: 12px;
  overflow-y: auto;
  height: 300px;
  background: #fafafa;
}

.ai-chat-input {
  display: flex;
  border-top: 1px solid #eee;
  gap: 8px;
  padding: 8px;
}

.ai-chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.ai-chat-input button {
  background: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.ai-chat-msg {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.3;
}

.ai-chat-msg.user {
  background: #e6f2ff;
  align-self: flex-end;
  margin-left: auto;
}

.ai-chat-msg.bot {
  background: #f0f0f0;
  align-self: flex-start;
  margin-right: auto;
}