@keyframes pulse-animation {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25); }
    50% { transform: scale(1.03); box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25); }
}
@keyframes ripple-effect {
    0% { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}
@keyframes icon-shake-animation {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg); }
    20%, 40%, 60%, 80% { transform: rotate(8deg); }
}

.web-contact-button-container {
    position: fixed;
    bottom: 150px;
    right: 25px;
    z-index: 1050;
    direction: ltr;
}

/* Nút chính */
.web-contact-main-button {
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center; /* Căn ngang */
    align-items: center;   /* Căn dọc */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    animation-name: pulse-animation;
    animation-duration: 2.8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.web-contact-main-button::before,
.web-contact-main-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    border-radius: 50%;
    transform-origin: center center;
    opacity: 0;
    z-index: -1;
    animation-name: ripple-effect;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1);
}
.web-contact-main-button::after {
    animation-delay: 1s;
    background-color: rgb(148 13 255);
}

.web-contact-main-button .dashicons,
.web-contact-main-button [class^="fa"], /* Cho Font Awesome */
.web-contact-main-button .custom-icon-main { 
    font-size: 30px; 
    line-height: 1; 
    z-index: 1;
    display: inline-block;
    transform: translateY(2px);

    /* Animation (phần này giữ nguyên) */
    animation-name: icon-shake-animation;
    animation-duration: 3s;
    animation-delay: 0.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.web-contact-main-button .dashicons,
.web-contact-main-button [class^="fa"],
.web-contact-main-button .custom-icon-main {
    transform-origin: center bottom;
}

.web-contact-main-button:hover {
    background-color: #005cb3;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    animation-play-state: paused;
}
.web-contact-main-button .dashicons,
.web-contact-main-button [class^="fa"],
.web-contact-main-button .custom-icon-main {
    
    position: relative;
    top: -4px;
    left:-4px;
    font-size: 30px;
    line-height: 1;
    z-index: 1;
    display: inline-block;
    animation-name: icon-shake-animation;
    animation-duration: 3s;
    animation-delay: 0.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transform-origin: center bottom;
}
/* Khi hover nút chính, các animation của icon cũng dừng */
.web-contact-main-button:hover .dashicons,
.web-contact-main-button:hover [class^="fa"],
.web-contact-main-button:hover .custom-icon-main {
    animation-play-state: paused;
}

.web-contact-main-button:hover::before,
.web-contact-main-button:hover::after {
    animation-play-state: paused;
}

.web-contact-main-button .button-text {
    font-size: 13px;
    margin-left: 6px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Tùy chọn Zalo bung ra */
.web-contact-zalo-options {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 200px;
}

.web-contact-button-container:hover .web-contact-zalo-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.web-contact-zalo-option {
    background-color: #0084ff;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    margin-bottom: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.web-contact-zalo-option:hover {
    background-color: #006adc;
    transform: translateX(-5px) scale(1.03);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.web-contact-zalo-option .zalo-item-title {
    font-weight: bold;
    margin-right: 6px;
    opacity: 0.9;
}

.web-contact-zalo-option .dashicons,
.web-contact-zalo-option [class^="fa"],
.web-contact-zalo-option .custom-icon {
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

.web-contact-main-button.is-single-zalo-link:hover {
    background-color: #0084ff;
    transform: scale(1.1);
}

.web-config-info-item { display: inline-flex; align-items: center; margin-bottom: 8px; font-size: 16px; }
.web-config-info-item .dashicons, .web-config-info-item [class^="fa"], .web-config-info-item .custom-icon { margin-right: 8px; color: #555; font-size: 1.2em; }
.web-config-info-item a { text-decoration: none; color: #0073aa; }
.web-config-info-item a:hover { text-decoration: underline; color: #005a87; }
.contact-title-large { font-size: 24px; font-weight: bold; color: #333; }
.contact-phone-highlight { font-weight: bold; color: #d35400; }
.contact-phone-highlight .dashicons { color: #d35400; }