/* Alvaropegr Plazos — widget informativo estilo "paga en N plazos" */

.bp-widget {
	--bp-brand: #0a0a0a;
	--bp-accent: #ffb3c7;
	--bp-radius: 14px;
	--bp-muted: #6b6b6b;
	--bp-line: #e6e6e6;
	--bp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bp-size: 14px;
	font-family: var(--bp-font);
	font-size: var(--bp-size);
	color: var(--bp-brand);
	box-sizing: border-box;
}
.bp-widget *,
.bp-widget *::before,
.bp-widget *::after {
	box-sizing: border-box;
}

.bp-logo {
	display: inline-block;
	width: auto;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- */
/* Versión compacta (producto)                                      */
/* ---------------------------------------------------------------- */
.bp-compact {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	width: 100%;
	margin: 10px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: calc(var(--bp-size) - 1px);
	line-height: 1.4;
	color: var(--bp-muted);
}
.bp-compact-text { color: var(--bp-muted); }
.bp-compact-text strong,
.bp-compact .bp-amount { font-weight: 600; color: var(--bp-brand); }
.bp-compact a {
	color: var(--bp-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.bp-compact a:hover { color: var(--bp-brand); }

/* ---------------------------------------------------------------- */
/* Versión tarjeta (carrito / checkout)                             */
/* ---------------------------------------------------------------- */
.bp-cart-row td,
.bp-checkout-row td { padding: 0 !important; border: 0 !important; }

.bp-card {
	margin: 16px 0;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--bp-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	text-align: left;
}

.bp-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.bp-dot {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	border-radius: 50%;
	border: 4px solid var(--bp-brand);
	background: #fff;
}
.bp-card-titles { flex: 1 1 auto; }
.bp-card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}
.bp-card-subtitle {
	font-size: 14px;
	color: var(--bp-muted);
	margin-top: 1px;
}
.bp-card-head .bp-logo {
	flex: 0 0 auto;
	margin-left: auto;
}

/* Tarjeta dentro de los bloques de Carrito/Checkout */
.bp-block-card {
	margin: 16px 0;
}
.bp-how-content {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--bp-line);
	font-size: 13px;
	line-height: 1.55;
	color: #333;
}
.bp-how-content p { margin: 0 0 8px; }
.bp-how-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bp-how-content a { color: var(--bp-brand); text-decoration: underline; }
.bp-modal-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bp-modal-content a { color: var(--bp-brand); text-decoration: underline; }
.bp-modal-content ul,
.bp-modal-content ol { margin: 0 0 10px 20px; }

/* Línea de tiempo de plazos */
.bp-timeline {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
}
.bp-step { text-align: left; flex: 1 1 0; }
.bp-step:not(:first-child) { text-align: center; }
.bp-step:last-child { text-align: right; }
.bp-step-amount {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.bp-step-label {
	font-size: 12px;
	color: var(--bp-muted);
	margin-top: 2px;
}

/* Barra con nodos */
.bp-track {
	position: relative;
	height: 2px;
	background: var(--bp-line);
	margin: 10px 4px 0;
	border-radius: 2px;
}
.bp-track::before,
.bp-track::after,
.bp-track-fill {
	content: "";
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	background: var(--bp-brand);
	border-radius: 50%;
	transform: translateY(-50%);
}
.bp-track::before { left: 0; }
.bp-track::after { right: 0; }
.bp-track-fill { left: 50%; transform: translate(-50%, -50%); }

/* Bullets */
.bp-bullets {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}
.bp-bullets li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 6px;
}
.bp-bullets li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bp-brand);
}

/* Enlace "¿Cómo funciona?" */
.bp-how {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #1d4ed8;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.bp-how:hover { text-decoration: underline; }
.bp-arrow { font-size: 15px; }

/* ---------------------------------------------------------------- */
/* Modal informativo                                                */
/* ---------------------------------------------------------------- */
.bp-modal[hidden] { display: none; }
.bp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.bp-modal-box {
	position: relative;
	background: #fff;
	border-radius: 18px;
	max-width: 420px;
	width: 100%;
	padding: 28px 26px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: bp-pop 0.18s ease;
}
@keyframes bp-pop {
	from { transform: translateY(8px) scale(0.98); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.bp-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--bp-muted);
	cursor: pointer;
}
.bp-modal-logo { margin-bottom: 14px; }
.bp-modal-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
}
.bp-modal-content {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}
.bp-modal-content p { margin: 0 0 10px; }

/* Responsive */
@media (max-width: 480px) {
	.bp-step-amount { font-size: 14px; }
	.bp-compact { font-size: 13px; }
}
