#mcp-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: Arial, sans-serif;
    width: 60px;
    height: 60px;
}

#mcp-chatbot-trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: #102e5c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    font-size: 24px;
    transition: transform 0.2s;
}

#mcp-chatbot-trigger:hover {
    transform: scale(1.05);
}

#mcp-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #102e5c;
}

.mcp-chatbot-header {
    background-color: #102e5c;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcp-chatbot-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mcp-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#mcp-chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcp-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.mcp-message.mcp-user {
    align-self: flex-end;
}

.mcp-message.mcp-bot {
    align-self: flex-start;
}

.mcp-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.mcp-user .mcp-bubble {
    background-color: #e9ecef;
    color: #333;
    border-bottom-right-radius: 2px;
}

.mcp-bot .mcp-bubble {
    background-color: #e4e7f3;
    color: #333;
    border-bottom-left-radius: 2px;
}

.mcp-chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: white;
}

#mcp-search-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    outline: none;
}

#mcp-search-btn {
    background: #102e5c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
}

/* Formattage des résultats produits dans le chat */
.mcp-product-list { margin-top: 10px; padding: 0; list-style: none; font-size: 13px;}
.mcp-product-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ccc; }
.mcp-product-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.mcp-product-list a { color: #102e5c; font-weight: bold; text-decoration: none; }
.mcp-product-list a:hover { text-decoration: underline; }

/* Boutons d'options cliquables */
.mcp-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 0;
}

.mcp-option-btn {
    background-color: #102e5c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.mcp-option-btn:hover:not(:disabled) {
    background-color: #1a4a8a;
}

.mcp-option-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Animation de frappe (3 points) */
.mcp-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}

.mcp-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: mcp-dot-bounce 1.4s infinite ease-in-out;
}

.mcp-typing span:nth-child(1) { animation-delay: 0s; }
.mcp-typing span:nth-child(2) { animation-delay: 0.2s; }
.mcp-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes mcp-dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
