/* Tutor GOAS — widget de chat del curso (colores de marca: azul marino y rojo). */
.goas-tutor {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	font-family: inherit;
}

.goas-tutor-toggle {
	background: #102647;
	color: #fff;
	border: 2px solid #e94e5b;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.goas-tutor-toggle:hover {
	background: #e94e5b;
}

.goas-tutor-panel {
	position: absolute;
	right: 0;
	bottom: 60px;
	width: 360px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border: 2px solid #102647;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	color: #222;
}

.goas-tutor-header {
	background: #102647;
	color: #fff;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
}

.goas-tutor-header span {
	font-size: 12px;
	opacity: 0.85;
}

.goas-tutor-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.goas-tutor-notice {
	font-size: 12px;
	background: #f4f4f4;
	margin: 0;
	padding: 8px 12px;
	border-bottom: 1px solid #ddd;
}

.goas-tutor-messages {
	height: 320px;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.goas-tutor-msg {
	max-width: 88%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.goas-tutor-msg-user {
	align-self: flex-end;
	background: #102647;
	color: #fff;
	border-bottom-right-radius: 2px;
}

.goas-tutor-msg-tutor {
	align-self: flex-start;
	background: #f0f0f0;
	color: #222;
	border-bottom-left-radius: 2px;
}

.goas-tutor-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #ddd;
}

.goas-tutor-form input[type="text"] {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 14px;
}

.goas-tutor-form button {
	background: #e94e5b;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.goas-tutor-form button:disabled {
	opacity: 0.6;
	cursor: wait;
}
