/* Separate skin for the second local design. */
.widget-v2 {
  --v2-paper: #f7f5f1;
  --v2-white: #fffdfa;
  --v2-ink: #192c3c;
  --v2-muted: #546372;
  --v2-blue: #214f73;
  --v2-blue-hover: #163c5d;
  --v2-blue-ink: var(--v2-blue);
  --v2-blue-ink-strong: var(--v2-blue-hover);
  --v2-action-ink: #fff;
  --v2-action-edge: transparent;
  --v2-blue-light: #e7eef3;
  --v2-bubble: var(--v2-blue-light);
  --v2-clay: #874b3e;
  --v2-clay-hover: #733a2d;
  --v2-clay-ink: #fff;
  --v2-clay-icon: var(--v2-clay);
  --v2-callback-edge: transparent;
  --v2-sand: #eee8df;
  --v2-choice: #e9edf0;
  --v2-choice-hover: #dce7ef;
  --v2-shadow: 0 7px 24px rgb(27 41 52 / 7%), 0 2px 4px rgb(27 41 52 / 4%);
}

.widget-v2 .profile-control a { color: #174b73; text-decoration: underline; text-underline-offset: 3px; }
.widget-v2 .chat-launcher { background: var(--v2-blue); color: var(--v2-action-ink); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--v2-action-edge), 0 10px 30px rgb(19 57 84 / 23%); }
.widget-v2 .chat-launcher:hover { background: var(--v2-blue-hover); }
.widget-v2 .chat-column {
  color: var(--v2-ink);
  background: var(--v2-paper);
  border: 0;
  box-shadow: -13px 0 50px rgb(25 44 60 / 14%);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
.widget-v2 .chat-column:focus { outline: none; }
.widget-v2 .chat-header {
  background: var(--v2-paper);
  min-height: 81px;
  gap: 12px;
  padding: 16px 22px 13px;
  border: 0;
}
.widget-v2 .participant-avatar { width: 44px; height: 44px; border: 0; background: var(--v2-blue-light); color: var(--v2-blue-ink); }
.widget-v2 .message-avatar { border: 0; background: var(--v2-blue-light); color: var(--v2-blue-ink); }
.widget-v2 .chat-brand > strong { color: var(--v2-ink); font-weight: 670; font-size: 22px; }
.widget-v2 .chat-brand > span { color: var(--v2-muted); margin-top: 3px; }
.widget-v2 .chat-controls .icon-button { color: var(--v2-muted); border-radius: 12px; }
.widget-v2 .chat-controls .icon-button:hover { color: var(--v2-blue-ink-strong); background: var(--v2-blue-light); }
.widget-v2 .chat-resize::before { background: #8395a6; }
.widget-v2 .chat-resize:is(:hover,:focus-visible)::before { background: var(--v2-blue-ink); }
.widget-v2.chat-compact .chat-column { border: 0; border-radius: 22px; box-shadow: 0 16px 50px rgb(25 44 60 / 18%); }
.widget-v2.chat-compact #chat-expand { background: var(--v2-blue-light); color: var(--v2-blue-ink); }

.widget-v2 .voice-invitation {
  align-items: center;
  gap: 11px;
  margin: 0 20px 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: var(--v2-sand);
}
.widget-v2 .voice-invitation-icon { width: 37px; height: 37px; color: var(--v2-clay-icon); border: 0; border-radius: 12px; background: #faf5ed; }
.widget-v2 .voice-invitation strong { color: var(--v2-ink); font-weight: 670; }
.widget-v2 .voice-invitation-copy > span { color: #5b5a58; }
.widget-v2 .callback-cta {
  min-height: 40px;
  padding: 7px 14px;
  border: 0;
  border-radius: 13px;
  background: var(--v2-clay);
  box-shadow: inset 0 0 0 1px var(--v2-callback-edge);
  color: var(--v2-clay-ink);
  font-weight: 650;
}
.widget-v2 .callback-cta:not(:disabled):is(:hover,:active) { background: var(--v2-clay-hover); }

.widget-v2 .chat-scroll { background: var(--v2-paper); padding: 14px 22px 18px; scrollbar-color: #c8cbd0 transparent; }
.widget-v2 .demo-label { color: var(--v2-muted); font-size: 10px; margin-bottom: 11px; }
.widget-v2 .chat-date { color: var(--v2-muted); margin: 11px 0; }
.widget-v2 .message { margin-bottom: 14px; }
.widget-v2 .visitor-bubble { color: #213b50; background: var(--v2-bubble); border-radius: 19px 19px 6px 19px; padding: 10px 13px; }
.widget-v2 .answer-body { color: var(--v2-ink); font-size: 14.5px; line-height: 1.53; }
.widget-v2 .answer-body a:not(.product-link) { color: var(--v2-blue-ink); }
.widget-v2 .message-author :is(strong,.author-role), .widget-v2 .message-meta .message-time { color: var(--v2-muted); }
.widget-v2 .message-meta .message-time { font-size: 10px; }
.widget-v2 .message-action { color: var(--v2-muted); }
.widget-v2 .message-action:is(:hover,[aria-pressed=true]) { background: var(--v2-blue-light); color: var(--v2-blue-ink-strong); }
.widget-v2 .chat-state { background: #eeebe7; color: var(--v2-muted); border-radius: 13px; }

.widget-v2 .consultation-lead { display: none; }
.widget-v2 .chat-scroll:has(.welcome) .consultation-lead { display: block; margin: 8px 0 18px; }
.widget-v2 .consultation-lead h2 {
  max-width: 415px;
  margin: 0 0 10px;
  color: var(--v2-ink);
  /* The site's own sans family: a serif headline read as a pasted-in landing page. */
  font: 600 clamp(26px, 6cqi, 34px)/1.18 "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.widget-v2 .consultation-lead p { color: var(--v2-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.widget-v2 .welcome > .start-prompt { display: none; }
.widget-v2 .chat-column .choices { gap: 8px; }
.widget-v2 .chat-column .choice {
  min-height: 44px;
  padding: 8px 11px 8px 13px;
  color: #294760;
  background: var(--v2-choice);
  box-shadow: none;
  border: 0;
  border-radius: 13px;
}
.widget-v2 .chat-column .choice:enabled:is(:hover,:active) { color: var(--v2-blue-ink-strong); background: var(--v2-choice-hover); box-shadow: none; }
.widget-v2 .chat-column :is(.scenario-choice,.answer-choices .choice) > svg { background: color-mix(in srgb, var(--v2-blue) 9%, transparent); color: var(--v2-blue-ink); }
.widget-v2 .chat-column :is(.scenario-choice,.answer-choices .choice):enabled:hover > svg { background: var(--v2-blue); color: var(--v2-action-ink); }
.widget-v2 .chat-column :is(.scenario-choice,.answer-choices .choice)[data-available=false] { background: #efede9; color: var(--v2-muted); }
.widget-v2 .chat-column .start-choices { width: 100%; max-width: 405px; }
.widget-v2 .chat-column .start-choices .choice { min-height: 48px; }
.widget-v2 .chat-column .start-choices .choice:first-child:enabled { background: var(--v2-blue); color: var(--v2-action-ink); box-shadow: inset 0 0 0 1px var(--v2-action-edge); }
.widget-v2 .chat-column .start-choices .choice:first-child:enabled:hover { background: var(--v2-blue-hover); }
.widget-v2 .chat-column .start-choices .choice:first-child:enabled > svg { background: color-mix(in srgb, var(--v2-action-ink) 16%, transparent); color: var(--v2-action-ink); }
.widget-v2 .search-topics { margin-top: 15px; }
.widget-v2 .search-topics > strong { display: block; margin-bottom: 6px; color: var(--v2-muted); font-size: 12px; font-weight: 650; }
.widget-v2 .search-topic-list { display: flex; flex-wrap: wrap; gap: 5px; }
.widget-v2 .search-topic {
  min-height: 36px;
  border: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--v2-white);
  color: var(--v2-blue-ink);
  box-shadow: 0 1px 3px rgb(25 44 60 / 10%);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.2;
}
.widget-v2 .search-topic:enabled:is(:hover,:active) { color: var(--v2-blue-ink-strong); background: var(--v2-choice-hover); }

.widget-v2 .chat-column .product-list { gap: 8px; margin: 10px 0 12px; }
.widget-v2 .chat-column .product-card-compact { border: 0; border-radius: 16px; background: var(--v2-white); box-shadow: var(--v2-shadow); }
.widget-v2 .chat-column .product-card-compact .product-link { min-height: 60px; padding: 10px; color: var(--v2-ink); }
.widget-v2 .chat-column .product-card-compact .product-link:hover { background: #edf2f6; }
.widget-v2 .chat-column .product-card-compact .product-copy h4 { color: var(--v2-ink); }
.widget-v2 .chat-column .product-card-compact :is(.product-copy p,.format-tag), .widget-v2 .product-delivery { color: var(--v2-muted); }
.widget-v2 .chat-column .product-card-compact .word-icon, .widget-v2 .chat-column .product-action { color: var(--v2-blue-ink); background: var(--v2-blue-light); border-radius: 9px; }
.widget-v2 .chat-column .product-link:hover .product-action { background: var(--v2-blue); color: var(--v2-action-ink); }
.widget-v2 .chat-column .product-card-compact .product-link:has(.product-action-site) { grid-template-columns: 30px minmax(0,1fr) max-content max-content; }
.widget-v2 .chat-column .product-action-site {
  display: inline-flex;
  gap: 4px;
  padding: 5px 8px;
  width: auto;
  height: auto;
  min-height: 28px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
@container (max-width: 456px) {
  .widget-v2 .chat-column .product-card-compact .product-link:has(.product-action-site) { grid-template-columns: 27px minmax(0,1fr) auto; gap: 4px 8px; }
  .widget-v2 .product-link:has(.product-action-site) .word-icon { grid-column: 1; grid-row: 1 / span 2; }
  .widget-v2 .product-link:has(.product-action-site) .product-copy { grid-column: 2 / -1; grid-row: 1; }
  .widget-v2 .chat-column .product-link:has(.product-action-site) .product-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; max-width: none; gap: 4px 8px; text-align: left; }
  .widget-v2 .chat-column .product-action-site { grid-column: 3; grid-row: 2; }
}
.widget-v2 .chat-column .related-docs > summary { background: #eeebe7; color: var(--v2-ink); border: 0; border-radius: 12px; }
.widget-v2 .chat-column .related-docs > summary:hover { background: #e7e2dc; }
.widget-v2 .chat-column .answer-body .product-payment-link { border: 0; border-radius: 12px; background: var(--v2-blue-light); color: var(--v2-blue-ink-strong); }
.widget-v2 .chat-column .answer-body .product-payment-link:hover { background: #dae6ef; }

.widget-v2 .contact-nudge {
  margin: 13px 0 0;
  padding: 14px;
  background: #eeeae3;
  color: var(--v2-ink);
  border: 0;
  border-radius: 17px;
}
.widget-v2 .contact-nudge-icon { background: var(--v2-white); color: var(--v2-blue-ink); border-radius: 10px; }
.widget-v2 .contact-nudge strong { color: var(--v2-ink); }
.widget-v2 .contact-nudge p { color: var(--v2-muted); font-size: 13px; }
.widget-v2 .contact-nudge-actions button { min-height: 42px; padding-inline: 13px; border: 0; border-radius: 11px; color: var(--v2-muted); }
.widget-v2 .contact-nudge-actions button:first-child { background: var(--v2-choice-hover); color: var(--v2-blue-ink-strong); }
.widget-v2 .contact-nudge-actions button:is(:hover,:active) { background: #cadce9; color: var(--v2-blue-ink-strong); }

.widget-v2 .composer { background: var(--v2-paper); border: 0; box-shadow: 0 -5px 20px rgb(25 44 60 / 4%); padding: 9px 20px 10px; }
.widget-v2 .input-wrap { background: var(--v2-white); border: 1px solid #aebdc9; border-radius: 17px; box-shadow: var(--v2-shadow); }
.widget-v2 .input-wrap:focus-within { outline: 2px solid var(--v2-blue-ink); outline-offset: 1px; box-shadow: none; }
.widget-v2 .input-wrap textarea { min-height: 62px; font-size: 14px; color: var(--v2-ink); }
.widget-v2 .input-wrap textarea::placeholder { color: var(--v2-muted); }
.widget-v2 .input-wrap button { background: var(--v2-blue); color: var(--v2-action-ink); width: 40px; height: 40px; }
.widget-v2 .input-wrap button:disabled { background: var(--v2-blue-light); color: #647d91; }
.widget-v2 .composer-actions { gap: 6px; margin-top: 8px; }
.widget-v2 .composer-actions :is(.quiet-button,.contact-quick) {
  display: inline-flex;
  gap: 7px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  border: 0;
  border-radius: 11px;
  padding: 6px 11px;
  background: transparent;
  color: var(--v2-blue-ink-strong);
  font-size: 12px;
  font-weight: 620;
}
.widget-v2 .composer-actions .contact-quick { background: var(--v2-blue-light); margin-left: auto; }
.widget-v2 .composer-actions :is(.quiet-button,.contact-quick):enabled:hover { background: #dce7ef; }
.widget-v2 .composer-actions .quiet-button svg { color: var(--v2-blue-ink); }
.widget-v2 .privacy-line { margin-top: 4px; color: var(--v2-muted); font-size: 10px; }
.widget-v2 .privacy-line :is(a,button) { color: var(--v2-muted); }
.widget-v2 .chat-column [hidden] { display: none !important; }

.widget-v2 :is(.contact-sheet,.history-dialog) { background: var(--v2-white); color: var(--v2-ink); border: 0; border-radius: 20px; }
.widget-v2 .contact-sheet :is(h2,.contact-form-status), .widget-v2 .history-dialog h2 { color: var(--v2-ink); }
.widget-v2 .contact-sheet-heading > span { background: var(--v2-blue-light); color: var(--v2-blue-ink); }
.widget-v2 .contact-sheet > p { color: var(--v2-muted); font-size: 14px; }
.widget-v2 .contact-sheet form > label:not(.contact-consent-row) { color: var(--v2-ink); font-size: 13px; }
.widget-v2 .contact-sheet :is(label > span, .contact-test-note) { color: var(--v2-muted); font-size: 11px; }
.widget-v2 .contact-sheet .contact-consent-row > span { color: var(--v2-muted); font-size: 12px; }
.widget-v2 .contact-sheet input:not([type=checkbox]), .widget-v2 .history-dialog input { background: #f1f1ef; border-color: transparent; }
.widget-v2 .contact-sheet input::placeholder { color: #586675; }
.widget-v2 .contact-sheet :is(a,input[type=checkbox]), .widget-v2 .history-dialog a { color: var(--v2-blue-ink); accent-color: var(--v2-blue-ink); }
.widget-v2 :is(.contact-sheet,.history-dialog) .primary-button { background: var(--v2-blue); color: var(--v2-action-ink); box-shadow: inset 0 0 0 1px var(--v2-action-edge); border-radius: 12px; }
.widget-v2 .chat-column :is(button,a,input,summary,.chat-resize):focus-visible { outline: 2px solid var(--v2-blue-ink-strong); outline-offset: 2px; }

@media (max-width: 760px) {
  .widget-v2 .chat-header { min-height: 69px; padding: 10px 14px; }
  .widget-v2 .voice-invitation { margin-inline: 12px; gap: 8px; padding: 8px; }
  .widget-v2 .voice-invitation-icon { width: 33px; height: 33px; }
  .widget-v2 .voice-invitation-copy > span { display: block; }
  .widget-v2 .callback-cta { min-height: 44px; padding: 6px 9px; }
  .widget-v2 .chat-scroll { padding-left: 14px; padding-right: 14px; }
  .widget-v2 .composer { padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
  .widget-v2 .composer-actions :is(.quiet-button,.contact-quick), .widget-v2 .contact-nudge-actions button { min-height: 44px; }
}

@media (max-height: 670px) {
  .widget-v2 .chat-header { min-height: 60px; padding-block: 8px; }
  .widget-v2 .input-wrap textarea { min-height: 56px; }
  .widget-v2 .contact-sheet { padding-top: 12px; }
  .widget-v2 .contact-sheet > p { margin-bottom: 12px; }
  .widget-v2 .contact-sheet form > label:not(.contact-consent-row) { margin-block: 10px 4px; }
  .widget-v2 .contact-sheet .contact-consent-row { margin-block: 14px 12px; }
}

@media (max-width: 760px) and (max-height: 670px) {
  .widget-v2 .chat-scroll:has(.welcome) { padding-block: 8px 12px; }
  .widget-v2 .chat-scroll:has(.welcome) .demo-label { margin-bottom: 4px; }
  .widget-v2 .chat-scroll:has(.welcome) .consultation-lead { margin-block: 0 8px; }
  .widget-v2 .consultation-lead h2 { font-size: clamp(24px, 7.5cqi, 32px); margin-bottom: 4px; }
  .widget-v2 .consultation-lead p { font-size: 12px; }
  .widget-v2 .chat-column .start-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .widget-v2 .chat-column .start-choices .choice:first-child { grid-column: 1 / -1; }
  .widget-v2 .chat-column .start-choices .choice { min-height: 44px; }
  .widget-v2 .search-topics { margin-top: 8px; }
}

/* Readability floor for V2 (see widget-refinements.css): service text 12px, form labels 13px. */
.widget-v2 :is(.demo-label, .message-meta .message-time, .privacy-line) { font-size: 12px; }
.widget-v2 .contact-sheet :is(label > span, .contact-test-note) { font-size: 13px; }

/* «Обсудить с экспертом»: the phone tile fills with the call colour and rings every 7 s for about a
   minute, then rests; hovering the banner fills it too. With reduced motion it simply stays filled. */
.widget-v2 .voice-invitation-icon { transition: background-color .35s ease, color .35s ease; }
.widget-v2 .voice-invitation:is(:hover, :focus-within) .voice-invitation-icon { background: var(--v2-clay); color: var(--v2-clay-ink); }
@media (prefers-reduced-motion: no-preference) {
  .widget-v2 .voice-invitation-icon { animation: v2-call-glow 7s 1.5s 9 both; }
  .widget-v2 .voice-invitation-icon > svg { transform-origin: 58% 60%; animation: v2-call-ring 7s 1.5s 9 both; }
  .widget-v2 .voice-invitation:is(:hover, :focus-within) :is(.voice-invitation-icon, .voice-invitation-icon > svg) { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .widget-v2 .voice-invitation-icon { background: var(--v2-clay); color: var(--v2-clay-ink); }
}
@keyframes v2-call-glow {
  0%, 26%, 100% { background: #faf5ed; color: var(--v2-clay-icon); box-shadow: 0 0 0 0 transparent; }
  5%, 19% { background: var(--v2-clay); color: var(--v2-clay-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--v2-clay) 20%, transparent); }
}
@keyframes v2-call-ring {
  0%, 4%, 20%, 100% { transform: rotate(0); }
  6%, 10%, 14% { transform: rotate(-13deg); }
  8%, 12%, 16% { transform: rotate(11deg); }
}

/* Contact card: its own light accent surface (not the beige of status lines), a filled main button
   and a quiet «Не сейчас» — friendly, clearly separate, never alarming. */
.widget-v2 .contact-nudge,
.widget-v2 .chat-state.is-busy {
  background: color-mix(in srgb, var(--v2-blue-light) 62%, var(--v2-white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-blue) 16%, transparent);
}
.widget-v2 .contact-nudge-icon { background: var(--v2-blue); color: var(--v2-action-ink); }
.widget-v2 .contact-nudge p { color: var(--v2-ink); opacity: .82; font-size: 14px; line-height: 1.45; }
.widget-v2 .contact-nudge-actions button:first-child { background: var(--v2-blue); color: var(--v2-action-ink); font-weight: 650; }
.widget-v2 .contact-nudge-actions button:first-child:is(:hover, :active) { background: var(--v2-blue-hover); color: var(--v2-action-ink); }
.widget-v2 .contact-nudge-actions button:not(:first-child) { background: transparent; }
.widget-v2 .contact-nudge-actions button:not(:first-child):is(:hover, :active) { background: color-mix(in srgb, var(--v2-blue) 9%, transparent); color: var(--v2-ink); }
.widget-v2 .chat-state.is-busy { color: var(--v2-ink); }

/* «Ваш ответ готовится» with three soft dots while the answer is being prepared or checked. */
.widget-v2 .chat-state.is-pending::after { content: "…"; }
@media (prefers-reduced-motion: no-preference) {
  .widget-v2 .chat-state.is-pending::after { content: ""; animation: v2-dots 1.4s steps(4, end) infinite; }
}
@keyframes v2-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

/* Компактная карточка контакта. */
.widget-v2 .contact-nudge { margin-top: 10px; padding: 10px 12px; border-radius: 14px; }
.widget-v2 .contact-nudge p { font-size: 13px; line-height: 1.4; }
.widget-v2 .contact-nudge-actions button { min-height: 36px; padding-inline: 12px; border-radius: 10px; }
@media (max-width: 520px) { .widget-v2 .contact-nudge-actions button { min-height: 44px; } }

/* Карточка документа в чате: название, цена и «Открыть» в одной строке, описание на всю ширину под ними. */
.widget-v2 .chat-column .product-card-compact .product-link:has(.product-action-site) {
  grid-template-columns: 30px minmax(0, 1fr) max-content max-content;
  grid-template-areas: "icon title price action" ". desc desc desc";
  align-items: center; gap: 4px 10px; min-height: 0; padding: 10px 12px;
}
.widget-v2 .chat-column .product-link:has(.product-action-site) .word-icon { grid-area: icon; align-self: center; }
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-copy { display: contents; }
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-copy h4 { grid-area: title; margin: 0; }
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-copy p { grid-area: desc; margin: 0; }
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-meta { grid-area: price; display: block; margin: 0; text-align: right; white-space: nowrap; }
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-action-site { grid-area: action; }
@container (max-width: 456px) {
  .widget-v2 .chat-column .product-card-compact .product-link:has(.product-action-site) { grid-template-columns: 26px minmax(0, 1fr) max-content; grid-template-areas: "icon title title" ". price action" ". desc desc"; }
  .widget-v2 .chat-column .product-link:has(.product-action-site) .word-icon { grid-row: auto; }
  .widget-v2 .chat-column .product-link:has(.product-action-site) .product-meta { display: block; text-align: left; }
  .widget-v2 .chat-column .product-link:has(.product-action-site) .product-action-site { justify-self: end; }
}

/* Предложение комплекта или подписки под документами. */
.widget-v2 .answer-body .sales-offer { margin: 10px 0 6px; }
.widget-v2 .answer-body .sales-offer p { margin: 0 0 6px; }

/* Карточка «Ответим, даже если закроете чат»: белая с синей рамкой и тенью — отдельно от переписки и кнопок. */
.widget-v2 .contact-nudge {
  margin: 14px 0 6px; padding: 12px 14px; border-radius: 16px;
  background: var(--v2-white);
  box-shadow: 0 0 0 1.5px var(--v2-blue), 0 8px 22px rgba(22, 58, 84, .14);
}
.widget-v2 .contact-nudge strong { font-size: 15px; color: var(--v2-ink); }
.widget-v2 .contact-nudge p { color: var(--v2-ink); opacity: 1; font-size: 14px; }
.widget-v2 .contact-nudge-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--v2-blue); color: var(--v2-action-ink); }
.widget-v2 .contact-nudge-actions button:first-child { padding-inline: 16px; }

/* Описание в карточке документа: не больше трёх строк, спокойнее по цвету. */
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-copy p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.45; color: var(--v2-muted);
}
.widget-v2 .chat-column .product-link:has(.product-action-site) .product-copy h4 { font-size: 15px; line-height: 1.35; }

/* Главная кнопка после подбора: «Как оплатить и скачать» — во всю ширину, основным синим. */
.widget-v2 .answer-choices .choice.choice-pay {
  grid-column: 1 / -1; justify-content: flex-start; gap: 10px;
  background: var(--v2-blue); color: var(--v2-action-ink); font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 58, 84, .18);
}
.widget-v2 .answer-choices .choice.choice-pay > span { flex: 1; text-align: left; }
.widget-v2 .answer-choices .choice.choice-pay svg { color: var(--v2-action-ink); background: none; }
.widget-v2 .answer-choices .choice.choice-pay:is(:hover, :active) { background: var(--v2-blue-hover); color: var(--v2-action-ink); }
.widget-v2 .answer-choices .choice-pay-note { grid-column: 1 / -1; margin: -2px 0 4px; padding-left: 4px; color: var(--v2-muted); font-size: 13px; line-height: 1.4; }

/* Приглашение у кнопки чата и маленькое окно автопоказа. */
.widget-v2 .chat-teaser { position: fixed; right: 20px; bottom: 92px; z-index: 60; display: flex; align-items: flex-start; gap: 4px; max-width: 330px; padding: 12px 8px 12px 14px; border-radius: 18px; background: var(--v2-white); color: var(--v2-ink); box-shadow: 0 0 0 1px rgb(25 44 60 / 8%), 0 14px 40px rgb(25 44 60 / 20%); animation: teaser-in .25s ease-out; }
.widget-v2 .chat-teaser-body { display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.widget-v2 .teaser-avatar { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 999px; background: var(--v2-blue-light); display: grid; place-items: center; }
.widget-v2 .teaser-avatar img { width: 100%; height: 100%; object-fit: cover; }
.widget-v2 .chat-teaser-copy { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.widget-v2 .chat-teaser-copy strong { font-size: 14px; }
.widget-v2 .chat-teaser-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--v2-muted); }
.widget-v2 .chat-teaser-close:hover { background: var(--v2-blue-light); }
@keyframes teaser-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .widget-v2 .chat-teaser { animation: none; } }
@media (max-width: 520px) { .widget-v2 .chat-teaser { left: 12px; right: 12px; bottom: 84px; max-width: none; } }
/* Маленькое окно: примерно половина высоты экрана, приветствие и первые кнопки. */
body.widget-v2.chat-peek .chat-column { width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 32px)); }
/* В маленьком окне — только приветствие и первые кнопки: баннер звонка, подпись стенда и «Часто ищут» скрыты. */
body.widget-v2.chat-peek :is(.voice-invitation, .demo-label, .search-topics) { display: none; }
body.widget-v2.chat-peek .welcome h2 { font-size: 22px; line-height: 1.2; margin-bottom: 6px; }

/* Кнопка чата: форма, размер, сторона, свой цвет, плавная смена текста и мягкий блик. */
.widget-v2 .chat-launcher { overflow: hidden; isolation: isolate; }
.widget-v2 .chat-launcher.launcher-side-right { right: var(--launcher-offset, 20px); left: auto; bottom: var(--launcher-offset, 20px); }
.widget-v2 .chat-launcher.launcher-side-left { left: var(--launcher-offset, 20px); right: auto; bottom: var(--launcher-offset, 20px); }
.widget-v2 .chat-launcher[style*="--launcher-bg"] { background: var(--launcher-bg); color: var(--launcher-ink); }
.widget-v2 .chat-launcher.launcher-shape-pill { border-radius: 999px; }
.widget-v2 .chat-launcher.launcher-shape-rounded { border-radius: 14px; }
.widget-v2 .chat-launcher.launcher-size-s { padding: 10px 16px; font-size: 13px; }
.widget-v2 .chat-launcher.launcher-size-m { padding: 14px 22px; font-size: 14px; }
.widget-v2 .chat-launcher.launcher-size-l { padding: 18px 28px; font-size: 16px; }
.widget-v2 .chat-launcher.launcher-shape-circle { width: 60px; height: 60px; padding: 0; justify-content: center; border-radius: 999px; }
.widget-v2 .chat-launcher.launcher-shape-circle.launcher-size-s { width: 52px; height: 52px; }
.widget-v2 .chat-launcher.launcher-shape-circle.launcher-size-l { width: 68px; height: 68px; }
.widget-v2 .chat-launcher.launcher-shape-circle .launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.widget-v2 .chat-launcher .launcher-text { display: inline-block; text-align: center; transition: opacity .26s ease, transform .26s ease; }
.widget-v2 .chat-launcher .launcher-text.launcher-text-out { opacity: 0; transform: translateY(4px); }
.widget-v2 .chat-launcher.launcher-shimmer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 28%) 50%, transparent 70%); transform: translateX(-120%); animation: launcher-shimmer 20s ease-in-out 4s infinite; }
@keyframes launcher-shimmer { 0%, 88% { transform: translateX(-120%); } 96%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .widget-v2 .chat-launcher .launcher-text { transition: none; } .widget-v2 .chat-launcher.launcher-shimmer::after { animation: none; display: none; } }
.widget-v2.launcher-left .chat-teaser { left: 20px; right: auto; }
