.lvt-ai-chat-btn {
  position: fixed;
  z-index: 99990;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #0d6efd;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.lvt-ai-chat-btn:hover {
  background: #0b5ed7;
}
.lvt-ai-chat-panel {
  position: fixed;
  z-index: 99989;
  right: 20px;
  bottom: 88px;
  width: min(380px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 120px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.lvt-ai-chat-panel.open {
  display: flex;
}
.lvt-ai-chat-head {
  padding: 12px 14px;
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.lvt-ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}
.lvt-ai-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.lvt-ai-msg.user {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
}
.lvt-ai-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e9ecef;
  color: #212529;
}
.lvt-ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e9ecef;
  background: #fff;
}
.lvt-ai-chat-form input {
  flex: 1;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.lvt-ai-chat-form button {
  border: none;
  background: #0d6efd;
  color: #fff;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
}
.lvt-ai-typing {
  font-size: 12px;
  color: #6c757d;
  padding: 0 4px 4px;
}
