.wp-elce {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99999;
}
.wp-elce #elce-phone {
    transition: 0.7s all;
    -moz-transition: 0.7s all;
    -webkit-transition: 0.7s all;
}
.wp-elce .elce-contact {
    position: relative;
}
.wp-elce .elce-contact .elce-phone {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 63px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}
.elce-phone-img-circle {
    background-color: #e60808;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    animation: phone-elce-circle-fill 1s infinite ease-in-out;
}
@-webkit-keyframes phone-elce-circle-fill {
    0% {
        -webkit-transform: rotate(0deg) scale(1);
    }
    10% {
        -webkit-transform: rotate(-7deg) scale(1);
    }
    20% {
        -webkit-transform: rotate(7deg) scale(1);
    }
    30% {
        -webkit-transform: rotate(-5deg) scale(1);
    }
    40% {
        -webkit-transform: rotate(5deg) scale(1);
    }
    50% {
        -webkit-transform: rotate(0deg) scale(1);
    }
    100% {
        -webkit-transform: rotate(0deg) scale(1);
    }
}

@keyframes phone-elce-circle-fill {
    0% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-7deg) scale(1);
    }
    20% {
        transform: rotate(7deg) scale(1);
    }
    30% {
        transform: rotate(-5deg) scale(1);
    }
    40% {
        transform: rotate(5deg) scale(1);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}
@-webkit-keyframes zoom{0%{transform:scale(.9)}70%{transform:scale(1);box-shadow:0 0 0 8px transparent}100%{transform:scale(.9);box-shadow:0 0 0 0 transparent}}@keyframes zoom{0%{transform:scale(.9)}70%{transform:scale(1);box-shadow:0 0 0 8px transparent}100%{transform:scale(.9);box-shadow:0 0 0 0 transparent}}
.elce-phone-img-circle a {
    display: block;
    line-height: 37px;
}
.elce-phone-img-circle img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
}
.elce-phone-circle-fill {
    width: 50px;
    height: 50px;
    top: 20px;
    left: 20px;
    position: absolute;
    box-shadow: 0 0 0 0 #c31d1d;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-elce-circle-fill 2.3s infinite ease-in-out;
    animation: phone-elce-circle-fill 2.3s infinite ease-in-out;
    transition: all .5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animuiion: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
}
.phone-bar.phone-bar-n {
    position: relative;
    visibility: visible;
    background-color: transparent;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    display: block;
}
.phone-bar a {
    position: fixed;
    bottom: 25px;
    left: 30px;
    z-index: -1;
    color: #fff;
    font-size: 16px;
    padding: 8px 15px 7px 50px;
    border-radius: 100px;
    white-space: nowrap;
    text-decoration: none;
    font-weight: bold;
}

/* ZALO */
#elce-messenger {
	order: 1;
}
#elce-zalo {
	order: 2;
}
#elce-phone {
	order: 3;
}
#elce-zalo .elce-phone-circle-fill {
    box-shadow: 0 0 0 0 #0068FF;
    background-color: #0068ff59;
}
#elce-zalo .elce-phone-img-circle {
    background-color: #0068FF;
}

/* Messenger */
#elce-messenger .elce-phone-circle-fill {
    box-shadow: 0 0 0 0 #0082FF;
    background-color: #0082ff42;
}
#elce-messenger .elce-phone-img-circle {
    background-color: #0082FF;
}
/* Contact */
#elce-contact .elce-phone-circle-fill {
    opacity: 0.7;
    box-shadow: 0 0 0 0 #79ba2a;
    background-color: #79ba2a;
}
#elce-contact .elce-phone-img-circle {
    background-color: #79ba2a;
}
/* ==========================================================
 * Collapsible contact group - v1.1.0
 * ========================================================== */
.wp-elce {
    bottom: 60px;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.wp-elce .elce-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transform: translateY(16px) scale(.96);
    transform-origin: bottom left;
    transition: max-height .35s ease, opacity .25s ease, transform .35s ease, visibility 0s linear .35s;
}

.wp-elce.is-open .elce-actions {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: max-height .35s ease, opacity .25s ease .05s, transform .35s ease, visibility 0s;
}

.wp-elce .elce-toggle {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 6px 9px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #2196f3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 0 0 6px rgba(33, 150, 243, .22), 0 7px 22px rgba(0, 0, 0, .20);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    -webkit-appearance: none;
    appearance: none;
}


.wp-elce .elce-toggle:focus-visible {
    outline: 3px solid rgba(33, 150, 243, .45);
    outline-offset: 8px;
}

.wp-elce .elce-toggle-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity .2s ease, transform .25s ease;
}

.wp-elce .elce-toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.wp-elce .elce-toggle-label {
    display: block;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.wp-elce .elce-toggle-close {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.75);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .1px;
    transition: opacity .2s ease, transform .25s ease;
    pointer-events: none;
}

.wp-elce .elce-toggle-close-icon {
    display: block;
    font-size: 28px;
    line-height: 20px;
    font-weight: 300;
}

.wp-elce.is-open .elce-toggle {
    background: #333;
    box-shadow: 0 0 0 6px rgba(51, 51, 51, .15), 0 7px 22px rgba(0, 0, 0, .20);
}

.wp-elce.is-open .elce-toggle-contact {
    opacity: 0;
    transform: scale(.75) rotate(12deg);
}

.wp-elce.is-open .elce-toggle-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Hotline bar follows the phone button, which is now above the main toggle. */
.wp-elce .elce-actions .phone-bar a {
    bottom: 115px;
}

/* Keep the animation anchored correctly when buttons are on the right. */
.wp-elce[style*="right"] .elce-actions,
.wp-elce.is-right .elce-actions {
    align-items: flex-end;
    transform-origin: bottom right;
}

@media (max-width: 736px) {
    .wp-elce .elce-toggle {
        width: 66px;
        height: 66px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .wp-elce .elce-toggle-icon {
        width: 18px;
        height: 18px;
    }

    .wp-elce .elce-toggle-label {
        font-size: 9px;
    }
}


/* ==========================================================
 * Main Contact button animation - v1.1.3
 * Reuses the same two-layer animation behavior as child buttons:
 * .elce-phone-circle-fill (outer pulse) + .elce-phone-img-circle (inner shake)
 * ========================================================== */
.wp-elce:not(.is-open) .elce-toggle {
    width: 90px;
    height: 90px;
    margin: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

/* Same role/effect as .elce-phone-circle-fill */
.wp-elce:not(.is-open) .elce-toggle::before {
    content: "";
    position: absolute;
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: rgba(33, 150, 243, .70);
    box-shadow: 0 0 0 0 #2196f3;
    transform-origin: 50% 50%;
    -webkit-animation: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
    pointer-events: none;
    z-index: 0;
}

/* Same role/effect as .elce-phone-img-circle */
.wp-elce:not(.is-open) .elce-toggle-contact {
    position: absolute;
    width: 52px;
    height: 52px;
    top: 19px;
    left: 19px;
    border-radius: 50%;
    background-color: #2196f3;
    color: #fff;
    gap: 2px;
    z-index: 1;
   -webkit-animation: phone-elce-circle-fill 1.8s infinite ease-in-out;
   animation: phone-elce-circle-fill 1.8s infinite ease-in-out;
}

.wp-elce:not(.is-open) .elce-toggle:hover {
    transform: none;
    box-shadow: none;
}

/* Expanded state: no pulse/shake; keep Close clean and static. */
.wp-elce.is-open .elce-toggle {
    width: 36px;
    height: 36px;
    margin: 15px auto 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #333;
    border: 0;
    box-shadow: none;
}
/* Bỏ chữ Đóng */
.wp-elce.is-open .elce-toggle-label {
    display: none !important;
}

/* Icon X căn chính giữa */
.wp-elce.is-open .elce-toggle-contact {
    position: static;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border-radius: 50%;
    background: #333;

    border: 0;
    box-shadow: none;

    animation: none !important;
    -webkit-animation: none !important;
}
.wp-elce.is-open .elce-toggle::before,
.wp-elce.is-open .elce-toggle::after {
    display: none !important;
    content: none !important;
}
.wp-elce.is-open .elce-toggle {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.wp-elce.is-open .elce-toggle-contact {
    -webkit-animation: none;
    animation: none;
}

@media (max-width: 736px) {
    .wp-elce:not(.is-open) .elce-toggle {
        width: 75px;
        height: 75px;
        margin: 0;
    }
	.wp-elce:not(.is-open) .elce-toggle::before {
		width: 60px;
		height: 60px;
		top: 15px;
        left: 15px;
		-webkit-animation: zoom 1.1s infinite;
		animation: zoom 1.1s infinite;
	}
    .wp-elce.is-open .elce-toggle {
        width: 34px;
        height: 34px;
    }
	.elce-phone-circle-fill {
		width: 50px;
		height: 50px;
		top: 20px;
		left: 20px;
	}
}
