.customizer-body {
	margin: 0;
	background: #111827;
	color: #f9fafb;
	font-family: Inter, system-ui, sans-serif;
}

.customizer {
	display: grid;
	grid-template-columns: minmax(300px, 380px) 1fr;
	min-height: 100vh;
}

.customizer__panel {
	background: #1f2937;
	border-right: 1px solid #374151;
	padding: 1rem 1rem 2rem;
	overflow: auto;
	max-height: 100vh;
}

.customizer__head {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.customizer__head h1 {
	margin: 0.2rem 0 0;
	font-size: 1.25rem;
	color: #fff;
}

.customizer__back {
	color: #9ca3af;
	text-decoration: none;
	font-size: 0.85rem;
}

.customizer__head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.customizer__form {
	gap: 0.75rem;
}

.customizer__section {
	background: #111827;
	border: 1px solid #374151;
	border-radius: 10px;
	padding: 0.75rem 0.85rem;
}

.customizer__section summary {
	cursor: pointer;
	font-weight: 700;
	color: #f3f4f6;
	margin-bottom: 0.65rem;
}

.customizer__section[open] summary {
	margin-bottom: 0.85rem;
}

.customizer__form label {
	color: #d1d5db;
}

.customizer__form input,
.customizer__form select,
.customizer__form textarea {
	background: #0b1220;
	border-color: #4b5563;
	color: #f9fafb;
}

.customizer__hint {
	color: #9ca3af;
	font-size: 0.85rem;
	margin: 1rem 0 0;
	line-height: 1.45;
}

.customizer__preview {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100vh;
	background: #0b1220;
}

.customizer__preview-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 1rem;
	background: #111827;
	border-bottom: 1px solid #374151;
	color: #d1d5db;
	font-size: 0.9rem;
}

.customizer__preview-toolbar a {
	color: #93c5fd;
}

.customizer__frame-wrap {
	display: flex;
	justify-content: center;
	align-items: stretch;
	padding: 1rem;
	min-height: 0;
}

.customizer__frame-wrap[data-device="tablet"] .customizer__frame {
	width: 768px;
	max-width: 100%;
	border-radius: 16px;
}

.customizer__frame-wrap[data-device="mobile"] .customizer__frame {
	width: 390px;
	max-width: 100%;
	border-radius: 20px;
}

.customizer__frame {
	width: 100%;
	height: calc(100vh - 5rem);
	border: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.customizer .media-field__help,
.customizer .media-field__label {
	color: #9ca3af;
}

.customizer .notice,
.customizer .error {
	margin-bottom: 0.85rem;
}

@media (max-width: 960px) {
	.customizer {
		grid-template-columns: 1fr;
	}
	.customizer__panel {
		max-height: none;
	}
	.customizer__frame {
		height: 70vh;
	}
}

/* Public customization surfaces */
.itm-template-part {
	width: 100%;
}

.itm-template-part--header_banner {
	background: #111827;
	color: #f9fafb;
	padding: 0.65rem 1rem;
	text-align: center;
}

.itm-template-part--header_banner a {
	color: inherit;
}

.itm-template-part--footer_before {
	padding: 1.25rem 0;
}

.site-content.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	gap: 1.5rem;
	align-items: start;
	width: min(var(--itm-container, 1200px), calc(100% - 2rem));
	max-width: var(--itm-container, 1200px);
	margin: 0 auto;
	padding: 1.25rem 0 3rem;
}

.site-content.has-sidebar > .site-main {
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
}

.site-content.has-sidebar > .site-sidebar {
	padding-top: 0.25rem;
}

.itm-widget-area--sidebar,
.itm-widget-area--home_aside,
.itm-widget-area--footer_extra {
	display: grid;
	gap: 1rem;
}

.itm-widget {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 10px;
	padding: 0.9rem 1rem;
}

.itm-widget__title {
	margin: 0 0 0.55rem;
	font-size: 1rem;
}

.itm-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.itm-widget__list a {
	text-decoration: none;
}

.itm-widget-search {
	display: flex;
	gap: 0.4rem;
}

.itm-widget-search input {
	flex: 1;
	min-width: 0;
}

.footer-grid--widgets {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	gap: 1.5rem;
	align-items: start;
	max-width: var(--itm-container, 1200px);
	margin: 0 auto;
	padding: 0 1rem;
}

@media (max-width: 800px) {
	.site-content.has-sidebar,
	.home-with-aside {
		grid-template-columns: 1fr;
	}
	.footer-grid--widgets {
		grid-template-columns: 1fr;
	}
}

body.customize-preview-active .admin-shell,
body.customize-preview-active .skip-link {
	/* keep preview clean */
}
