/* AI Shopping Assistant widget — see includes/frontend-chatbot.php and
   assets/js/chatbot-widget.js. Fixed bottom-right, deliberately plain/
   neutral styling so it doesn't fight a tenant's own theme colors. */

.mp-chat-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mp-chat-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #1f2937;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mp-chat-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 440px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mp-chat-header {
    background: #1f2937;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.mp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.mp-chat-msg--user {
    align-self: flex-end;
    background: #1f2937;
    color: #fff;
    border-bottom-right-radius: 3px;
}

.mp-chat-msg--assistant {
    align-self: flex-start;
    background: #f1f2f4;
    color: #1f2937;
    border-bottom-left-radius: 3px;
}

.mp-chat-typing {
    opacity: 0.6;
}

.mp-chat-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 8px;
    gap: 6px;
}

.mp-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

.mp-chat-form button[type="submit"] {
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}
