.whatsapp-float {
    position: fixed;
    right: 100px;
    bottom: 100px;
    z-index: 10020;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-float:focus-visible {
    border-radius: 50%;
    outline: 3px solid #fff;
    outline-offset: 5px;
}

.whatsapp-border-wrapper {
    display: flex;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    align-items: center;
    justify-content: center;
}

.whatsapp-icon-animated {
    display: flex;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    font-size: 2.8em;
    animation: whatsapp-wobble 2.5s infinite ease-in-out;
    align-items: center;
    justify-content: center;
}

@keyframes whatsapp-wobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-5deg) scale(1.05); }
    30% { transform: rotate(5deg) scale(1); }
    45% { transform: rotate(-3deg) scale(1.03); }
    60% { transform: rotate(3deg) scale(1); }
    75% { transform: rotate(-1deg) scale(1.01); }
}

.whatsapp-bubble {
    position: absolute;
    right: 0;
    bottom: 100px;
    padding: 10px 15px;
    border-radius: 10px;
    color: #333;
    background: #fefefe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s;
    pointer-events: none;
}

.whatsapp-bubble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bubble-arrow {
    position: absolute;
    right: 20px;
    bottom: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid #fefefe;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
}

.whatsapp-border-wrapper i,
.whatsapp-icon-animated,
.whatsapp-icon-animated::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

@media (max-width: 991px) {
    .whatsapp-float {
        right: 20px;
        bottom: 20px;
    }

    .whatsapp-bubble {
        right: 0;
        bottom: 80px;
    }
}

@media (max-width: 640px) {
    .auction-detail-page .whatsapp-float {
        right: 20px;
        bottom: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-icon-animated {
        animation: none;
    }

    .whatsapp-bubble {
        transition: none;
    }
}
