/* Chat Widget Container */
#mfp-chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Chat Toggle Button */
#mfp-chat-toggle-button {
    background-color: var(--mfp-theme-color, #0073aa);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chat Window */
#mfp-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#mfp-chat-window.open {
    display: flex;
}

/* Chat Header */
#mfp-chat-header {
    background-color: var(--mfp-theme-color, #0073aa);
    color: white;
    padding: 15px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Chat Body */
#mfp-chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

/* Chat Footer/Input Area */
#mfp-chat-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: white;
}

#mfp-chat-footer form {
    display: flex;
}

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

#mfp-chat-send-btn {
    background-color: var(--mfp-theme-color, #0073aa);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Chat Messages */
.mfp-chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
}

.mfp-chat-message-user {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.mfp-chat-message-ai {
    background-color: #e5e5e5;
    color: #333;
    align-self: flex-start;
}

/* Proactive Message */
#mfp-proactive-message {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
}

#mfp-proactive-message span {
    margin-right: 10px;
}

#mfp-proactive-message button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

/* Typing Indicator */
#mfp-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: mfp-typing-blink 1.4s infinite both;
}

#mfp-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

#mfp-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mfp-typing-blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

