.pcbi-chat {
    --pcbi-chat-primary: #1859a9;
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 99990;
    font: 14px/1.5 system-ui, sans-serif;
    color: #172b45;
}
.pcbi-chat[hidden], .pcbi-chat [hidden] { display: none !important; }
.pcbi-chat *, .pcbi-chat *::before, .pcbi-chat *::after { box-sizing: border-box; }
.pcbi-chat .pcbi-chat__launcher, .pcbi-chat .pcbi-chat__close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    min-width: 0;
    text-decoration: none;
}
.pcbi-chat .pcbi-chat__launcher {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pcbi-chat-primary);
    color: #fff;
    box-shadow: 0 4px 20px #142b4940;
    margin: 0 0 0 auto;
}
.pcbi-chat .pcbi-chat__launcher:hover { background: #104680; }
.pcbi-chat button:focus-visible {
    outline: 3px solid #e89200;
    outline-offset: 3px;
}
.pcbi-chat__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(440px, calc(100vw - 40px));
    height: min(740px, calc(100vh - 108px));
    height: min(740px, calc(100dvh - 108px - env(safe-area-inset-bottom)));
    display: flex;
    flex-direction: column;
    border: 1px solid #dce3ed;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 48px #142b4930;
}
.pcbi-chat__toolbar {
    position: relative;
    height: 24px;
    flex-shrink: 0;
    background: #fff;
    z-index: 1;
}
.pcbi-chat .pcbi-chat__close { position: absolute; top: 0; right: 4px; width: 40px; height: 40px; font-size: 28px; border-radius: 50%; background: transparent; color: #172b45; }
.pcbi-chat .pcbi-chat__close:hover { background: #edf2f8; }
.pcbi-chat__frame { width: 100%; flex: 1; min-height: 0; border: 0; display: block; background: #fff; }
@media (max-width: 600px) {
    .pcbi-chat__panel {
        width: calc(100vw - 40px - env(safe-area-inset-right) - env(safe-area-inset-left));
        max-height: 740px;
    }
}
