.vtg-chat-root {
  --vtg-chat-ink: #12233F;
  --vtg-chat-ink-soft: #52627a;
  --vtg-chat-muted: #7b879a;
  --vtg-chat-paper: #ffffff;
  --vtg-chat-paper-2: #f3f5f8;
  --vtg-chat-line: #e3e8ef;
  --vtg-chat-primary: #1A4685;
  --vtg-chat-primary-dark: #143566;
  --vtg-chat-secondary: #BD993F;
  --vtg-chat-on-primary: #FFFFFF;
  --vtg-chat-on-secondary: #12233F;
  --vtg-chat-card: #ffffff;
  --vtg-chat-tint: #eef2f8;
  --vtg-chat-chip-line: #d3dbe6;
  --vtg-chat-ring: rgba(26, 70, 133, 0.18);
  --vtg-chat-hover-on-primary: rgba(127, 127, 127, 0.22);
  --vtg-chat-ok: #1f9d55;
  --vtg-chat-warn: #a25c00;
  --vtg-chat-danger: #b3261e;
  --vtg-chat-danger-bg: #fdecea;
  --vtg-chat-alert: #e5372b;
  --vtg-chat-shadow: 0 24px 60px -12px rgba(18, 35, 63, 0.3), 0 4px 16px rgba(18, 35, 63, 0.08);
  --vtg-chat-shadow-sm: 0 8px 24px rgba(18, 35, 63, 0.2);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--vtg-chat-ink);
  position: fixed;
  bottom: var(--vtg-chat-bottom, 20px);
  z-index: 99990;
  isolation: isolate;
  line-height: 1.45;
  font-size: 14px;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .vtg-chat-root {
    --vtg-chat-tint: color-mix(in srgb, var(--vtg-chat-primary) 8%, #fff);
    --vtg-chat-chip-line: color-mix(in srgb, var(--vtg-chat-primary) 28%, #e3e8ef);
    --vtg-chat-ring: color-mix(in srgb, var(--vtg-chat-primary) 20%, transparent);
    --vtg-chat-hover-on-primary: color-mix(in srgb, var(--vtg-chat-on-primary) 16%, transparent);
  }
}
.vtg-chat-root,
.vtg-chat-root * {
  box-sizing: border-box;
}
.vtg-chat-pos-right { right: 20px; }
.vtg-chat-pos-left { left: 20px; }

.vtg-chat-root[hidden],
.vtg-chat-root [hidden],
.vtg-chat-panel[hidden],
.vtg-chat-badge[hidden] {
  display: none !important;
}
.vtg-chat-root:not(.vtg-chat-ai-on) .vtg-chat-ai-only {
  display: none !important;
}

/* Theme resets (themes often restyle every <button>, <a>, <ul>, <svg>). */
.vtg-chat-root button {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  font: inherit;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
  box-shadow: none;
  line-height: 1.3;
}
.vtg-chat-root a { text-decoration: none; box-shadow: none; }
.vtg-chat-root img { max-width: none; border: 0; }
.vtg-chat-root svg.vtg-chat-svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}
.vtg-chat-root svg.vtg-chat-svg-fill {
  fill: currentColor;
  stroke: none;
}

.vtg-chat-root :focus-visible {
  outline: 2px solid var(--vtg-chat-primary);
  outline-offset: 2px;
}
.vtg-chat-header :focus-visible,
.vtg-chat-launcher:focus-visible {
  outline-color: var(--vtg-chat-secondary);
}

.vtg-chat-root .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Launcher ---------- */

.vtg-chat-root .vtg-chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  max-width: none;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  box-shadow: var(--vtg-chat-shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.vtg-chat-root .vtg-chat-launcher:hover {
  background: var(--vtg-chat-primary-dark);
  transform: translateY(-2px);
}
.vtg-chat-root .vtg-chat-launcher:active { transform: scale(0.96); }
.vtg-chat-launcher-icon {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.vtg-chat-launcher-icon svg.vtg-chat-svg { width: 26px; height: 26px; }
.vtg-chat-launcher-down {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.vtg-chat-is-open .vtg-chat-launcher-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.vtg-chat-is-open .vtg-chat-launcher-down {
  opacity: 1;
  transform: none;
}
.vtg-chat-launcher-ai {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vtg-chat-secondary);
  color: var(--vtg-chat-on-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.vtg-chat-launcher-ai svg.vtg-chat-svg { width: 13px; height: 13px; }
.vtg-chat-launcher-dot {
  display: none;
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--vtg-chat-ok);
  box-shadow: 0 0 0 2px #fff;
}
.vtg-chat-online .vtg-chat-launcher-dot { display: block; }
.vtg-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--vtg-chat-alert);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- Panel ---------- */

.vtg-chat-panel {
  position: absolute;
  bottom: 70px;
  width: 400px;
  width: min(400px, calc(100vw - 24px));
  height: 600px;
  height: min(640px, 85vh, calc(100vh - 110px));
  background: var(--vtg-chat-paper);
  border: 1px solid rgba(18, 35, 63, 0.08);
  border-radius: 20px;
  box-shadow: var(--vtg-chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: vtg-chat-panel-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.admin-bar .vtg-chat-panel {
  height: min(640px, 85vh, calc(100vh - 142px));
}
.vtg-chat-pos-right .vtg-chat-panel { right: 0; }
.vtg-chat-pos-left .vtg-chat-panel { left: 0; transform-origin: bottom left; }
@keyframes vtg-chat-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */

.vtg-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  flex-shrink: 0;
}
.vtg-chat-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.vtg-chat-avatars > * {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--vtg-chat-primary);
}
.vtg-chat-avatars > * + * { margin-left: -10px; }
.vtg-chat-root .vtg-chat-logo,
.vtg-chat-root .vtg-chat-avatar-logo {
  display: block;
  object-fit: cover;
  background: #fff;
}
.vtg-chat-avatars .vtg-chat-avatar-ai,
.vtg-chat-avatar-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vtg-chat-secondary);
  color: var(--vtg-chat-on-secondary);
}
.vtg-chat-avatars .vtg-chat-avatar-ai svg.vtg-chat-svg { width: 18px; height: 18px; }
.vtg-chat-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.vtg-chat-shop {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtg-chat-status {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.9;
  overflow: hidden;
}
.vtg-chat-status:empty { display: none; }
.vtg-chat-online .vtg-chat-status:not(.is-ended)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 1px;
  vertical-align: middle;
  border-radius: 50%;
  background: #3ad07a;
  box-shadow: 0 0 0 2px var(--vtg-chat-hover-on-primary);
}
.vtg-chat-contacts {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.vtg-chat-root .vtg-chat-contact-zalo {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-right: 4px;
  padding: 0 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--vtg-chat-on-primary);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.vtg-chat-root .vtg-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vtg-chat-on-primary);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.vtg-chat-root .vtg-chat-contact-phone svg.vtg-chat-svg { width: 18px; height: 18px; }
.vtg-chat-root .vtg-chat-contact-zalo:hover,
.vtg-chat-root .vtg-chat-icon-btn:hover {
  background: var(--vtg-chat-hover-on-primary);
  color: var(--vtg-chat-on-primary);
  text-decoration: none;
}

/* ---------- Product context bar ---------- */

.vtg-chat-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--vtg-chat-paper-2);
  border-bottom: 1px solid var(--vtg-chat-line);
  flex-shrink: 0;
}
.vtg-chat-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 8px;
  background: #fff;
  color: var(--vtg-chat-muted);
}
.vtg-chat-root .vtg-chat-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vtg-chat-product-media svg.vtg-chat-svg { width: 16px; height: 16px; }
.vtg-chat-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.vtg-chat-product-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtg-chat-product-price {
  font-size: 12px;
  color: var(--vtg-chat-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtg-chat-root .vtg-chat-product-ask {
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid var(--vtg-chat-chip-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vtg-chat-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.vtg-chat-root .vtg-chat-product-ask:hover {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-tint);
}

/* ---------- Thread ---------- */

.vtg-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--vtg-chat-paper);
}
.vtg-chat-intro,
.vtg-chat-log,
.vtg-chat-extras {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vtg-chat-extras:empty,
.vtg-chat-typing:empty { display: none; }

/* New messages slide in softly. AI answers are excluded: they already appear through the thinking
   bubble / streamed text, and re-fading the final row after streaming would blink. */
.vtg-chat-log > .vtg-chat-bubble,
.vtg-chat-log > .vtg-chat-system,
.vtg-chat-log > .vtg-chat-row:not(.vtg-chat-ai),
.vtg-chat-typing > .vtg-chat-row,
.vtg-chat-extras > .vtg-chat-live {
  animation: vtg-chat-msg-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes vtg-chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.vtg-chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.vtg-chat-visitor {
  align-self: flex-end;
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  border-bottom-right-radius: 6px;
}

/* Rows with an avatar: AI, agent, shop greeting */
.vtg-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  min-width: 0;
}
.vtg-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.vtg-chat-row .vtg-chat-avatar-ai svg.vtg-chat-svg { width: 15px; height: 15px; }
.vtg-chat-avatar-agent,
.vtg-chat-avatar-initials {
  background: var(--vtg-chat-tint);
  color: var(--vtg-chat-primary-dark);
  border: 1px solid var(--vtg-chat-line);
}
.vtg-chat-row .vtg-chat-avatar-logo {
  border: 1px solid var(--vtg-chat-line);
  object-fit: cover;
}
.vtg-chat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.vtg-chat-agent .vtg-chat-col,
.vtg-chat-welcome .vtg-chat-col { padding-right: 12%; }
.vtg-chat-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vtg-chat-ink-soft);
  line-height: 1.2;
}
.vtg-chat-ai-tag {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--vtg-chat-tint);
  color: var(--vtg-chat-primary-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.vtg-chat-bubble-agent {
  max-width: 100%;
  background: var(--vtg-chat-paper-2);
  color: var(--vtg-chat-ink);
  border-top-left-radius: 6px;
  white-space: normal;
}
.vtg-chat-rich {
  align-self: stretch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vtg-chat-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* AI answers (final and streaming) sit in a soft bubble like every other message: brand-tinted,
   rounded, the small corner pointing at the avatar. */
.vtg-chat-ai .vtg-chat-col { padding-right: 8%; }
.vtg-chat-ai .vtg-chat-rich {
  align-self: flex-start;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: var(--vtg-chat-tint);
}
.vtg-chat-p { white-space: pre-wrap; }
.vtg-chat-gap { height: 6px; }
.vtg-chat-root .vtg-chat-ul {
  margin: 2px 0;
  padding: 0 0 0 18px;
  list-style: disc outside;
}
.vtg-chat-root .vtg-chat-ul li {
  margin: 3px 0;
  padding: 0;
  list-style: inherit;
  white-space: pre-wrap;
}
.vtg-chat-root .vtg-chat-ul li::marker { color: var(--vtg-chat-primary); }
.vtg-chat-root .vtg-chat-ul li::before { content: none; }
.vtg-chat-root .vtg-chat-link {
  color: var(--vtg-chat-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.vtg-chat-root .vtg-chat-link[href^="tel:"] { word-break: normal; white-space: nowrap; }
.vtg-chat-root .vtg-chat-link:hover { color: var(--vtg-chat-primary); }
.vtg-chat-rich strong,
.vtg-chat-bubble strong { font-weight: 700; }

.vtg-chat-hours {
  font-size: 12px;
  color: var(--vtg-chat-muted);
}
.vtg-chat-starters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 34px;
}
.vtg-chat-starters-label {
  font-size: 12px;
  color: var(--vtg-chat-muted);
}

.vtg-chat-system {
  align-self: center;
  max-width: 90%;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--vtg-chat-paper-2);
  color: var(--vtg-chat-ink-soft);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vtg-chat-error {
  color: var(--vtg-chat-danger);
  background: var(--vtg-chat-danger-bg);
}

/* Optimistic send: pending / failed / held for the contact card */
.vtg-chat-pending { opacity: 0.62; }
.vtg-chat-held { opacity: 0.78; }
.vtg-chat-held-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.85;
  white-space: normal;
}
.vtg-chat-visitor.vtg-chat-failed {
  background: var(--vtg-chat-danger-bg);
  color: var(--vtg-chat-ink);
  border: 1px solid #e3a39c;
}
.vtg-chat-fail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  white-space: normal;
  font-size: 12px;
  color: var(--vtg-chat-danger);
}
.vtg-chat-root .vtg-chat-retry {
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: var(--vtg-chat-danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.vtg-chat-root .vtg-chat-retry:hover { background: #fff5f4; }

/* ---------- Chips (starters, follow-ups, teaser) ---------- */

.vtg-chat-chips,
.vtg-chat-followups,
.vtg-chat-nudge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vtg-chat-followups { margin-top: 2px; }
.vtg-chat-root .vtg-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--vtg-chat-chip-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vtg-chat-ink);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.vtg-chat-root .vtg-chat-chip:hover:not(:disabled) {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-tint);
}
.vtg-chat-root .vtg-chat-chip:disabled { opacity: 0.55; cursor: default; }
.vtg-chat-root .vtg-chat-chip-human {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  font-weight: 600;
}
.vtg-chat-root .vtg-chat-chip-human:hover:not(:disabled) {
  background: var(--vtg-chat-primary-dark);
  border-color: var(--vtg-chat-primary-dark);
  color: var(--vtg-chat-on-primary);
}
.vtg-chat-chip-icon svg.vtg-chat-svg { width: 15px; height: 15px; }

/* ---------- Product cards under an AI answer ---------- */

.vtg-chat-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}
.vtg-chat-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 14px;
  background: var(--vtg-chat-card);
}
.vtg-chat-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--vtg-chat-paper-2);
  color: var(--vtg-chat-muted);
}
.vtg-chat-root .vtg-chat-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vtg-chat-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.vtg-chat-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.vtg-chat-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-size: 13px;
}
.vtg-chat-card-now { font-weight: 700; }
.vtg-chat-card-was {
  color: var(--vtg-chat-muted);
  font-size: 12px;
}
.vtg-chat-card-stock { font-size: 12px; font-weight: 600; }
.vtg-chat-stock-instock { color: var(--vtg-chat-ok); }
.vtg-chat-stock-outofstock { color: var(--vtg-chat-danger); }
.vtg-chat-stock-onbackorder { color: var(--vtg-chat-warn); }
.vtg-chat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.vtg-chat-root .vtg-chat-card-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--vtg-chat-chip-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vtg-chat-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.vtg-chat-root .vtg-chat-card-btn:hover {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-tint);
  color: var(--vtg-chat-ink);
  text-decoration: none;
}
.vtg-chat-root .vtg-chat-card-cart,
.vtg-chat-root .vtg-chat-card-cart:hover {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
}
.vtg-chat-root .vtg-chat-card-cart:hover {
  background: var(--vtg-chat-primary-dark);
  border-color: var(--vtg-chat-primary-dark);
}

/* ---------- Answer feedback ---------- */

.vtg-chat-feedback {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
}
.vtg-chat-root .vtg-chat-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vtg-chat-muted);
  cursor: pointer;
}
.vtg-chat-fb svg.vtg-chat-svg { width: 15px; height: 15px; }
.vtg-chat-root .vtg-chat-fb:hover {
  background: var(--vtg-chat-paper-2);
  color: var(--vtg-chat-ink);
}
.vtg-chat-root .vtg-chat-fb.is-on {
  background: var(--vtg-chat-tint);
  color: var(--vtg-chat-primary-dark);
}
.vtg-chat-fb-note {
  margin-left: 4px;
  font-size: 12px;
  color: var(--vtg-chat-muted);
}

/* ---------- AI thinking indicator ---------- */

.vtg-chat-thinking-body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 9px 14px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: var(--vtg-chat-tint);
  font-size: 13px;
  color: var(--vtg-chat-ink-soft);
}
.vtg-chat-dots {
  display: inline-flex;
  gap: 3px;
  color: var(--vtg-chat-primary);
}
.vtg-chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: vtg-chat-blink 1.2s infinite ease-in-out;
}
.vtg-chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.vtg-chat-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes vtg-chat-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .vtg-chat-thinking-text {
    background: linear-gradient(90deg, var(--vtg-chat-ink-soft) 0%, var(--vtg-chat-ink-soft) 40%, var(--vtg-chat-primary) 50%, var(--vtg-chat-ink-soft) 60%, var(--vtg-chat-ink-soft) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vtg-chat-shimmer 2.2s linear infinite;
  }
}
@keyframes vtg-chat-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ---------- Streamed AI reply (live row) ---------- */

.vtg-chat-live-text { white-space: pre-wrap; }
/* Each streamed piece fades in instead of popping onto the screen. */
.vtg-chat-chunk { animation: vtg-chat-chunk-in 0.4s ease-out both; }
@keyframes vtg-chat-chunk-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vtg-chat-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  border-radius: 1px;
  background: var(--vtg-chat-primary);
  animation: vtg-chat-caret 1s steps(1, end) infinite;
}
@keyframes vtg-chat-caret {
  50% { opacity: 0; }
}
.vtg-chat-live.is-stopped .vtg-chat-live-text { color: var(--vtg-chat-ink-soft); }

/* ---------- Staff typing ---------- */

.vtg-chat-agent-typing-box:empty { display: none; }
.vtg-chat-row.vtg-chat-agent-typing { align-items: center; }
.vtg-chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: var(--vtg-chat-paper-2);
}
.vtg-chat-typing-bubble .vtg-chat-dots { color: var(--vtg-chat-ink-soft); }
.vtg-chat-typing-label {
  min-width: 0;
  font-size: 12px;
  color: var(--vtg-chat-muted);
}

/* ---------- Photos ---------- */

.vtg-chat-root .vtg-chat-image {
  display: block;
  max-width: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--vtg-chat-paper-2);
  line-height: 0;
  text-decoration: none;
}
.vtg-chat-root .vtg-chat-image img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: cover;
}
.vtg-chat-root a.vtg-chat-image { cursor: zoom-in; }
.vtg-chat-root a.vtg-chat-image:focus-visible { outline-offset: 2px; }
.vtg-chat-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 90px;
  color: var(--vtg-chat-muted);
}
.vtg-chat-visitor.vtg-chat-has-image { padding: 4px; }
.vtg-chat-has-image .vtg-chat-image { border-radius: 14px; }
.vtg-chat-caption { padding: 5px 9px 3px; }
.vtg-chat-has-image .vtg-chat-held-note,
.vtg-chat-has-image .vtg-chat-fail { margin: 4px 8px 4px; }
.vtg-chat-visitor.vtg-chat-image-only:not(.vtg-chat-failed):not(.vtg-chat-held) {
  padding: 0;
  background: transparent;
}
.vtg-chat-image-only:not(.vtg-chat-failed):not(.vtg-chat-held) .vtg-chat-image {
  border-radius: 18px 18px 6px 18px;
}

/* ---------- Order lookup: form + order card ---------- */

.vtg-chat-order-form-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vtg-chat-order-icon {
  display: inline-flex;
  color: var(--vtg-chat-primary);
}
.vtg-chat-order-icon svg.vtg-chat-svg { width: 18px; height: 18px; }
.vtg-chat-field-hint {
  font-size: 11px;
  color: var(--vtg-chat-muted);
}
.vtg-chat-order-msg {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.vtg-chat-order {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 16px;
  background: var(--vtg-chat-card);
  box-shadow: 0 2px 8px rgba(18, 35, 63, 0.05);
  font-size: 13px;
  line-height: 1.4;
}
.vtg-chat-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.vtg-chat-order-num { font-size: 14px; font-weight: 700; }
.vtg-chat-order-status {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--vtg-chat-paper-2);
  color: var(--vtg-chat-ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.vtg-chat-order-ok { background: #e6f4ec; color: #17693b; }
.vtg-chat-order-info { background: var(--vtg-chat-tint); color: var(--vtg-chat-primary-dark); }
.vtg-chat-order-warn { background: #fdf1de; color: #8a4d00; }
.vtg-chat-order-bad { background: var(--vtg-chat-danger-bg); color: var(--vtg-chat-danger); }
.vtg-chat-order-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
}
.vtg-chat-order-label { color: var(--vtg-chat-muted); }
.vtg-chat-order-value {
  min-width: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.vtg-chat-root .vtg-chat-order-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--vtg-chat-line);
  border-bottom: 1px solid var(--vtg-chat-line);
  list-style: none;
}
.vtg-chat-root .vtg-chat-order-items li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vtg-chat-root .vtg-chat-order-items li::before { content: none; }
.vtg-chat-order-item { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vtg-chat-order-qty { color: var(--vtg-chat-ink-soft); white-space: nowrap; }
.vtg-chat-root .vtg-chat-order-items .vtg-chat-order-more { color: var(--vtg-chat-muted); font-size: 12px; }
.vtg-chat-order-note {
  font-size: 12px;
  color: var(--vtg-chat-ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vtg-chat-root .vtg-chat-order-view { align-self: flex-start; }

/* ---------- Action bar: "Gặp nhân viên" / "Tra cứu đơn" ---------- */

.vtg-chat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 0;
  background: var(--vtg-chat-paper);
  flex-shrink: 0;
}
.vtg-chat-root .vtg-chat-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--vtg-chat-chip-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vtg-chat-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.vtg-chat-action-icon svg.vtg-chat-svg { width: 14px; height: 14px; }
.vtg-chat-root .vtg-chat-action:hover:not(:disabled) {
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-tint);
}
.vtg-chat-root .vtg-chat-action:disabled { opacity: 0.5; cursor: default; }

/* ---------- Lead card / pre-chat form / contact card ---------- */

.vtg-chat-lead {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  background: var(--vtg-chat-card);
  border: 1px solid var(--vtg-chat-line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(18, 35, 63, 0.05);
}
.vtg-chat-lead p { margin: 0; }
.vtg-chat-lead-title { font-size: 13px; font-weight: 600; line-height: 1.45; }
.vtg-chat-lead-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: 12px;
  color: var(--vtg-chat-ink-soft);
}
.vtg-chat-root .vtg-chat-lead-field input {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 10px;
  background: #fff;
  color: var(--vtg-chat-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
}
.vtg-chat-root .vtg-chat-lead-field input:focus {
  border-color: var(--vtg-chat-primary);
  box-shadow: 0 0 0 3px var(--vtg-chat-ring);
  outline: none;
}
.vtg-chat-lead-error { font-size: 12px; color: var(--vtg-chat-danger); }
.vtg-chat-lead-error:empty { display: none; }
.vtg-chat-lead-actions { display: flex; gap: 8px; }
.vtg-chat-root .vtg-chat-lead-submit,
.vtg-chat-root .vtg-chat-newchat {
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.vtg-chat-root .vtg-chat-lead-submit:hover,
.vtg-chat-root .vtg-chat-newchat:hover { background: var(--vtg-chat-primary-dark); }
.vtg-chat-root .vtg-chat-lead-submit:disabled { opacity: 0.5; cursor: default; }
.vtg-chat-root .vtg-chat-lead-later {
  padding: 8px 12px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 10px;
  background: transparent;
  color: var(--vtg-chat-ink-soft);
  font-size: 13px;
  cursor: pointer;
}
.vtg-chat-root .vtg-chat-lead-later:hover { color: var(--vtg-chat-ink); border-color: var(--vtg-chat-ink-soft); }
.vtg-chat-prechat .vtg-chat-lead-submit { flex: 1 1 auto; min-height: 38px; }
.vtg-chat-prechat-note { font-size: 11px; color: var(--vtg-chat-muted); }
.vtg-chat-root .vtg-chat-prechat-note a { color: inherit; text-decoration: underline; }
.vtg-chat-gate { border-color: var(--vtg-chat-chip-line); }

/* ---------- Closed conversation + CSAT ---------- */

.vtg-chat-closed {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 16px;
  background: var(--vtg-chat-paper-2);
  text-align: center;
  font-size: 13px;
}
.vtg-chat-closed p { margin: 0; }
.vtg-chat-closed-title { font-weight: 600; }
.vtg-chat-csat-ask,
.vtg-chat-csat-thanks { color: var(--vtg-chat-ink-soft); font-size: 12px; }
.vtg-chat-csat { display: flex; gap: 12px; }
.vtg-chat-root .vtg-chat-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 50%;
  background: #fff;
  color: var(--vtg-chat-ink-soft);
  cursor: pointer;
}
.vtg-chat-root .vtg-chat-rate:hover:not(:disabled) {
  border-color: var(--vtg-chat-primary);
  color: var(--vtg-chat-primary-dark);
}
.vtg-chat-root .vtg-chat-rate:disabled { opacity: 0.5; cursor: default; }

/* ---------- Composer ---------- */

.vtg-chat-composer {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 12px 10px;
  background: var(--vtg-chat-paper);
}
.vtg-chat-field {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--vtg-chat-line);
  border-radius: 24px;
  background: var(--vtg-chat-paper-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.vtg-chat-field:focus-within {
  border-color: var(--vtg-chat-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--vtg-chat-ring);
}
.vtg-chat-root .vtg-chat-field textarea {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: 120px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vtg-chat-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  box-shadow: none;
  outline: none;
}
.vtg-chat-root .vtg-chat-field textarea::placeholder { color: var(--vtg-chat-muted); opacity: 1; }
.vtg-chat-root .vtg-chat-field textarea:focus-visible { outline: none; }
.vtg-chat-root .vtg-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vtg-chat-primary);
  color: var(--vtg-chat-on-primary);
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.vtg-chat-send svg.vtg-chat-svg { width: 18px; height: 18px; margin-left: -1px; }
.vtg-chat-root .vtg-chat-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vtg-chat-ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.vtg-chat-attach svg.vtg-chat-svg { width: 20px; height: 20px; }
.vtg-chat-root .vtg-chat-attach:hover:not(:disabled) {
  background: var(--vtg-chat-tint);
  color: var(--vtg-chat-primary-dark);
}
.vtg-chat-root .vtg-chat-attach:disabled { opacity: 0.45; cursor: not-allowed; }
.vtg-chat-dragging .vtg-chat-field {
  border-style: dashed;
  border-color: var(--vtg-chat-primary);
  background: var(--vtg-chat-tint);
}
.vtg-chat-root .vtg-chat-send:hover { background: var(--vtg-chat-primary-dark); }
.vtg-chat-root .vtg-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }
.vtg-chat-root .vtg-chat-field textarea:placeholder-shown ~ .vtg-chat-send { opacity: 0.5; }
.vtg-chat-disclaimer {
  margin: 6px 4px 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--vtg-chat-muted);
  text-align: center;
}

.vtg-chat-noscript {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99990;
  background: #1A4685;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

/* ---------- Proactive teaser above the launcher ---------- */

.vtg-chat-nudge {
  position: absolute;
  bottom: 70px;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  background: var(--vtg-chat-card);
  border: 1px solid var(--vtg-chat-line);
  border-radius: 18px;
  box-shadow: var(--vtg-chat-shadow);
  animation: vtg-chat-pop 0.25s ease-out;
}
.vtg-chat-pos-right .vtg-chat-nudge { right: 0; }
.vtg-chat-pos-left .vtg-chat-nudge { left: 0; }
.vtg-chat-root .vtg-chat-nudge-body {
  display: block;
  width: 100%;
  padding: 0 26px 0 0;
  border: 0;
  background: transparent;
  color: var(--vtg-chat-ink);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.vtg-chat-nudge-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.vtg-chat-nudge .vtg-chat-avatars > * {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 2px #fff;
}
.vtg-chat-nudge .vtg-chat-avatars > * + * { margin-left: -8px; }
.vtg-chat-nudge .vtg-chat-avatar-ai svg.vtg-chat-svg { width: 14px; height: 14px; }
.vtg-chat-nudge .vtg-chat-avatar-initials { font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.vtg-chat-nudge-meta {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--vtg-chat-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtg-chat-nudge-text { display: block; }
.vtg-chat-nudge-chips { margin-top: 10px; }
.vtg-chat-root .vtg-chat-nudge-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vtg-chat-muted);
  cursor: pointer;
}
.vtg-chat-nudge-close svg.vtg-chat-svg { width: 16px; height: 16px; }
.vtg-chat-root .vtg-chat-nudge-close:hover { background: var(--vtg-chat-paper-2); color: var(--vtg-chat-ink); }
@keyframes vtg-chat-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Device targeting ---------- */

@media (max-width: 768px) {
  .vtg-chat-root.vtg-chat-dev-desktop { display: none !important; }
}
@media (min-width: 769px) {
  .vtg-chat-root.vtg-chat-dev-mobile { display: none !important; }
}

/* ---------- Phones: full-screen panel, safe areas, 44px touch targets ---------- */

@media (max-width: 480px) {
  .vtg-chat-root {
    bottom: var(--vtg-chat-bottom-m, 12px);
    bottom: calc(var(--vtg-chat-bottom-m, 12px) + env(safe-area-inset-bottom, 0px));
  }
  .vtg-chat-pos-right { right: 12px; }
  .vtg-chat-pos-left { left: 12px; }
  /* Full-screen on phones: must sit above every floating call / Zalo bubble of themes and plugins (seen at 999999). */
  .vtg-chat-root.vtg-chat-is-open { z-index: 2147483000; }
  .vtg-chat-root .vtg-chat-launcher {
    width: 52px;
    height: 52px;
  }
  .vtg-chat-avatars > * {
    width: 32px;
    height: 32px;
  }
  .vtg-chat-launcher-icon svg.vtg-chat-svg { width: 24px; height: 24px; }
  .vtg-chat-root.vtg-chat-is-open .vtg-chat-launcher { display: none; }
  .vtg-chat-panel,
  .admin-bar .vtg-chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation-name: vtg-chat-sheet-in;
  }
  .vtg-chat-header {
    padding: 8px 6px 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(6px + env(safe-area-inset-right, 0px));
  }
  .vtg-chat-product,
  .vtg-chat-thread {
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .vtg-chat-composer {
    padding-bottom: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .vtg-chat-root .vtg-chat-icon-btn,
  .vtg-chat-root .vtg-chat-send,
  .vtg-chat-root .vtg-chat-attach,
  .vtg-chat-root .vtg-chat-fb,
  .vtg-chat-root .vtg-chat-nudge-close {
    width: 44px;
    height: 44px;
  }
  .vtg-chat-root .vtg-chat-contact-zalo { height: 34px; }
  .vtg-chat-root .vtg-chat-chip,
  .vtg-chat-root .vtg-chat-card-btn,
  .vtg-chat-root .vtg-chat-product-ask,
  .vtg-chat-root .vtg-chat-action,
  .vtg-chat-root .vtg-chat-retry,
  .vtg-chat-root .vtg-chat-lead-submit,
  .vtg-chat-root .vtg-chat-lead-later,
  .vtg-chat-root .vtg-chat-newchat {
    min-height: 44px;
  }
  .vtg-chat-root .vtg-chat-card-btn { height: 44px; }
  .vtg-chat-field { padding: 3px 3px 3px 14px; }
  .vtg-chat-root .vtg-chat-field textarea { padding: 11px 0; }
  .vtg-chat-root .vtg-chat-field textarea,
  .vtg-chat-root .vtg-chat-lead-field input { font-size: 16px; } /* avoid iOS zoom on focus */
  .vtg-chat-root .vtg-chat-lead-field input { padding: 11px 12px; }
  .vtg-chat-nudge { bottom: 64px; }
}
@keyframes vtg-chat-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vtg-chat-root *,
  .vtg-chat-root *::before,
  .vtg-chat-root *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .vtg-chat-dots span { opacity: 0.6; }
  .vtg-chat-root .vtg-chat-launcher:hover { transform: none; }
}
