.bchat,.bchat *{box-sizing:border-box}.bchat[hidden],.bchat [hidden]{display:none!important}.bchat{--chat-primary:#29278a;position:fixed;bottom:24px;inset-inline-end:24px;z-index:10000;font-family:inherit;color:#18233e;font-size:14px;line-height:1.6}.bchat-launcher{width:58px;height:58px;border-radius:50%;border:1px solid #dddce9;background:var(--chat-primary);color:white;display:grid;place-items:center;cursor:pointer;box-shadow:0 9px 30px #15162f40;transition:transform .15s}.bchat-launcher:hover{transform:translateY(-2px)}.bchat-hint{position:absolute;bottom:70px;inset-inline-end:0;white-space:nowrap;background:white;border:1px solid #e4e6ee;border-radius:12px;padding:10px 12px;box-shadow:0 10px 24px #10153526;font-size:13px}.bchat-hint button{border:0;background:transparent;cursor:pointer;margin-inline-start:10px;color:#667}.bchat-panel{position:absolute;bottom:74px;inset-inline-end:0;width:min(375px,calc(100vw - 24px));height:min(570px,calc(100dvh - 122px));background:#fff;box-shadow:0 20px 65px #12162e44;display:flex;flex-direction:column;border:1px solid #e2e6ef;border-radius:18px;overflow:hidden;text-align:start;direction:inherit}.bchat-header{background:var(--chat-primary);padding:17px 15px;color:white;display:flex;gap:11px;align-items:center}.bchat-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#ffffff24;font-size:23px;flex:none}.bchat-heading{flex:1;min-width:0}.bchat-heading strong,.bchat-heading small{display:block}.bchat-heading strong{font-size:14px}.bchat-heading small{color:#ffffffbf;font-size:11px}.bchat-close{color:white;border:0;background:transparent;font-size:26px;cursor:pointer;line-height:1}.bchat-feed{padding:16px;overflow-y:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:11px;background:#fafbfe}.bchat-message{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;border-radius:13px;max-width:92%;border:1px solid #e4e8ef}.bchat-message.bot{background:white;align-self:flex-start;border-start-start-radius:4px}.bchat-message.visitor{background:#ebeafc;border-color:#dedaf4;align-self:flex-end;border-start-end-radius:4px}.bchat-message.notice{align-self:center;background:#fff8ea;color:#6b4f18;font-size:12px;max-width:100%}.bchat-links{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.bchat-links a{font-size:11px;color:#29278a;border:1px solid #d4d1ec;border-radius:7px;padding:3px 8px;text-decoration:none}.bchat-suggestions{padding:9px 12px;display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #e9ebf2}.bchat-suggestions button{border:1px solid #dcdff0;background:#f6f6fc;color:#242576;padding:6px 9px;border-radius:20px;cursor:pointer;font:inherit;font-size:11px}.bchat-verify{padding:12px;border-top:1px solid #e4e6ee}.bchat-verify p{font-size:12px;color:#555;margin:0 0 8px}.bchat-form{padding:10px 12px;display:flex;align-items:center;gap:9px;border-top:1px solid #e4e6ee}.bchat-form input{flex:1;min-width:0;border:1px solid #d9dfe9;border-radius:10px;background:white;height:40px;padding:10px;color:#1f2b48;font:inherit;font-size:13px}.bchat-form input:focus{outline:2px solid #dedcf5}.bchat-form button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--chat-primary);color:white;cursor:pointer;flex:none}.bchat-form :disabled{opacity:.45;cursor:not-allowed}.bchat-footer{font-size:10px;text-align:center;color:#8991a5;border-top:1px solid #eef0f5;padding:6px}.bchat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.bchat[data-locale="ar"]{direction:rtl}.bchat[data-locale="en"]{direction:ltr}@media(max-width:580px){.bchat{bottom:15px;inset-inline-end:15px}.bchat-launcher{width:53px;height:53px}.bchat-panel{bottom:68px;width:calc(100vw - 30px);height:min(560px,calc(100dvh - 110px))}}@media(prefers-reduced-motion:reduce){.bchat-launcher{transition:none}}

/* Accessible non-text typing indicator: visual dots only, announced once by screen readers. */
.bchat-typing{background:white;align-self:flex-start;display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:10px 13px;border:1px solid #e4e8ef;border-radius:13px;border-start-start-radius:4px}
.bchat-typing .bchat-dot{display:block;width:7px;height:7px;border-radius:50%;background:#8992a9;animation:bchat-typing-bounce 1.1s infinite ease-in-out}
.bchat-typing .bchat-dot:nth-child(2){animation-delay:.15s}.bchat-typing .bchat-dot:nth-child(3){animation-delay:.30s}
@keyframes bchat-typing-bounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.bchat-links a{display:inline-flex;align-items:center;gap:5px;line-height:1.5;overflow-wrap:anywhere}
.bchat-links a::after{content:'↗';font-size:12px;direction:ltr}
.bchat-message.bot a.bchat-internal-link{color:#29278a;font-weight:650;text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){.bchat-typing .bchat-dot{animation:none;opacity:.85}}
/* Compact Markdown blocks inherit the widget's RTL/LTR direction. */
.bchat-message.bot{white-space:normal}.bchat-message.bot p,.bchat-message.bot ul,.bchat-message.bot ol{margin:0 0 .45em}.bchat-message.bot>:last-child{margin-bottom:0}.bchat-message.bot ul,.bchat-message.bot ol{padding-inline-start:1.5em}.bchat-message.bot li{margin:.15em 0}.bchat-message.bot h3,.bchat-message.bot h4,.bchat-message.bot h5,.bchat-message.bot h6{font-size:1em;line-height:1.5;margin:.5em 0 .3em;font-weight:700}.bchat-message.bot>:first-child{margin-top:0}.bchat-message.bot code{font-size:.92em;background:#f0f0f7;border-radius:3px;padding:1px 3px;white-space:pre-wrap;overflow-wrap:anywhere}.bchat-message.bot p{white-space:pre-wrap}.bchat-footer{color:#626c80;line-height:1.45;padding:6px 10px;flex-shrink:0;overflow-wrap:anywhere}
