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

.bbpe-cl {
	--bbpe-cl-accent: #7c3aed;
	--bbpe-cl-accent-soft: #f5f3ff;
	--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; }

/* ── Price Tag variant (marketing) ───────────────────────────────────────── */
.bbpe-cl--pricetag .bbpe-cl__grid {
	display: grid;
	grid-template-columns: repeat(var(--bbpe-cl-cols), 1fr);
}

.bbpe-cl__item--tag {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 26px 18px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.bbpe-cl__item--tag .bbpe-cl__label {
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}

.bbpe-cl__tag-divider {
	width: 100%;
	border-top: 2px dashed #e2e8f0;
	margin: 2px 0;
}

.bbpe-cl__item--tag: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));
}

.bbpe-cl__item--tag.bbpe-cl__item--featured {
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	border-color: transparent;
}
.bbpe-cl__item--tag.bbpe-cl__item--featured .bbpe-cl__label,
.bbpe-cl__item--tag.bbpe-cl__item--featured .bbpe-cl__icon { color: #fff; }
.bbpe-cl__item--tag.bbpe-cl__item--featured .bbpe-cl__icon-wrap { background: rgba(255, 255, 255, 0.2); }
.bbpe-cl__item--tag.bbpe-cl__item--featured .bbpe-cl__tag-divider { border-color: rgba(255, 255, 255, 0.4); }

.bbpe-cl__badge--ribbon {
	top: -10px;
	right: -6px;
	transform: rotate(6deg);
}

/* ── Chart variant (marketing) ───────────────────────────────────────────── */
.bbpe-cl__grid--chart {
	align-items: flex-end;
	min-height: 220px;
}

.bbpe-cl__item--chart {
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 90px;
	height: 200px;
	padding: 0 6px 44px;
	border: none;
	background: transparent;
}

.bbpe-cl__item--chart .bbpe-cl__icon-wrap {
	position: absolute;
	top: 0;
	width: 34px;
	height: 34px;
	background: var(--bbpe-cl-accent-soft);
}
.bbpe-cl__item--chart .bbpe-cl__icon { font-size: 15px; }

.bbpe-cl__chart-bar {
	width: 60%;
	min-height: 10%;
	margin-top: auto;
	border-radius: 8px 8px 0 0;
	background: #e2e8f0;
	transition: filter 0.2s ease, transform 0.2s ease;
	transform-origin: bottom;
}

.bbpe-cl__item--chart .bbpe-cl__label {
	position: absolute;
	bottom: 0;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.bbpe-cl__item--chart:hover .bbpe-cl__chart-bar { filter: brightness(1.08); transform: scaleY(1.03); }

.bbpe-cl__item--chart.bbpe-cl__item--featured .bbpe-cl__chart-bar { background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent)); }
.bbpe-cl__item--chart.bbpe-cl__item--featured .bbpe-cl__label { font-weight: 800; color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent)); }
.bbpe-cl__item--chart .bbpe-cl__badge { top: -10px; }

/* ── Ledger variant (marketing) ──────────────────────────────────────────── */
.bbpe-cl__grid--ledger {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	border-top: 1px dashed #e2e8f0;
}

.bbpe-cl__item--ledger {
	width: 100%;
	border: none;
	border-radius: 0;
	border-bottom: 1px dashed #e2e8f0;
	padding: 14px 6px;
	background: transparent;
}

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

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

.bbpe-cl__item--ledger:hover { background: var(--bbpe-cl-accent-soft); }
.bbpe-cl__item--ledger:hover .bbpe-cl__ledger-arrow { opacity: 1; transform: translateX(0); }

.bbpe-cl__item--ledger.bbpe-cl__item--featured {
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	border-radius: 10px;
	border-bottom-color: transparent;
}
.bbpe-cl__item--ledger.bbpe-cl__item--featured .bbpe-cl__label,
.bbpe-cl__item--ledger.bbpe-cl__item--featured .bbpe-cl__icon { color: #fff; }
.bbpe-cl__item--ledger.bbpe-cl__item--featured .bbpe-cl__ledger-arrow { opacity: 1; color: #fff; }
