#vendeur-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-height: 600px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 10000;
    overflow: hidden;
}

.vendeur-robot-mention {
    background: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.vendeur-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
    max-height: 400px;
}

.vendeur-message {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.vendeur-assistant {
    background: #e8f0fe;
    align-self: flex-start;
}

.vendeur-user {
    background: #dcf8c6;
    align-self: flex-end;
    text-align: right;
}

.vendeur-system {
    background: #f9f9f9;
    color: #888;
    align-self: center;
    font-style: italic;
}

.vendeur-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
}

.vendeur-bouton {
    background: #0056b3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.vendeur-bouton:hover {
    background: #003d82;
}

.vendeur-input-area {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #eee;
    align-items: center;
}

#vendeur-micro {
    font-size: 20px;
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#vendeur-texte {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

#vendeur-envoyer {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#vendeur-envoyer:hover {
    background: #1e7e34;
}

.vendeur-reduire {
    margin-left: 8px; border: 1px solid #ccc; background: #fff; border-radius: 12px;
    padding: 1px 8px; cursor: pointer; font-size: 12px;
}
.vendeur-bulle { display: none; }
#vendeur-widget.vendeur-reduit {
    width: auto; max-height: none; border-radius: 28px; background: transparent; border: 0; box-shadow: none;
}
#vendeur-widget.vendeur-reduit > * { display: none !important; }
#vendeur-widget.vendeur-reduit > .vendeur-bulle {
    display: flex !important; align-items: center; gap: 6px;
    background: #0056b3; color: #fff; border: 0; border-radius: 28px; padding: 12px 16px;
    font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 640px) {
    #vendeur-widget { right: 12px; left: 12px; bottom: 12px; width: auto; max-height: 55vh; }
    #vendeur-widget.vendeur-reduit { left: auto; }
    .vendeur-chat-area { min-height: 80px; max-height: 28vh; }
}
