/* Site chat. No rules on html or body. */
.kkc {
  --kkc-ink: #10183e;
  --kkc-ink-2: #1b2a6b;
  --kkc-royal: #345cff;
  --kkc-orange: #ff7a1a;
  --kkc-orange-2: #ff9a3d;
  --kkc-paper: #f7f8fc;
  --kkc-muted: #657095;
  --kkc-line: #dfe4f1;
  --kkc-azure: #9bacd8;
  --kkc-ok: #2fd27a;
  --kkc-vk: #0077ff;
  --kkc-shadow: 0 24px 80px rgba(24, 39, 105, .18), 0 6px 18px rgba(16, 24, 62, .10);
  --kkc-font-d: Manrope, system-ui, sans-serif;
  --kkc-font: Inter, system-ui, sans-serif;
  font-family: var(--kkc-font);
  color: var(--kkc-ink);
}

.kkc-launcher {
  position: fixed;
  z-index: 10040;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
}

.kkc.is-open .kkc-launcher {
  display: none;
}

@media (min-width: 768px) {
  .kkc.is-open .kkc-launcher {
    display: flex;
  }
}

.kkc-tip {
  background: #fff;
  border: 1px solid var(--kkc-line);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 14px;
  box-shadow: 0 12px 30px rgba(16, 24, 62, .12);
  font: 600 14px/1.3 var(--kkc-font);
  max-width: 220px;
}

.kkc-tip b {
  display: block;
  font: 800 13px var(--kkc-font-d);
  color: var(--kkc-ink);
}

.kkc-tip span {
  color: var(--kkc-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.kkc-fab {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--kkc-orange-2), var(--kkc-orange) 55%, #e2650d);
  box-shadow: 0 12px 28px rgba(255, 122, 26, .35);
}

.kkc-fab img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(16, 24, 62, .35));
  margin-top: 2px;
}

.kkc-fab:after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 122, 26, .35);
  animation: kkc-ring 2.4s ease-out infinite;
}

@keyframes kkc-ring {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

.kkc-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--kkc-ink);
  color: #fff;
  font: 800 12px/22px var(--kkc-font-d);
  text-align: center;
  border: 2px solid #fff;
}

.kkc-panel {
  position: fixed;
  z-index: 10041;
  right: 20px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  width: 404px;
  height: 660px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  border-radius: 26px;
  background: var(--kkc-paper);
  box-shadow: var(--kkc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 62, .08);
}

.kkc-panel[hidden] {
  display: none;
}

.kkc-head {
  position: relative;
  padding: 16px 16px 16px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(120px 80px at 18% 0%, rgba(52, 92, 255, .55), transparent 70%),
    linear-gradient(135deg, var(--kkc-ink) 0%, var(--kkc-ink-2) 100%);
}

.kkc-head:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(155, 172, 216, .18) 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.kkc-head > * {
  position: relative;
}

.kkc-ava {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 0%, #e8ecf8 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--kkc-orange), 0 6px 16px rgba(0, 0, 0, .25);
  flex: none;
}

.kkc-ava img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.kkc-ava i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kkc-ok);
  border: 2.5px solid var(--kkc-ink);
}

.kkc-title {
  flex: 1;
  min-width: 0;
}

.kkc-title b {
  display: block;
  font: 800 16px/1.2 var(--kkc-font-d);
  letter-spacing: -.02em;
}

.kkc-title b em {
  font-style: normal;
  color: var(--kkc-orange);
}

.kkc-title span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12.5px/1.3 var(--kkc-font);
  color: var(--kkc-azure);
  margin-top: 3px;
}

.kkc-title span:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kkc-ok);
  box-shadow: 0 0 0 3px rgba(47, 210, 122, .2);
}

.kkc-hbtn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  flex: none;
  cursor: pointer;
  padding: 0;
}

.kkc-hbtn svg {
  width: 16px;
  height: 16px;
}

.kkc-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.kkc-day {
  align-self: center;
  font: 600 11px var(--kkc-font);
  color: var(--kkc-muted);
  background: #fff;
  border: 1px solid var(--kkc-line);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: .02em;
}

.kkc-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
}

.kkc-row.me {
  justify-content: flex-end;
}

.kkc-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--kkc-line);
  display: grid;
  place-items: center;
  flex: none;
}

.kkc-mini img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.kkc-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 18px;
  font: 400 14.5px/1.45 var(--kkc-font);
  overflow-wrap: anywhere;
}

.kkc-msg.bot {
  background: #fff;
  border: 1px solid var(--kkc-line);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 6px rgba(16, 24, 62, .04);
}

.kkc-msg.me {
  background: var(--kkc-ink);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.kkc-msg.mgr {
  background: #fff;
  border: 1px solid rgba(0, 119, 255, .25);
  border-bottom-left-radius: 6px;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, .05);
}

.kkc-msg a {
  color: var(--kkc-royal);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 92, 255, .3);
  font-weight: 500;
}

.kkc-msg.me a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .45);
}

.kkc-meta {
  display: block;
  font: 500 11px var(--kkc-font);
  color: var(--kkc-muted);
  margin-top: 4px;
  text-align: right;
}

.kkc-msg.me .kkc-meta {
  color: rgba(255, 255, 255, .55);
}

.kkc-who {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 11.5px var(--kkc-font-d);
  color: var(--kkc-vk);
  margin-bottom: 3px;
}

.kkc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 10.5px var(--kkc-font);
  color: var(--kkc-muted);
  background: #eef1fa;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
}

.kkc-msg.me .kkc-tag {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.kkc-msg ol {
  margin: 6px 0 2px;
  padding-left: 18px;
}

.kkc-msg li {
  margin: 2px 0;
}

.kkc-hello-note {
  display: block;
  margin-top: 6px;
  color: #8a8f9c;
  font-size: 12px;
  line-height: 1.35;
}

.kkc-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--kkc-line);
  border-radius: 18px 18px 18px 6px;
  padding: 8px 12px;
}

.kkc-gallop img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  animation: kkc-hop .6s ease-in-out infinite;
}

@keyframes kkc-hop {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.kkc-dot3 {
  display: flex;
  gap: 4px;
}

.kkc-dot3 i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kkc-orange);
  animation: kkc-b 1.2s infinite;
}

.kkc-dot3 i:nth-child(2) {
  animation-delay: .15s;
  background: #ff9a3d;
}

.kkc-dot3 i:nth-child(3) {
  animation-delay: .3s;
  background: #ffbb7a;
}

@keyframes kkc-b {
  0%, 60%, 100% { transform: translateY(0); opacity: .6; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.kkc-typing span {
  font: 500 12.5px var(--kkc-font);
  color: var(--kkc-muted);
}

.kkc-login {
  margin: 2px 0 0 36px;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #f3f6ff 100%);
  border: 1px dashed rgba(52, 92, 255, .35);
  font: 500 13px/1.4 var(--kkc-font);
  color: var(--kkc-ink);
}

.kkc-login b {
  font-family: var(--kkc-font-d);
  font-weight: 800;
}

.kkc-login a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  background: var(--kkc-vk);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: 700 13px var(--kkc-font-d);
  text-decoration: none;
}

.kkc-foot {
  padding: 10px 12px 10px;
  background: #fff;
  border-top: 1px solid var(--kkc-line);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.kkc-ctx {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 8px;
  padding: 6px 8px 6px 10px;
  border-radius: 10px;
  background: rgba(255, 122, 26, .08);
  font: 600 12px var(--kkc-font);
  color: #a64a08;
}

.kkc-ctx b {
  font-weight: 700;
  color: var(--kkc-ink);
}

.kkc-ctx button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--kkc-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.kkc-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--kkc-paper);
  border: 1.5px solid var(--kkc-line);
  border-radius: 18px;
  padding: 6px 6px 6px 14px;
}

.kkc-compose:focus-within {
  border-color: rgba(255, 122, 26, .6);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .12);
  background: #fff;
}

.kkc-input {
  flex: 1;
  width: 100%;
  border: 0;
  resize: none;
  background: transparent;
  font: 400 16px/1.4 var(--kkc-font);
  color: var(--kkc-ink);
  padding: 7px 0;
  min-height: 22px;
  max-height: 110px;
  outline: none;
}

.kkc-send {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, var(--kkc-orange-2), var(--kkc-orange));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(255, 122, 26, .35);
  flex: none;
  cursor: pointer;
}

.kkc-send svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.kkc-send:disabled {
  background: #e3e7f2;
  box-shadow: none;
  cursor: default;
}

.kkc-send:disabled svg {
  fill: #9aa2bd;
}

.kkc-count {
  margin: 4px 4px 0;
  font: 500 11px var(--kkc-font);
  color: var(--kkc-muted);
  text-align: right;
}

.kkc-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 8px 4px 0;
  font: 500 11px/1.35 var(--kkc-font);
  color: var(--kkc-muted);
}

.kkc-legal a {
  color: var(--kkc-muted);
  text-decoration: underline;
  text-decoration-color: rgba(101, 112, 149, .4);
}

.kkc-legal .vk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--kkc-vk);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.kkc-notice {
  align-self: center;
  font: 500 12.5px/1.4 var(--kkc-font);
  color: var(--kkc-muted);
  text-align: center;
  max-width: 90%;
}

@media (max-width: 767px) {
  .kkc-fab {
    width: 60px;
    height: 60px;
  }

  .kkc-launcher {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .kkc-panel {
    inset: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: var(--kkc-vh, 100dvh);
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .kkc-head {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 14px;
  }

  .kkc-hbtn--min {
    display: none;
  }

  .kkc-body {
    padding: 14px 12px 8px;
  }

  .kkc-msg {
    max-width: 84%;
    font-size: 15px;
  }

  .kkc-foot {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkc-fab:after,
  .kkc-gallop img,
  .kkc-dot3 i {
    animation: none;
  }
}

.kkc-ctx[hidden] {
  display: none;
}

.kkc-body > :first-child {
  margin-top: auto;
}

.kkc-legal [data-kkc-left]:not([hidden]) {
  display: block;
  margin-top: 2px;
}
