/**
 * Site / block editor: header chrome previews (template thumbnails + canvas).
 */

/* Never let utility SVGs blow up when theme CSS is missing in iframe previews. */
.pulse-header-utility svg,
.pulse-utility-link__icon,
.pulse-utility-link__icon svg {
	display: inline-block;
	width: 1.125rem !important;
	height: 1.125rem !important;
	max-width: 1.125rem !important;
	max-height: 1.125rem !important;
	flex-shrink: 0;
}

.pulse-block-editor {
	margin-block: 0.35rem;
}

.pulse-block-editor__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #757575;
	margin-bottom: 0.35rem;
}

/* Compact placeholders (no SSR) for header blocks in editor / template list. */
.pulse-block-editor--compact {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.pulse-editor-preview-bar {
	padding: 0.35rem 0.5rem;
	font-size: 10px;
	line-height: 1.3;
}

.pulse-editor-preview-bar--announcement {
	background: #f5f0e0;
	color: #1a1a1a;
	text-align: center;
}

.pulse-editor-preview-bar--utility {
	background: #2b2b2b;
	color: #f5f5f5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.pulse-editor-preview-bar--primary {
	background: #1a1a1a;
	color: #f5f5f5;
	text-align: center;
	font-weight: 600;
}

.pulse-editor-preview-pills {
	display: inline-flex;
	background: #525252;
	border-radius: 999px;
	padding: 0.15rem;
	gap: 0.1rem;
}

.pulse-editor-preview-pill {
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
}

.pulse-editor-preview-pill.is-active {
	background: #ffd100;
	color: #1a1a1a;
}

.pulse-editor-preview-utilities {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.75rem;
	width: 100%;
	margin-top: 0.25rem;
	font-size: 9px;
	opacity: 0.9;
}

/* Home slot SSR previews in editor */
.pulse-block-editor .wp-block-pulse-home-speakable,
.pulse-block-editor .wp-block-pulse-home-booking-cta,
.pulse-block-editor .wp-block-pulse-home-ecosystem,
.pulse-block-editor .wp-block-pulse-home-clinics-grid,
.pulse-block-editor section {
	max-width: 100%;
}

.pulse-block-editor .components-placeholder {
	min-height: 4rem;
}

/* Template grid: scale down full SSR home sections */
.editor-visual-editor .pulse-block-editor,
.block-editor-block-preview__content .pulse-block-editor {
	max-height: 12rem;
	overflow: hidden;
}
