/**
 * SiteOrigin Page Builder — RSM Content Widgets picker icons.
 */

:root {
	--rsmspark-cw-brand-orange: #ff6b35;
}

#adminmenu .wp-submenu a[href*="page=rsm-buttons"] {
	padding-left: 24px !important;
	font-weight: 500;
}

/* Dashicons in the add-widget dialog */
.so-panels-dialog .rsmspark-cw-panels-icon::before,
.so-panels-dialog .widget-icon.rsmspark-cw-panels-icon::before,
.so-available-widgets-list .rsmspark-cw-panels-icon::before,
#so-panels-add-widgets-dialog .rsmspark-cw-panels-icon::before,
.so-panels-add-widget-dialog .rsmspark-cw-panels-icon::before {
	color: var(--rsmspark-cw-brand-orange) !important;
}

/* Match by widget PHP class name in the picker list */
.so-panels-dialog .widget[class*="Rsmspark_Content_Widgets"] .widget-icon,
.so-panels-dialog .widget[class*="Rsmspark_Content_Widgets"] .widget-icon::before,
.so-available-widgets-list .widget[class*="Rsmspark_Content_Widgets"] .widget-icon::before {
	color: var(--rsmspark-cw-brand-orange) !important;
}

/* Widgets block / live search (SiteOrigin Widgets Bundle) */
.sow-widget-search-result .rsmspark-cw-panels-icon::before,
.sow-widget-icon.rsmspark-cw-panels-icon::before {
	color: var(--rsmspark-cw-brand-orange) !important;
}

/* SiteOrigin widget forms in Gutenberg / Focus — match native block editor buttons. */
.siteorigin-widget-form button.rsmspark-rt-insert-media,
.so-tinymce-field button.rsmspark-rt-insert-media {
	background: var(--rsmspark-cw-brand-orange, #ff6b35) !important;
	border-color: var(--rsmspark-cw-brand-orange, #ff6b35) !important;
	color: #fff !important;
}

.siteorigin-widget-form button.rsmspark-rt-insert-media:hover,
.so-tinymce-field button.rsmspark-rt-insert-media:hover {
	background: var(--rsmspark-cw-brand-orange-hover, #e85a24) !important;
	border-color: var(--rsmspark-cw-brand-orange-hover, #e85a24) !important;
	color: #fff !important;
}

.rsmspark-cw-footer-json-actions,
.rsmspark-cw-hero-preset-actions {
	margin-top: 8px;
}

.rsmspark-cw-so-export-json-mount,
.rsmspark-cw-block-editor__export-json-mount {
	margin: 0 0 12px;
}

.rsmspark-cw-so-export-json-label,
.rsmspark-cw-block-editor__export-json-label {
	margin: 0 0 6px;
	color: #646970;
}

.rsmspark-cw-so-export-json-preview {
	display: block;
	max-height: 280px;
	margin: 0 0 10px;
	padding: 10px 12px;
	overflow: auto;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	color: #1d2327;
	font-family: Menlo, Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}
