/*
 * Plain product page — layout repair after the gallery is removed.
 *
 * Enqueued only on a product whose line asks for a plain page (see
 * plain-product-page.php), never site-wide.
 *
 * Astra lays a single product out as two columns and sizes the summary to
 * roughly half. With `woocommerce_show_product_images` removed there is no left
 * column to sit beside, so the summary keeps its width and floats in the middle
 * of the page with a large void to its left. These rules let it take the full
 * width and cap it so the price and the Enroll button do not end up marooned at
 * opposite ends of a wide screen.
 */

.single-product div.product .summary.entry-summary {
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	float: none;
}

/*
 * Astra's own two-column rule is more specific than the above on some layouts,
 * so the container is neutralised as well rather than escalating with !important.
 */
.single-product div.product {
	display: block;
}

/* The gallery column can still be emitted as an empty wrapper by some templates. */
.single-product div.product .woocommerce-product-gallery {
	display: none;
}
