*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
}

#typing-indicator .dot {
    display: inline-block;
    animation-name: blink;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

#typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

#typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

#typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.cb-container {
    color: #eee;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    z-index: 9999;
    background: #010101;


    display: flex;
    flex-direction: column;
    font-size: .9em;


    resize: both;
    /* Permite redimensionar en horizontal y vertical */
    overflow: auto;
    /* Para que aparezcan barras de scroll si es necesario */

    max-width: 90vw;
    /* Limita tamaño máximo (opcional) */
    max-height: 80vh;
    border: 1px solid #ccc;


    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;

}

.cb-header {
    background: #222;

    padding: 8px;
    cursor: move;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
}

.cb-toogle {
    background: #444;
    border: none;

    border-radius: 4px;
    cursor: pointer;
    padding: 2px 6px;
}

.cb-output {

    margin: 10px;

    max-height: 500px;
    overflow-y: auto;
    flex-grow: 1;

}

.cb-input {


    margin: 10px;
    padding: 5px;

    border: 1px solid #ccc;
    border-radius: 4px;
}

.cb-avatar {
    text-align: center;
    margin: 10px 0;
}

.cb-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cb-message {
    margin-block: .5em;
}

.cb-message-user {
        background: #0F0F0F;
            padding: .2em .5em;
}