/**
 * WhatsApp Floating Button — beDura plugin
 */

.bedura-wa-float {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 10040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgb(37 211 102 / 0.45), 0 2px 6px rgb(0 0 0 / 0.2);
    background: #25d366;
    color: #fff;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.bedura-wa-float--right {
    right: calc(1.1rem + env(safe-area-inset-right, 0px));
    left: auto;
}

.bedura-wa-float--left {
    left: calc(1.1rem + env(safe-area-inset-left, 0px));
    right: auto;
}

.bedura-wa-float:hover {
    background: #1ebe57;
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgb(37 211 102 / 0.55), 0 4px 10px rgb(0 0 0 / 0.25);
}

.bedura-wa-float:focus-visible {
    outline: 3px solid #128c43;
    outline-offset: 3px;
}

.bedura-wa-float__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.bedura-wa-float__pulse {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
    .bedura-wa-float__pulse {
        animation: beduraWaPulse 2s ease-out infinite;
    }

    .bedura-wa-float:hover .bedura-wa-float__pulse {
        animation: none;
        opacity: 0;
    }
}

@keyframes beduraWaPulse {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}
