/* Match the frontend's .wp-site-blocks clipping without clipping editor popover portals. */
.editor-styles-wrapper .is-root-container {
	overflow-x: clip;
}

/* Site Editor headers stay in flow, so their canvas must not repeat the frontend's fixed-header offset. */
.editor-styles-wrapper .is-root-container.wp-site-blocks {
	padding-top: 0;
}

/* Core Image's editor-only inline height:auto must fill the same owned media frame as its saved image. */
.editor-styles-wrapper .wp-block-image.is-style-fill-image > img {
	height: 100% !important;
	object-fit: cover;
}

/* Core's native block positioning must not collapse images inside the padded intro frame. */
.editor-styles-wrapper .is-style-intro-media > .wp-block-image,
.editor-styles-wrapper .is-style-intro-media > .wp-block-brinkhotel-carousel {
	position: absolute;
	inset: 0;
}

/* Native block positioning must not put the overlaid breadcrumb paragraph back into flow. */
.editor-styles-wrapper .wp-block-paragraph.is-style-breadcrumbs {
	position: absolute;
}

/* Keep absolute children anchored to the same authored section/hero as the frontend. */
.editor-styles-wrapper .wp-block-group.is-style-hero-title-row,
.editor-styles-wrapper :is(.is-style-section, .is-style-roomgrid-section) > .wp-block-group.is-style-container {
	position: static;
}

/* Core Buttons uses a repeated-class selector to zero editor margins; retain these authored gutters. */
.editor-styles-wrapper .wp-block-buttons.is-style-article-buttons > .wp-block-button {
	margin: 15px !important;
}

/* RichText's inline pre-wrap must not wrap the captured single-line room labels. */
.editor-styles-wrapper .wp-block-paragraph.is-style-room-card-link {
	white-space: nowrap !important;
	position: static;
}

/* Responsive-only content remains selectable and editable through List View. */
.editor-styles-wrapper .is-style-intro-mobile-rooms:is(.is-selected, .has-child-selected) {
	display: block;
	flex-basis: 100% !important;
}

.editor-styles-wrapper .is-style-roomgrid-section:is(.is-selected, .has-child-selected) {
	display: block;
}

.editor-styles-wrapper .is-style-mobile-booking:is(.is-selected, .has-child-selected) {
	display: flex;
	position: relative;
}

.editor-styles-wrapper .is-style-shell-header .is-style-shell-mobile-nav:is(.is-selected, .has-child-selected) {
	display: block;
}

.editor-styles-wrapper .is-style-contact-layout > .is-style-contact-location:is(.is-selected, .has-child-selected) {
	display: block;
}

/* Feedback is hidden in the initial form state; List View selection exposes its native paragraph editor. */
.editor-styles-wrapper .wp-block-paragraph:is(.is-style-enquiry-success, .is-style-enquiry-error, .is-style-enquiry-sending):not(.is-selected) {
	display: none;
}

/* Core Image's block display must retain the page introduction's authored text alignment. */
.editor-styles-wrapper .is-style-pageintro-body > .wp-block-image img {
	display: inline;
}

/* Native Image positioning and inline link/image styles must fill the authored brand frame. */
.editor-styles-wrapper .wp-block-image.is-style-brand-image {
	position: absolute;
	inset: 0;
}

.editor-styles-wrapper .wp-block-image.is-style-brand-image > a {
	display: inline-block !important;
}

.editor-styles-wrapper .wp-block-image.is-style-brand-image img {
	height: 100% !important;
}

/* Flow's first/last-child reset must not remove the brand grid's authored outer gutters. */
.editor-styles-wrapper .is-style-brands-grid > .wp-block-group.is-style-brand-card {
	margin-block: 45px;
}

/* RichText's emergency word wrapping must match these saved titles' normal wrapping. */
.editor-styles-wrapper .wp-block-heading.is-style-hero-title,
.editor-styles-wrapper .wp-block-paragraph.is-style-brand-title {
	overflow-wrap: normal;
}

/* The absolute native appender is not content: retain Flow's terminal content margin reset. */
.editor-styles-wrapper :is(.is-style-article-content, .is-style-article-body) > .wp-block:has(+ .block-list-appender) {
	margin-block-end: 0;
}

/* Keep an empty section's inserter usable in its existing padding without adding content height. */
.editor-styles-wrapper .is-style-section > .wp-block-group.is-style-container:has(> .block-list-appender:only-child) {
	position: relative;
}

.editor-styles-wrapper .is-style-section > .is-style-container > .block-list-appender:only-child {
	position: absolute;
	inset-inline: 30px;
	top: 0;
	transform: translateY(-50%);
}

/* The empty container has no hit area to select first; its visible inserter must accept clicks directly. */
.editor-styles-wrapper .is-style-section > .is-style-container > .block-list-appender:only-child .block-editor-button-block-appender {
	pointer-events: auto;
}

@media (width <= 767.98px) {
	.editor-styles-wrapper .is-style-brands-grid > .wp-block-group.is-style-brand-card {
		margin-block: 30px;
	}
}
