/* Keep the original fixed button's dimensions and offsets when it enters the top layer. */
dialog[open] > .rdv-whatsapp-fab {
    box-sizing: var(--rdv-contact-sizing);
    color: var(--rdv-contact-color);
}

.rdv-whatsapp-fab[popover] {
    top: auto;
    left: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.rdv-whatsapp-fab[popover]::backdrop {
    background: transparent;
    pointer-events: none;
}

/* Older browsers without popovers position the link inside the native modal.
   Keep the viewport as its fixed-position containing block. */
dialog.rdv-contact-fallback {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    contain: none !important;
    container-type: normal !important;
    filter: none !important;
    backdrop-filter: none !important;
    perspective: none !important;
    will-change: auto !important;
    content-visibility: visible !important;
}
