/* Hide Sticky Social Media Icons on Mobile Devices */
@media (max-width: 768px) {
    .sticky-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* WhatsApp Widget Mobile Fixes */
@media (max-width: 768px) {
    /* Ensure widget container is properly positioned and visible */
    .telecrm-chat-widget-main-container {
        position: fixed !important;
        z-index: 9999 !important;
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
        top: auto !important;
    }

    /* Chat widget container */
    .chat-widget {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        z-index: 10000 !important;
    }

    /* Button container fixes */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-button-container {
        position: relative !important;
        z-index: 10001 !important;
    }

    /* Button styling for mobile */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-button-container .telecrm-chat-widget-button {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        padding: 0 !important;
    }

    /* Button text on mobile */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-button-container .telecrm-chat-widget-button .telecrm-chat-widget-button-text {
        display: none !important;
    }

    /* Widget popup container fixes */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-popup-container {
        position: fixed !important;
        bottom: 90px !important;
        left: 20px !important;
        right: auto !important;
        top: auto !important;
        width: calc(100vw - 40px) !important;
        max-width: 350px !important;
        max-height: calc(100vh - 120px) !important;
        z-index: 10002 !important;
    }

    /* Ensure popup is visible and properly sized */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-popup-container iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        border-radius: 20px !important;
    }

    /* Fix for widget iframe container */
    .telecrm-chat-widget-main-container .telecrm-chat-widget-popup-container .telecrm-chat-widget-iframe-container {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Ensure widget is clickable and interactive */
    .telecrm-chat-widget-main-container * {
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }
}

/* Additional fixes for very small mobile devices */
@media (max-width: 480px) {
    .telecrm-chat-widget-main-container {
        bottom: 15px !important;
        left: 15px !important;
    }

    .telecrm-chat-widget-main-container .telecrm-chat-widget-button-container .telecrm-chat-widget-button {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        min-height: 55px !important;
    }

    .telecrm-chat-widget-main-container .telecrm-chat-widget-popup-container {
        bottom: 80px !important;
        left: 15px !important;
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
    }
}

