/* 维塔在线咨询挂件：仅使用本文件样式，不依赖外部字体或脚本 */
.wita-bot-toggle,
.wita-bot-panel {
  --wita-ink: #1f2328;
  --wita-muted: #5b6370;
  --wita-line: #d8dde3;
  --wita-bg: #ffffff;
  --wita-accent: #1d5c8a;
  --wita-user: #e8f0f7;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  box-sizing: border-box;
}
.wita-bot-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--wita-accent);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.wita-bot-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--wita-bg);
  color: var(--wita-ink);
  border: 1px solid var(--wita-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  overflow: hidden;
}
.wita-bot-panel[hidden],
.wita-bot-toggle[hidden] { display: none; }
.wita-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--wita-accent);
  color: #fff;
  font-size: 16px;
}
.wita-bot-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.wita-bot-log {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  padding: 12px 16px;
}
.wita-bot-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.wita-bot-bot {
  background: #f3f5f7;
  margin-right: auto;
}
.wita-bot-user {
  background: var(--wita-user);
  margin-left: auto;
}
.wita-bot-chips {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 16px 8px;
  border-top: 1px solid var(--wita-line);
}
.wita-bot-group {
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--wita-muted);
}
.wita-bot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wita-bot-chip {
  border: 1px solid var(--wita-line);
  background: #fff;
  color: var(--wita-ink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}
.wita-bot-chip:hover { border-color: var(--wita-accent); color: var(--wita-accent); }
.wita-bot-form {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--wita-line);
}
.wita-bot-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--wita-line);
  border-radius: 8px;
  font-size: 15px;
}
.wita-bot-send {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--wita-accent);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.wita-bot-notice {
  margin: 0;
  padding: 8px 16px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wita-muted);
  border-top: 1px solid var(--wita-line);
}
@media (max-width: 480px) {
  .wita-bot-panel { right: 16px; left: 16px; width: auto; bottom: 8px; max-height: 80vh; }
  .wita-bot-toggle { right: 16px; bottom: 8px; }
}
