/**
 * Estilos frontend — aviso de prerrequisitos y bloqueo de compra.
 */

/* Aviso en la ficha del curso */
.gco-prereq-notice {
	background: #fefefe;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
}

.gco-prereq-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gco-prereq-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.gco-prereq-list li:last-child {
	border-bottom: none;
}

.gco-prereq-check {
	flex-shrink: 0;
	width: 24px;
	text-align: center;
}

.gco-prereq-met .gco-prereq-check {
	color: #00a32a;
}

.gco-prereq-unmet .gco-prereq-check {
	color: #d63638;
}

.gco-prereq-list a {
	color: #1d2327;
	text-decoration: none;
	font-weight: 500;
}

.gco-prereq-list a:hover {
	color: #3858e9;
	text-decoration: underline;
}

/* Badges de tipo */
.gco-prereq-type-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.gco-prereq-type-enrolled {
	background: #e8f4fd;
	color: #0a6abf;
}

.gco-prereq-type-completed {
	background: #edf7ee;
	color: #1a7a2a;
}

/* Bloqueo de compra en entry-box */
.gco-prereq-block-notice {
	background: #fff8f0;
	border: 1px solid #f0c8a0;
	border-radius: 8px;
	padding: 20px;
	margin: 12px 0;
}

.gco-prereq-block-title {
	font-weight: 600;
	color: #9a3412;
	margin-bottom: 8px;
}

.gco-prereq-block-title i {
	margin-right: 6px;
}

.gco-prereq-block-desc {
	color: #78350f;
	font-size: 14px;
	margin-bottom: 10px;
}

.gco-prereq-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gco-prereq-block-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
}

.gco-prereq-block-list a {
	color: #3858e9;
	font-weight: 500;
	text-decoration: none;
}

.gco-prereq-block-list a:hover {
	text-decoration: underline;
}

/* Hint en el loop */
.gco-prereq-locked-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9a3412;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	background: #fff8f0;
	border-radius: 4px;
}
