.block-ebook {
	--cwp-image: 300px;
	position: relative;
	align-items: center;
}

.block-ebook,
.block-ebook.has-background,
.editor-styles-wrapper .block-ebook.has-background {
	padding: var(--wp--custom--layout--block-gap);
}

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

.block-ebook__content {
	flex-basis: 0;
	flex-grow: 1;
}

.block-ebook .block-ebook__image,
.editor-styles-wrapper .block-ebook .block-ebook__image {
	width: var(--cwp-image);
	max-width: 100%;
}

.block-ebook .block-ebook__image img,
.editor-styles-wrapper .block-ebook .block-ebook__image img {
	width: 100%;
}

.block-ebook__inner {
	border: 4px solid var(--wp--preset--color--background);
}

.block-ebook .block-ebook__inner,
.editor-styles-wrapper .block-ebook .block-ebook__inner {
	gap: 0;
}

.block-ebook__content {
	padding: 45px;
}

.block-ebook .wpforms-container .wpforms-title {
	font-size: var(--wp--preset--font-size--huge);
}

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

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

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

	.block-ebook .block-ebook__image,
	.editor-styles-wrapper .block-ebook .block-ebook__image {
		width: 100%;
	}

	.block-ebook__content {
		padding: 30px;
	}

}

@media only screen and (min-width: 768px) {
	.content .block-ebook .wpforms-container.one-line .wpforms-form,
	.content .editor-styles-wrapper .block-ebook .wpforms-container.one-line .wpforms-form > fieldset[disabled] {
		display: flex;
		flex-wrap: wrap;
	}

	.content .block-ebook .wpforms-container.one-line .wpforms-field-container {
		flex-grow: 1;
	}
}

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

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

.block-area-sidebar .block-ebook__content {
	padding: 30px;
}
