:root {
  --ksk-chat-green:#147f44;
  --ksk-chat-green-deep:#0d6031;
  --ksk-chat-ink:#23372f;
  --ksk-chat-muted:#64766d;
  --ksk-chat-pale:#eef4ee;
}

.ksk-smart-chat-launcher {
  position:fixed;
  z-index:86;
  right:24px;
  bottom:24px;
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  padding:0;
  border:1px solid rgba(255,255,255,.58);
  border-radius:22px;
  background:var(--ksk-chat-green);
  color:#fff;
  box-shadow:0 16px 36px rgba(15,92,49,.28),inset 0 1px rgba(255,255,255,.28);
  cursor:pointer;
}
.ksk-smart-chat-launcher[hidden]{display:none}
.ksk-smart-chat__backdrop{position:fixed;z-index:87;inset:0;background:rgba(14,27,19,.2);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.ksk-smart-chat__backdrop[hidden]{display:none}
.ksk-smart-chat {
  position:fixed;
  z-index:88;
  right:24px;
  bottom:112px;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  width:min(430px,calc(100vw - 32px));
  max-height:min(700px,calc(100dvh - 140px));
  overflow:hidden;
  border:1px solid rgba(48,83,61,.13);
  border-radius:30px;
  background:rgba(250,252,249,.96);
  color:var(--ksk-chat-ink);
  box-shadow:0 28px 84px rgba(22,49,32,.24),inset 0 1px rgba(255,255,255,.9);
  backdrop-filter:blur(28px) saturate(110%);
  -webkit-backdrop-filter:blur(28px) saturate(110%);
}
.ksk-smart-chat[aria-hidden=true]{display:none}
.ksk-smart-chat__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:12px}
html.ksk-chat-is-open,html.ksk-chat-is-open body{overflow:hidden;overscroll-behavior:none}
.ksk-smart-chat__head{display:grid;grid-template-columns:44px minmax(0,1fr) 40px;gap:11px;align-items:center;padding:18px 18px 14px;border-bottom:1px solid rgba(48,83,61,.09)}
.ksk-smart-chat__mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--ksk-chat-green);color:#fff;font-size:11px;font-weight:760;letter-spacing:.07em}
.ksk-smart-chat__head strong{display:block;font-size:16px;line-height:1.2}
.ksk-smart-chat__head div span{display:block;margin-top:3px;color:var(--ksk-chat-muted);font-size:12px}
.ksk-smart-chat__close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:13px;background:transparent;color:#476057;font-size:28px;line-height:1;cursor:pointer}
.ksk-smart-chat__close:hover{background:#e9f0ea}
.ksk-smart-chat__conversation{display:flex;flex-direction:column;gap:9px;padding:18px 18px 12px}
.ksk-smart-chat__message{max-width:88%;padding:12px 14px;border-radius:17px 17px 17px 5px;background:#e9f0ea;font-size:14px;line-height:1.47;animation:ksk-chat-message .28s cubic-bezier(.22,1,.36,1) both}
.ksk-smart-chat__message.is-patient{align-self:flex-end;border-radius:17px 17px 5px 17px;background:var(--ksk-chat-green);color:#fff}
.ksk-smart-chat__controls{padding:0 18px 15px}
.ksk-smart-chat__topics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ksk-smart-chat__topics button{min-height:54px;padding:10px 11px;border:1px solid rgba(31,91,54,.13);border-radius:15px;background:#fff;color:var(--ksk-chat-ink);font:inherit;font-size:12px;line-height:1.28;text-align:left;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.ksk-smart-chat__topics button:hover{border-color:rgba(20,127,68,.42);background:#f4f8f3}
.ksk-smart-chat__topics button:active{transform:scale(.98)}
.ksk-smart-chat__actions{display:grid;gap:8px}
.ksk-smart-chat__actions button,.ksk-smart-chat__call,.ksk-smart-chat__price{display:flex;align-items:center;justify-content:center;min-height:46px;padding:11px 14px;border:1px solid rgba(20,127,68,.2);border-radius:14px;background:#fff;color:var(--ksk-chat-green-deep);font:inherit;font-size:13px;font-weight:680;text-align:center;text-decoration:none;cursor:pointer}
.ksk-smart-chat__actions .is-primary{border-color:var(--ksk-chat-green);background:var(--ksk-chat-green);color:#fff}
.ksk-smart-chat__actions .is-link{min-height:38px;border-color:transparent;background:transparent;color:#65776e;font-weight:520}
.ksk-smart-chat__call{gap:8px}
.ksk-smart-chat__price{border-color:transparent;background:#edf4ed}
.ksk-smart-chat__form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ksk-smart-chat__form>label{display:grid;gap:6px;color:#53685e;font-size:11px;font-weight:650}
.ksk-smart-chat__form>label:nth-of-type(3),.ksk-smart-chat__consent,.ksk-smart-chat__submit,.ksk-smart-chat__form-back,.ksk-smart-chat__result{grid-column:1/-1}
.ksk-smart-chat__form input:not([type=checkbox]),.ksk-smart-chat__form textarea{width:100%;min-width:0;padding:12px 13px;border:1px solid rgba(43,75,56,.19);border-radius:13px;background:#fff;color:var(--ksk-chat-ink);font:inherit;font-size:14px;outline:none}
.ksk-smart-chat__form input:not([type=checkbox]){height:47px}
.ksk-smart-chat__form textarea{resize:vertical;min-height:70px}
.ksk-smart-chat__form input:focus,.ksk-smart-chat__form textarea:focus{border-color:var(--ksk-chat-green);box-shadow:0 0 0 3px rgba(20,127,68,.1)}
.ksk-smart-chat__consent{display:flex!important;grid-template-columns:none!important;flex-direction:row;align-items:flex-start;gap:8px!important;font-weight:450!important;line-height:1.38}
.ksk-smart-chat__consent input{flex:0 0 auto;margin:2px 0 0;width:17px;height:17px;accent-color:var(--ksk-chat-green)}
.ksk-smart-chat__consent a{color:var(--ksk-chat-green);text-underline-offset:2px}
.ksk-smart-chat__submit{min-height:48px;border:0;border-radius:14px;background:var(--ksk-chat-green);color:#fff;font:inherit;font-size:14px;font-weight:720;cursor:pointer}
.ksk-smart-chat__submit:disabled{opacity:.6;cursor:wait}
.ksk-smart-chat__form-back{justify-self:center;border:0;background:none;color:#64776d;font:inherit;font-size:12px;cursor:pointer}
.ksk-smart-chat__result{margin:0;color:#a13737;font-size:12px;line-height:1.4}
.ksk-smart-chat__website{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.ksk-smart-chat__notice{margin:0;padding:10px 18px 14px;border-top:1px solid rgba(48,83,61,.08);color:#708078;font-size:10px;line-height:1.45}
.ksk-smart-chat :focus-visible{outline:3px solid rgba(20,127,68,.32);outline-offset:2px}
.ksk-smart-chat-active .desktop-chat{z-index:86}
.ksk-smart-chat-active.has-happy-hours .ksk-smart-chat-launcher{bottom:calc(24px + (var(--happy-bar-height,156px) - 72px)/2)}
@keyframes ksk-chat-message{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

@media(max-width:960px){
  .ksk-smart-chat-launcher{display:none}
  .ksk-smart-chat{right:10px;bottom:calc(96px + env(safe-area-inset-bottom));width:calc(100vw - 20px);max-height:calc(100dvh - 118px);border-radius:24px}
  .ksk-smart-chat__head{padding:14px 14px 11px}
  .ksk-smart-chat__conversation{padding:14px 14px 10px}
  .ksk-smart-chat__controls{padding:0 14px 12px}
  .ksk-smart-chat__notice{padding:9px 14px 11px}
  .ksk-smart-chat__form input:not([type=checkbox]),.ksk-smart-chat__form textarea{font-size:16px}
  .ksk-smart-chat[data-keyboard]{top:calc(var(--chat-visual-top,0px) + 6px);bottom:auto;max-height:calc(var(--chat-visual-height,100dvh) - 12px)}
}
@media(max-height:500px){
  .ksk-smart-chat{bottom:6px;max-height:calc(100dvh - 12px)}
}
@media(max-height:360px){
  .ksk-smart-chat__head{padding-block:4px}
}
@media(max-width:430px){
  .ksk-smart-chat__topics{grid-template-columns:1fr}
  .ksk-smart-chat__topics button{min-height:46px}
  .ksk-smart-chat__form{grid-template-columns:1fr}
  .ksk-smart-chat__form>*{grid-column:1!important}
  .ksk-smart-chat__message{max-width:92%;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.ksk-smart-chat__message{animation:none}.ksk-smart-chat__topics button{transition:none}}

