/* Compact catalogue pagination matching the Reader Diary section. */
.mlb-tests-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 1.4rem 0 0;
}

.mlb-tests-pagination[hidden] {
	display: none !important;
}

.mlb-tests-pagination__button,
.mlb-tests-pagination__status {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0 0.78rem;
	border: 1px solid #ded9fb;
	border-radius: 11px;
	background: #fff;
	color: #4b3b91;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 5px 16px rgba(53, 39, 112, 0.06);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.mlb-tests-pagination__button:hover,
.mlb-tests-pagination__button:focus-visible {
	border-color: #6f4ef2;
	outline: none;
	transform: translateY(-1px);
}

.mlb-tests-pagination__button[aria-current="page"] {
	border-color: #6f4ef2;
	background: #6f4ef2;
	color: #fff;
	box-shadow: 0 8px 18px rgba(111, 78, 242, 0.22);
}

.mlb-tests-pagination__button:disabled {
	opacity: 0.42;
	cursor: default;
	transform: none;
}

.mlb-tests-pagination__gap {
	display: inline-flex;
	min-width: 24px;
	height: 42px;
	align-items: center;
	justify-content: center;
	color: #8b86a3;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
}

.mlb-tests-pagination__status {
	min-width: auto;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: #667085;
	cursor: default;
}

@media (max-width: 520px) {
	.mlb-tests-pagination {
		gap: 0.35rem;
	}

	.mlb-tests-pagination__button {
		min-width: 38px;
		height: 38px;
		padding: 0 0.62rem;
		font-size: 0.82rem;
	}

	.mlb-tests-pagination__gap {
		min-width: 18px;
		height: 38px;
	}

	.mlb-tests-pagination__status {
		order: -1;
		flex-basis: 100%;
		height: auto;
		padding: 0 0 0.25rem;
	}
}

@media print {
	.mlb-tests-pagination {
		display: none !important;
	}

	.mlb-tests-card[hidden] {
		display: block !important;
	}
}
