/**
 * Chat Widget Isolation Layer
 * This file ensures proper positioning by loading AFTER chat-widget.css
 * Uses !important to override any conflicting styles from website CSS
 */

/* Force Float Button to Bottom-Right Corner */
#ai-chat-float-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    margin: 0 !important;
    transform: none !important;
}

/* Force Modal to Bottom-Right Corner (Above Float Button) */
#ai-chat-modal {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 10000 !important;
    margin: 0 !important;
    transform: none !important;
}

/* Mobile Responsive Overrides */
@media (max-width: 480px) {
    #ai-chat-float-btn {
        bottom: 16px !important;
        right: 16px !important;
    }

    #ai-chat-modal {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
}
