/* КАРАДЕСК — чат с продажником: кнопка справа внизу и панель переписки. Цвета — из переменных light.css, с запасными значениями. */
.cdc-launch,.cdc-panel{--cdc-ink:var(--ink,#0b0b0c);--cdc-card:var(--card,#fff);--cdc-bg:var(--bg,#f4f4f2);--cdc-muted:var(--muted,#6c6c72);--cdc-line:var(--line-2,rgba(11,11,12,.14));font-family:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.cdc-launch{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:70;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 16px;border:0;border-radius:18px;background:var(--cdc-ink);color:#fff;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 18px 40px -16px rgba(0,0,0,.55);transition:transform .2s,box-shadow .2s}
.cdc-launch:hover{transform:translateY(-1px);box-shadow:0 22px 46px -16px rgba(0,0,0,.6)}
.cdc-launch svg{width:24px;height:24px;flex:none}
.cdc-launch[aria-expanded="true"]{display:none}
.cdc-launch:focus-visible,.cdc-panel :focus-visible{outline:2px solid var(--cdc-ink);outline-offset:3px}
@media (max-width:1000px){body:has(.cookie-bar) .cdc-launch{bottom:calc(110px + env(safe-area-inset-bottom,0px))}}
@media (max-width:560px){.cdc-launch{right:16px;padding:0 16px}.cdc-launch span{display:none}body:has(.cookie-bar) .cdc-launch{bottom:calc(200px + env(safe-area-inset-bottom,0px))}}

.cdc-panel{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:80;width:min(400px,calc(100vw - 40px));height:min(620px,calc(100dvh - 40px));display:flex;flex-direction:column;background:var(--cdc-card);color:var(--cdc-ink);border-radius:24px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 40px 90px -30px rgba(20,20,30,.45);overflow:hidden;font-size:15px;line-height:1.5}
.cdc-panel[hidden]{display:none}
.cdc-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 20px;border-bottom:1px solid var(--cdc-line)}
.cdc-head div{flex:1;min-width:0}
.cdc-head h2{margin:0;font-size:16px;font-weight:700;letter-spacing:-.01em}
.cdc-head p{margin:2px 0 0;font-size:13px;color:var(--cdc-muted)}
.cdc-close{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.cdc-close:hover{background:var(--cdc-bg)}
.cdc-close svg{width:20px;height:20px}
.cdc-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--cdc-bg)}
.cdc-msg{max-width:86%;padding:10px 14px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.cdc-msg.bot{align-self:flex-start;background:var(--cdc-card);border-bottom-left-radius:6px}
.cdc-msg.me{align-self:flex-end;background:var(--cdc-ink);color:#fff;border-bottom-right-radius:6px}
.cdc-msg.note{align-self:center;max-width:100%;padding:4px 10px;background:none;color:var(--cdc-muted);font-size:13px;text-align:center}
.cdc-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:14px 16px;border-radius:18px;background:var(--cdc-card)}
.cdc-typing i{width:6px;height:6px;border-radius:50%;background:var(--cdc-muted);animation:cdc-dot 1s infinite ease-in-out}
.cdc-typing i:nth-child(2){animation-delay:.15s}.cdc-typing i:nth-child(3){animation-delay:.3s}
@keyframes cdc-dot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.cdc-form{padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--cdc-line);background:var(--cdc-card)}
.cdc-consent{display:flex;gap:10px;align-items:flex-start;margin:0 4px 10px;font-size:13.5px;line-height:1.4}
.cdc-consent label{cursor:pointer}
.cdc-consent input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--cdc-ink)}
.cdc-consent a{color:var(--cdc-muted);text-decoration:underline;text-underline-offset:2px}
.cdc-err{margin:0 4px 10px;font-size:13.5px;color:#c62f34}
.cdc-row{display:flex;gap:8px;align-items:flex-end}
.cdc-row textarea{flex:1;min-width:0;min-height:44px;max-height:120px;resize:none;overflow-y:hidden;padding:11px 14px;border:1px solid var(--cdc-line);border-radius:14px;background:var(--cdc-card);font-size:16px;line-height:1.35}
.cdc-row textarea:focus{outline:none;border-color:var(--cdc-ink)}
.cdc-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:var(--cdc-ink);color:#fff;cursor:pointer}
.cdc-send:disabled{opacity:.45;cursor:default}
.cdc-send svg{width:20px;height:20px}
.cdc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:560px){
  .cdc-panel{inset:0;width:100%;height:100dvh;border-radius:0}
  html.cdc-open,html.cdc-open body{overflow:hidden}
}
@media (prefers-reduced-motion:reduce){.cdc-typing i{animation:none;opacity:.6}.cdc-launch{transition:none}}
