/**
 * Shared pagination chrome (Integrations archive look).
 *
 * API: .wsft-pagination
 * Registered as `ws-form-pagination` in includes/blocks.php.
 *
 * Optional: add class `wsft-pagination` to core/query-pagination where desired.
 * Do not apply on Home / Pricing.
 */

.wsft-pagination {
	margin-top: 2rem;
}

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

.wsft-pagination .page-numbers,
.wsft-pagination .wp-block-query-pagination-numbers {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsft-pagination .page-numbers li {
	margin: 0;
}

.wsft-pagination a.page-numbers,
.wsft-pagination span.page-numbers,
.wsft-pagination .wp-block-query-pagination-previous,
.wsft-pagination .wp-block-query-pagination-next,
.wsft-pagination .page-numbers .page-numbers {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius, 0.125rem);
	color: var(--wp--preset--color--logo-blue);
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 300;
	min-width: 2.25rem;
	padding: 0.5rem 0.75rem;
	text-align: center;
	text-decoration: none;
}

.wsft-pagination a.page-numbers:hover,
.wsft-pagination .wp-block-query-pagination-previous:hover,
.wsft-pagination .wp-block-query-pagination-next:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-blue) 55%, white);
}

.wsft-pagination span.page-numbers.current,
.wsft-pagination .page-numbers .current {
	background: color-mix(in srgb, var(--wp--preset--color--accent-blue) 12%, white);
	border-color: var(--wp--preset--color--accent-blue);
	font-weight: 600;
}

.wsft-pagination .page-numbers.dots {
	border-color: transparent;
}
