/* CSS Fix untuk Z-Index Tombol Cekat AI */
/* HANYA mengatur z-index, tidak mengubah positioning yang sudah ada */

/* Pastikan tombol cekat AI memiliki z-index yang tepat */
#chat-bubble,
[id*="chat"]:not(.modal [id*="chat"]),
iframe[src*="cekat.ai"],
iframe[src*="mychat"],
div[id*="mychat"],
.cekat-ai-widget,
.cekat-ai-button {
    z-index: 9999 !important;
}

/* Khusus untuk iframe cekat AI - hanya z-index */
iframe[src*="cekat.ai"] {
    z-index: 9999 !important;
}

/* Pastikan tombol chat bubble tidak tertutup elemen lain - hanya z-index */
#chat-bubble {
    z-index: 9999 !important;
}

/* Hover effect untuk tombol chat - hanya jika diperlukan */
#chat-bubble:hover {
    transform: scale(1.05) !important;
}

/* Pastikan widget cekat AI tidak tertutup navbar atau elemen lain */
div[class*="cekat"],
div[id*="cekat"],
.mychat-widget,
.mychat-container {
    z-index: 9999 !important;
}

/* Ketika modal popup penipuan aktif, turunkan z-index tombol cekat AI */
body.modal-open #chat-bubble,
body.modal-open [id*="chat"]:not(.modal [id*="chat"]),
body.modal-open iframe[src*="cekat.ai"],
body.modal-open iframe[src*="mychat"],
body.modal-open div[id*="mychat"] {
    z-index: 1000 !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Pastikan cekat AI di atas semua elemen kecuali modal popup penipuan */
#chat-bubble,
iframe[src*="cekat.ai"] {
    z-index: 9999 !important;
}

/* Hanya modal popup penipuan yang boleh di atas cekat AI */
#modalpopup {
    z-index: 99999 !important;
}

#modalpopup .modal-dialog {
    z-index: 100000 !important;
}

#modalpopup .modal-content {
    z-index: 100001 !important;
}

#modalpopup .modal-backdrop {
    z-index: 99998 !important;
}