/* Layout Foundry Gang Sheets: product page. The builder itself is styled inside its shadow root. */
.lfgs-builder {
	margin: 0 0 1.5em;
	max-width: 100%;
}

.lfgs-builder layout-foundry-gang-sheet {
	display: block;
	max-width: 100%;
}

.lfgs-status {
	margin: 0.75em 0 0;
}

form.cart button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.6;
}

/*
 * Wide screens: the builder needs room. WooCommerce gives the summary (and the builder inside it)
 * 48% of the product area, and a theme that also makes the product a two-column grid halves that
 * again. On builder products the picture takes a narrow first column and the summary the rest;
 * tabs, related products and anything else WooCommerce prints go full width below.
 */
@media (min-width: 900px) {
	body.lfgs-builder-product div.product {
		display: grid !important;
		grid-template-columns: minmax(200px, 360px) minmax(0, 1fr);
		column-gap: 32px;
		align-items: start;
	}

	body.lfgs-builder-product div.product::before,
	body.lfgs-builder-product div.product::after {
		content: none !important;
		display: none !important;
	}

	body.lfgs-builder-product div.product > * {
		grid-column: 1 / -1;
		min-width: 0;
	}

	body.lfgs-builder-product div.product > div.images,
	body.lfgs-builder-product div.product > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
		width: auto !important;
		max-width: 360px;
		float: none !important;
		margin: 0 !important;
	}

	body.lfgs-builder-product div.product > div.summary {
		grid-column: 2;
		grid-row: 1;
		width: auto !important;
		float: none !important;
		margin: 0 !important;
	}

	/* The builder, with the sheet beside the designs, is wider than the product text needs. */
	body.lfgs-builder-product div.product > div.summary > :not(form),
	body.lfgs-builder-product div.product > div.summary table.variations {
		width: auto;
		max-width: 46em;
	}
}
