

/* WhatsApp button fix for chatbot overlap */
.veridex-chatbot-container.open {
    z-index: 10000 !important;
}

.whatsapp-button {
    transition: all 0.3s ease !important;
}

/* When chatbot is open, move WhatsApp button to top left */
body:has(.veridex-chatbot-container.open) .whatsapp-button,
html:has(.veridex-chatbot-container.open) .whatsapp-button {
    bottom: auto !important;
    top: 20px !important;
    left: 20px !important;
    transform: scale(0.8) !important;
}

/* Fallback for browsers that don't support :has */
.veridex-chatbot-container.open ~ .whatsapp-button {
    bottom: auto !important;
    top: 20px !important;
    left: 20px !important;
    transform: scale(0.8) !important;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    body:has(.veridex-chatbot-container.open) .whatsapp-button,
    html:has(.veridex-chatbot-container.open) .whatsapp-button,
    .veridex-chatbot-container.open ~ .whatsapp-button {
        top: 10px !important;
        left: 10px !important;
        transform: scale(0.7) !important;
    }
}