/**
 * LPN Cuotas — Frontend CSS
 * Replica el aspecto de las imágenes de referencia:
 * - .lpn-cuotas--compact: para shop/listado (texto en gris, sin iconos)
 * - .lpn-cuotas--full: para página de producto (caja con iconos amarillos)
 */

.lpn-cuotas {
	--lpn-cuotas-bg: #ffffff;
	--lpn-cuotas-border: #e5e7eb;
	--lpn-cuotas-text: #111827;
	--lpn-cuotas-muted: #6b7280;
	--lpn-cuotas-accent: #FFC400;
	--lpn-cuotas-radius: 12px;
	font-family: inherit;
	color: var(--lpn-cuotas-text);
	box-sizing: border-box;
}

.lpn-cuotas *,
.lpn-cuotas *::before,
.lpn-cuotas *::after {
	box-sizing: border-box;
}

.lpn-cuotas__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.lpn-cuotas__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Icono personalizado: <img> de PNG/SVG/JPG subido por el usuario.
   max-* + auto en lugar de width:100% para que SVGs sin width/height
   nativos no se rendericen a su tamaño natural (que puede ser enorme). */
.lpn-cuotas__icon--custom {
	overflow: hidden;
}

.lpn-cuotas__icon--custom img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* ============================================== */
/* COMPACT (shop card / listado)                  */
/* Texto en línea con prefijo coloreado (5 letras) */
/* ============================================== */
.lpn-cuotas--compact {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
}

.lpn-cuotas--compact .lpn-cuotas__row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 1px 0;
	color: #6b7280;
}

.lpn-cuotas__compact-prefix {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
	min-width: 42px;
}

.lpn-cuotas__compact-amount {
	font-size: 13px;
	color: #4b5563;
}

/* ============================================== */
/* FULL (página de producto, carrito, etc.)       */
/* Imagen 2 y 3: caja con iconos amarillos        */
/* ============================================== */
.lpn-cuotas--full {
	background: var(--lpn-cuotas-bg);
	border: 1px solid var(--lpn-cuotas-border);
	border-radius: var(--lpn-cuotas-radius);
	padding: 18px 22px;
	margin: 16px 0;
	max-width: 100%;
}

.lpn-cuotas__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--lpn-cuotas-text);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--lpn-cuotas-border);
}

.lpn-cuotas__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
}

.lpn-cuotas__item + .lpn-cuotas__item {
	border-top: none;
}

.lpn-cuotas--full .lpn-cuotas__icon {
	width: 32px;
	height: 32px;
	color: var(--lpn-cuotas-accent);
}

.lpn-cuotas__content {
	flex: 1;
	min-width: 0;
}

.lpn-cuotas__label {
	font-size: 15px;
	font-weight: 500;
	color: var(--lpn-cuotas-text);
	line-height: 1.3;
}

.lpn-cuotas__sublabel {
	font-size: 12px;
	color: var(--lpn-cuotas-muted);
	margin-top: 2px;
	line-height: 1.3;
}

.lpn-cuotas__amount {
	font-size: 15px;
	font-weight: 600;
	color: var(--lpn-cuotas-muted);
	white-space: nowrap;
	margin-left: auto;
}

.lpn-cuotas__badge {
	display: inline-block;
	background: rgba(255, 196, 0, 0.15);
	color: #b45309;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

.lpn-cuotas__footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--lpn-cuotas-border);
	font-size: 12px;
	color: var(--lpn-cuotas-muted);
	font-style: italic;
}

/* Responsive: en mobile, dejar todo más compacto */
@media (max-width: 480px) {
	.lpn-cuotas--full {
		padding: 14px 16px;
	}

	.lpn-cuotas__item {
		gap: 10px;
	}

	.lpn-cuotas--full .lpn-cuotas__icon {
		width: 26px;
		height: 26px;
	}

	.lpn-cuotas__label,
	.lpn-cuotas__amount {
		font-size: 14px;
	}
}
