#prz-ai-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

/* --- Chat Bubble --- */
#prz-ai-chatbot-bubble {
    width: 60px;
    height: 60px;
    background-color: #0073aa; /* Default color, can be overridden by JS */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

#prz-ai-chatbot-bubble:hover {
    transform: scale(1.1);
}

#prz-ai-chatbot-bubble svg {
    width: 30px;
    height: 30px;
}

/* --- Chat Window --- */
#prz-ai-chatbot-window {
    width: 350px;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden; /* Ensures content stays within rounded corners */
}

/* --- Open State --- */
#prz-ai-chatbot-container.chat-open #prz-ai-chatbot-bubble {
    display: none;
}

#prz-ai-chatbot-container.chat-open #prz-ai-chatbot-window {
    display: flex;
}


/* --- Window Contents --- */
#prz-ai-chatbot-header {
    padding: 10px 15px;
    background-color: #0073aa; /* Color will be set by JS */
    color: white; /* Color will be set by JS */
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#prz-ai-chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#prz-ai-chatbot-clear-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.8em;
    padding: 2px 5px;
    border-radius: 3px;
}

#prz-ai-chatbot-clear-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#prz-ai-chatbot-close-btn {
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
}

#prz-ai-chatbot-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
    height: 350px;
}

#prz-ai-chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word;
}

.user-message {
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    align-self: flex-start;
    margin-right: auto;
}

#prz-ai-chatbot-form {
    display: flex;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    flex-shrink: 0;
}

#prz-ai-chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
}

#prz-ai-chatbot-form button {
    background-color: #eda444;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
}

#prz-ai-chatbot-form button:hover {
    background-color: #eda444!important;
}

#prz-ai-chatbot-typing-indicator {
    font-style: italic;
    color: #888;
    padding: 5px 12px;
    font-size: 0.9em;
    flex-shrink: 0;
}