#contact-wrapper {
    position: fixed;
    z-index: 1099;
    right: 20px;
    bottom: 50px;
    touch-action: none;
}

.mobile-header-contact-social {
    position: absolute;
    width: max-content;
    min-width: 200px;
    max-width: 300px;

    /* Ẩn mặc định */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    top: 0;
    left: 0;
}

.mobile-header-contact-social.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-header-contact-wrapper {
    position: relative;
    z-index: 9999;
}

.mobile-header-contact-button {
    width: 60px;
    height: 60px;
    background-color: #e72222;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(231, 34, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 26px;
    transition: transform 0.2s ease, background-color 0.2s;
}

.mobile-header-contact-button:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.mobile-header-contact-button:hover {
    background-color: #d61c1c;
    transform: scale(1.1);
}

@keyframes phone-vibrate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    f 60% {
        transform: rotate(-5deg);
    }
}

.phone-ring {
    animation: phone-vibrate 0.7s infinite;
    display: inline-block;
}

.mobile-header-contact-social {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    min-height: 50px; 
    
    /* Đảm bảo nội dung bên trong sắp xếp đúng */
    display: flex;
    flex-direction: column;
}

/* Tùy chỉnh thanh cuộn cho đẹp (Webkit browsers: Chrome, Safari) */
.mobile-header-contact-social::-webkit-scrollbar {
    width: 4px;
}
.mobile-header-contact-social::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.mobile-header-contact-social::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.mobile-header-contact-social::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}