.ms-chat-shell{--navy:#1F2B5B;--ground:#F6F7FA;--line:#E3E6EE;--text:#3A4256;--cta:#C2571A;color:#141A2E;font:16px/1.6 system-ui,sans-serif;word-break:keep-all}
.ms-chat-shell *, .ms-chat-shell *::before,.ms-chat-shell *::after{box-sizing:border-box}
.ms-chat-shell [hidden]{display:none!important}
.ms-chat-shell .sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
/* 상담 채팅 */
.ms-chat-shell .chat-fab{position:fixed;right:24px;bottom:24px;z-index:2147483000;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 20px;border-radius:999px;border:0;background:var(--navy);color:#fff;font:inherit;font-weight:700;box-shadow:0 8px 24px rgba(20,26,46,.25);cursor:pointer}
.ms-chat-shell .chat{position:fixed;right:24px;bottom:24px;z-index:2147483001;width:380px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 48px);display:none;flex-direction:column;background:var(--ground);border-radius:20px;overflow:hidden;box-shadow:0 16px 48px rgba(20,26,46,.3)}
.ms-chat-shell .chat:not([hidden]){display:flex}
.ms-chat-shell .chat header{display:flex;align-items:center;gap:12px;padding:12px 8px 12px 16px;background:var(--navy);color:#fff}
.ms-chat-shell .chat header .av{width:40px;height:40px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center}
.ms-chat-shell .chat header .av svg{color:var(--navy)}
.ms-chat-shell .chat header div{flex:1;min-width:0}
.ms-chat-shell .chat header p{margin:0}
.ms-chat-shell .chat header small{color:#C9D2EE}
.ms-chat-shell .chat .x{width:44px;height:44px;border:0;background:none;color:#fff;font-size:22px;cursor:pointer}
.ms-chat-shell .chat .log{flex:1;overflow-y:auto;padding:18px 14px;display:flex;flex-direction:column;gap:10px}
.ms-chat-shell .bub{max-width:82%;padding:11px 14px;border-radius:18px;font-size:15px;line-height:1.55}
.ms-chat-shell .bub.op{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}
.ms-chat-shell .bub.me{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:4px}
.ms-chat-shell .chat .support-messages{display:flex;flex-direction:column;gap:10px}
.ms-chat-shell .chat .support-message{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ms-chat-shell .chat .support-message small{display:block;font-size:11px;opacity:.85}
.ms-chat-shell .chat .support-profile{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px}
.ms-chat-shell .chat .support-profile summary{cursor:pointer;font-weight:700}
.ms-chat-shell .chat .support-profile label{display:block;margin:9px 0 3px;font-size:13px}
.ms-chat-shell .chat .support-profile input{width:100%;min-width:0;min-height:38px;border:1px solid #C9CEDB;border-radius:8px;padding:6px 10px;font:inherit}
.ms-chat-shell .chat .support-error{margin:0;padding:8px 12px;font-size:13px;color:var(--text);background:#fff}
.ms-chat-shell .chat .support-error:empty{display:none}
.ms-chat-shell .chat-fab .support-badge{font-size:11px;color:#fff}
.ms-chat-shell .quick{display:flex;flex-wrap:wrap;gap:8px}
.ms-chat-shell .quick button{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #B9C3DE;background:#fff;color:var(--navy);font:inherit;font-size:14px;cursor:pointer}
.ms-chat-shell .chat form{display:flex;gap:8px;padding:10px 12px 14px;background:#fff;border-top:1px solid var(--line)}
.ms-chat-shell .chat textarea{flex:1;min-width:0;resize:none;min-height:44px;border:1px solid #C9CEDB;border-radius:22px;padding:11px 16px;font:inherit;font-size:15px}
.ms-chat-shell .chat form button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--cta);color:#fff;font-size:20px;cursor:pointer}


@media (max-width:760px){
 .ms-chat-shell .chat-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
 .ms-chat-shell .chat{inset:0;width:auto;max-width:none;height:100dvh;max-height:none;border-radius:0}
 .ms-chat-shell .chat form{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 .ms-chat-shell .chat input,.ms-chat-shell .chat textarea{font-size:16px}
}
