/* Artie Chat Widget Styles */

/* CHAT WRAPPER - Handles the "stop at footer" logic */
#artie-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    transition: bottom 0.1s ease-out;
}

/* CHAT ICON */
#artie-chat-trigger {
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    background-color: white;
    padding: 5px;
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
}
#artie-chat-trigger:hover { transform: scale(1.1); }

/* CHAT WINDOW */
#artie-chat-iframe {
    border: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.25);
    width: 350px;
    height: 550px;
    max-height: 70vh;
    display: none;
    background: white;
}
#artie-chat-iframe.active { display: block; }

/* SPEECH BUBBLE */
#artie-speech-bubble {
    position: absolute;
    bottom: 75px;
    right: 5px;
    background-color: #ffffff;
    color: #333333;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 10002;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}
#artie-speech-bubble.visible { opacity: 1; visibility: visible; }
#artie-speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 15px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 480px) {
    #artie-chat-iframe {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
        height: 60vh;
    }
}
