.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 420;
    min-width: 56px;
    height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 24px rgba(18, 93, 52, 0.28);
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(18, 93, 52, 0.34);
}

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

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    fill: currentColor;
}

body.lightbox-open .whatsapp-float {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
    }

    .mobile-bottom-bar ~ .whatsapp-float {
        bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-bar ~ .back-home-btn {
        bottom: calc(170px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-float-label {
        display: none;
    }

    .whatsapp-float svg {
        width: 27px;
        height: 27px;
    }
}

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