.av-chat {
    position: fixed;
    z-index: 1100;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    justify-items: end;
    gap: 10px;
}
.av-chat [hidden] { display: none !important; }
.av-chat__launch {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e8c274;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: #10263e;
    box-shadow: 0 5px 18px #0b203755;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.av-chat__launch .icon { font-size: 20px; color: #f3cd80; }
.av-chat__panel {
    position: relative;
    display: grid;
    place-content: center;
    width: min(400px, calc(100vw - 32px));
    height: min(540px, calc(100dvh - 90px));
    min-height: 125px;
    overflow: hidden;
    border: 1px solid #d2dce6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px #0b203744;
    color: #10263e;
    text-align: center;
}
.av-chat__panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.av-chat__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #10263e;
    font-size: 21px;
    cursor: pointer;
}
.av-chat__fallback { font-weight: 650; text-decoration: underline; margin-top: 8px; }
@media (max-width: 1000px) {
    .iv-body .av-chat {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    .iv-body .av-chat__panel { height: min(540px, calc(100dvh - 150px - env(safe-area-inset-bottom, 0px))); }
}
