/* Office support only. Generic homepage and solution chat retain their styles. */
#bugiChat[data-office-support="1"] { font-family:"Noto Sans KR","Malgun Gothic",system-ui,sans-serif; }
#bugiChat[data-office-support="1"] .bugi-chat__panel { border-radius:20px; }
#bugiChat[data-office-support="1"] .bugi-chat__messages { gap:18px; padding:20px; background:#fff; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office { position:relative; display:flex; flex-flow:row wrap; align-items:flex-end; justify-content:flex-start; gap:0 8px; width:100%; min-width:0; padding:0 0 0 43px; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office.bugi-chat__message--user { justify-content:flex-end; padding:0 43px 0 0; }
#bugiChat[data-office-support="1"] .bugi-chat__message-avatar,
#bugiChat[data-office-support="1"] .bugi-chat__typing-avatar { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:31px; height:31px; overflow:hidden; border-radius:11px; background:#e8def8; color:#594b70; font-size:13px; font-weight:700; }
#bugiChat[data-office-support="1"] .bugi-chat__message-avatar { position:absolute; top:0; left:0; }
#bugiChat[data-office-support="1"] .bugi-chat__message-avatar img { display:block; width:100%; height:100%; object-fit:contain; background:#edf3fd; }
#bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__message-avatar { right:0; left:auto; background:#dce8fc; color:#225db0; }
#bugiChat[data-office-support="1"] .bugi-chat__message-name { order:-1; flex:0 0 100%; min-width:0; margin:0 0 6px; overflow:hidden; color:#14263d; font-size:14px; font-weight:800; line-height:20px; text-overflow:ellipsis; white-space:nowrap; }
#bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__message-name { text-align:right; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble { position:relative; flex:0 1 auto; align-self:auto; max-width:calc(100% - 68px); min-width:0; margin:0; padding:10px 14px; border:0; border-radius:4px 15px 15px 15px; background:#f2f4f7; color:#14263d; box-shadow:none; font-size:15px; font-weight:400; line-height:1.6; overflow-wrap:anywhere; word-break:normal; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble::before,
#bugiChat[data-office-support="1"] .bugi-chat__typing-bubble::before { content:""; position:absolute; top:0; left:-6px; width:12px; height:12px; margin:0; padding:0; background:inherit; clip-path:polygon(0 0,100% 0,100% 100%,56% 72%,40% 34%); pointer-events:none; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble::after { display:none; }
#bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__bubble { order:1; border-radius:15px 4px 15px 15px; background:#e9f0fd; }
#bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__bubble::before { right:-6px; left:auto; transform:scaleX(-1); }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__message-meta { flex:0 1 60px; align-self:flex-end; justify-content:flex-start; gap:3px; max-width:60px; margin:0; padding:0 0 1px; color:#5b6b82; font-size:10.5px; line-height:1.45; }
#bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__message-meta { justify-content:flex-end; text-align:right; }
#bugiChat[data-office-support="1"] .bugi-chat__message-meta time,
#bugiChat[data-office-support="1"] .bugi-chat__message-meta .bugi-chat__read,
#bugiChat[data-office-support="1"] .bugi-chat__message-meta .bugi-chat__delivery { white-space:normal; overflow-wrap:normal; word-break:keep-all; }
#bugiChat[data-office-support="1"] .bugi-chat__message-meta .bugi-chat__read { white-space:nowrap; }
#bugiChat[data-office-support="1"] .bugi-chat__message-meta .bugi-chat__read::before { display:none; }
#bugiChat[data-office-support="1"] .bugi-chat__message--system { justify-content:center; padding:0; gap:5px; }
#bugiChat[data-office-support="1"] .bugi-chat__message--system>.bugi-chat__bubble { max-width:94%; padding:7px 12px; border-radius:11px; background:#f0f3f8; color:#52657e; font-size:12px; text-align:center; }
#bugiChat[data-office-support="1"] .bugi-chat__message--system>.bugi-chat__bubble::before { display:none; }
#bugiChat[data-office-support="1"] .bugi-chat__message--system>.bugi-chat__message-meta { flex-basis:100%; max-width:100%; justify-content:center; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble:has(.bugi-chat__answer-line,.bugi-chat__answer-list) { max-width:100%; }
#bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble:has(.bugi-chat__answer-line,.bugi-chat__answer-list)+.bugi-chat__message-meta { flex-basis:100%; max-width:100%; margin-top:5px; }
#bugiChat[data-office-support="1"] .bugi-chat__feedback { gap:5px; margin-top:12px; padding-top:9px; border-top:1px solid #dce3ee; }
#bugiChat[data-office-support="1"] .bugi-chat__feedback small { color:#697a91; }
#bugiChat[data-office-support="1"] .bugi-chat__feedback button { min-height:30px; padding:4px 9px; border:1px solid #d6dfed; border-radius:9px; background:#fff; color:#4d678d; }
#bugiChat[data-office-support="1"] .bugi-chat__links { gap:7px; padding:12px 14px 5px; border-top:1px solid #e4eaf3; background:#fff; }
#bugiChat[data-office-support="1"] .bugi-chat__links button { min-height:36px; border:1px solid #d8e2f1; border-radius:10px; background:#f6f8fc; color:#49617e; font-size:12px; }
#bugiChat[data-office-support="1"] .bugi-chat__links .bugi-chat__handoff { border-color:#225ed2; background:#225ed2; color:#fff; }
#bugiChat[data-office-support="1"] .bugi-chat__links .bugi-chat__finish { color:#697b92; }
#bugiChat[data-office-support="1"] .bugi-chat__form { gap:8px; margin:7px 14px; padding:5px; border:1px solid #c6d6ee; border-radius:18px; background:#fff; }
#bugiChat[data-office-support="1"] .bugi-chat__form:focus-within { border-color:#225ed2; box-shadow:0 0 0 2px #225ed212; }
#bugiChat[data-office-support="1"] .bugi-chat__form textarea { min-height:40px; max-height:88px; padding:9px 10px; border:0; border-radius:12px; background:transparent; color:#14263d; font-size:16px; line-height:1.5; box-shadow:none; }
#bugiChat[data-office-support="1"] .bugi-chat__form textarea:focus { box-shadow:none; outline:none; }
#bugiChat[data-office-support="1"] .bugi-chat__form button { flex:0 0 36px; width:36px; height:36px; margin:2px; border-radius:50%; background:#225ed2; font-size:17px; }
#bugiChat[data-office-support="1"] .bugi-chat__form button:disabled { background:#e9eef7; color:#98a7bb; opacity:1; cursor:wait; }
#bugiChat[data-office-support="1"] .bugi-chat__peer-typing--office { flex:none; min-width:0; min-height:0; margin:0; padding:0; color:#426b9e; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-row { display:flex; align-items:flex-start; gap:12px; padding:4px 0; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-content { min-width:0; max-width:calc(100% - 43px); }
#bugiChat[data-office-support="1"] .bugi-chat__typing-name { display:block; margin:0 0 6px; overflow:hidden; color:#35445b; font-size:12px; font-weight:600; line-height:18px; text-overflow:ellipsis; white-space:nowrap; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-bubble,
#bugiChat[data-office-support="1"] .bugi-chat__message--thinking>.bugi-chat__bubble { position:relative; display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:54px; height:32px; padding:0 14px; border-radius:4px 15px 15px 15px; background:#e5ebf4; color:#426b9e; }
#bugiChat[data-office-support="1"] .bugi-chat__message--thinking>.bugi-chat__message-name { color:#35445b; font-size:12px; font-weight:600; line-height:18px; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-dots { display:inline-flex; align-items:center; gap:5px; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-dots i { width:5px; height:5px; border-radius:50%; background:currentColor; animation:bugi-office-typing 1.2s ease-in-out infinite; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-dots i:nth-child(2) { animation-delay:.15s; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-dots i:nth-child(3) { animation-delay:.3s; }
#bugiChat[data-office-support="1"] .bugi-chat__typing-announcement { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes bugi-office-typing { 0%,60%,100% { opacity:.4; transform:translateY(0); } 30% { opacity:1; transform:translateY(-3px); } }
@media(max-width:700px) {
  #bugiChat[data-office-support="1"] .bugi-chat__messages { gap:17px; padding:16px 14px; background:#f6f8fc; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--office { padding-left:33px; }
  #bugiChat[data-office-support="1"] .bugi-chat__message-avatar,
  #bugiChat[data-office-support="1"] .bugi-chat__typing-avatar { width:25px; height:25px; border-radius:9px; font-size:11px; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--user { padding-right:0; padding-left:0; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__message-avatar,
  #bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__message-name { display:none; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--office>.bugi-chat__bubble { padding:9px 12px; background:#fff; font-size:16px; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--user>.bugi-chat__bubble { max-width:calc(100% - 68px); background:#bde9fb; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--system { padding:0; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--system>.bugi-chat__bubble { background:#edf1f7; font-size:12px; }
  #bugiChat[data-office-support="1"] .bugi-chat__typing-row { gap:8px; }
  #bugiChat[data-office-support="1"] .bugi-chat__typing-content { max-width:calc(100% - 33px); }
  #bugiChat[data-office-support="1"] .bugi-chat__typing-name,
  #bugiChat[data-office-support="1"] .bugi-chat__message--thinking>.bugi-chat__message-name { font-size:11px; }
  #bugiChat[data-office-support="1"] .bugi-chat__message--thinking>.bugi-chat__bubble { min-width:54px; height:32px; padding:0 14px; background:#e5ebf4; }
}
@media(prefers-reduced-motion:reduce) {
  #bugiChat[data-office-support="1"] .bugi-chat__typing-dots i { animation:none; opacity:.8; }
}
