.kkc-root{--kkc-color:#1f6f5c;position:fixed;right:16px;bottom:16px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.45;color:#1b1f23}
.kkc-root *{box-sizing:border-box}
.kkc-launcher{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:0;border-radius:50%;background:var(--kkc-color);color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);margin-left:auto;padding:0}
.kkc-launcher:hover{filter:brightness(1.08)}
.kkc-launcher:focus-visible,.kkc-close:focus-visible,.kkc-send:focus-visible,.kkc-input:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.kkc-panel{position:absolute;right:0;bottom:70px;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 10px 36px rgba(0,0,0,.28);overflow:hidden}
.kkc-panel[hidden]{display:none}
.kkc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:var(--kkc-color);color:#fff}
.kkc-title{font-weight:600;font-size:16px}
.kkc-sub{font-size:12px;opacity:.9}
.kkc-close{background:transparent;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.kkc-log{flex:1;overflow-y:auto;padding:14px;background:#f4f6f5;display:flex;flex-direction:column;gap:8px}
.kkc-msg{max-width:84%;padding:9px 12px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.kkc-bot{align-self:flex-start;background:#fff;border:1px solid #e1e6e4;border-bottom-left-radius:4px}
.kkc-user{align-self:flex-end;background:var(--kkc-color);color:#fff;border-bottom-right-radius:4px}
.kkc-msg a{color:inherit;text-decoration:underline}
.kkc-typing{display:flex;gap:4px;padding:12px 14px}
.kkc-typing span{width:7px;height:7px;border-radius:50%;background:#9aa5a1;animation:kkc-b 1.2s infinite ease-in-out}
.kkc-typing span:nth-child(2){animation-delay:.15s}
.kkc-typing span:nth-child(3){animation-delay:.3s}
@keyframes kkc-b{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.kkc-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e1e6e4;background:#fff;align-items:flex-end}
.kkc-input{flex:1;resize:none;border:1px solid #c9d1ce;border-radius:10px;padding:9px 10px;font:inherit;max-height:110px;background:#fff;color:inherit}
.kkc-send{border:0;border-radius:10px;padding:10px 14px;background:var(--kkc-color);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.kkc-send:disabled,.kkc-input:disabled{opacity:.6;cursor:not-allowed}
.kkc-left{right:auto;left:16px}
.kkc-left .kkc-launcher{margin-left:0}
.kkc-left .kkc-panel{right:auto;left:0}
@media (max-width:480px){
	.kkc-root{right:12px;bottom:12px}
	.kkc-left{left:12px}
	.kkc-root.kkc-open{right:0;bottom:0;left:0;top:0}
	.kkc-root.kkc-open .kkc-launcher{display:none}
	.kkc-root.kkc-open .kkc-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0;bottom:0}
	.kkc-input{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.kkc-typing span{animation:none}}
