/* KBMA 안내 챗봇 (site.css 토큰 사용) */
.cb-launch{position:fixed;right:20px;bottom:20px;z-index:40;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(16,29,46,.22);transition:transform .2s}  /* taste-skill-ignore: 떠 있는 버튼 */
.cb-launch:hover{transform:translateY(-2px)}
.cb-launch img{display:block;width:100%;height:100%;border-radius:50%}
.cb-launch[aria-expanded="true"]{transform:scale(.92)}

.cb-panel{position:fixed;right:20px;bottom:96px;z-index:41;display:flex;flex-direction:column;width:min(380px,calc(100vw - 24px));height:min(580px,calc(100vh - 128px));background:var(--field);color:var(--ink);box-shadow:0 24px 64px rgba(0,0,0,.25)}  /* taste-skill-ignore: 떠 있는 창 */
.cb-panel[hidden]{display:none}
.cb-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--foot-bg);color:var(--foot-fg)}
.cb-head img{width:40px;height:40px;border-radius:50%;background:#fff}
.cb-head b{display:block;font-size:16px}
.cb-head small{display:block;font-size:13px;opacity:.75}
.cb-close{margin-left:auto;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:rgba(255,255,255,.12);color:inherit;cursor:pointer}

.cb-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--ground)}
.cb-msg{max-width:86%;padding:10px 14px;font-size:15px;line-height:1.55;word-break:keep-all;overflow-wrap:break-word}
.cb-msg.bot{align-self:flex-start;background:var(--field);color:var(--ink)}
.cb-msg.me{align-self:flex-end;background:var(--accent);color:var(--on-accent)}
.cb-msg p{margin:0}
.cb-msg p+p,.cb-msg ul+p,.cb-msg p+ul{margin-top:8px}
.cb-msg ul{margin:0;padding-left:18px}
.cb-msg a{color:var(--accent);font-weight:600}
.cb-msg.bot .ev{display:block;margin-top:6px;padding:8px 10px;background:var(--ground);text-decoration:none;color:var(--heading)}
.cb-msg.bot .ev small{display:block;font-weight:400;color:var(--ink-2)}

.cb-chips{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px 0;background:var(--field)}
.cb-chips button{min-height:34px;padding:0 12px;border:1px solid var(--border-strong);border-radius:17px;background:var(--field);color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.cb-chips button:hover{border-color:var(--accent);color:var(--accent)}
.cb-form{display:flex;gap:8px;padding:10px 12px}
.cb-form input{flex:1;min-width:0;padding:10px 12px;font:inherit;font-size:15px;color:var(--ink);background:var(--ground);border:1px solid var(--border-strong);border-radius:0}
.cb-form button{min-height:42px;padding:0 16px;border:0;background:var(--accent);color:var(--on-accent);font:inherit;font-weight:600;cursor:pointer}
.cb-note{margin:0;padding:0 12px 10px;font-size:12px;color:var(--ink-2);background:var(--field)}

/* 폰: 하단 고정 버튼(전화·상담) 위로 */
@media (max-width:760px){
  .cb-launch{right:10px;bottom:66px;width:48px;height:48px}
  .cb-panel{right:8px;left:8px;width:auto;bottom:132px;height:calc(100svh - 200px)}
}
@media (prefers-reduced-motion:reduce){.cb-launch{transition:none}}
