/* Manual Order Products — frontend grid
   Forces a clean CSS-grid layout so columns work in any theme,
   overriding WooCommerce's default float-based loop styling. */

.mop-products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* overridden by the Columns control */
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Kill WooCommerce's clearfix pseudo-elements that break the grid. */
.mop-products ul.products::before,
.mop-products ul.products::after {
	content: none !important;
	display: none !important;
}

.mop-products ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	clear: none !important;
	list-style: none;
}

.mop-products ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 1em;
}

.mop-products ul.products li.product .button {
	display: inline-block;
}

/* Editor placeholder when no products are selected yet. */
.mop-empty {
	padding: 20px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
	font-size: 13px;
}
