.block-product {
	--cwp-image: 300px;
	position: relative;
	align-items: center;
	border: 4px solid var(--wp--preset--color--nonary);
}

.block-product.hide-border {
	border: none;
}

.block-product.cwp-large,
.block-product.cwp-large.has-background,
.editor-styles-wrapper .wp-block-cwp-product.has-background {
	padding: 0;
}

.block-product .block-product__inner,
.editor-styles-wrapper .block-product .block-product__inner {
	gap: 0;
}

/*.block-product .block-product__inner > * {
	align-self: stretch;
}*/

.block-product__content {
	flex-basis: 0;
	flex-grow: 1;
	padding: var(--wp--custom--layout--block-gap);
	border: 2px solid var(--wp--preset--color--background);
}

/*.block-product .block-product__content,
.editor-styles-wrapper .block-product .block-product__content {
	margin: 30px;
}
*/
.block-product__image .wp-block-image {
	display: flex;
	flex-direction: column;
	position: relative;
/*	height: 100%;*/
}

.block-product__image .wp-block-image > * {
	flex-grow: 1;
}

.block-product__image .wp-block-image .wp-element-caption {
	flex-grow: 0;
}

.block-product__image .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media only screen and (max-width: 760px) {

	.block-product__inner {
		flex-direction: column;
	}

	.block-product__inner > * {
		align-self: stretch;
	}

	/*.block-product .block-product__content {
		margin: var(--wp--custom--layout--block-gap);
	}*/

}

@media only screen and (min-width: 761px) {

	.block-product__image {
		max-width: var(--cwp-image);
		width: 100%;
		height: auto;
	}

	/*.block-product__image .wp-block-image img {
		position: absolute;
	}*/

	.block-product__content {
		padding: 30px;
	}

}

.block-area-sidebar .block-product__inner {
	flex-direction: column;
}

.block-area-sidebar .block-product__inner > * {
	align-self: stretch;
}

.block-area-sidebar .block-product .block-product__content {
	padding: 16px;
/*	margin: 16px;*/
}

.block-area-sidebar .block-product__image .wp-block-image img {
	position: relative;
}
