/* Container chính */
#az-floating-widget {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    font-family: sans-serif;
}

/* Vị trí trái/phải */
.az-pos-right { right: 20px; }
.az-pos-left { left: 20px; }

/* Nút Toggle Tròn to */
.az-toggle-btn {
    width: 60px;
    height: 60px;
    background: #d93025; /* Màu đỏ như hình */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}
.az-toggle-btn:hover { transform: scale(1.1); }
.az-toggle-btn svg { width: 28px; height: 28px; stroke: #fff; animation: az-wiggle 1s infinite; }
.az-icon-close { font-size: 24px; font-weight: bold; }

/* Danh sách Item */
.az-contact-list {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 200px;
    display: flex; /* Dùng flex để items bung từ dưới lên */
    flex-direction: column-reverse; 
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}
/* Khi active thì hiện list */
#az-floating-widget.active .az-contact-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Từng item con */
.az-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 5px 15px 5px 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: margin-bottom 0.2s;
    color: #333;
    font-weight: 500;
}
.az-item:hover { background: #f0f0f0; }

/* Icon bên trong item */
.az-item .az-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}
.az-label { font-size: 14px; }

/* Màu sắc từng icon */
.az-phone .az-icon { background: #d93025; }
.az-zalo .az-icon { background: #0068ff; }
.az-mess .az-icon { background: #0084ff; }
.az-map .az-icon { background: #4285f4; }
.az-email .az-icon { background: #f4b400; }

/* Điều chỉnh vị trí list nếu ở bên phải */
.az-pos-right .az-contact-list {
    left: auto;
    right: 0;
    align-items: flex-end; /* Căn phải các nút */
}
.az-pos-right .az-item { flex-direction: row-reverse; padding: 5px 5px 5px 15px; }
.az-pos-right .az-item .az-icon { margin-right: 0; margin-left: 10px; }

/* Animation Rung lắc icon điện thoại */
@keyframes az-wiggle {
    0% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-10deg) scale(1.1); }
    20% { transform: rotate(10deg) scale(1.1); }
    30% { transform: rotate(-10deg) scale(1.1); }
    40% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(0) scale(1); }
    100% { transform: rotate(0) scale(1); }
}