:root {
  --vt-primary: #005127;
  --vt-primary-hover: #003d1d;
  --vt-primary-light: #198754;
  --vt-accent: #fc9d30;
  --vt-accent-hover: #f58e18;
  --vt-soft-bg: #eaf6ef;
  --vt-user-bubble: #198754;
  --vt-bot-bubble: rgba(255, 255, 255, 0.95);
  --vt-win-bg: rgba(255, 255, 255, 0.62);
  --vt-header-bg: rgba(255, 255, 255, 0.52);
  --vt-footer-bg: rgba(255, 255, 255, 0.52);
  --vt-text: #0f172a;
  --vt-muted: #64748b;
  --vt-border: rgba(226, 232, 240, 0.85);
  --vt-border-glass: rgba(255, 255, 255, 0.78);
  --vt-danger: #dc2626;
  --vt-win-width: 420px;
  --vt-win-height: 650px;
  --vt-radius: 24px;
  --vt-offset-x: 22px;
  --vt-offset-y: 22px;
  --vt-shadow-win: 0 24px 54px -12px rgba(15, 23, 42, 0.22), 0 12px 28px -6px rgba(15, 23, 42, 0.12);
}

#vt-ai-root {
  position: fixed;
  right: var(--vt-offset-x);
  bottom: var(--vt-offset-y);
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--vt-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#vt-ai-root.vt-pos-left {
  right: auto;
  left: var(--vt-offset-x);
}

/* Темы оформления окна чата */
#vt-ai-root.vt-theme-light {
  --vt-win-bg: #f8fafc;
  --vt-header-bg: #ffffff;
  --vt-footer-bg: #ffffff;
  --vt-bot-bubble: #ffffff;
  --vt-border-glass: #e2e8f0;
}

#vt-ai-root.vt-theme-dark {
  --vt-win-bg: rgba(15, 23, 42, 0.92);
  --vt-header-bg: rgba(30, 41, 59, 0.88);
  --vt-footer-bg: rgba(30, 41, 59, 0.88);
  --vt-bot-bubble: #1e293b;
  --vt-text: #f8fafc;
  --vt-muted: #94a3b8;
  --vt-border: rgba(51, 65, 85, 0.85);
  --vt-border-glass: rgba(51, 65, 85, 0.9);
}

/* Плавающая кнопка открытия чата (FAB) */
.vt-ai-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--vt-primary-light), var(--vt-primary));
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, opacity 0.2s ease;
}
.vt-ai-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.36);
}
.vt-ai-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.vt-ai-fab.vt-fab-circle {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
}
.vt-ai-fab.vt-fab-circle .vt-ai-fab-text,
.vt-ai-fab.vt-fab-circle .vt-ai-badge {
  display: none;
}
.vt-ai-fab.vt-fab-circle svg {
  width: 26px;
  height: 26px;
}

.vt-ai-badge {
  background: var(--vt-accent);
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.2px;
}

.vt-ai-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
}

/* Окно виджета */
.vt-ai-window {
  position: fixed;
  right: var(--vt-offset-x);
  bottom: var(--vt-offset-y);
  display: flex;
  flex-direction: column;
  width: var(--vt-win-width);
  height: var(--vt-win-height);
  max-height: calc(100vh - 36px);
  max-width: calc(100vw - 24px);
  background: var(--vt-win-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--vt-border-glass);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow-win);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px) scale(0.92);
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.26s;
}
#vt-ai-root.vt-pos-left .vt-ai-window {
  right: auto;
  left: var(--vt-offset-x);
  transform-origin: bottom left;
}
.vt-ai-window.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Шапка окна */
.vt-ai-header {
  background: var(--vt-header-bg);
  border-bottom: 1px solid var(--vt-border);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vt-ai-header-lead {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.vt-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vt-soft-bg), #ffffff);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  color: var(--vt-primary);
}
.vt-ai-avatar svg {
  width: 21px;
  height: 21px;
}
.vt-ai-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: vtPulseOnline 2s infinite;
}
@keyframes vtPulseOnline {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.vt-ai-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--vt-text);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-ai-subtitle {
  font-size: 11.5px;
  color: var(--vt-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt-ai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vt-ai-icon-btn {
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.vt-ai-icon-btn:hover {
  background: #ffffff;
  color: var(--vt-primary);
  border-color: var(--vt-primary);
  transform: translateY(-1px);
}
.vt-ai-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Выдвижная панель администратора */
.vt-ai-devbar {
  background: rgba(248, 250, 252, 0.94);
  color: #0f172a;
  border-bottom: 1px solid var(--vt-border);
  padding: 9px 13px;
  font-size: 11.5px;
  display: none;
  flex-direction: column;
  gap: 7px;
}
.vt-ai-devbar.is-visible {
  display: flex;
}
.vt-ai-devbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.vt-ai-small-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  color: #0f172a;
  transition: all 0.15s ease;
  font-family: inherit;
}
.vt-ai-small-btn:hover {
  background: var(--vt-soft-bg);
  border-color: var(--vt-primary);
  color: var(--vt-primary);
}

/* Лента сообщений */
.vt-ai-messages {
  flex: 1;
  padding: 15px 14px;
  overflow-y: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}
.vt-ai-messages::-webkit-scrollbar {
  width: 5px;
}
.vt-ai-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 99px;
}

.vt-ai-msg-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  max-width: 92%;
  animation: vtMsgFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.vt-ai-msg-row.bot {
  align-self: flex-start;
}
.vt-ai-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
@keyframes vtMsgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vt-ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vt-soft-bg), #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  color: var(--vt-primary);
}
.vt-ai-msg-avatar svg {
  width: 15px;
  height: 15px;
}

.vt-ai-msg {
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.52;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.vt-ai-msg.bot {
  background: var(--vt-bot-bubble);
  color: var(--vt-text);
  border: 1px solid var(--vt-border);
  border-radius: 18px 18px 18px 4px;
}
.vt-ai-msg.user {
  background: var(--vt-user-bubble);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.vt-ai-msg a {
  color: var(--vt-primary-light);
  font-weight: 600;
  text-decoration: underline;
}
.vt-ai-msg.user a {
  color: #ffffff;
}

/* Анимация «бот печатает» */
.vt-ai-msg.bot-thinking {
  padding: 12px 16px;
}
.vt-ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vt-ai-typing span {
  width: 6px;
  height: 6px;
  background: var(--vt-primary-light);
  border-radius: 50%;
  animation: vtTyping 1.3s infinite ease-in-out both;
}
.vt-ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.vt-ai-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes vtTyping {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Блок источников */
.vt-ai-sources {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--vt-border);
  font-size: 11.5px;
  color: var(--vt-muted);
}
.vt-ai-sources a {
  display: inline-block;
  margin-right: 8px;
  margin-top: 3px;
}

/* Быстрые кнопки (Quick Chips) */
.vt-ai-quick-wrap {
  background: var(--vt-header-bg);
  border-top: 1px solid var(--vt-border);
  padding: 8px 12px 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vt-ai-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--vt-muted);
  padding: 0 2px;
}
.vt-ai-quick-toggle {
  background: none;
  border: none;
  color: var(--vt-primary-light);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.vt-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.vt-ai-quick.is-collapsed {
  display: none;
}
.vt-ai-chip {
  background: var(--vt-bot-bubble);
  color: var(--vt-text);
  border: 1px solid var(--vt-border);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.25;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vt-ai-chip:hover {
  background: var(--vt-primary);
  color: #ffffff;
  border-color: var(--vt-primary);
  transform: translateY(-1px);
}
.vt-ai-chip.chip-accent {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(252, 157, 48, 0.5);
}
.vt-ai-chip.chip-accent:hover {
  background: var(--vt-accent);
  color: #111827;
  border-color: var(--vt-accent);
}
.vt-ai-chip.chip-whatsapp {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}
.vt-ai-chip.chip-whatsapp:hover {
  background: #10b981;
  color: #ffffff;
}

/* Быстрые действия под ответом бота */
.vt-ai-actions-bar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.vt-ai-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none !important;
  background: var(--vt-primary);
  color: #ffffff !important;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.vt-ai-action-btn:hover {
  background: var(--vt-primary-hover);
  transform: translateY(-1px);
}
.vt-ai-action-btn.vt-btn-whatsapp {
  background: #10b981;
}
.vt-ai-action-btn.vt-btn-telegram {
  background: #0284c7;
}

/* Дисклеймер */
.vt-ai-disclaimer {
  background: var(--vt-header-bg);
  color: var(--vt-muted);
  font-size: 10.5px;
  text-align: center;
  padding: 4px 12px;
  border-top: 1px solid var(--vt-border);
}

/* Подвал и поле ввода */
.vt-ai-footer {
  padding: 10px 14px 13px;
  background: var(--vt-footer-bg);
  border-top: 1px solid var(--vt-border);
}
.vt-ai-input-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: 999px;
  padding: 4px 5px 4px 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  height: 42px;
  box-sizing: border-box;
}
.vt-ai-input-capsule:focus-within {
  border-color: var(--vt-primary);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.14);
}
.vt-ai-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #0f172a;
  padding: 0;
  height: 32px;
  line-height: 32px;
  outline: none;
  font-family: inherit;
}
.vt-ai-input::placeholder {
  color: #94a3b8;
}

.vt-ai-voice-btn, .vt-ai-send-btn {
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.vt-ai-voice-btn {
  background: transparent;
  color: #64748b;
}
.vt-ai-voice-btn:hover {
  background: #f1f5f9;
  color: var(--vt-primary);
}
.vt-ai-voice-btn.is-recording {
  background: #fee2e2;
  color: var(--vt-danger);
  animation: vtPulseOnline 1.2s infinite;
}
.vt-ai-send-btn {
  background: var(--vt-primary);
  color: #ffffff;
}
.vt-ai-send-btn:hover {
  background: var(--vt-primary-hover);
  transform: scale(1.05);
}
.vt-ai-voice-btn svg, .vt-ai-send-btn svg {
  width: 16px;
  height: 16px;
}

/* Встроенная форма заявки (Лид-форма) */
.vt-ai-wizard {
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 13px 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.vt-ai-wizard-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vt-primary);
}
.vt-ai-wizard input[type="text"],
.vt-ai-wizard input[type="tel"],
.vt-ai-wizard input[type="email"],
.vt-ai-wizard input[type="url"],
.vt-ai-wizard textarea {
  width: 100%;
  padding: 8px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}
.vt-ai-wizard input:focus,
.vt-ai-wizard textarea:focus {
  background: #ffffff !important;
  border-color: var(--vt-primary) !important;
  outline: none !important;
}
.vt-ai-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--vt-primary-light), var(--vt-primary));
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: filter 0.15s ease;
}
.vt-ai-submit-btn:hover {
  filter: brightness(1.05);
}
.vt-ai-success-box {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
}
.vt-ai-error-box {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
}
.vt-ai-nowrap {
  white-space: nowrap;
}

@media (max-width: 640px) {
  #vt-ai-root,
  #vt-ai-root.vt-pos-left {
    right: 8px;
    left: 8px;
    bottom: 8px;
  }
  .vt-ai-window,
  #vt-ai-root.vt-pos-left .vt-ai-window {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }
  .vt-ai-fab {
    margin-left: auto;
  }
  #vt-ai-root.vt-pos-left .vt-ai-fab {
    margin-left: 0;
    margin-right: auto;
  }
}


/* === v2.0.0: Проактивный тизер (всплывающая подсказка над кнопкой) === */
.vt-ai-teaser {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(25, 135, 84, 0.28);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 30px 11px 14px;
  font-size: 12.5px;
  line-height: 1.42;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
#vt-ai-root.vt-pos-left .vt-ai-teaser {
  right: auto;
  left: 0;
  border-radius: 16px 16px 16px 4px;
}
.vt-ai-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.vt-ai-teaser-close {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 20px;
  height: 20px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vt-ai-teaser-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* === v2.0.0: Интерактивные карточки товаров и услуг (Rich UI Cards) === */
.vt-ai-rich-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.vt-ai-rich-card {
  display: flex;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 11px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.vt-ai-rich-card-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.vt-ai-rich-card-body {
  flex: 1;
  min-width: 0;
}
.vt-ai-rich-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}
.vt-ai-rich-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 1px 0 3px;
  line-height: 1.25;
}
.vt-ai-rich-card-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vt-primary);
}
.vt-ai-rich-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}
.vt-ai-rich-btn {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--vt-primary);
  color: #ffffff !important;
  text-decoration: none !important;
}
.vt-ai-rich-btn.secondary {
  background: #f1f5f9;
  color: #334155 !important;
}

/* === v2.0.0: Панель оценки ответа (👍 / 👎) и копирования === */
.vt-ai-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid rgba(226, 232, 240, 0.55);
}
.vt-ai-meta-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--vt-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.14s ease;
}
.vt-ai-meta-btn:hover,
.vt-ai-meta-btn.active {
  background: var(--vt-soft-bg);
  color: var(--vt-primary);
  border-color: rgba(25, 135, 84, 0.25);
}
.vt-ai-operator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #166534;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 5px;
}


/* === Переключатель языка (RU | KZ | EN) в шапке виджета на фронтенде === */
.vt-ai-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 99px;
  padding: 2px;
  gap: 2px;
  margin-right: 2px;
}
#vt-ai-root.vt-theme-dark .vt-ai-lang-switch {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(71, 85, 105, 0.8);
}
.vt-ai-lang-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 99px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.14s ease;
  font-family: inherit;
}
.vt-ai-lang-btn:hover {
  color: var(--vt-text);
}
.vt-ai-lang-btn.active {
  background: var(--vt-primary);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}


/* === Интерактивное расписание врачей и пошаговая запись в 1С / МИС Надежда === */
.vt-ai-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-ai-step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}
.vt-ai-wizard select {
  width: 100%;
  padding: 8px 12px !important;
  height: 38px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}
.vt-ai-form-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  width: 100%;
}
.vt-ai-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 38px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.vt-ai-secondary-btn:hover {
  background: var(--vt-soft-bg) !important;
  color: var(--vt-primary) !important;
  border-color: var(--vt-primary) !important;
}
.vt-ai-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-top: 4px;
}
.vt-ai-slot-btn {
  background: rgba(25, 135, 84, 0.08);
  color: var(--vt-primary);
  border: 1px solid rgba(25, 135, 84, 0.24);
  border-radius: 99px;
  padding: 6px 3px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.vt-ai-slot-btn:hover {
  background: var(--vt-primary);
  color: #ffffff;
  border-color: var(--vt-primary);
  transform: translateY(-1px);
}
.vt-ai-slot-btn.active {
  background: var(--vt-accent) !important;
  color: #111827 !important;
  border-color: var(--vt-accent) !important;
  box-shadow: 0 4px 10px rgba(252, 157, 48, 0.35);
}
.vt-ai-date-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 115px;
  overflow-y: auto;
  padding: 2px 0;
}
.vt-ai-date-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.vt-ai-date-tab:hover {
  border-color: var(--vt-primary);
  color: var(--vt-primary);
}
.vt-ai-date-tab.active {
  background: var(--vt-primary);
  color: #ffffff;
  border-color: var(--vt-primary);
}
.vt-ai-summary-box {
  background: var(--vt-soft-bg);
  border-left: 3px solid var(--vt-primary);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #0f172a;
}
.vt-ai-loader-inline {
  font-size: 12px;
  color: var(--vt-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
@media (max-width: 640px) {
  .vt-ai-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
