/* ASPL Chatbot widget — only the handful of rules Tailwind utility classes
   (applied directly in chat-widget.js) can't express: fixed positioning,
   open/close animation, and the mobile bottom-sheet layout. */

#aspl-chat-bubble {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

#aspl-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease-out, opacity 160ms ease-out;
}

#aspl-chat-panel.aspl-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#aspl-chat-messages {
    flex: 1;
    overflow-y: auto;
}

@media (max-width: 480px) {
    #aspl-chat-panel {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }
    #aspl-chat-bubble {
        right: 16px;
        bottom: 16px;
    }
}
