/* Applies inside WooCommerce's native embed, including narrow article columns. */
.wp-embed.type-product {
	box-sizing: border-box;
	padding: clamp(12px, 4vw, 24px);
	border-radius: 12px;
	overflow-wrap: anywhere;
}

.wp-embed.type-product .wp-embed-featured-image,
.wp-embed.type-product .wp-embed-featured-image.square {
	float: none;
	width: auto;
	max-width: none;
	margin: 0 0 12px;
}

.wp-embed.type-product .wp-embed-featured-image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 210px;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.wp-embed.type-product .wp-embed-excerpt { min-width: 0; }
.wp-embed.type-product .wc-embed-price { margin: 0; opacity: 1; color: #9b1f21; }
.wp-embed.type-product .woocommerce-Price-amount { white-space: nowrap; overflow-wrap: normal; }
.wp-embed.type-product a.wc-embed-button { margin: 0 4px 4px 0; max-width: 100%; box-sizing: border-box; }
.wp-embed.type-product .wp-embed-footer { margin-top: 12px; }
.wp-embed.type-product .wp-embed-site-title { line-height: 1.4; }
.wp-embed.type-product .wp-embed-meta { padding-left: 8px; }

@media (min-width: 480px) {
	.wp-embed.type-product {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		column-gap: 18px;
	}

	.wp-embed.type-product:has(.wp-embed-featured-image.square) {
		grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
	}

	.wp-embed.type-product > :not(.wp-embed-featured-image.square, .wp-embed-excerpt) {
		grid-column: 1 / -1;
	}
}
