/* Ticket360 Chat Widget Styles */

/* CSS Reset for Widget */
#t360,
#t360 *,
#t360-btn,
#t360-frame,
#t360-iframe {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

/* Widget Container */
#t360 {
    position: fixed !important;
    bottom: 50px !important;
    right: 50px !important;
    /* Zorg dat de widget altijd boven andere elementen (zoals WebwinkelKeur-balk) staat */
    z-index: 2147483647 !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

#t360-btn {
    width: 60px !important;
    height: 60px !important;
    background: #000000 !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

#t360-btn:hover {
    transform: scale(1.05);
    background: #000000 !important;
}

#t360-frame {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 380px !important;
    height: 600px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    background: white !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    z-index: 2147483647 !important;
}

/* Beter positioneren op mobiel: volledige breedte en rekening houden met bovenbalken */
@media (max-width: 768px) {
    #t360 {
        right: 10px !important;
        bottom: 20px !important;
    }
    #t360-frame {
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        top: 70px !important;      /* onder de WebwinkelKeur-balk */
        bottom: 20px !important;   /* kleine marge boven de onderrand */
        height: auto !important;   /* hoogte volgt uit top/bottom */
    }
}

#t360-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.t360-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: t360-badge-pulse 2s infinite;
}

@keyframes t360-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 
 * INTERNAL CHAT CSS REMOVED
 * All CSS below this point (chat-header, chat-message, etc.) is only used inside the iframe
 * and is loaded via widget.php. This prevents conflicts with the host website's styling.
 * 
 * Only the external widget styling (#t360, #t360-btn, etc.) remains here for the host page.
 */