
/* MI VETERINARIA ONLINE - ASISTENTE IA */

#vet-ai-widget {
    position: fixed;
    right: 90px;
    bottom: 20px;
    z-index: 1890;
    display: none;
    font-family: inherit;
}

#vet-ai-widget.visible {
    display: block;
}

#vet-ai-button {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 25px;
    color: white;
    background:
        linear-gradient(
            135deg,
            #0d9488,
            #2563eb
        );
    box-shadow:
        0 12px 35px
        rgba(0,0,0,.35);
}

#vet-ai-button:hover {
    transform: translateY(-2px);
}

#vet-ai-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 390px;
    max-height: min(650px,75vh);
    background: #0f172a;
    border:
        1px solid
        rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 24px 70px
        rgba(0,0,0,.48);
}

#vet-ai-panel.visible {
    display: flex;
    flex-direction: column;
}

.vet-ai-header {
    padding: 15px 16px;
    color: white;
    background:
        linear-gradient(
            135deg,
            #0f766e,
            #1d4ed8
        );
}

.vet-ai-header strong {
    display: block;
    font-size: 15px;
}

.vet-ai-header span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    opacity: .82;
}

#vet-ai-messages {
    flex: 1;
    min-height: 260px;
    overflow-y: auto;
    padding: 14px;
    background: #020617;
}

.vet-ai-message {
    max-width: 88%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.vet-ai-message.user {
    margin-left: auto;
    background: #0f766e;
    color: white;
}

.vet-ai-message.assistant {
    margin-right: auto;
    background: #1e293b;
    color: #e2e8f0;
}

.vet-ai-message.error {
    margin-right: auto;
    background:
        rgba(127,29,29,.35);
    color: #fecaca;
}

.vet-ai-sources {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 10px;
}

.vet-ai-suggestions {
    display: flex;
    gap: 6px;
    padding: 9px 12px;
    overflow-x: auto;
    border-top:
        1px solid
        rgba(255,255,255,.06);
    background: #0f172a;
}

.vet-ai-suggestion {
    flex: 0 0 auto;
    border:
        1px solid
        rgba(45,212,191,.22);
    border-radius: 999px;
    background:
        rgba(13,148,136,.08);
    color: #99f6e4;
    padding: 6px 9px;
    font-size: 10px;
    cursor: pointer;
}

.vet-ai-form {
    display: flex;
    gap: 7px;
    padding: 11px;
    border-top:
        1px solid
        rgba(255,255,255,.07);
    background: #0f172a;
}

#vet-ai-input {
    flex: 1;
    min-width: 0;
    border:
        1px solid
        #334155;
    border-radius: 10px;
    background: #020617;
    color: white;
    padding: 10px 11px;
    outline: none;
}

#vet-ai-send {
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    cursor: pointer;
    background: #0d9488;
    color: white;
    font-weight: 700;
}

#vet-ai-send:disabled {
    opacity: .5;
    cursor: wait;
}


@media(max-width:640px) {

    #vet-ai-widget {
        right: 76px;
        bottom: 14px;
    }

    #vet-ai-button {
        width: 54px;
        height: 54px;
    }

    #vet-ai-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 82px;
        width: auto;
        max-height: 72vh;
    }
}


/* RESULTADO MOTOR ASISTENTE */

.vet-ai-mode {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 650;
}

.vet-ai-mode.native {
    color: #5eead4;
}

.vet-ai-mode.openai {
    color: #93c5fd;
}

