/**
 * Products Toolbar – Stylesheet
 *
 * @package BricksChild
 * @since   1.0.0
 */

/* ─── Root ─────────────────────────────────────────────────────────────────── */

.products-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

/* ─── Per-page section ─────────────────────────────────────────────────────── */

.products-toolbar__per-page {
	display: flex;
	align-items: center;
	gap: 8px;
}

.products-toolbar__label {
	font-weight: 500;
	white-space: nowrap;
}

.products-toolbar__per-page-list {
	display: flex;
	align-items: center;
	gap: 3px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.products-toolbar__per-page-item {
	display: flex;
	align-items: center;
}

.products-toolbar__per-page-link {
	display: inline-flex;
	align-items: center;
	padding: 0 2px;
	text-decoration: none;
	color: inherit;
	opacity: 0.45;
	font-weight: 400;
	transition: opacity 0.2s ease, color 0.2s ease;
	line-height: 1;
}

.products-toolbar__per-page-link:hover {
	opacity: 0.9;
}

.products-toolbar__per-page-item.is-active .products-toolbar__per-page-link {
	opacity: 1;
	font-weight: 600;
	color: currentColor;
}

.products-toolbar__separator {
	opacity: 0.3;
	pointer-events: none;
	user-select: none;
	line-height: 1;
}

/* ─── Columns section ──────────────────────────────────────────────────────── */

.products-toolbar__columns {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto; /* push to the right */
}

.products-toolbar__column-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	opacity: 0.35;
	transition: opacity 0.2s ease, color 0.2s ease;
	border-radius: 3px;
	line-height: 0;
}

.products-toolbar__column-btn:hover {
	opacity: 0.75;
}

.products-toolbar__column-btn.is-active {
	opacity: 1;
}

.products-toolbar__column-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}
