﻿/* Vùng chứa nút chat */
#contact_widget_button {
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.15;
    background: #00b894;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

    #contact_widget_button:hover {
        transform: scale(1.05);
    }

    #contact_widget_button.clicked {
        z-index: 1041;
    }

/* Vùng nền rung */
.contact-widget-pulsation {
    background: #00b894;
    width: 60px;
    height: 60px;
    top: -8px;
    left: -8px;
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    transform: scale(0);
    animation: pulsation 2s infinite;
}

/* Icon bên trong nút */
.contact-widget-icon img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Sóng rung */
@keyframes pulsation {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Dropdown menu */
.contact-widget-dropdown {
    position: absolute;
    bottom: 40px;
    right: 30px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    opacity: 0;
    z-index: -1;
    margin-bottom: 20px;
    transition: margin-bottom .3s ease, opacity .3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    visibility: hidden;
    min-width: 260px;
}

    .contact-widget-dropdown.expanded {
        margin-bottom: 0;
        opacity: 1;
        z-index: 1002;
        visibility: visible;
    }

/* Các item trong dropdown */
.contact-widget-item {
    color: #333;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-widget-item:hover {
        color: #00b894;
    }

    .contact-widget-item:not(:last-child) {
        margin-bottom: 0px;
    }

.contact-widget-item-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
   /* border-radius: 50%;*/
    /*background: #00b894;*/
}

    .contact-widget-item-icon img {
        width: 22px;
        height: 22px;
    }

/* Responsive */
@media (min-width: 420px) {
    #contact_widget_button {
        right: 30px;
        width: 70px;
        height: 70px;
    }

    .contact-widget-icon img {
        width: 42px;
        height: 42px;
    }

    .contact-widget-pulsation {
        width: 110px;
        height: 110px;
    }

    .contact-widget-dropdown {
        right: 60px;
    }
}
