#my-ai-assistant {
    font-family: Arial, sans-serif;
}

/* Floating Button */
#my-ai-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    border: 0;
    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 26px;

    cursor: pointer;

    z-index: 99998;

    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}


/* Chat Window */
#my-ai-chat {
    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 360px;
    height: 500px;

    background: #fff;

    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    overflow: hidden;

    display: none;
    flex-direction: column;

    z-index: 99999;
}


/* Show Chat */
#my-ai-chat.active {
    display: flex;
}


/* Header */
.my-ai-header {
    background: #111;
    color: #fff;

    padding: 16px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: 600;
}


/* Close button */
#my-ai-close {
    background: transparent;
    border: 0;

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


/* Messages */
#my-ai-messages {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f6f6f6;
}


/* Message */
.my-ai-message {
    padding: 10px 14px;

    margin-bottom: 12px;

    border-radius: 12px;

    max-width: 80%;

    line-height: 1.5;

    font-size: 14px;

    word-wrap: break-word;
}


/* AI Message */
.my-ai-message.assistant {
    background: #fff;
    color: #222;

    margin-right: auto;
}


/* User Message */
.my-ai-message.user {
    background: #111;
    color: #fff;

    margin-left: auto;
}


/* Form */
#my-ai-form {
    display: flex;

    padding: 12px;

    border-top: 1px solid #eee;

    background: #fff;
}


/* Input */
#my-ai-input {
    flex: 1;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 11px 12px;

    outline: none;

    font-size: 14px;
}


/* Send Button */
#my-ai-form button {
    margin-left: 8px;

    border: 0;

    background: #111;
    color: #fff;

    padding: 0 16px;

    border-radius: 8px;

    cursor: pointer;
}


.my-ai-message a {
    display: inline-block;
    margin-top: 8px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.my-ai-message a:hover {
    opacity: 0.8;
}


/* Mobile */
@media (max-width: 480px) {

    #my-ai-chat {
        right: 10px;
        left: 10px;

        bottom: 85px;

        width: auto;
        height: 70vh;
    }

    #my-ai-toggle {
        right: 15px;
        bottom: 15px;
    }

}