﻿<style >
/* Khung chứa nút Zalo */
.zalo-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Đặt ở góc dưới trái theo yêu cầu */
    display: flex;
    align-items: center;
    background: #0088ff; /* Màu xanh Zalo */
    border-radius: 50px;
    padding: 4px 20px 4px 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
    transition: all 0.3s ease;
}

/* Vòng tròn chứa Icon Zalo */
.zalo-icon-wrapper {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
}

    .zalo-icon-wrapper img {
        width: 30px;
    }

    /* Hiệu ứng vòng tròn lan tỏa (Pulse) xung quanh icon */
    .zalo-icon-wrapper::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        animation: zalo-pulse 2s infinite;
    }

.zalo-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Hiệu ứng rung nhẹ cho toàn bộ nút */
.zalo-float {
    animation: zalo-shake 3s infinite ease-in-out;
}

/* Định nghĩa các hiệu ứng Animation */
@keyframes zalo-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes zalo-shake {
    0%, 100% {
        transform: translateY(0);
    }

    10%, 30%, 50% {
        transform: translateY(-5px);
    }

    20%, 40%, 60% {
        transform: translateY(5px);
    }

    80% {
        transform: translateY(0);
    }
}

/* Hiệu ứng khi di chuột vào */
.zalo-float:hover {
    transform: scale(1.05);
    background: #0077e6;
    box-shadow: 0 6px 20px rgba(0, 136, 255, 0.6);
    color: #7FFF00; /* Màu Chartreuse khi hover cho đồng bộ thương hiệu */
}

/* Tự động ẩn text trên màn hình điện thoại rất nhỏ nếu cần */
@media (max-width: 480px) {
    .zalo-text {
        font-size: 14px;
    }

    .zalo-float {
        bottom: 20px;
        left: 20px;
    }
}

</style >
