#bfp-contact {
    position: fixed;
    right: 24px;
    right: max(24px, env(safe-area-inset-right));
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 9999;
    --bfp-size: 75px;
}

#bfp-contact .bfp-button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: var(--bfp-size);
    height: var(--bfp-size);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

#bfp-contact .bfp-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #000;
}

#bfp-contact .bfp-icon {
    display: block;
    width: 42%;
    height: 42%;
    color: inherit;
    pointer-events: none;
}

#bfp-contact .bfp-toggle,
#bfp-contact .bfp-actions {
    display: none;
}

@media (max-width: 767px) {
    #bfp-contact {
        right: 16px;
        right: max(16px, env(safe-area-inset-right));
        bottom: calc(16px + var(--bfp-banner-offset, 0px));
        bottom: max(calc(16px + var(--bfp-banner-offset, 0px)), env(safe-area-inset-bottom));
        --bfp-size: 60px;
    }

    #bfp-contact.bfp-ready .bfp-direct {
        display: none;
    }

    #bfp-contact.bfp-ready .bfp-toggle {
        display: grid;
    }

    #bfp-contact .bfp-toggle .bfp-icon {
        grid-area: 1 / 1;
        transition: opacity .18s ease, transform .18s ease;
    }

    #bfp-contact .bfp-toggle .bfp-icon--close {
        opacity: 0;
        transform: rotate(-45deg);
    }

    #bfp-contact .bfp-toggle[aria-expanded="true"] .bfp-icon--mail {
        opacity: 0;
        transform: rotate(45deg);
    }

    #bfp-contact .bfp-toggle[aria-expanded="true"] .bfp-icon--close {
        opacity: 1;
        transform: rotate(0);
    }

    #bfp-contact.bfp-ready .bfp-actions {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        display: grid;
        justify-items: center;
        gap: 10px;
        padding-bottom: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }

    #bfp-contact .bfp-toggle[aria-expanded="true"] + .bfp-actions {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }

    #bfp-contact .bfp-action {
        --bfp-size: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bfp-contact.bfp-ready .bfp-actions,
    #bfp-contact .bfp-toggle .bfp-icon {
        transition: none;
    }
}

