#qlx-chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .22);
}

#qlx-chat-box {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 99999;
  width: min(390px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .22);
}

.qlx-header {
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

.qlx-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qlx-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qlx-title {
  font-weight: 900;
  color: #0f172a;
}

.qlx-subtitle {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.qlx-close,
.qlx-locale-switch {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  cursor: pointer;
}

.qlx-close {
  width: 34px;
  height: 34px;
}

.qlx-locale-switch {
  padding: 7px 8px;
  font-size: 12px;
}

.qlx-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: #f8fafc;
}

.qlx-msg {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: 14px;
}

.qlx-assistant {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .05);
}

.qlx-user {
  margin-left: auto;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.qlx-thinking {
  opacity: .75;
  font-style: italic;
}

.qlx-msg-cta {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.qlx-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.qlx-quick-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.qlx-quick-btn-secondary {
  background: #f8fafc;
}

.qlx-inputbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

#qlx-chat-input {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}

#qlx-chat-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

#qlx-chat-send {
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.whats-float,
[data-assist-float] {
  display: none !important;
}

@media (max-width: 640px) {
  #qlx-chat-box {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    height: min(72vh, 620px);
  }

  #qlx-chat-btn {
    right: 12px;
    bottom: 12px;
  }
}
