/* ── BB Premium: Credit by Term ────────────────────────────────────────────
 * Shared "Credit Links" base (identical in credit-by-city.css / credit-by-amount.css)
 * + a unique "timeline" marketing variant for this widget.
 * ────────────────────────────────────────────────────────────────────────── */

.bbpe-cl {
	--bbpe-cl-accent: #0d9488;
	--bbpe-cl-accent-soft: #f0fdfa;
	--bbpe-cl-cols: 3;
	--bbpe-cl-gap: 16px;
	--bbpe-cl-justify: flex-start;
	width: 100%;
}

.bbpe-cl__heading {
	margin: 0 0 1.25rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.bbpe-cl__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bbpe-cl-gap);
	justify-content: var(--bbpe-cl-justify);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Item base (shared by pills & cards) ─────────────────────────────────── */
.bbpe-cl__item {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0f172a;
	background: #fff;
	border: 1px solid #e2e8f0;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.bbpe-cl__item--featured {
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}

.bbpe-cl__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent-soft));
}

.bbpe-cl__icon {
	font-size: 22px;
	line-height: 1;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}
.bbpe-cl__icon svg { width: 1em; height: 1em; fill: currentColor; }

.bbpe-cl__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.bbpe-cl__badge {
	position: absolute;
	top: -10px;
	right: 14px;
	background: var(--bbpe-cl-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	z-index: 1;
}

/* Used by list-row variants (stack / ledger) where the badge sits inline
 * instead of floating above the item. */
.bbpe-cl__badge--inline {
	position: static;
	transform: none;
	margin: 0 8px;
}

/* ── Pills variant ────────────────────────────────────────────────────────── */
.bbpe-cl--pills .bbpe-cl__item {
	padding: 10px 20px;
	border-radius: 999px;
}
.bbpe-cl--pills .bbpe-cl__icon-wrap { width: 28px; height: 28px; background: transparent; }
.bbpe-cl--pills .bbpe-cl__icon { font-size: 16px; }
.bbpe-cl--pills .bbpe-cl__item:hover {
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: #fff;
	transform: translateY(-2px);
}
.bbpe-cl--pills .bbpe-cl__item:hover .bbpe-cl__icon { color: #fff; }

/* ── Cards variant ────────────────────────────────────────────────────────── */
.bbpe-cl--cards .bbpe-cl__grid {
	display: grid;
	grid-template-columns: repeat(var(--bbpe-cl-cols), 1fr);
}
.bbpe-cl--cards .bbpe-cl__item {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 28px 16px;
	border-radius: 14px;
}
.bbpe-cl--cards .bbpe-cl__icon-wrap { width: 60px; height: 60px; }
.bbpe-cl--cards .bbpe-cl__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}

/* ── View all link ────────────────────────────────────────────────────────── */
.bbpe-cl__view-all-wrap {
	display: flex;
	margin-top: 1.5rem;
}
.bbpe-cl__view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bbpe-cl-accent);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9375rem;
}
.bbpe-cl__view-all:hover { text-decoration: underline; }
.bbpe-cl__view-all-icon { font-size: 13px; line-height: 1; display: inline-flex; }
.bbpe-cl__view-all-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ── Timeline variant (marketing) ────────────────────────────────────────── */
.bbpe-cl__grid--timeline {
	position: relative;
	align-items: flex-start;
	padding-top: 6px;
}

.bbpe-cl__timeline-line {
	position: absolute;
	top: 32px;
	left: 5%;
	right: 5%;
	height: 2px;
	background: repeating-linear-gradient(to right, var(--bbpe-cl-accent) 0 8px, transparent 8px 14px);
	opacity: 0.5;
	z-index: 0;
}

.bbpe-cl__item--step {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	background: transparent;
	border: none;
	padding: 0 12px;
	z-index: 1;
	flex: 1 1 120px;
}

.bbpe-cl__item--step .bbpe-cl__icon-wrap {
	background: #fff;
	border: 2px solid var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.bbpe-cl__item--step .bbpe-cl__label { font-size: 0.9375rem; }

.bbpe-cl__item--step:hover .bbpe-cl__icon-wrap {
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: #fff;
	transform: scale(1.08);
}

.bbpe-cl__item--step.bbpe-cl__item--featured .bbpe-cl__icon-wrap {
	width: 68px;
	height: 68px;
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: #fff;
}
.bbpe-cl__item--step.bbpe-cl__item--featured .bbpe-cl__label {
	font-weight: 800;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}
.bbpe-cl__item--step .bbpe-cl__badge {
	position: static;
	margin-bottom: 4px;
}

@media (max-width: 700px) {
	.bbpe-cl__timeline-line { display: none; }
	.bbpe-cl__grid--timeline { flex-direction: column; align-items: stretch; }
	.bbpe-cl__item--step { flex-direction: row; text-align: left; }
}

/* ── Progress Bar variant (marketing) ────────────────────────────────────── */
.bbpe-cl__grid--progress {
	position: relative;
	align-items: flex-start;
	padding-top: 26px;
}

.bbpe-cl__progress-track {
	position: absolute;
	top: 42px;
	left: 5%;
	right: 5%;
	height: 6px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
	z-index: 0;
}

.bbpe-cl__progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--bbpe-cl-accent);
	transition: width 0.3s ease;
}

.bbpe-cl__item--progress-stop {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	background: transparent;
	border: none;
	padding: 0 10px;
	z-index: 1;
	flex: 1 1 100px;
}

.bbpe-cl__item--progress-stop .bbpe-cl__icon-wrap {
	width: 34px;
	height: 34px;
	background: #fff;
	border: 3px solid #e2e8f0;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	transition: border-color 0.25s ease, transform 0.25s ease;
}
.bbpe-cl__item--progress-stop .bbpe-cl__icon { font-size: 15px; }
.bbpe-cl__item--progress-stop .bbpe-cl__label { font-size: 0.875rem; }

.bbpe-cl__item--progress-stop:hover .bbpe-cl__icon-wrap {
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	transform: scale(1.1);
}

.bbpe-cl__item--progress-stop.bbpe-cl__item--featured .bbpe-cl__icon-wrap {
	width: 42px;
	height: 42px;
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: #fff;
}
.bbpe-cl__item--progress-stop.bbpe-cl__item--featured .bbpe-cl__label {
	font-weight: 800;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}
.bbpe-cl__item--progress-stop .bbpe-cl__badge { position: static; margin-bottom: 4px; }

@media (max-width: 700px) {
	.bbpe-cl__progress-track { display: none; }
	.bbpe-cl__grid--progress { flex-direction: column; align-items: stretch; padding-top: 0; }
	.bbpe-cl__item--progress-stop { flex-direction: row; text-align: left; }
}

/* ── Stack variant (marketing) ───────────────────────────────────────────── */
.bbpe-cl__grid--stack {
	flex-direction: column;
	flex-wrap: nowrap;
}

.bbpe-cl__item--stack {
	width: 100%;
	padding: 14px 18px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	border-left: 4px solid transparent;
}

.bbpe-cl__item--stack .bbpe-cl__icon-wrap { width: 40px; height: 40px; }
.bbpe-cl__item--stack .bbpe-cl__label { margin-right: auto; }

.bbpe-cl__stack-arrow {
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	opacity: 0.4;
	transition: opacity 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.bbpe-cl__item--stack:hover {
	border-left-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.bbpe-cl__item--stack:hover .bbpe-cl__stack-arrow { opacity: 1; transform: translateX(4px); }

.bbpe-cl__item--stack.bbpe-cl__item--featured {
	background: var(--bbpe-cl-accent-soft);
	border-left-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	border-color: transparent;
}
.bbpe-cl__item--stack.bbpe-cl__item--featured .bbpe-cl__stack-arrow { opacity: 1; }
