.jxbc-whatsapp-float {
    --jxbc-whatsapp-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    align-items: center;
    background: #1f6f5f;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    bottom: var(--jxbc-whatsapp-bottom);
    box-shadow: 0 8px 24px rgba(15, 45, 39, 0.24);
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    min-height: 50px;
    padding: 0 18px;
    position: fixed;
    right: max(24px, calc(env(safe-area-inset-right) + 16px));
    text-decoration: none;
    transition: background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    z-index: 999;
}

.jxbc-whatsapp-float:hover,
.jxbc-whatsapp-float:focus-visible {
    background: #18594d;
    box-shadow: 0 10px 28px rgba(15, 45, 39, 0.3);
    color: #fff;
}

.jxbc-whatsapp-float:focus-visible {
    outline: 3px solid rgba(31, 111, 95, 0.3);
    outline-offset: 3px;
}

.jxbc-whatsapp-icon {
    fill: currentColor;
    flex: 0 0 23px;
    height: 23px;
    width: 23px;
}

.jxbc-whatsapp-float.is-footer-covered {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    .jxbc-whatsapp-float {
        --jxbc-whatsapp-bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
        border-radius: 50%;
        min-height: 50px;
        padding: 0;
        right: max(16px, calc(env(safe-area-inset-right) + 12px));
        width: 50px;
    }

    .jxbc-whatsapp-icon {
        margin: auto;
    }

    .jxbc-whatsapp-label {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }
}

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