.fcb-contact-box{
    position:fixed;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    z-index:99999;
}
.fcb-contact-toggle{
    color:#fff;
    padding:12px 10px;
    border-radius:20px;
    writing-mode:vertical-rl;
    cursor:pointer;
    font-weight:600;
    font-size:14px;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
    text-decoration:none;
    display:flex;
    justify-content:center;
    align-items:center;
}

.fcb-item{
    width:46px;
    height:46px;
    border-radius:50%;
    position: relative;
    overflow: visible;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.25s;
}

/* Hiệu ứng “tỏa sóng” (PC) cho các nút tròn */
.fcb-item::before,
.fcb-item::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:100%;
    height:100%;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.55);
    transform: translate(-50%,-50%) scale(1);
    opacity:.85;
    pointer-events:none;
    animation: fcb-wave 1.6s infinite;
}
.fcb-item::before{ animation-delay: .8s; }

@keyframes fcb-wave{
    0%{ transform: translate(-50%,-50%) scale(1); opacity:.85; }
    70%{ transform: translate(-50%,-50%) scale(1.85); opacity:0; }
    100%{ transform: translate(-50%,-50%) scale(1.85); opacity:0; }
}

/* Tắt animation nếu user giảm chuyển động */
@media (prefers-reduced-motion: reduce){
  .fcb-item::before,
  .fcb-item::after{ display:none !important; animation:none !important; }
}
.fcb-item img{
    width:28px;
    height:28px;
}

.fcb-top{
    opacity:0;
    visibility:hidden;
    transition:.3s;
}
.fcb-top.show{
    opacity:1;
    visibility:visible;
    transform:scale(1.05);
}

/* PC only: ẩn nút nổi trên mobile/tablet */
@media (max-width: 850px){
  .fcb-contact-box{
    display:none !important;
  }
}


/* ===== Mobile contact footer ===== */
#fcb-footer-outer {position: fixed;width: 100%;z-index: 999999 !important;bottom: 0;display: none;}
#fcb-footer:after {content: "";position: absolute;pointer-events: none;background-color: unset;background-position: center top;background-repeat: no-repeat;background-size: 100%;box-shadow: unset;height: 65px;width: 100%;margin-left: 0;margin-bottom: 0;left: 0;bottom: 0;z-index: -1;}
#fcb-footer {border-bottom: 15px solid #fff;display: flex;max-width: 1200px;margin: auto;position: relative;padding-top: 5px;}
#fcb-footer > a {position: relative;display: block;flex: 1 1 0;text-align: center;padding: 11px 0 0px 0;color: #313131;text-decoration:none;}
#fcb-footer > span {display: block;width: 30px;}
#fcb-footer span {display: block;}
.fcb-footer-btn-label {padding: 0px 2px 0 2px;font-size: 11px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-weight: bold;line-height: 1.2;}
#fcb-footer > a img {height: 30px;width:30px}
#fcb-footer-btn-center {position: relative;background: transparent !important;}
#fcb-footer-btn-center .fcb-footer-btn-label {position: absolute;left: 50%;bottom: 2px;transform: translateX(-50%);}
#fcb-footer-btn-center .fcb-footer-btn-label > span {padding: 0px 8px;background-image: linear-gradient(92.83deg, #0E68C8 0, #02A4A5 100%);border-radius: 30px;color: white;display: inline-block;}
.fcb-footer-btn-center-icon {left: 50%;position: absolute;transform: translateX(-50%);background-image: linear-gradient(92.83deg, #f90000 0, #950099 100%);width: 50px;height: 50px;border-radius: 50%;top: -28px;text-align: center;box-shadow: rgb(0 0 0 / 15%) 0 -3px 10px 0px;border: 2px solid #fff;}
.fcb-footer-btn-center-icon img{max-width: 20px;height: auto !important;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}
.fcb-vr-circle-fill {width: 50px;height: 50px;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);border-radius: 50%;box-shadow: 0 0 0 0 #0E68C8;border: 2px solid transparent;transition: all .5s;animation: fcb-zoom 1.3s infinite;}
@keyframes fcb-zoom {0% {}70% {box-shadow: 0 0 0 15px transparent}100% {box-shadow: 0 0 0 0 transparent}}
@media only screen and (max-width: 850px) { #fcb-footer-outer {display:block;} }


/* ===== Animation (giữ nguyên như bản gốc) ===== */
.fcb-call { animation: fcb-shake 0.5s infinite; }
@keyframes fcb-shake {
    0%,100% { transform: rotate(0deg); }
    20% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-8deg); }
}

.fcb-item, .fcb-contact-toggle { animation: fcb-bounce 1.4s infinite; }
@keyframes fcb-bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* =====================================================================
   PHẦN BỔ SUNG (không đổi giao diện):
   1) Cổng preloader: ẩn thanh liên hệ cho đến khi JS gỡ class fcb-wait
   2) Ẩn/hiện thanh mobile khi cuộn (chỉ transform, không đổi layout)
   ===================================================================== */
.fcb-contact-box,
#fcb-footer-outer {
    transition: opacity .5s ease, visibility 0s linear 0s;
}
#fcb-footer-outer {
    transition: opacity .5s ease, transform .3s ease, visibility 0s linear 0s;
    will-change: transform;
}

.fcb-contact-box.fcb-wait,
#fcb-footer-outer.fcb-wait {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Phòng khi JS lỗi: tự hiện sau 35 giây */
    animation: fcb-failsafe .01s linear 35s forwards;
}
#fcb-footer-outer.fcb-wait {
    transform: translate3d(0, 14px, 0);
}
@keyframes fcb-failsafe {
    to { opacity: 1; visibility: visible; pointer-events: auto; }
}

#fcb-footer-outer.fcb-scroll-hidden {
    transform: translate3d(0, calc(100% + 40px), 0);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fcb-contact-box,
    #fcb-footer-outer { transition: none !important; }
}
