/* Estilo del botón flotante */
#satbyte-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa; /* Color primario de WordPress/Satbyte */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Asegurar que esté por encima de otros elementos */
    transition: background-color 0.3s;
}

#satbyte-chat-button:hover {
    background-color: #005177;
}

/* Estilo de la ventana de chat */
#satbyte-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.chat-header {
    padding: 15px;
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    cursor: pointer;
    font-size: 18px;
}

.chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f7f7f7;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#chat-input-field {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

#chat-send-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chat-send-button:hover {
    background-color: #45a049;
}

/* Estilos de los mensajes */
.message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    background-color: #0073aa;
    color: white;
    margin-left: auto; /* Alinear a la derecha */
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #e0e0e0;
    color: #333;
    margin-right: auto; /* Alinear a la izquierda */
    border-bottom-left-radius: 4px;
}

.loading-message {
    font-style: italic;
    color: #666;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.error-message {
    background-color: #ffdddd;
    color: #cc0000;
    font-weight: bold;
}