/* =========================================================
   MCA FLOATING WHATSAPP
   Global public contact affordance
   ========================================================= */

.mca-floating-whatsapp {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 8px 16px 8px 9px;
    border: 1px solid #147a4b;
    border-radius: 999px;
    background: #147a4b;
    color: #ffffff;
    box-shadow:
        0 10px 28px rgba(23, 62, 46, 0.22),
        0 2px 8px rgba(23, 62, 46, 0.12);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.mca-floating-whatsapp__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #147a4b;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.mca-floating-whatsapp__label {
    display: inline-block;
    white-space: nowrap;
}

.mca-floating-whatsapp:hover {
    background: #10653e;
    border-color: #10653e;
    color: #ffffff;
    box-shadow:
        0 13px 32px rgba(23, 62, 46, 0.27),
        0 3px 10px rgba(23, 62, 46, 0.14);
    transform: translateY(-2px);
}

.mca-floating-whatsapp:focus-visible {
    outline: 3px solid #f2a01c;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .mca-floating-whatsapp {
        right: calc(14px + env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
        min-height: 50px;
        padding: 7px 14px 7px 8px;
    }

    .mca-floating-whatsapp__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mca-floating-whatsapp {
        transition: none;
    }

    .mca-floating-whatsapp:hover {
        transform: none;
    }
}
