#ba-ai-button {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
#ba-ai-button[data-position="bottom-left"] {
  right: auto;
  left: 18px;
}
#ba-ai-window.ba-ai-window {
  position: fixed;
  bottom: 82px;
  right: 18px;
  width: 320px;
  height: 400px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 4px 25px rgba(0,0,0,.18);
}
#ba-ai-window.ba-left {
  right: auto;
  left: 18px;
}
#ba-ai-header {
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
#ba-ai-close {
  cursor: pointer;
  font-size: 18px;
}
#ba-ai-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;
}
.ba-msg {
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.ba-user {
  background: var(--ba-user, #EDAB11);
  margin-left: 40px;
}
.ba-bot {
  background: var(--ba-bot, #fff);
  margin-right: 40px;
}
#ba-ai-inputrow {
  padding: 8px;
  display: flex;
  gap: 6px;
  border-top: 1px solid #ddd;
  background: #fff;
}
#ba-ai-text {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 6px;
}
#ba-ai-send {
  background: var(--ba-primary, #111);
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}