/* FAQ 챗봇 창. 기존 main.css의 색 변수와 각진 버튼 모양을 그대로 따른다. 다른 화면 요소는 건드리지 않는다. */
.ub-chat-launcher{position:fixed;right:24px;bottom:24px;z-index:45;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;background:var(--teal);color:#fff;border:1px solid var(--teal);font-size:13px;box-shadow:0 8px 24px rgba(23,75,73,.18)}
.ub-chat-launcher span{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid rgba(255,255,255,.7);border-radius:50%;font-size:12px;line-height:1}
.ub-chat-launcher:hover{background:#0f3735}
.ub-chat{position:fixed;right:24px;bottom:84px;z-index:46;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 18px 50px rgba(33,40,36,.18)}
.ub-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--teal);color:#fff}
.ub-chat-head strong{font-weight:500;font-size:14px;letter-spacing:-.02em}
.ub-chat-close{background:none;border:1px solid rgba(255,255,255,.6);color:#fff;font-size:12px;padding:4px 10px}
.ub-chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;font-size:13.5px;line-height:1.7}
.ub-chat-msg{max-width:88%;padding:10px 12px;border:1px solid var(--line);background:var(--white);white-space:normal;word-break:keep-all}
.ub-chat-msg.me{align-self:flex-end;background:var(--teal);border-color:var(--teal);color:#fff}
.ub-chat-msg.bot{align-self:flex-start}
.ub-chat-links{display:flex;flex-wrap:wrap;gap:6px}
.ub-chat-links a{font-size:12px;padding:6px 10px;border:1px solid var(--teal);color:var(--teal);background:var(--white)}
.ub-chat-chips{display:flex;gap:6px;overflow-x:auto;padding:0 16px 10px}
.ub-chat-chips:empty{display:none}
.ub-chat-chips button{flex:none;font-size:12px;padding:6px 10px;border:1px solid var(--line);background:var(--white);color:var(--ink)}
.ub-chat-ask{display:flex;border-top:1px solid var(--line)}
.ub-chat-ask input{flex:1;min-width:0;border:0;padding:13px 14px;background:var(--white);font-size:14px}
.ub-chat-ask button{border:0;padding:0 16px;background:var(--teal);color:#fff;font-size:13px}
.ub-chat-handoff{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--teal);background:var(--white)}
.ub-chat-handoff strong{font-weight:500;color:var(--teal)}
.ub-chat-handoff p{font-size:12.5px}
.ub-chat-handoff input,.ub-chat-handoff textarea{width:100%;border:1px solid var(--line);padding:9px 10px;background:var(--paper);font-size:14px}
.ub-chat-consent{display:flex;gap:6px;align-items:flex-start;font-size:12px;color:var(--muted)}
.ub-chat-consent input{width:auto;margin-top:4px}
.ub-chat-consent a{text-decoration:underline}
.ub-chat-handoff button{min-height:42px;background:var(--teal);color:#fff;border:1px solid var(--teal);font-size:13px}
.ub-chat-handoff button:disabled{opacity:.6}
.ub-chat-result{font-size:12.5px;color:var(--teal)}
@media(max-width:760px){
.ub-chat-launcher{right:12px;bottom:calc(64px + env(safe-area-inset-bottom));min-height:42px;padding:9px 13px;font-size:12px}
.ub-chat{right:0;left:0;bottom:0;width:100%;max-height:82vh;border-left:0;border-right:0}
body.ub-chat-open .ub-chat-launcher{display:none}
}
@media print{.ub-chat-launcher,.ub-chat{display:none!important}}
