/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Estilos para el contenedor del chat */
#chat-container {
    width: 300px;
    height: 50vh;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    display: none;
}

/* Estilos para el encabezado del chat */
#chat-header {
    background-color: rgb(245, 130, 31);
    color: white;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Estilos para el cuerpo del chat */
#chat-body {
    padding: 10px;
    background-color: white;
    height: calc(100% - 50px);
    overflow-y: scroll;
}

/* Estilos para los mensajes */
.message {
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 70%;
    position: relative;
    padding-left: 10px;
    /* Ajustamos el padding para dejar espacio a la imagen */
}

.user-message {
    background-color: rgb(0, 114, 188);
    color: white;
    align-self: flex-end;
    text-align: right;
    margin-left: 20% !important;
}

.bot-message {
    background-color: rgb(245, 130, 31);
    color: white;
    align-self: flex-start;
    text-align: left;
    margin-left: 30px !important;
}

.welcome-message {
    background-color: rgb(245, 130, 31);
    color: white;
    align-self: flex-start;
    text-align: left;
    font-size: 16px;
}

.option {
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 70%;
    font-size: 0.8rem;
    background-color: rgb(245, 130, 31);
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.close-btn {
    cursor: pointer;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

#open-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgb(245, 130, 31);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
}

/* Estilos para la clase first-message */
.first-message {
    position: relative;
    padding-left: 10px;
    /* Ajustamos el padding para dejar espacio a la imagen */
}

/* Estilos para la imagen del bot */
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Espacio entre la imagen y el mensaje */
}

/* Estilos para los mensajes */
.message-container {
    display: flex;
    /* Mostrar la imagen y el mensaje uno al lado del otro */
    align-items: center;
    /* Alinear verticalmente al centro */
    margin-bottom: 10px;
    /* Espacio entre mensajes */
}

#chat-options {
    margin-left: 30px !important;
}