.alao-contact-buttons {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.alao-contact-buttons .alao-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    appearance: none;
    cursor: pointer;
}

.alao-contact-button img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.alao-contact-button:hover {
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / 20%));
}

.alao-contact-button:focus-visible {
    outline: 3px solid #243c80;
    outline-offset: 4px;
}

/* Keep Google's badge visible and expandable without covering the contact buttons. */
.grecaptcha-badge[data-style="bottomright"] {
    right: auto !important;
    left: 0 !important;
    width: 70px !important;
    transition: width 0.3s !important;
}

.grecaptcha-badge[data-style="bottomright"]:hover,
.grecaptcha-badge[data-style="bottomright"]:focus-within {
    width: 256px !important;
}

@media (min-width: 640px) {
    .alao-contact-buttons {
        right: calc(24px + env(safe-area-inset-right, 0px));
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        gap: 20px;
    }

    .alao-contact-buttons .alao-contact-button {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grecaptcha-badge[data-style="bottomright"] {
        transition: none !important;
    }
}