#br-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #007FAF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#br-chat-toggle:hover { background: #005270; }
#br-chat-toggle svg   { width: 26px; height: 26px; fill: #fff; }

#br-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
#br-chat-panel[hidden] { display: none; }

#br-chat-header {
  background: #005270;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#br-chat-header-title { font-weight: 700; font-size: 0.95rem; }
#br-chat-header-sub   { font-size: 0.75rem; color: #B3D9E8; margin-top: 2px; }
#br-chat-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.8;
}
#br-chat-close:hover { opacity: 1; }

#br-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F7FAFC;
}

.br-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 0.87rem;
  word-break: break-word;
}
.br-msg-bot  { background: #E6F6FF; color: #111827; align-self: flex-start; border-bottom-left-radius: 2px; }
.br-msg-user { background: #007FAF; color: #fff;    align-self: flex-end;   border-bottom-right-radius: 2px; }

#br-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #E5E7EB;
  background: #fff;
  flex-shrink: 0;
}
#br-chat-input {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.87rem;
  outline: none;
  resize: none;
}
#br-chat-input:focus { border-color: #007FAF; }
#br-chat-send {
  background: #007FAF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  transition: background 0.2s;
}
#br-chat-send:hover    { background: #005270; }
#br-chat-send:disabled { background: #9CA3AF; cursor: default; }

#br-chat-typing {
  font-size: 0.8rem;
  color: #9CA3AF;
  padding: 0 16px 6px;
  flex-shrink: 0;
  min-height: 20px;
}
