.mlc-root{--mlc-color:#2a4d8e;--mlc-width:350px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;position:fixed;right:22px;bottom:22px;z-index:999999;font-size:14px}.mlc-root[dir=rtl]{right:auto;left:22px}.mlc-root.mlc-left{right:auto;left:22px}.mlc-root.mlc-left[dir=rtl]{right:22px;left:auto}.mlc-fab{width:58px;height:58px;border:0;border-radius:50%;background:var(--mlc-color);color:#fff;box-shadow:0 5px 20px rgba(0,0,0,.22);cursor:pointer;font-size:25px}.mlc-window{display:none;width:var(--mlc-width);height:520px;background:#fff;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.25);overflow:hidden;margin-bottom:12px;border:1px solid #ddd}.mlc-open .mlc-window{display:flex;flex-direction:column}.mlc-window header{height:58px;background:var(--mlc-color);color:#fff;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.mlc-header-actions{display:flex;align-items:center;gap:2px}.mlc-maximize,.mlc-close{background:none;border:0;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px}.mlc-maximize{font-size:20px}.mlc-close{font-size:28px}.mlc-maximize:hover,.mlc-close:hover{background:rgba(255,255,255,.14)}.mlc-root.mlc-maximized{inset:0!important;right:0!important;bottom:0!important;left:0!important;top:0!important;width:100vw;height:100vh}.mlc-root.mlc-maximized .mlc-fab{display:none}.mlc-root.mlc-maximized .mlc-window{width:100%;height:100%;max-width:none;margin:0;border-radius:0;border:0}.mlc-form button{font:inherit;border:0;background:var(--mlc-color);color:#fff;padding:10px 14px;border-radius:8px;cursor:pointer}.mlc-body{display:flex;flex-direction:column;height:100%;min-height:0}.mlc-messages{padding:15px;overflow-y:auto;flex:1;background:#f7f8fa}.mlc-msg{max-width:82%;padding:9px 12px;border-radius:13px;margin:7px 0;white-space:pre-wrap;word-break:break-word}.mlc-msg.visitor{background:var(--mlc-color);color:#fff;margin-left:auto}.mlc-msg.admin{background:#e9edf3;color:#222;margin-right:auto}.mlc-time{display:block;font-size:10px;opacity:.65;margin-top:5px}.mlc-typing{padding:5px 15px;color:#777;font-size:12px}.mlc-compose{display:flex;gap:6px;padding:8px;border-top:1px solid #ddd;background:#fff;align-items:center}.mlc-compose input{flex:1;min-width:0;border:1px solid #ccc;border-radius:8px;padding:10px;font:inherit}.mlc-icon-btn{border:1px solid #ccc;background:#fff;border-radius:8px;padding:8px;cursor:pointer}.mlc-emoji-menu{position:absolute;bottom:62px;left:8px;right:8px;background:#fff;border:1px solid #ddd;border-radius:10px;padding:8px;box-shadow:0 5px 20px rgba(0,0,0,.18);display:flex;flex-wrap:wrap;gap:4px} .mlc-emoji-menu[hidden]{display:none!important;}.mlc-emoji-menu button{border:0;background:#fff;font-size:20px;padding:5px;cursor:pointer}.mlc-attachment{display:block;margin-top:5px;color:inherit;text-decoration:underline;overflow-wrap:anywhere}@media(max-width:480px){.mlc-root{right:12px;bottom:12px}.mlc-root[dir=rtl]{left:12px}.mlc-window{width:calc(100vw - 24px);height:70vh}}

/* 3.0.2: remove legacy pre-chat/lead form residue; keep message composer intact. */
.mlc-root .mlc-prechat,.mlc-root .mlc-start-chat,.mlc-root .mlc-visitor-form,.mlc-root .mlc-lead-form{display:none!important;}

/* 3.0.4: remove legacy pre-chat panel left by cached 3.0.0/3.0.1 assets. The current composer remains unchanged. */
.mlc-root .mlc-start{display:none!important;}

/* 3.0.6: remove only the stray theme/form rectangle; restore the composer separator. */
.mlc-root .mlc-form{
  all:unset!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
}
.mlc-root .mlc-form::before,.mlc-root .mlc-form::after{content:none!important;display:none!important;}
.mlc-root .mlc-compose{
  display:flex!important;
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-top:1px solid #ddd!important;
  border-right:0!important;
  border-bottom:0!important;
  border-left:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
.mlc-root .mlc-compose::before,.mlc-root .mlc-compose::after{content:none!important;display:none!important;}

/* 3.0.7: typing indicator is now created only while active; no empty row is rendered. */
.mlc-root .mlc-typing,
.mlc-root .mlc-typing[hidden]{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  overflow:hidden!important;
}
.mlc-root .mlc-typing::before,
.mlc-root .mlc-typing::after{content:none!important;display:none!important;}

/* 3.0.9: active typing indicator lives inside the message area; there is no empty typing container above the separator. */
.mlc-root .mlc-messages > .mlc-typing{display:block!important;box-sizing:border-box!important;margin:7px 0!important;padding:5px 15px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:#777!important;font-size:12px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}

/* 3.0.9: preserve the native hidden state of the emoji menu. The previous display:flex rule overrode the hidden attribute and rendered an empty white rectangle above the composer. */
.mlc-root .mlc-emoji-menu[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important;}

/* 3.1.9.7: welcome message is displayed when the visitor opens the chat. */
.mlc-root .mlc-welcome{white-space:normal;}
.mlc-root .mlc-welcome a{color:inherit;text-decoration:underline;}

/* Preserve a visible space immediately after a clickable Welcome Message link. */
.mlc-link-space{white-space:pre}

/* 3.1.19: mobile/tablet composer visibility and safe-area fix. Keep the message composer inside the visible chat viewport. */
.mlc-window,.mlc-root.mlc-maximized .mlc-window{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
.mlc-body{min-height:0;overflow:hidden;}
.mlc-messages{min-height:0;overscroll-behavior:contain;}
.mlc-form{flex:0 0 auto;position:relative;z-index:5;padding-bottom:env(safe-area-inset-bottom);background:#fff;}
.mlc-compose{box-sizing:border-box;min-height:58px;}
@media (max-width: 1024px){
  .mlc-root{bottom:max(12px,env(safe-area-inset-bottom));}
  .mlc-window{height:min(70dvh,720px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));}
  .mlc-root.mlc-maximized{height:100dvh;max-height:100dvh;}
  .mlc-root.mlc-maximized .mlc-window{height:100dvh;max-height:100dvh;}
}
@media (max-width:480px){
  .mlc-window{height:min(70dvh,720px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));}
}

/* v120 message receipts: inherit the existing message text colour. */
.mlc-receipt{display:inline-block;margin-inline-start:6px;font-size:13px;letter-spacing:-3px;padding-inline-end:3px;white-space:nowrap;vertical-align:baseline;opacity:.85;color:inherit}.mlc-receipt.seen{color:#1686e8!important;opacity:1}.mlc-receipt.sent{letter-spacing:0;padding-inline-end:0}
