/**
 * Copyright © WebbyTroops Technologies. All rights reserved.
 *
 * Pagination. The .pages / .items / .page class names are WT_CS_Pager's output and
 * are shared with the legacy listing until phase 3, so they are restyled here
 * rather than renamed.
 */

.wt-cs-pager {
	margin-top: var(--wt-cs-space-lg);
}

.wt-cs-pager .pages-label,
.wt-cs-pager .label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wt-cs-pager .items {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wt-cs-space-xs);
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.wt-cs-pager .item {
	margin: 0;
}

.wt-cs-pager .page,
.wt-cs-pager .action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0 0.6rem;
	font-size: 0.9375rem;
	color: var(--wt-cs-color-text);
	text-decoration: none;
	background-color: var(--wt-cs-color-base);
	border: 1px solid var(--wt-cs-color-border);
	border-radius: var(--wt-cs-radius-sm);
	transition: color var(--wt-cs-transition), border-color var(--wt-cs-transition);
}

.wt-cs-pager a.page:hover,
.wt-cs-pager a.action:hover {
	color: var(--wt-cs-color-heading);
	border-color: var(--wt-cs-color-accent);
}

.wt-cs-pager .item.current .page {
	font-weight: 700;
	color: var(--wt-cs-color-base);
	background-color: var(--wt-cs-color-heading);
	border-color: var(--wt-cs-color-heading);
}
