/* EasySite Page Builder – Admin UI */

.easysite-pb-wrap {
	margin-top: 0.5rem;
}

.easysite-pb-intro {
	font-size: 14px;
	color: #50575e;
	max-width: 720px;
}

.easysite-pb-ui {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 1.25rem;
	margin-top: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
	padding: 1rem;
	min-height: 420px;
}

.easysite-pb-ui.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.easysite-pb-sidebar h3,
.easysite-pb-canvas-wrap h3 {
	margin: 0 0 0.5rem;
	font-size: 14px;
}

.easysite-pb-library {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.easysite-pb-add-section {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	text-align: left;
	padding: 0.6rem 0.75rem;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.easysite-pb-add-section:hover {
	border-color: #2563eb;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.easysite-pb-canvas-wrap {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 1rem;
}

.easysite-pb-canvas {
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 200px;
}

.easysite-pb-block-admin {
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	margin-bottom: 0.75rem;
	background: #fff;
	overflow: hidden;
}

.easysite-pb-block-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.85rem;
	background: linear-gradient(135deg, #f0f6ff, #fff);
	border-bottom: 1px solid #e5e7eb;
}

.easysite-pb-block-handle {
	cursor: grab;
	color: #6b7280;
}

.easysite-pb-block-head strong {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.easysite-pb-fields {
	padding: 1rem;
	background: #fafafa;
}

.easysite-pb-field-row {
	margin-bottom: 0.85rem;
}

.easysite-pb-field-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 12px;
}

.easysite-pb-img-preview {
	max-width: 120px;
	height: auto;
	border-radius: 6px;
	margin: 0.5rem 0;
	display: block;
}

.easysite-pb-placeholder {
	height: 60px;
	background: #e0e7ff;
	border: 2px dashed #2563eb;
	border-radius: 8px;
	margin-bottom: 0.75rem;
}

.easysite-pb-empty {
	color: #6b7280;
	text-align: center;
	padding: 3rem 1rem;
}

@media (max-width: 900px) {
	.easysite-pb-ui {
		grid-template-columns: 1fr;
	}
}
