#chatbot-witai-container {
	max-width: 600px;
	margin: 20px auto;
	padding: 10px;
	border: 1px solid #ddd;
}

#chat-log {
	height: 300px;
	overflow-y: auto;
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
}

#chatbot-form input[type="text"] {
	width: 80%;
	padding: 10px;
	border: 1px solid #ccc;
}

#chatbot-form button {
	padding: 10px 20px;
	border: none;
	background: #0073aa;
	color: #fff;
	cursor: pointer;
}

.user-message {
	margin-bottom: 10px;
}

.bot-response,
.system-message,
.admin-message {
	margin-bottom: 10px;
	background: #f1f1f1;
	padding: 10px;
}

/* Estilos para los enlaces en los mensajes del bot */
.bot-response a,
.admin-message a,
.system-message a {
	color: #0073aa;
	text-decoration: underline;
	cursor: pointer;
}

.bot-response a:hover,
.admin-message a:hover,
.system-message a:hover {
	color: #005177;
	text-decoration: underline;
}

/* FLOATING CHATBOT */
/* Contenedor principal flotante */
#chatbot-witai-floating {
	position: fixed;
	bottom: 60px;
	right: 20px;
	z-index: 9999;
	font-family: Arial, sans-serif;
}

/* Estilo de la burbuja inicial */
#chatbot-witai-bubble {
	width: 70px;
	height: 70px;
	background: #0073aa;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

#chatbot-witai-bubble img {
	width: 100%;
	filter: brightness(0) invert(1);
}

/* Ventana de conversación (inicialmente oculta) */
#chatbot-witai-window {
	width: 320px;
	max-width: 100%;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

/* Cabecera de la ventana */
#chatbot-witai-header {
	background: #0073aa;
	color: #fff;
	padding: 10px;
	text-align: center;
	position: relative;
	font-weight: bold;
}

/* Botón de cerrar (minimizar la ventana) */
#chatbot-witai-close {
	position: absolute;
	right: 10px;
	top: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

#chatbot-witai-floating .swal2-popup {
    font-family: Arial, sans-serif !important;
}

/* Botón de limpiar chat */
#chatbot-witai-clear {
    position: absolute;
    left: 0;
}

/* Contenedor de mensajes (chat log) */
#floating-chat-log {
	max-height: 300px;
	overflow-y: auto;
	padding: 10px;
}

/* Estilos para los enlaces en el chat flotante */
#floating-chat-log a {
	color: #0073aa;
	text-decoration: underline;
	cursor: pointer;
}

#floating-chat-log a:hover {
	color: #005177;
	text-decoration: underline;
}

/* Formulario del chat */
#floating-chat-form {
	display: flex;
	border-top: 1px solid #ccc;
}

#floating-chat-form input[type="text"] {
	flex: 1;
	padding: 10px;
	border: none;
	border-bottom-left-radius: 8px;
}

#floating-chat-form button {
	padding: 10px;
	background: #0073aa;
	border: none;
	color: #fff;
	border-bottom-right-radius: 8px;
	cursor: pointer;
}

.floating-bot-response.bot-response a {
	text-decoration: underline;
}

/* Listado de chats en frontend */
.page #grve-content #chatbot-conversations-table button, .page #grve-content #chatbot-conversations-table .grve-btn {
    padding: 8px 20px;
    display: inline-block;
    background: #0073aa;
    color: #fff;
}

/* Detalle de chat en frontend */
.page #grve-content #wp-agent_reply-wrap button {
    background: initial;
    padding: 2px;
    color: #333;
    border: 1px solid #ddd;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Notificación: bolita en la esquina superior derecha de la burbuja */
#chatbot-notification-dot {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 12px;
	height: 12px;
	background: red;
	border-radius: 50%;
	display: none;
}