#ivcChatBurbuja {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 1990;
    cursor: pointer;
}

#ivcChatBurbuja:hover {
    background: #0b5ed7;
}

#ivcChatPanel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    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.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1990;
}

.ivc-chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.ivc-chat-cerrar {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.ivc-chat-mensajes {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
}

.ivc-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ivc-chat-msg-user {
    align-self: flex-end;
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ivc-chat-msg-bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.ivc-chat-msg-provisional {
    opacity: 0.6;
    font-style: italic;
}

.ivc-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.ivc-chat-form input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.ivc-chat-form input:focus {
    outline: none;
    border-color: #0d6efd;
}

.ivc-chat-form button {
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    cursor: pointer;
}

.ivc-chat-form button:hover {
    background: #0b5ed7;
}

@media (max-width: 400px) {
    #ivcChatPanel {
        right: 10px;
        left: 10px;
        width: auto;
    }

    #ivcChatBurbuja {
        right: 16px;
        bottom: 16px;
    }
}
