.belco-sales-chat {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 2147483001;
    font-family: inherit;
    color: #1b1e2b;
}
.belco-sales-chat[hidden], .belco-sales-chat [hidden] { display: none !important; }
/* CookieYes owns the screen while consent or preferences are being shown.
   Hide both entry UI and the native messenger without closing the conversation. */
body:has(.cky-consent-container:not(.cky-hide)) .belco-sales-chat,
body:has(.cky-consent-container:not(.cky-hide)) .belco-messenger-frame,
body:has(.cky-consent-container:not(.cky-hide)) .belco-activator-frame,
body:has(.cky-consent-container:not(.cky-hide)) .belco-preview-frame,
body:has(.cky-consent-container:not(.cky-hide)) .belco-channels-frame { display: none !important; }
.belco-sales-chat button { font: inherit; cursor: pointer; }
.belco-sales-chat button:focus-visible,
.belco-sales-chat a:focus-visible { outline: 3px solid #6e83c5; outline-offset: 4px; }
.belco-sales-chat__launcher {
    position: relative;
    display: flex; align-items: center; justify-content: center; margin-left: auto;
    width: 60px; height: 60px; border: 0; border-radius: 50%; padding: 0;
    background: #f9d83a; color: #333; font-weight: 600 !important;
    box-shadow: 0 5px 24px #14172229;
}
.belco-sales-chat__launcher:hover { background: #efce2d; }
.belco-sales-chat__launcher > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.belco-sales-chat__unread {
    position: absolute; top: -3px; right: -3px;
    display: flex; align-items: center; justify-content: center;
    min-width: 25px; height: 23px; padding: 0 4px;
    box-sizing: border-box; border: 2px solid #fff; border-radius: 12px;
    background: #d92d3b; color: #fff; box-shadow: 0 1px 4px #14172226;
    font-size: 11px; font-style: normal; font-weight: 700; line-height: 1;
    pointer-events: none;
}
.belco-sales-chat__notification-status {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap;
}
.belco-sales-chat__teaser {
    position: absolute; right: 0; bottom: 74px; width: 274px; max-width: calc(100vw - 40px);
    box-sizing: border-box; border: 1px solid #e3e5ed; border-radius: 16px; background: #fff;
    box-shadow: 0 5px 24px #1417221f;
}
.belco-sales-chat__teaser::after {
    content: ""; position: absolute; right: 24px; bottom: -6px; width: 10px; height: 10px;
    background: #fff; border-right: 1px solid #e3e5ed; border-bottom: 1px solid #e3e5ed; transform: rotate(45deg);
}
.belco-sales-chat__teaser-open {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 18px 28px 18px 14px;
    border: 0; border-radius: 16px; background: transparent; color: #252938;
    text-align: left; font-size: 13px !important; line-height: 1.5;
}
.belco-sales-chat__teaser-open img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
.belco-sales-chat__teaser-close {
    position: absolute; right: 2px; top: 2px; z-index: 1; width: 30px; height: 30px;
    padding: 0; border: 0; background: transparent; color: #626879; font-size: 20px !important;
}
.belco-sales-chat__identity { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.belco-sales-chat__avatar { display: block; width: 64px; height: 64px; object-fit: contain; }
.belco-sales-chat__identity strong { display: block; font-size: 16px; line-height: 1.4; }
.belco-sales-chat__identity .belco-sales-chat__eyebrow { margin: 3px 0 0; }
.belco-sales-chat__launcher .belco-sales-chat__close-icon { display: none; }
.belco-sales-chat__panel {
    position: absolute; right: 0; bottom: calc(100% + 14px);
    width: min(350px, calc(100vw - 40px)); padding: 26px;
    border: 1px solid #e3e5ed; border-radius: 20px; background: #fff;
    box-shadow: 0 12px 44px #14172226;
    max-height: calc(100dvh - 110px); overflow-y: auto;
    text-align: left; box-sizing: border-box;
}
.belco-sales-chat__close {
    position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
    border: 0; background: transparent; color: #555c6c;
    font-size: 26px !important; line-height: 1;
}
.belco-sales-chat__eyebrow { display: block; font-size: 12px; font-weight: 600; color: #697184; margin: 0 20px 10px 0; }
.belco-sales-chat h2 { font-size: 23px; line-height: 1.2; margin: 0 0 12px; color: #1b1e2b; }
.belco-sales-chat p { font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.belco-sales-chat__start {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 13px 16px; background: #f4dd38; color: #1b1e2b;
    border: 0; border-radius: 10px; font-weight: 600 !important;
}
.belco-sales-chat__start:hover { background: #e6ce29; }
.belco-sales-chat__start:disabled { cursor: wait; opacity: .65; }
.belco-sales-chat .belco-sales-chat__status { font-size: 13px; margin: 10px 0; }
.belco-sales-chat__status:empty { display: none; }
.belco-sales-chat .belco-sales-chat__support {
    border-top: 1px solid #e8e9ef; padding-top: 16px; margin-top: 18px; font-size: 12px; color: #626879;
}
.belco-sales-chat a { color: #252938; text-decoration: underline; text-underline-offset: 3px; }
.belco-sales-chat__demo { font-size: 13px; }
/* Native previews mix unread messages from multiple conversations. Keep only
   a quiet unread indicator; the launcher always resumes the selected chat. */
html.belco-sales-managed .belco-activator-frame,
html.belco-sales-managed .belco-preview-frame,
html.belco-sales-managed .belco-channels-frame { display: none !important; }
html.belco-sales-open .belco-sales-chat__launcher svg { display: none; }
html.belco-sales-open .belco-sales-chat__launcher .belco-sales-chat__close-icon { display: block; }
@media (max-width: 480px) {
    .belco-sales-chat { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
    .belco-sales-chat__panel { width: min(350px, calc(100vw - 28px)); padding: 24px; }
    html.belco-sales-open .belco-sales-chat { top: max(12px, env(safe-area-inset-top)); bottom: auto; }
    html.belco-sales-open .belco-sales-chat__launcher { width: 44px; height: 44px; padding: 10px; }
}
