/* CSS Variables come from Elementor colors */
:root {
    --mp-error: #e63946;
}

#mp-chatbot-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

#mp-chatbot-toggle {
    background: var(--e-global-color-primary);
    color: #1c1c1c;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    line-height: 24px;
    /* Positioning styles */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

#mp-chatbot-box {
    /* Position Styling */
    position: fixed;
    bottom: 80px;
    right: 25px;
    background-color: #EEE;
    border: 1px solid #DDD;
    border-radius: .5rem;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    margin-bottom: 10px;
    z-index: 1000;
}

#mp-chatbot-header {
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: .5rem;
    border-bottom: 1px solid #1c1c1c; 
}

#mp-chatbot-content {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: .9rem;
}

#mp-chatbot-form {
    display: flex;
    gap: 5px;
}

.chatbot-input-general {
    font-size: .9rem;
    width: 100%;
    padding: .5rem;
    border: 1px solid #CCC;
}

#mp-chatbot-input {
    /* Chatbot input height is controlled using JavaScript */
    font-size: .9rem;
    resize: none;
    overflow-y: auto;
    height: auto;
}

#mp-chatbot-input.error {
    border: solid 1px var(--mp-error);
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.5);
}

#mp-chatbot-box button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

#mp-chatbot-hint {
    display: block;
    margin-top: .25rem;
    font-size: .75rem;
    color: #666;
    font-style: italic;
}

#mp-chatbot-voice {
    margin-top: 5px;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
}

#mp-language-toggle {
    display: flex;
    gap: .5rem;
}

#mp-language-toggle button {
    font-size: 1.5rem;
    background: none;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}

#mp-language-toggle button.active {
    border-color: #333;
}

.mp-success {
    color: green;
    font-weight: 600;
}

.mp-error {
    color: var(--mp-error);
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #mp-chatbot-hint {
        display: none;
    }
}