/**
 * Editor Styles for Smart Responsive Block Suite
 */

/* Workflow Controls */
.rbc-workflow-controls {
	padding: 0 16px 16px 16px;
}

.rbc-button-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 8px;
}

.rbc-copy-paste-controls .components-button {
	height: auto;
	padding: 8px 12px;
	justify-content: center;
}

.rbc-notice-compact {
	margin: 8px 0 0 !important;
	padding: 8px 12px !important;
	font-size: 12px;
}

.rbc-help-text {
	margin: 8px 0 0 !important;
	font-size: 11px;
	color: #757575;
	font-style: italic;
	line-height: 1.4;
}

/* Quick Actions */
.rbc-quick-actions {
	margin-top: 8px;
}

.rbc-quick-actions-dropdown {
	width: 100%;
}

.rbc-quick-actions-dropdown .components-button {
	width: 100%;
	justify-content: space-between;
	height: auto;
	padding: 8px 12px;
}

.rbc-quick-actions-popover {
	min-width: 280px;
	max-width: 360px;
	width: max-content;
	max-height: 400px;
	overflow-y: auto;
}

.rbc-quick-actions-popover .components-menu-group {
	padding: 4px;
}

.rbc-quick-actions-popover .components-menu-item__button {
	min-height: auto !important;
	height: auto !important;
	white-space: normal !important;
	padding: 12px 16px !important;
	width: 100%;
}

.rbc-quick-actions-popover .components-menu-item__button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rbc-menu-item-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	text-align: left;
	pointer-events: none;
}

.rbc-menu-item-content strong {
	font-weight: 500;
	font-size: 13px;
	line-height: 1.3;
}

.rbc-menu-item-description {
	font-size: 11px;
	color: #757575;
	line-height: 1.4;
	font-weight: normal;
}

/* Inheritance Indicators */
.rbc-inheritance-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 4px 8px;
	font-size: 11px;
	color: #757575;
	margin-bottom: 8px;
	border-radius: 4px;
}

.rbc-inheritance-indicator.rbc-is-inheriting {
	background: #f0f6fc;
	border: 1px solid #c3e0ff;
	padding-bottom: 4px;
	margin-bottom: 10px;
}

.rbc-inheritance-indicator.rbc-has-override {
	background: #e7f5e7;
	border: 1px solid #b7e3b7;
	padding-bottom: 4px;
	margin-bottom: 12px;
}

.rbc-indicator-icon {
	font-size: 12px;
	line-height: 1;
}

.rbc-indicator-text {
	flex: 1;
	font-size: 11px;
	line-height: 1.3;
}

.rbc-override-button,
.rbc-reset-button {
	text-decoration: none !important;
	font-size: 11px;
	padding: 2px 6px;
	white-space: nowrap;
}

.rbc-override-button:hover,
.rbc-reset-button:hover {
	text-decoration: underline !important;
}

/* Device Toggle Wrapper */
.rbc-device-toggle-wrapper {
	padding: 16px 16px 12px 16px;
}

/* ToolsPanel adjustments */
.rbc-tools-panel {
	padding: 16px 16px 0 16px !important;
}

.rbc-tools-panel .components-tools-panel-item {
	margin-bottom: 20px;
}

/* Hide BoxControl's internal label (we have our own) */
.rbc-tools-panel .components-box-control__label {
	display: none;
}
