/* Chatbot Overice: conserve un panneau flottant compact sur tous les écrans. */
#wp-chatbot-chat-container .wp-chatbot-animation-active .wp-chatbot-ball-animation-switch {
    border-top-color: #FF8C00 !important;
}

#wp-chatbot-chat-container .wp-chatbot-animation-active .wp-chatbot-ball-animation-switch::before {
    border-top-color: #1565FF !important;
}

#wp-chatbot-chat-container .wp-chatbot-animation-active .wp-chatbot-ball-animation-switch::after {
    border-top-color: #0D2D6E !important;
}

.wp-chatbot-template-01 .wp-chatbot-board-container {
    width: 350px !important;
    max-width: calc(100vw - 24px) !important;
}

@media screen and (max-width: 480px) {
    body div#wp-chatbot-chat-container.wp-chatbot-mobile-fs-open {
        top: auto !important;
        right: 12px !important;
        bottom: 12px !important;
        left: auto !important;
        width: calc(100vw - 24px) !important;
        max-width: 350px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body .wp-chatbot-template-01 div#wp-chatbot-chat-container.wp-chatbot-mobile-fs-open #wp-chatbot-board-container,
    body div#wp-chatbot-chat-container.wp-chatbot-mobile-fs-open .wp-chatbot-board-container {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body div#wp-chatbot-chat-container.wp-chatbot-mobile-fs-open .slimScrollDiv,
    body div#wp-chatbot-chat-container.wp-chatbot-mobile-fs-open .wp-chatbot-ball-inner,
    body .wp-chatbot-template-01 .wp-chatbot-board-container.active-chat-board .slimScrollDiv,
    body .wp-chatbot-template-01 .wp-chatbot-board-container.active-chat-board .wp-chatbot-ball-inner {
        width: 100% !important;
        max-width: 100% !important;
        height: min(60dvh, 420px) !important;
        max-height: min(60dvh, 420px) !important;
        min-height: 0 !important;
    }

    /* Pas d'animation de fermeture sur mobile : les transformations et le
       fondu du plugin provoquent des artefacts de composition sur iOS. */
    body .wp-chatbot-template-01 .wp-chatbot-board-container.active-chat-board.wp-chatbot-close-anim {
        display: none !important;
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
