#ecobot-ai-es-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ecobot-color-primario, #22c55e);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 24px;
    z-index: 9999;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ecobot-ai-es-chatbot {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: 100vw;
    max-height: 75vh;
    background: var(--ecobot-color-fondo, #0f172a);
    color: var(--ecobot-color-texto, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ecobot-ai-es-chatbot.ecobot-es-cerrado {
    display: none;
}

.ecobot-es-encabezado {
    background: linear-gradient(135deg,#22c55e,#06b6d4);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0f172a;
}

.ecobot-es-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.ecobot-es-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.ecobot-es-cerrar {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #0f172a;
}

.ecobot-es-cuerpo {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecobot-es-mensajes {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.ecobot-es-mensaje {
    margin-bottom: 8px;
}

.ecobot-es-texto {
    display: inline-block;
    padding: 8px 11px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.ecobot-es-mensaje.ecobot-es-bot .ecobot-es-texto {
    background: #111827;
    border: 1px solid #1f2937;
}

.ecobot-es-mensaje.ecobot-es-usuario {
    text-align: right;
}

.ecobot-es-mensaje.ecobot-es-usuario .ecobot-es-texto {
    background: #22c55e;
    color: #022c22;
}

.ecobot-es-botones-rapidos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ecobot-es-rapido {
    flex: 1 1 calc(50% - 6px);
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    padding: 6px 9px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ecobot-es-fila-input {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.ecobot-es-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    padding: 7px 10px;
    font-size: 14px;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ecobot-es-enviar {
    border-radius: 999px;
    border: none;
    background: #22c55e;
    color: #022c22;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ecobot-es-stl-subida {
    margin-top: 8px;
    border-top: 1px solid #1f2937;
    padding-top: 6px;
    font-size: 12px;
}

.ecobot-es-stl-estado {
    margin-top: 4px;
}

.ecobot-es-productos {
    margin-top: 6px;
}

.ecobot-es-producto-card {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding: 6px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #111827;
}

.ecobot-es-producto-card img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.ecobot-es-producto-info {
    flex: 1;
}

.ecobot-es-producto-info .nombre {
    font-size: 13px;
    font-weight: 600;
}

.ecobot-es-producto-info .precio {
    font-size: 12px;
    color: #a5b4fc;
}

.ecobot-es-producto-info .acciones a {
    font-size: 12px;
    color: #22c55e;
}

@media (max-width: 600px) {
    #ecobot-ai-es-chatbot {
        bottom: 80px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: 80vh;
    }
}
