#bc-live-chat{position:fixed;right:16px;bottom:12px;width:min(380px,calc(100vw - 24px));z-index:2147483000;font:14px Arial,sans-serif;color:#203b4a;background:#fff;border:2px solid #203b4a;border-radius:10px;box-shadow:0 5px 25px #0004;overflow:hidden;text-align:left;line-height:1.4}
#bc-live-chat .bc-chat-drop-hint{position:absolute;inset:8px;z-index:2;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:12px;border:3px dashed #23586f;border-radius:7px;background:rgba(237,245,249,.96);color:#203b4a;font:700 18px Arial,sans-serif}
#bc-live-chat.bc-chat-dragging{border-color:#23586f;box-shadow:0 0 0 3px #b7d9e8,0 5px 25px #0004}
#bc-live-chat *{box-sizing:border-box}#bc-live-chat [hidden]{display:none!important}
#bc-live-chat header{background:#153745;color:white;padding:12px;display:flex;gap:8px;align-items:center}#bc-live-chat header strong{font:700 22px Arial,sans-serif}#bc-live-chat header div{flex:1}#bc-live-chat header small{display:block}
#bc-live-chat button,#bc-live-chat a{cursor:pointer;font:inherit}#bc-live-chat button{border:1px solid #b8c9d0;border-radius:4px;padding:7px 10px;color:#203b4a;background:#fff}#bc-live-chat button:disabled{opacity:.6;cursor:default}#bc-live-chat button:focus-visible,#bc-live-chat a:focus-visible,#bc-live-chat textarea:focus-visible{outline:3px solid #d6a342;outline-offset:2px}
#bc-live-chat .bc-chat-tabs{max-height:92px;overflow:auto;display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:#edf4f7}#bc-live-chat .bc-chat-tabs button[aria-pressed=true]{background:#23586f;color:white}
#bc-live-chat .bc-chat-messages{height:min(310px,40vh);overflow-y:auto;padding:12px;overscroll-behavior:contain;background:white}#bc-live-chat article{margin:0 30px 10px 0;padding:9px;background:#edf0f3;border-radius:7px;overflow-wrap:anywhere}#bc-live-chat article.mine{margin:0 0 10px 30px;background:#e1eff5}#bc-live-chat article p{margin:4px 0;white-space:pre-wrap}#bc-live-chat article small{font-size:11px;display:block}#bc-live-chat article a{color:#164e68;text-decoration:underline}
#bc-live-chat .bc-chat-status{padding:8px 12px;margin:0;background:#fff3d6;color:#654a12}#bc-live-chat .bc-chat-error{padding:8px 12px;margin:0;color:#a02121;background:#fff2f2}
#bc-live-chat form{padding:10px;border-top:1px solid #bccbd3;margin:0}#bc-live-chat textarea{display:block;width:100%;height:64px;min-height:64px;max-height:150px;resize:vertical;padding:8px;border:1px solid #9db4bf;font:14px Arial,sans-serif;color:#203b4a;background:#fff}
#bc-live-chat .bc-chat-tools{display:flex;align-items:center;gap:8px;margin-top:8px}#bc-live-chat .bc-chat-tools button[type=submit]{background:#23586f;color:white;margin-left:auto}#bc-live-chat .bc-chat-file{font-size:12px;overflow-wrap:anywhere;margin:6px 0}#bc-live-chat .bc-chat-ended{padding:12px;background:#edf4f7}#bc-live-chat .bc-chat-ended p{margin:0 0 8px}#bc-live-chat .bc-chat-ended a{display:inline-block;padding:7px;margin-right:7px;border-radius:4px;background:#23586f;color:white;text-decoration:none}
#bc-live-chat footer{padding:5px 10px;font-size:11px;background:#f3f6f7;color:#4c6470}
#bc-live-chat .bc-chat-enable-alerts{display:block;margin:5px 0 1px;padding:3px 7px;font-size:11px;line-height:1.4;border:1px solid #a9bec9;border-radius:3px;background:#fff;color:#17556e;cursor:pointer}#bc-live-chat .bc-chat-enable-alerts[hidden]{display:none}
#bc-live-chat select{max-width:100%}.bc-start-chat{margin:0 0 7px}
@media(max-width:480px){#bc-live-chat{right:8px;bottom:8px;width:calc(100vw - 16px)}}

#bc-live-chat[hidden],.bc-chat-history[hidden],.bc-chat-history-button[hidden]{display:none!important}
.bc-chat-history-button{border:1px solid #18566f;border-radius:6px;padding:10px 16px;background:#18566f;color:#fff;font:700 14px Arial,sans-serif;cursor:pointer}
[data-bc-chat-history]{margin-top:20px;padding-top:16px;border-top:1px solid #ccd9df}
.bc-chat-history{margin-top:12px;max-height:60vh;overflow:auto;background:#fff;border:1px solid #ccd9df;border-radius:6px;padding:16px;color:#203b4a;font:14px/1.4 Arial,sans-serif;box-sizing:border-box}
.bc-chat-history h2{font:700 20px Arial,sans-serif;margin:0 0 12px}.bc-chat-history article{border-top:1px solid #ccd9df;padding:12px 0}.bc-chat-history p{margin:6px 0}.bc-chat-history a{color:#18566f;display:block;margin:6px 0;overflow-wrap:anywhere}.bc-chat-history details{padding:6px 0;border:0;background:none}.bc-chat-history summary{cursor:pointer;font-weight:bold}

/* The header moves the chat; file dropping keeps its separate attachment behavior. */
#bc-live-chat{box-sizing:border-box;display:flex;flex-direction:column;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
#bc-live-chat header{cursor:grab;touch-action:none;user-select:none;flex-shrink:0}
#bc-live-chat.bc-chat-moving header{cursor:grabbing}
#bc-live-chat .bc-chat-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}

/* Keep the transcript dialog outside the blurred chat background. */
#bc-live-chat.bc-chat-ended-overlay>header,#bc-live-chat.bc-chat-ended-overlay>.bc-chat-body{filter:blur(3px);opacity:.7;pointer-events:none;user-select:none}
#bc-live-chat.bc-chat-ended-overlay>.bc-chat-ended{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:332px;max-height:calc(100% - 24px);overflow:auto;box-sizing:border-box;z-index:4;padding:16px;background:#edf4f7;border:1px solid #c3d3dc;border-radius:6px;box-shadow:0 8px 28px rgba(17,43,58,.36),0 2px 7px rgba(17,43,58,.2);filter:none;opacity:1}
#bc-live-chat.bc-chat-ended-overlay>.bc-chat-ended p{margin:0 0 12px;line-height:1.45}
#bc-live-chat.bc-chat-ended-overlay>.bc-chat-ended a,#bc-live-chat.bc-chat-ended-overlay>.bc-chat-ended button{margin-top:4px}
#bc-live-chat.bc-chat-ended-overlay>.bc-chat-ended .bc-chat-error{margin:12px 0 0}

/* Acknowledged ended chats remain readable with a clear, movable header. */
#bc-live-chat.bc-chat-ended-settled>.bc-chat-body{position:relative;filter:none;opacity:1}
#bc-live-chat.bc-chat-ended-settled>.bc-chat-body::after{content:"";position:absolute;inset:0;background:rgba(25,42,51,.24);pointer-events:none;z-index:3}
#bc-live-chat .bc-chat-peer{font-weight:400}

/* The close confirmation stays clear while the conversation behind it is blurred. */
#bc-live-chat.bc-chat-confirm-overlay>header,#bc-live-chat.bc-chat-confirm-overlay>.bc-chat-body{filter:blur(3px);opacity:.7;pointer-events:none;user-select:none}
#bc-live-chat>.bc-chat-close-confirm{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:332px;max-height:calc(100% - 24px);overflow:auto;box-sizing:border-box;z-index:5;padding:20px 16px;background:#edf4f7;border:1px solid #c3d3dc;border-radius:6px;box-shadow:0 8px 28px rgba(17,43,58,.36),0 2px 7px rgba(17,43,58,.2);filter:none;opacity:1}
#bc-live-chat .bc-chat-close-confirm p{margin:0 0 20px;line-height:1.45}
#bc-live-chat .bc-chat-confirm-actions{display:flex;align-items:center;gap:8px}
#bc-live-chat .bc-chat-confirm-end{background:#18566f;border-color:#18566f;color:#fff;flex:1}
#bc-live-chat .bc-chat-confirm-dismiss{background:#fff;color:#203b4a}
#bc-live-chat .bc-chat-close-confirm .bc-chat-confirm-error{margin:12px 0 0;color:#9c2923}

/* Chat motion is isolated from page layouts and respects reduced motion. */
#bc-live-chat .bc-chat-body-animating{flex:none;min-height:0;overflow:hidden}
#bc-live-chat .bc-chat-prompt-exiting{pointer-events:none}

#bc-live-chat .bc-chat-enable-alerts{background:#b32626;border-color:#982020;color:#fff}
#bc-live-chat .bc-chat-enable-alerts:hover{background:#982020}
#bc-live-chat .bc-chat-ended button{background:#18566f;border-color:#18566f;color:#fff}
