﻿.whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 10px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 9999;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .whatsapp-btn:hover {
        background-color: #1fba58;
        transform: scale(1.1);
        color: white;
    }

    .whatsapp-btn i {
        line-height: 1;
    }

    .whatsapp-btn::after {
        content: "Chat";
        position: absolute;
        top: 50%;
        right: 70px;
        transform: translateY(-50%);
        background-color: #fff;
        color: #333;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
        box-shadow: 0 1px 5px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .whatsapp-btn:hover::after {
        opacity: 1;
        visibility: visible;
    }

/* Thêm badge cho hiển thị thông báo nhỏ */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    font-weight: bold;
}

/* Animation nhấp nháy để gây chú ý */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }

        .whatsapp-btn::after {
            display: none;
        }
}
