/* 宣传站客服窗外壳，对照 dianshangbao-370-1。只覆盖 #yt-chat-root.is-pack，不改会话接口。 */
#yt-chat-root.is-pack {
  --yt-pack-blue: #3b6cff;
  --yt-pack-blue-2: #6b8cff;
  --yt-pack-ink: #0f1728;
  --yt-pack-text: #4b5565;
  --yt-pack-muted: #7b8494;
  --yt-pack-line: #d9e4ff;
  --yt-pack-wash: #f4f7fc;
  --yt-pack-chip: #eef3ff;
}
#yt-chat-root.is-pack .yt-chat-panel {
  width: 400px;
  height: 640px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  bottom: 24px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: var(--yt-pack-wash);
  box-shadow: 0 18px 50px rgba(15, 23, 40, 0.08);
  overflow: hidden;
}
#yt-chat-root.is-pack .yt-chat-panel.is-right {
  right: 88px;
}
#yt-chat-root.is-pack .yt-chat-panel.is-left {
  left: 88px;
}
#yt-chat-root.is-pack .yt-chat-hd {
  flex-shrink: 0;
  gap: 10px;
  padding: 16px 18px 14px;
  background: #fff;
  color: var(--yt-pack-ink);
  box-shadow: 0 1px 0 rgba(15, 23, 40, 0.04);
}
#yt-chat-root.is-pack .yt-chat-logo,
#yt-chat-root.is-pack .yt-chat-mark,
#yt-chat-root.is-pack .yt-chat-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  background-color: var(--yt-pack-blue);
  background-image: var(--yt-chat-logo, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#yt-chat-root.is-pack .yt-chat-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background-image: none;
}
#yt-chat-root.is-pack .yt-chat-ava {
  width: 32px;
  height: 32px;
  margin-top: 2px;
}
#yt-chat-root.is-pack .yt-chat-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#yt-chat-root.is-pack .yt-chat-brand strong,
#yt-chat-root.is-pack .yt-chat-hd strong {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--yt-pack-ink);
}
#yt-chat-root.is-pack .yt-chat-brand span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--yt-pack-muted);
}
#yt-chat-root.is-pack .yt-chat-hd .yt-handoff {
  color: var(--yt-pack-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 0 4px;
}
#yt-chat-root.is-pack .yt-chat-hd .yt-handoff:hover {
  color: var(--yt-pack-blue);
}
#yt-chat-root.is-pack .yt-chat-hd .yt-x {
  position: relative;
  width: 36px;
  height: 32px;
  margin-left: 4px;
  padding: 0;
  border-left: 1px solid #e8edf5;
  color: #64748b;
  font-size: 0;
  line-height: 0;
}
#yt-chat-root.is-pack .yt-chat-hd .yt-x::before {
  content: "\00d7";
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
}
#yt-chat-root.is-pack .yt-chat-hd .yt-x:hover {
  color: var(--yt-pack-ink);
}
#yt-chat-root.is-pack .yt-chat-list {
  flex: 1;
  padding: 12px 20px 8px;
  background: transparent;
}
#yt-chat-root.is-pack .yt-chat-msg {
  margin: 0 0 12px;
  padding: 0;
  max-width: 100%;
  background: transparent;
  border: 0;
  color: var(--yt-pack-text);
}
#yt-chat-root.is-pack .yt-chat-msg.is-bot,
#yt-chat-root.is-pack .yt-chat-msg.is-staff {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#yt-chat-root.is-pack .yt-chat-col {
  flex: 1;
  min-width: 0;
}
#yt-chat-root.is-pack .yt-chat-bubble {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f8;
  box-shadow: 0 4px 14px rgba(15, 23, 40, 0.04);
  font-size: 13px;
  line-height: 1.7;
  color: var(--yt-pack-text);
  word-break: break-word;
}
#yt-chat-root.is-pack .yt-chat-time {
  margin: 8px 4px 0;
  font-size: 12px;
  line-height: 1;
  color: #c0c6d2;
}
#yt-chat-root.is-pack .yt-chat-msg.is-visitor {
  margin-left: auto;
  max-width: 86%;
  background: transparent;
}
#yt-chat-root.is-pack .yt-chat-msg.is-visitor .yt-chat-bubble {
  background: var(--yt-pack-blue);
  border-color: var(--yt-pack-blue);
  color: #fff;
  box-shadow: none;
}
#yt-chat-root.is-pack .yt-chat-msg.is-system {
  margin: 0 auto 10px;
  max-width: 90%;
  color: var(--yt-pack-muted);
  font-size: 12px;
  text-align: center;
}
#yt-chat-root.is-pack .yt-chat-hints {
  flex: 0 0 auto;
  padding: 4px 20px 8px;
}
#yt-chat-root.is-pack .yt-chat-hints[hidden] {
  display: none !important;
}
#yt-chat-root.is-pack .yt-chat-hints p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--yt-pack-ink);
}
#yt-chat-root.is-pack .yt-chat-hint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#yt-chat-root.is-pack .yt-chat-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--yt-pack-line);
  border-radius: 12px;
  background: #fff;
  color: var(--yt-pack-blue);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
#yt-chat-root.is-pack .yt-chat-suggest:hover {
  background: var(--yt-pack-chip);
}
#yt-chat-root.is-pack .yt-chat-suggest span {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#yt-chat-root.is-pack .yt-chat-suggest::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
#yt-chat-root.is-pack button,
#yt-chat-root.is-pack textarea,
#yt-chat-root.is-pack input {
  outline: none;
}
#yt-chat-root.is-pack .yt-chat-form {
  margin: 0 20px 8px;
  padding: 12px 14px;
  border: 1px solid #d9dee7;
  border-radius: 12px;
  background: #fff;
}
#yt-chat-root.is-pack .yt-chat-form input {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
}
#yt-chat-root.is-pack .yt-chat-form input:focus {
  border-color: var(--yt-pack-blue);
  box-shadow: 0 0 0 1px var(--yt-pack-blue);
}
#yt-chat-root.is-pack .yt-chat-ft {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 4px 20px 8px;
  padding: 12px 14px 10px;
  border: 1px solid #d9dee7;
  border-top: 1px solid #d9dee7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
#yt-chat-root.is-pack .yt-chat-ft:focus-within {
  border-color: var(--yt-pack-blue);
  box-shadow: 0 0 0 1px var(--yt-pack-blue);
}
#yt-chat-root.is-pack .yt-chat-ft textarea,
#yt-chat-root.is-pack textarea.yt-input {
  display: block;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 2px 2px 8px;
  border: 0 none;
  border-radius: 0;
  background: transparent;
  color: var(--yt-pack-ink);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
#yt-chat-root.is-pack .yt-chat-ft textarea:focus,
#yt-chat-root.is-pack .yt-chat-ft textarea:focus-visible,
#yt-chat-root.is-pack textarea.yt-input:focus,
#yt-chat-root.is-pack textarea.yt-input:focus-visible {
  border: 0 none;
  outline: none;
  box-shadow: none;
}
#yt-chat-root.is-pack .yt-chat-ft textarea::placeholder {
  color: #c0c6d2;
}
#yt-chat-root.is-pack .yt-chat-ops {
  justify-content: flex-end;
  margin-top: 0;
}
#yt-chat-root.is-pack .yt-chat-ops .yt-new {
  margin-right: auto;
  border: 0;
  background: transparent;
  color: var(--yt-pack-muted);
  height: 36px;
}
#yt-chat-root.is-pack .yt-chat-ops .yt-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--yt-pack-blue-2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
#yt-chat-root.is-pack .yt-chat-ops .yt-send:hover {
  filter: brightness(1.05);
}
#yt-chat-root.is-pack .yt-chat-ops .yt-send::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%);
}
#yt-chat-root.is-pack .yt-chat-note {
  flex-shrink: 0;
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  color: #c0c6d2;
}
@media (max-width: 420px) {
  #yt-chat-root.is-pack .yt-chat-panel,
  #yt-chat-root.is-pack .yt-chat-panel.is-right,
  #yt-chat-root.is-pack .yt-chat-panel.is-left {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
    height: calc(100vh - 24px);
    max-height: none;
    border-radius: 12px;
  }
  #yt-chat-root.is-pack .yt-chat-hint-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  #yt-chat-root.is-pack .yt-chat-suggest,
  #yt-chat-root.is-pack .yt-chat-ops .yt-send {
    transition: none;
  }
}
