.demo-contact-widget {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100vw - 32px);
}
.demo-contact-widget[hidden] { display: none !important; }
.demo-contact-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid #2f80ff;
    border-radius: 10px;
    background: #2f80ff;
    color: #fff;
    box-shadow: 0 6px 20px rgb(15 39 74 / 22%);
    font: 600 14px Arial, sans-serif;
    text-decoration: none;
}
.demo-contact-tile:hover { background: #1766cb; border-color: #1766cb; }
.demo-contact-tile:focus-visible { outline: 3px solid #0f274a; outline-offset: 3px; }
.demo-contact-tile svg { width: 20px; height: 20px; flex-shrink: 0; }
.demo-contact-call { background: #0f274a; border-color: #0f274a; }
.demo-contact-call:hover { background: #0a1d36; border-color: #0a1d36; }
@media screen {
    body.rcp-demo-contact-active .content,
    body.rcp-demo-contact-active .subscription-content { padding-bottom: 100px; }
}
/* Keep contact below editing dialogs and out of printed reports. */
body:has(.modal-backdrop[style*="display: flex"]) .demo-contact-widget,
body:has(.modal-backdrop[style*="display: block"]) .demo-contact-widget,
body:has(dialog[open]) .demo-contact-widget { display: none; }
@media (max-width: 600px) {
    .demo-contact-widget {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .demo-contact-tile { padding: 11px 14px; }
}
@media print { .demo-contact-widget { display: none !important; } }
