/* Production Pilot 1: all catalog rules are intentionally namespaced. */
.credit-card-catalog {
	margin: 24px 0 40px;
	min-width: 0;
}

.credit-card-catalog__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.credit-card-catalog__title {
	margin: 0;
}

.credit-card-catalog__count {
	color: #68707c;
	font-size: 14px;
	white-space: nowrap;
}

.credit-card-catalog__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.credit-card-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 22px;
	border: 1px solid #e2e6ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(24, 35, 52, .06);
}

.credit-card-card__topline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.credit-card-card__bank {
	color: #68707c;
	font-size: 14px;
	font-weight: 600;
}

.credit-card-card__marker {
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f2f5f8;
	color: #586271;
	font-size: 12px;
	line-height: 1.25;
	text-align: right;
}

.credit-card-card__name {
	margin: 10px 0 18px;
	font-size: 20px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.credit-card-card__name a {
	color: inherit;
	text-decoration: none;
}

.credit-card-card__name a:hover,
.credit-card-card__name a:focus-visible {
	text-decoration: underline;
}

.credit-card-card__metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.credit-card-card__metric {
	min-width: 0;
	padding: 10px 12px;
	border-radius: 9px;
	background: #f7f8fa;
}

.credit-card-card__metric span,
.credit-card-card__metric strong {
	display: block;
	overflow-wrap: anywhere;
}

.credit-card-card__metric span {
	margin-bottom: 4px;
	color: #68707c;
	font-size: 12px;
	line-height: 1.3;
}

.credit-card-card__metric strong {
	font-size: 15px;
	line-height: 1.3;
}

.credit-card-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: auto;
	padding: 10px 18px;
	border-radius: 8px;
	background: #1769e0;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.credit-card-card__cta:hover,
.credit-card-card__cta:focus-visible {
	background: #1259be;
	color: #fff;
}

.credit-card-catalog__empty {
	padding: 24px;
	border: 1px solid #e2e6ec;
	border-radius: 12px;
}

@media (max-width: 767px) {
	.credit-card-catalog__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.credit-card-catalog__count {
		white-space: normal;
	}

	.credit-card-catalog__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.credit-card-card {
		padding: 16px;
	}
}

@media (max-width: 359px) {
	.credit-card-card__topline {
		align-items: flex-start;
		flex-direction: column;
	}

	.credit-card-card__marker {
		text-align: left;
	}

	.credit-card-card__metrics {
		grid-template-columns: minmax(0, 1fr);
	}
}
