/* Keep the product filter separate from Nitro's result/sort/view toolbar. */
body.tax-product_cat #shop-main .shop-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

body.tax-product_cat #shop-main .shop-actions > .woocommerce-ordering {
	display: contents !important;
}

body.tax-product_cat #shop-main .wpfMainWrapper {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	flex: 0 0 100%;
	order: -10;
	width: 100% !important;
	margin: 0 0 20px !important;
	text-align: left;
}

body.tax-product_cat #shop-main .wpfFilterWrapper,
body.tax-product_cat #shop-main .wpfFilterContent,
body.tax-product_cat #shop-main .wpfCheckboxHier,
body.tax-product_cat #shop-main .wpfFilterVerScroll {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

body.tax-product_cat #shop-main .wpfFilterWrapper {
	height: auto !important;
	margin: 0 !important;
}

body.tax-product_cat #shop-main .wpfFilterVerScroll {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

body.tax-product_cat #shop-main .wpfFilterButtons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	grid-column: 1 / -1;
	height: auto !important;
	margin: 0 !important;
}

body.tax-product_cat #shop-main .woocommerce-result-count {
	order: 0;
}

body.tax-product_cat #shop-main .woocommerce-ordering > .orderby {
	order: 1;
	margin-left: auto;
}

body.tax-product_cat #shop-main .wc-switch {
	order: 2;
}

@media (max-width: 767px) {
	body.tax-product_cat #shop-main .wpfMainWrapper {
		grid-template-columns: 1fr;
	}

	body.tax-product_cat #shop-main .wpfFilterButtons {
		grid-column: 1;
	}
}
