.hf-chat-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  z-index: 99999;
  display: none;
}

.hf-chat-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.hf-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #1d2127;
  color: #fff;
}

.hf-chat-header-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hf-chat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #19c37d;
  display: inline-block;
}

.hf-chat-title {
  font-weight: 600;
}

.hf-chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.hf-chat-messages {
  max-height: 320px;
  overflow: auto;
  padding: 10px 12px;
  background: #f7f7f7;
}

.hf-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hf-chat-input {
  flex: 1;
  resize: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}

.hf-chat-send {
  border: none;
  background: #0d6efd;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.hf-chat-row {
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
}

.hf-chat-row--me {
  justify-content: flex-end;
}

.hf-chat-bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #e9ecef;
  color: #000;
}

.hf-chat-bubble--me {
  background: #0d6efd;
  color: #fff;
}

.hf-chat-time {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.6;
}

.hf-chat-time--me {
  opacity: 0.85;
}

#chat-messages.hf-chat-page-messages {
  min-height: 280px;
  max-height: 55vh;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

