/* AK World Service - ultra-light contact hub */
.ak-pro-contact-hub,.ak-pro-contact-hub *{box-sizing:border-box!important}
.ak-pro-contact-hub{position:fixed!important;right:24px!important;bottom:24px!important;z-index:2147483000!important;font-family:Arial,Helvetica,sans-serif!important;line-height:1.2!important}
.ak-pro-contact-hub summary{list-style:none!important;cursor:pointer!important;border:0!important;outline:0!important;width:56px!important;height:56px!important;border-radius:50%!important;background:linear-gradient(135deg,#10236b,#0878ff)!important;color:#fff!important;font-size:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 10px 28px rgba(0,0,0,.22)!important;position:relative!important}
.ak-pro-contact-hub summary::-webkit-details-marker{display:none!important}
.ak-pro-contact-hub summary:before{content:"💬"!important;font-size:23px!important;line-height:1!important}
.ak-pro-contact-hub summary:after{content:""!important;position:absolute!important;width:11px!important;height:11px!important;right:5px!important;top:6px!important;border-radius:50%!important;background:#20d66b!important;border:2px solid #fff!important}
.ak-pro-contact-panel{position:absolute!important;right:0!important;bottom:68px!important;width:248px!important;max-width:calc(100vw - 32px)!important;padding:10px!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 45px rgba(0,0,0,.22)!important;display:none!important}
.ak-pro-contact-hub[open] .ak-pro-contact-panel{display:block!important}
.ak-pro-contact-panel a,.ak-pro-contact-panel button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;padding:12px 14px!important;margin:0 0 6px!important;border-radius:12px!important;border:0!important;background:#f5f7fb!important;color:#102052!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;font-family:Arial,Helvetica,sans-serif!important}
.ak-pro-contact-panel a:hover,.ak-pro-contact-panel button:hover{background:#eef4ff!important;color:#0b63d1!important}

/* Old floating buttons hidden; scripts are removed/blocked separately */
.ak-dm-left-contact,.ak-wa-btn,.ak-team-btn,.ak-chat-btn{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important}
body:not(.ak-pro-chat-active) .ak-chat-box{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
body.ak-pro-chat-active .ak-chat-box{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483001!important}

@media(max-width:767px){
  .ak-pro-contact-hub{right:14px!important;bottom:14px!important}
  .ak-pro-contact-hub summary{width:52px!important;height:52px!important}
  .ak-pro-contact-panel{bottom:62px!important;width:238px!important}
  .ak-pro-contact-panel a,.ak-pro-contact-panel button{padding:12px 13px!important;font-size:13px!important}
}

/* AK FINAL LEFT BUTTON KILL SWITCH - lightweight */
.ak-dm-left-contact,
.ak-wa-btn,
.ak-team-btn,
body > div:has(a[href*="wa.me/923239864302"]):has(a[href*="teams.microsoft.com/l/chat"]),
body div:has(a[href*="wa.me/923239864302"]):has(a[href*="teams.microsoft.com/l/chat"]),
body div:has(a[href*="api.whatsapp.com"]):has(a[href*="teams.microsoft.com/l/chat"]),
a[href*="wa.me/923239864302"][class*="rounded-full"],
a[href*="api.whatsapp.com"][class*="rounded-full"],
a[href*="teams.microsoft.com/l/chat"][class*="rounded-full"],
a[href*="wa.me/923239864302"][style*="fixed"],
a[href*="api.whatsapp.com"][style*="fixed"],
a[href*="teams.microsoft.com/l/chat"][style*="fixed"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* AK FINAL: hide old standalone left WhatsApp/Teams buttons, allow only Contact Hub links */
body a[href*="wa.me/923239864302"],
body a[href*="api.whatsapp.com"],
body a[href*="teams.microsoft.com/l/chat"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body .ak-pro-contact-hub a[href*="wa.me/923239864302"],
body .ak-pro-contact-hub a[href*="api.whatsapp.com"],
body .ak-pro-contact-hub a[href*="teams.microsoft.com/l/chat"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* AK FIX: remove old standalone live-chat floating button; keep chat box controlled by Contact Hub */
.ak-chat-btn,
button.ak-chat-btn,
a.ak-chat-btn,
div.ak-chat-btn,
[class~="ak-chat-btn"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body:not(.ak-pro-chat-active) .ak-chat-box {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.ak-pro-chat-active .ak-chat-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483001 !important;
}

/* AK FINAL FORCE: hide any old standalone floating chat button above Contact Hub */
/* Keep only new .ak-pro-contact-hub visible. No JS, no iframe, no watcher. */

body > .ak-chat-btn,
body > button.ak-chat-btn,
body > a.ak-chat-btn,
body > div.ak-chat-btn,
body > [class*="chat-btn"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [class*="chat-button"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [class*="chat_widget"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [class*="chat-widget"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [id*="chat-btn"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [id*="chat-button"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [id*="chat_widget"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > [id*="chat-widget"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > button[style*="position:fixed"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > button[style*="position: fixed"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > a[style*="position:fixed"][style*="right"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > a[style*="position: fixed"][style*="right"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > div[style*="position:fixed"][style*="right"][style*="bottom"]:not(.ak-pro-contact-hub):not(.ak-chat-box),
body > div[style*="position: fixed"][style*="right"][style*="bottom"]:not(.ak-pro-contact-hub):not(.ak-chat-box) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* allow our new contact hub and live chat box */
body > .ak-pro-contact-hub,
body > .ak-pro-contact-hub *,
body.ak-pro-chat-active .ak-chat-box,
body.ak-pro-chat-active .ak-chat-box * {
  visibility: visible !important;
  pointer-events: auto !important;
}

body > .ak-pro-contact-hub {
  display: block !important;
  opacity: 1 !important;
}

/* AK FINAL SPLIT WIDGET: old standalone chat button must never show */
.ak-chat-btn,
button.ak-chat-btn,
a.ak-chat-btn,
div.ak-chat-btn,
[class~="ak-chat-btn"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body:not(.ak-pro-chat-active) .ak-chat-box {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.ak-pro-chat-active .ak-chat-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483001 !important;
}

/* AK FINAL SPLIT WIDGET: old standalone chat button must never show */
.ak-chat-btn,
button.ak-chat-btn,
a.ak-chat-btn,
div.ak-chat-btn,
[class~="ak-chat-btn"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body:not(.ak-pro-chat-active) .ak-chat-box {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.ak-pro-chat-active .ak-chat-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483001 !important;
}
