/**
 * Чат-консультант komplektadr.ru — стили.
 * Путь на сервере: /local/css/kadr_chat_widget.css
 * Стиль: «жидкое стекло» (frosted glass) + пружинные анимации, светлая/тёмная тема,
 * prefers-reduced-motion, мобильный bottom-sheet. Всё в неймспейсе .kcw-* / #kcw-root.
 */

#kcw-root {
  --kcw-accent: #115682;
  --kcw-accent-2: #1d7ab8;
  --kcw-glass: rgba(234, 237, 241, 0.82);
  --kcw-glass-strong: rgba(241, 243, 246, 0.72);
  --kcw-edge: rgba(255, 255, 255, 0.55);
  --kcw-text: #1b2530;
  --kcw-text-dim: rgba(27, 37, 48, 0.56);
  --kcw-bubble-bot: rgba(252, 253, 255, 0.92);
  --kcw-bubble-user: linear-gradient(135deg, #14639a, #115682);
  --kcw-card: rgba(252, 253, 255, 0.85);
  --kcw-input: rgba(252, 253, 255, 0.88);
  --kcw-shadow: 0 24px 70px rgba(15, 40, 65, 0.28), 0 4px 18px rgba(15, 40, 65, 0.12);
  --kcw-spring: cubic-bezier(0.34, 1.3, 0.4, 1);
  --kcw-ease: cubic-bezier(0.32, 0.72, 0.28, 1);

  position: fixed;
  z-index: 2147483000;
  bottom: 0;
  right: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--kcw-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: dark) {
  #kcw-root {
    --kcw-glass: rgba(38, 42, 47, 0.8);
    --kcw-glass-strong: rgba(46, 50, 56, 0.7);
    --kcw-edge: rgba(255, 255, 255, 0.14);
    --kcw-text: #eef2f6;
    --kcw-text-dim: rgba(238, 242, 246, 0.55);
    --kcw-bubble-bot: rgba(255, 255, 255, 0.11);
    --kcw-bubble-user: linear-gradient(135deg, #1a6fa8 0%, #14639a 100%);
    --kcw-bubble-user: linear-gradient(135deg, #1a6ea8, #14639a);
    --kcw-card: rgba(255, 255, 255, 0.07);
    --kcw-input: rgba(255, 255, 255, 0.09);
    --kcw-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.35);
  }
}
/* reset: только box-sizing — margin/padding НЕ зануляем универсально,
   иначе id-специфичность (1,0,1) перебивает все классовые отступы .kcw-* (0,1,0) */
#kcw-root *,
#kcw-root *::before,
#kcw-root *::after {
  box-sizing: border-box;
}
#kcw-root button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
#kcw-root textarea {
  margin: 0;
}
#kcw-root .kcw-panel div,
#kcw-root .kcw-panel a,
#kcw-root .kcw-panel span,
#kcw-root .kcw-panel img {
  margin: 0;
}

/* ---------- кнопка-запуск ---------- */
#kcw-root .kcw-fab {
  position: fixed;
  right: 34px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--kcw-accent-2), var(--kcw-accent));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 34px rgba(17, 86, 130, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.45s var(--kcw-spring), box-shadow 0.3s var(--kcw-ease), opacity 0.3s var(--kcw-ease);
}
#kcw-root .kcw-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 44px rgba(15, 40, 65, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
#kcw-root .kcw-fab:active {
  transform: scale(0.94);
}
.kcw-fab svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--kcw-spring), opacity 0.25s var(--kcw-ease);
}

.kcw-fab .kcw-ic-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.4); }
.kcw-open .kcw-fab .kcw-ic-chat { opacity: 0; transform: rotate(90deg) scale(0.4); }
.kcw-open .kcw-fab .kcw-ic-close { opacity: 1; transform: rotate(0) scale(1); }
.kcw-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e8663c, #d94f2a);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(217, 79, 42, 0.5);
  transform: scale(0);
  transition: transform 0.45s var(--kcw-spring);
}
.kcw-fab-badge.kcw-on { transform: scale(1); }

/* ---------- панель ---------- */
.kcw-panel {
  position: fixed;
  right: 34px;
  bottom: 100px;
  width: 384px;
  max-width: calc(100vw - 32px);
  height: min(624px, calc(100dvh - 130px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: var(--kcw-glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
  backdrop-filter: blur(30px) saturate(1.15);
  border: 1px solid var(--kcw-edge);
  box-shadow: var(--kcw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(24px) scale(0.55);
  transform-origin: calc(100% - 30px) calc(100% + 40px);
  pointer-events: none;
  transition: transform 0.5s var(--kcw-spring), opacity 0.32s var(--kcw-ease);
}
.kcw-open .kcw-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ---------- шапка ---------- */
.kcw-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(120, 140, 160, 0.16);
  background: var(--kcw-glass-strong);
}
.kcw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(40, 52, 64, 0.16);
}
.kcw-avatar svg { width: 24px; height: 24px; }
.kcw-avatar-img { width: 26px; height: 26px; display: block; }
.kcw-head-txt { flex: 1; min-width: 0; }
.kcw-title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.kcw-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--kcw-text-dim); margin-top: 1px; }
.kcw-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c26b;
  box-shadow: 0 0 6px rgba(52, 194, 107, 0.7);
}
#kcw-root .kcw-cart-link {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kcw-card);
  border: 1px solid rgba(120, 140, 160, 0.18);
  transition: transform 0.3s var(--kcw-spring), background 0.25s;
  text-decoration: none;
}
.kcw-cart-link:hover { transform: translateY(-2px) scale(1.06); }
.kcw-cart-link svg { width: 19px; height: 19px; stroke: var(--kcw-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.kcw-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8663c, #d94f2a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.45s var(--kcw-spring);
}
.kcw-cart-badge.kcw-on { transform: scale(1); }

/* ---------- лента ---------- */
.kcw-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 140, 160, 0.35) transparent;
}
.kcw-body::-webkit-scrollbar { width: 5px; }
.kcw-body::-webkit-scrollbar-thumb { background: rgba(120, 140, 160, 0.35); border-radius: 3px; }

.kcw-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 19px;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: kcw-rise 0.42s var(--kcw-spring) both;
}
/* ответы бота — блочный markdown-рендер (абзацы/списки), pre-wrap не нужен */
.kcw-msg-bot { white-space: normal; }
.kcw-msg-bot p { margin: 0 0 9px; }
.kcw-msg-bot p:last-child { margin-bottom: 0; }
.kcw-msg-bot ul,
.kcw-msg-bot ol { margin: 2px 0 9px; padding-left: 20px; }
.kcw-msg-bot ul:last-child,
.kcw-msg-bot ol:last-child { margin-bottom: 0; }
.kcw-msg-bot li { margin: 3px 0; list-style-position: outside; }
.kcw-msg-bot ul li { list-style-type: disc; }
.kcw-msg-bot ol li { list-style-type: decimal; }
.kcw-msg-bot strong { font-weight: 680; }
.kcw-msg a { color: var(--kcw-accent-2); text-decoration: none; border-bottom: 1px solid rgba(29, 122, 184, 0.35); }
.kcw-msg a:hover { border-bottom-color: var(--kcw-accent-2); }
.kcw-msg-bot {
  align-self: flex-start;
  background: var(--kcw-bubble-bot);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom-left-radius: 7px;
  box-shadow: 0 3px 14px rgba(40, 52, 64, 0.1);
}
@media (prefers-color-scheme: dark) {
  .kcw-msg-bot { border-color: rgba(255, 255, 255, 0.09); }
}
.kcw-msg-user {
  align-self: flex-end;
  background: var(--kcw-bubble-user);
  color: #fff;
  border-bottom-right-radius: 7px;
  box-shadow: 0 4px 14px rgba(17, 86, 130, 0.3);
}
.kcw-msg-user a { color: #cfe7f8; border-bottom-color: rgba(207, 231, 248, 0.5); }

@keyframes kcw-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* индикатор набора */
.kcw-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 13px 16px;
  border-radius: 19px;
  border-bottom-left-radius: 7px;
  background: var(--kcw-bubble-bot);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: kcw-rise 0.35s var(--kcw-spring) both;
}
@media (prefers-color-scheme: dark) {
  .kcw-typing { border-color: rgba(255, 255, 255, 0.09); }
}
.kcw-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kcw-text-dim);
  animation: kcw-wave 1.15s ease-in-out infinite;
}
.kcw-typing i:nth-child(2) { animation-delay: 0.14s; }
.kcw-typing i:nth-child(3) { animation-delay: 0.28s; }
@keyframes kcw-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- карточки товаров ---------- */
.kcw-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.kcw-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 17px;
  background: var(--kcw-card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 12px rgba(15, 40, 65, 0.07);
  animation: kcw-rise 0.45s var(--kcw-spring) both;
  transition: transform 0.3s var(--kcw-spring), box-shadow 0.3s var(--kcw-ease);
}
@media (prefers-color-scheme: dark) {
  .kcw-card { border-color: rgba(255, 255, 255, 0.1); }
}
.kcw-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 40, 65, 0.13); }
.kcw-card:nth-child(2) { animation-delay: 0.06s; }
.kcw-card:nth-child(3) { animation-delay: 0.12s; }
.kcw-card:nth-child(4) { animation-delay: 0.18s; }
.kcw-card-img {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 140, 160, 0.15);
}
.kcw-card-img.kcw-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kcw-text-dim);
}
.kcw-card-info { flex: 1; min-width: 0; }
.kcw-card-name {
  font-size: 13.5px;
  font-weight: 570;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
a.kcw-card-name:hover { color: var(--kcw-accent-2); }
.kcw-card-variant { font-size: 11.5px; color: var(--kcw-text-dim); margin-top: 1px; }
.kcw-card-price { font-size: 13.5px; font-weight: 700; margin-top: 3px; color: var(--kcw-accent-2); letter-spacing: -0.01em; }
#kcw-root .kcw-card-btn {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 620;
  color: #fff;
  background: linear-gradient(135deg, var(--kcw-accent-2), var(--kcw-accent));
  box-shadow: 0 4px 12px rgba(17, 86, 130, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--kcw-spring), box-shadow 0.25s, filter 0.25s;
  white-space: nowrap;
}
#kcw-root .kcw-card-btn:hover { transform: translateY(-1px) scale(1.04); filter: brightness(1.08); }
#kcw-root .kcw-card-btn:active { transform: scale(0.93); }
#kcw-root .kcw-card-btn.kcw-done {
  background: linear-gradient(135deg, #3cb371, #2e9e60);
  box-shadow: 0 4px 12px rgba(46, 158, 96, 0.3);
  pointer-events: none;
}
#kcw-root .kcw-card-btn:disabled { opacity: 0.6; pointer-events: none; }

/* карточка-сервис */
.kcw-service {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(29, 122, 184, 0.13), rgba(17, 86, 130, 0.09));
  border: 1px solid rgba(29, 122, 184, 0.3);
  text-decoration: none;
  color: inherit;
  animation: kcw-rise 0.45s var(--kcw-spring) both;
  transition: transform 0.3s var(--kcw-spring), background 0.25s;
}
.kcw-service:hover { transform: translateY(-2px); }
.kcw-service svg { width: 20px; height: 20px; flex: none; stroke: var(--kcw-accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kcw-service-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.kcw-service-sub { font-size: 12px; color: var(--kcw-text-dim); margin-top: 1px; }

/* подсказки-чипы */
.kcw-chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: stretch; animation: kcw-rise 0.5s var(--kcw-spring) both; }
#kcw-root .kcw-chip {
  padding: 7px 13px;
  border-radius: 15px;
  font-size: 12.5px;
  background: var(--kcw-card);
  border: 1px solid rgba(120, 140, 160, 0.22);
  color: var(--kcw-text);
  transition: transform 0.3s var(--kcw-spring), border-color 0.25s, background 0.25s;
}
#kcw-root .kcw-chip:hover { transform: translateY(-1px); border-color: var(--kcw-accent-2); color: var(--kcw-accent-2); }

/* тост */
.kcw-toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(14px) scale(0.9);
  padding: 9px 16px;
  border-radius: 15px;
  background: rgba(30, 36, 44, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--kcw-spring), opacity 0.3s var(--kcw-ease);
}
.kcw-toast.kcw-on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- ввод ---------- */
.kcw-foot {
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(120, 140, 160, 0.16);
  background: var(--kcw-glass-strong);
}
.kcw-inrow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 21px;
  background: var(--kcw-input);
  border: 1px solid rgba(120, 140, 160, 0.22);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.kcw-inrow:focus-within {
  border-color: rgba(29, 122, 184, 0.55);
  box-shadow: 0 0 0 3px rgba(29, 122, 184, 0.13);
}
#kcw-root .kcw-input {
  flex: 1;
  border: 0;
  background: none;
  resize: none;
  font: inherit;
  color: var(--kcw-text);
  outline: none;
  /* компактная одна строка; при вводе JS-автосайз растит до max-height */
  height: 34px;
  min-height: 34px;
  max-height: 108px;
  padding: 7px 0;
  line-height: 1.4;
  overflow-y: hidden; /* скролл включает JS, только когда текст выше max-height */
}
.kcw-input::placeholder { color: var(--kcw-text-dim); }
#kcw-root .kcw-btn-mic,
#kcw-root .kcw-btn-send {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--kcw-spring), background 0.25s, box-shadow 0.3s;
}
.kcw-btn-mic svg,
.kcw-btn-send svg { width: 19px; height: 19px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#kcw-root .kcw-btn-mic { background: transparent; }
.kcw-btn-mic svg { stroke: var(--kcw-text-dim); }
#kcw-root .kcw-btn-mic:hover { background: rgba(120, 140, 160, 0.14); transform: scale(1.07); }
#kcw-root .kcw-btn-mic.kcw-rec {
  background: radial-gradient(circle at 35% 30%, #ff6d55, #e0402c);
  animation: kcw-breathe 1.6s ease-in-out infinite;
}
#kcw-root .kcw-btn-mic.kcw-rec svg { stroke: #fff; }
#kcw-root .kcw-btn-mic.kcw-busy { pointer-events: none; opacity: 0.55; }
@keyframes kcw-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 64, 44, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 0 9px rgba(224, 64, 44, 0); transform: scale(1.06); }
}
#kcw-root .kcw-btn-send {
  background: linear-gradient(135deg, var(--kcw-accent-2), var(--kcw-accent));
  box-shadow: 0 4px 12px rgba(17, 86, 130, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.kcw-btn-send svg { stroke: #fff; }
#kcw-root .kcw-btn-send:hover { transform: translateY(-1px) scale(1.06); }
#kcw-root .kcw-btn-send:active { transform: scale(0.92); }
#kcw-root .kcw-btn-send:disabled { opacity: 0.45; pointer-events: none; }
.kcw-hint {
  margin-top: 7px;
  text-align: center;
  font-size: 11px;
  color: var(--kcw-text-dim);
}

/* ---------- мобильный bottom-sheet ---------- */
@media (max-width: 520px) {
  .kcw-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: min(86dvh, 640px);
    border-radius: 26px 26px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform-origin: 50% 100%;
    transform: translateY(40px) scale(0.96);
  }
  .kcw-open .kcw-panel { transform: translateY(0) scale(1); }
  .kcw-open .kcw-fab { opacity: 0; pointer-events: none; }
  .kcw-head { padding-top: 18px; }
  .kcw-head::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(120, 140, 160, 0.4);
  }
  .kcw-panel { position: fixed; }
  .kcw-head { position: relative; }
  .kcw-msg { max-width: 88%; }
}

/* ---------- уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  #kcw-root *,
  #kcw-root *::before,
  #kcw-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .kcw-panel { transition-property: opacity !important; transform: none !important; }
  .kcw-btn-mic.kcw-rec { animation: none !important; box-shadow: 0 0 0 3px rgba(224, 64, 44, 0.35); }
}

/* без поддержки backdrop-filter — плотный фон */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .kcw-panel, .kcw-fab { background: rgba(252, 253, 255, 0.97); }
  @media (prefers-color-scheme: dark) {
    .kcw-panel, .kcw-fab { background: rgba(26, 30, 36, 0.97); }
  }
}

/* Разводка с кнопкой Aspro «наверх» (a.scroll-to-top, right 75 / bottom 55 перекрывала FAB):
   поднимаем её в колонку над нашей кнопкой. Правило живёт в CSS виджета — действует
   только там, где виджет вообще подключён. */
a.scroll-to-top {
  right: 40px !important;
  bottom: 104px !important;
}

/* кнопка перехода к оформлению — внутри пузыря ответа */
.kcw-msg-bot a.kcw-msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--kcw-accent-2), var(--kcw-accent));
  color: #fff;
  font-weight: 620;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: 0 4px 14px rgba(17, 86, 130, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--kcw-spring), filter 0.25s;
}
.kcw-msg-bot a.kcw-msg-btn:hover { transform: translateY(-1px); filter: brightness(1.08); border-bottom: 0; }
.kcw-msg-bot a.kcw-msg-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* мягкий пульс-кольцо для привлечения внимания к кнопке чата */
#kcw-root .kcw-fab::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  pointer-events: none;
  animation: kcw-attract 7s var(--kcw-ease) infinite;
}
@keyframes kcw-attract {
  0%, 74% { box-shadow: 0 0 0 0 rgba(29, 122, 184, 0.45); }
  92% { box-shadow: 0 0 0 16px rgba(29, 122, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 122, 184, 0); }
}
.kcw-open .kcw-fab::after { animation: none; }
