/* Floating WhatsApp button. Sits clear of the safe area and steps aside for the mobile nav drawer. */

.wa-fab {
    position: fixed;
    right: max(var(--space-5), env(safe-area-inset-right));
    bottom: max(var(--space-5), env(safe-area-inset-bottom));
    z-index: var(--z-overlay);
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 28px rgba(11, 10, 8, 0.35);
    transition:
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.wa-fab svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #ffffff;
}

.wa-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(11, 10, 8, 0.45);
}

.wa-fab:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

/* The nav drawer takes over the screen, so the button must not float on top of it. */
body.has-open-nav .wa-fab {
    display: none;
}

@media (max-width: 560px) {
    .wa-fab {
        width: 3.25rem;
        height: 3.25rem;
    }

    .wa-fab svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}
