.rsmspark-cw-screen-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 0;
}

.rsm-buttons-admin-tabs.rsm-settings-page .rsmspark-cw-screen-title {
	margin: 16px 0 0;
	padding: 0 12px;
}

.rsm-buttons-admin-tabs.rsm-settings-page .rsm-settings-tab-panel {
	border-top: none;
	margin-top: 0;
}

.rsm-buttons-tab-actions {
	margin: 0 0 12px;
}

.rsm-buttons-color-grid.is-muted {
	opacity: 0.55;
}

.rsm-buttons-colors-hint {
	margin-bottom: 12px;
}

.rsm-buttons-icon-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
	gap: 8px;
	max-width: 640px;
	margin: 8px 0 12px;
}

.rsm-buttons-icon-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	max-width: 640px;
}

.rsm-buttons-icon-toolbar input[type="search"] {
	flex: 1 1 180px;
	min-width: 0;
}

.rsm-buttons-icon-toolbar select {
	min-width: 160px;
}

.rsm-buttons-icon-choice {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.rsm-buttons-icon-choice.is-selected {
	border-color: #ff6b35;
	box-shadow: 0 0 0 1px #ff6b35;
}

.rsm-buttons-icon-choice .dashicons,
.rsm-buttons-icon-choice__svg {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.rsm-buttons-icon-choice__svg {
	display: block;
	fill: currentColor;
}

.rsm-buttons-icon-choice__none-label {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.rsm-buttons-admin .rsm-buttons-builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1.5rem;
	align-items: start;
}

.rsm-buttons-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.rsm-buttons-card h2 {
	margin-top: 0;
	font-size: 1.05rem;
}

.rsm-buttons-builder__sidebar {
	position: sticky;
	top: 32px;
}

.rsm-buttons-preview-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 1.5rem;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border-radius: 8px;
}

.rsm-buttons-list-preview {
	padding: 0.5rem 0;
}

.rsm-buttons-color-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1rem;
}

.rsm-buttons-post-results {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	max-height: 180px;
	overflow: auto;
}

.rsm-buttons-post-results li {
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid #dcdcde;
	border-top: 0;
	cursor: pointer;
	background: #fff;
}

.rsm-buttons-post-results li:first-child { border-top: 1px solid #dcdcde; }
.rsm-buttons-post-results li:hover { background: #f6f7f7; }

.rsm-buttons-card--link {
	border-left: 4px solid #ff6b35;
}

.rsm-buttons-icon-image-panel {
	display: none;
}

.rsm-buttons-icon-image-preview img {
	max-width: 64px;
	max-height: 64px;
	display: block;
	margin-bottom: 0.5rem;
}

.rsm-buttons-import-export__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
}

@media (max-width: 782px) {
	.rsm-buttons-import-export__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) {
	.rsm-buttons-admin .rsm-buttons-builder {
		grid-template-columns: 1fr;
	}
	.rsm-buttons-builder__sidebar { position: static; }
}
