/**
 * WhatsApp Floating Button
 * Botão fixo menor, somente com ícone.
 */

.whatsapp-floating {
    position: fixed;
    right: clamp(0.9rem, 2vw, 1.25rem);
    bottom: calc(6rem + env(safe-area-inset-bottom));

    z-index: 1100;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 3rem;
    height: 3rem;

    border-radius: 999px;

    background: #25d366;
    color: #ffffff;

    text-decoration: none;

    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.whatsapp-floating:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.4);
}

.whatsapp-floating:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.28);
    outline-offset: 4px;
}

.whatsapp-floating__icon {
    width: 1.55rem;
    height: 1.55rem;

    display: block;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .whatsapp-floating {
        width: 2.85rem;
        height: 2.85rem;

        right: 0.85rem;
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }

    .whatsapp-floating__icon {
        width: 1.45rem;
        height: 1.45rem;
    }
}

@media (max-width: 720px) {
    .whatsapp-floating {
        right: 1rem;

        /*
         * Sobe o botão para ficar acima da linha divisória do rodapé,
         * evitando cobrir "Desenvolvido por ACP Projects".
         */
        bottom: calc(5.25rem + env(safe-area-inset-bottom));

        width: 2.85rem;
        height: 2.85rem;
    }

    .whatsapp-floating__icon {
        width: 1.45rem;
        height: 1.45rem;
    }

    .minimal-footer__bottom,
    .footer__bottom {
        padding-right: 0;
        padding-bottom: 0;
    }
}