/**
 * SkyNet Smart Favorites — admin UI
 * Brand aligned with https://skynetsol.com/ (navy, electric blue, teal accents).
 */

/* -------------------------------------------------------------------------
   Shell & layout (+ SkyNet / skynetsol.com design tokens for children)
   ------------------------------------------------------------------------- */

.skynsmfa-wrap.skynsmfa-wrap--constrained {
	--skynsmfa-navy-deep: #0a1024;
	--skynsmfa-navy: #0d1738;
	--skynsmfa-navy-mid: #162456;
	--skynsmfa-blue: #186fff;
	--skynsmfa-blue-bright: #5b7cff;
	--skynsmfa-teal: #34d399;
	--skynsmfa-text: #1e293b;
	--skynsmfa-text-muted: #64748b;
	--skynsmfa-border: #e2e8f0;
	--skynsmfa-surface: #f8fafc;
	--skynsmfa-white: #ffffff;

	max-width: 1100px;
	margin: 12px 20px 32px 2px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--skynsmfa-text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.skynsmfa-tab-inner {
	padding: 0;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.skynsmfa-header {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	background: linear-gradient(
		125deg,
		var(--skynsmfa-navy-deep) 0%,
		var(--skynsmfa-navy) 38%,
		var(--skynsmfa-navy-mid) 72%,
		#1a365d 100%
	);
	color: var(--skynsmfa-white);
	padding: 0;
	border-radius: 12px;
	margin-bottom: 0;
	box-shadow:
		0 4px 24px rgba(13, 23, 56, 0.35),
		0 0 0 1px rgba(91, 124, 255, 0.12);
	border: 1px solid rgba(91, 124, 255, 0.2);
	overflow: hidden;
	position: relative;
}

.skynsmfa-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(91, 124, 255, 0.22) 0%, transparent 55%);
	pointer-events: none;
}

.skynsmfa-header__brand {
	flex: 0 0 auto;
	width: min(200px, 100%);
	padding: 24px 22px;
	background: rgba(0, 0, 0, 0.22);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.skynsmfa-header__logo-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.skynsmfa-header__logo-link:hover,
.skynsmfa-header__logo-link:focus {
	color: inherit;
	opacity: 0.92;
}

.skynsmfa-header__logo-link:focus {
	outline: 2px solid var(--skynsmfa-teal);
	outline-offset: 3px;
	border-radius: 4px;
}

.skynsmfa-header__logo-text {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #fff;
}

@supports (-webkit-background-clip: text) {
	.skynsmfa-header__logo-text {
		background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.skynsmfa-header__logo-tag {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
	max-width: 14em;
	line-height: 1.35;
}

.skynsmfa-header-inner {
	flex: 1 1 280px;
	padding: 22px 28px 24px;
	position: relative;
	z-index: 1;
}

.skynsmfa-header__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--skynsmfa-teal);
}

.skynsmfa-header-inner h1 {
	color: #fff;
	margin: 0 0 10px;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.skynsmfa-header__lead {
	font-size: 14px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	max-width: 58ch;
	line-height: 1.55;
}

@media screen and (max-width: 600px) {
	.skynsmfa-header__brand {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		justify-content: flex-start;
		padding: 18px 22px;
	}
}

/* -------------------------------------------------------------------------
   Tabs — visually connected to panel
   ------------------------------------------------------------------------- */

.skynsmfa-nav-tabs.nav-tab-wrapper {
	margin: 12px 0 0;
	padding: 0 6px;
	border: none;
	background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
	border-radius: 10px 10px 0 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0;
	box-shadow: none;
}

.skynsmfa-nav-tabs .nav-tab {
	margin: 0 0 -1px 0;
	border: 1px solid transparent;
	border-bottom: none;
	background: transparent;
	color: var(--skynsmfa-text-muted);
	font-weight: 600;
	font-size: 13px;
	padding: 11px 18px;
	border-radius: 8px 8px 0 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.skynsmfa-nav-tabs .nav-tab:hover {
	color: var(--skynsmfa-navy);
	background: rgba(255, 255, 255, 0.55);
}

.skynsmfa-nav-tabs .nav-tab.nav-tab-active {
	background: var(--skynsmfa-white);
	color: var(--skynsmfa-navy);
	border-color: var(--skynsmfa-border);
	border-bottom-color: var(--skynsmfa-white);
	box-shadow: inset 0 3px 0 var(--skynsmfa-blue);
}

/* -------------------------------------------------------------------------
   Main panel
   ------------------------------------------------------------------------- */

.skynsmfa-card.skynsmfa-tab-panel {
	background: var(--skynsmfa-white);
	border-radius: 0 10px 10px 10px;
	padding: 0;
	box-shadow: 0 2px 12px rgba(13, 23, 56, 0.06);
	border: 1px solid var(--skynsmfa-border);
	border-top: 1px solid var(--skynsmfa-border);
	margin-top: -1px;
	margin-bottom: 24px;
}

.skynsmfa-tab-panel.skynsmfa-tab-panel--connected {
	border-top-left-radius: 0;
}

.skynsmfa-tab-panel > .skynsmfa-tab-inner,
.skynsmfa-tab-panel > .skynsmfa-settings-form {
	padding: 24px 28px 28px;
}

.skynsmfa-settings-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* -------------------------------------------------------------------------
   Section cards (settings)
   ------------------------------------------------------------------------- */

.skynsmfa-settings-section {
	margin-bottom: 20px;
	background: var(--skynsmfa-surface);
	border: 1px solid var(--skynsmfa-border);
	border-radius: 10px;
	overflow: hidden;
}

.skynsmfa-settings-section:last-of-type {
	margin-bottom: 0;
}

.skynsmfa-settings-section--flat {
	background: transparent;
	border: none;
	border-radius: 0;
	margin-bottom: 28px;
}

.skynsmfa-settings-section--flat .skynsmfa-settings-section__body {
	padding-left: 0;
	padding-right: 0;
}

.skynsmfa-settings-section__header {
	padding: 16px 20px 12px;
	border-bottom: 1px solid var(--skynsmfa-border);
	background: var(--skynsmfa-white);
}

.skynsmfa-settings-section--flat .skynsmfa-settings-section__header {
	padding-left: 0;
	padding-right: 0;
	background: transparent;
	border-bottom: 1px solid var(--skynsmfa-border);
}

.skynsmfa-settings-section__header--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.skynsmfa-settings-section__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--skynsmfa-navy);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.skynsmfa-settings-section__lead {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--skynsmfa-text-muted);
	max-width: 70ch;
}

.skynsmfa-settings-section__body {
	padding: 16px 20px 20px;
	background: var(--skynsmfa-white);
}

.skynsmfa-settings-section--flat .skynsmfa-settings-section__body {
	background: transparent;
}

.skynsmfa-settings-subhead {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--skynsmfa-blue);
}

/* Two columns: catalog vs single */
.skynsmfa-settings-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 32px;
	margin-bottom: 20px;
}

@media screen and (max-width: 782px) {
	.skynsmfa-settings-two-col {
		grid-template-columns: 1fr;
	}
}

.skynsmfa-settings-col {
	min-width: 0;
}

/* Row of two field blocks (display + notification) */
.skynsmfa-settings-row-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	margin-bottom: 16px;
}

@media screen and (max-width: 600px) {
	.skynsmfa-settings-row-grid {
		grid-template-columns: 1fr;
	}
}

/* Stacked switch rows */
.skynsmfa-settings-stack {
	border: 1px solid var(--skynsmfa-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--skynsmfa-white);
	margin-bottom: 16px;
}

.skynsmfa-settings-stack--tight {
	margin-bottom: 0;
}

.skynsmfa-settings-stack .skynsmfa-field-row--switch {
	margin-bottom: 0;
	border-bottom: 1px solid var(--skynsmfa-border);
	border-radius: 0;
}

.skynsmfa-settings-stack .skynsmfa-field-row--switch:last-child {
	border-bottom: none;
}

/* Switch row */
.skynsmfa-field-row--switch {
	padding: 12px 14px;
	margin-bottom: 0;
}

.skynsmfa-field-row--switch .skynsmfa-toggle {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	gap: 12px;
}

.skynsmfa-field-row--switch .skynsmfa-slider {
	flex-shrink: 0;
	margin-right: 0;
	order: -1;
}

.skynsmfa-field-row--switch .skynsmfa-label-text {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
}

/* Field blocks (label + select) */
.skynsmfa-field-block {
	margin-bottom: 0;
}

.skynsmfa-field-block__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--skynsmfa-navy);
	margin-bottom: 6px;
}

.skynsmfa-field-block .description {
	margin-top: 8px;
	margin-bottom: 0;
	font-size: 12px;
	color: var(--skynsmfa-text-muted);
	font-style: normal;
	line-height: 1.45;
}

.skynsmfa-field-block--narrow {
	max-width: 360px;
}

/* Shortcodes in labels/descriptions: one click selects the full tag */
.skynsmfa-wrap .skynsmfa-shortcode-select {
	user-select: all;
	-webkit-user-select: all;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 12px;
	padding: 1px 4px;
	border-radius: 3px;
	background: rgba(13, 23, 56, 0.06);
}

/* -------------------------------------------------------------------------
   Controls
   ------------------------------------------------------------------------- */

.skynsmfa-select,
.skynsmfa-wrap select.skynsmfa-select {
	width: 100%;
	max-width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #8c8f94;
	background: #fff;
	box-shadow: 0 0 0 transparent;
	font-size: 14px;
	line-height: 1.5;
}

.skynsmfa-input-number {
	min-height: 36px;
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #8c8f94;
	font-size: 14px;
	max-width: 120px;
}

/* Toggle */
.skynsmfa-toggle {
	position: relative;
	cursor: pointer;
}

.skynsmfa-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.skynsmfa-slider {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background-color: #c3c4c7;
	border-radius: 24px;
	transition: background 0.2s ease;
}

.skynsmfa-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.skynsmfa-toggle input:checked + .skynsmfa-slider {
	background: linear-gradient(90deg, var(--skynsmfa-blue) 0%, var(--skynsmfa-blue-bright) 100%);
}

.skynsmfa-toggle input:focus + .skynsmfa-slider {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(24, 111, 255, 0.45);
}

.skynsmfa-toggle input:checked + .skynsmfa-slider::before {
	transform: translateX(20px);
}

.skynsmfa-label-text {
	font-weight: 400;
}

/* -------------------------------------------------------------------------
   Segmented (popular tab)
   ------------------------------------------------------------------------- */

.skynsmfa-segmented {
	display: inline-flex;
	border: 1px solid var(--skynsmfa-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--skynsmfa-white);
	flex-shrink: 0;
	box-shadow: 0 1px 2px rgba(13, 23, 56, 0.04);
}

.skynsmfa-segmented__btn {
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--skynsmfa-text-muted);
	text-decoration: none;
	border-right: 1px solid var(--skynsmfa-border);
	transition: background 0.15s ease, color 0.15s ease;
}

.skynsmfa-segmented__btn:last-child {
	border-right: none;
}

.skynsmfa-segmented__btn:hover {
	color: var(--skynsmfa-navy);
	background: var(--skynsmfa-surface);
}

.skynsmfa-segmented__btn.is-active {
	background: linear-gradient(135deg, var(--skynsmfa-navy-deep) 0%, var(--skynsmfa-navy-mid) 100%);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Callout & footnotes
   ------------------------------------------------------------------------- */

.skynsmfa-callout {
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 20px;
	border: 1px solid rgba(24, 111, 255, 0.22);
	background: linear-gradient(135deg, rgba(24, 111, 255, 0.08) 0%, rgba(52, 211, 153, 0.06) 100%);
}

.skynsmfa-callout--info .skynsmfa-callout__text {
	margin: 0;
	font-size: 13px;
	color: var(--skynsmfa-navy);
	line-height: 1.5;
}

.skynsmfa-callout a {
	font-weight: 600;
	color: var(--skynsmfa-blue);
	text-decoration: none;
}

.skynsmfa-callout a:hover,
.skynsmfa-callout a:focus {
	color: #0f52c8;
	text-decoration: underline;
}

.skynsmfa-footnote,
.skynsmfa-muted {
	font-size: 13px;
	color: var(--skynsmfa-text-muted);
	line-height: 1.5;
	margin: 20px 0 0;
}

.skynsmfa-muted {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */

.skynsmfa-table.widefat {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--skynsmfa-border);
}

/* -------------------------------------------------------------------------
   Stat cards (dashboard)
   ------------------------------------------------------------------------- */

.skynsmfa-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.skynsmfa-stat-card {
	background: var(--skynsmfa-white);
	border: 1px solid var(--skynsmfa-border);
	border-radius: 10px;
	padding: 16px 18px;
	border-left: 4px solid var(--skynsmfa-blue);
	box-shadow: 0 1px 3px rgba(13, 23, 56, 0.04);
}

.skynsmfa-stat-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--skynsmfa-text-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.skynsmfa-stat-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--skynsmfa-navy);
	letter-spacing: -0.03em;
}

/* -------------------------------------------------------------------------
   Tools tab
   ------------------------------------------------------------------------- */

.skynsmfa-tools {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.skynsmfa-tool-card {
	border: 1px solid var(--skynsmfa-border);
	border-radius: 10px;
	padding: 18px 20px 20px;
	background: var(--skynsmfa-surface);
}

.skynsmfa-tool-card__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--skynsmfa-navy);
	letter-spacing: -0.02em;
}

.skynsmfa-tool-card__desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--skynsmfa-text-muted);
	max-width: 72ch;
}

.skynsmfa-tool-card__form {
	margin-top: 4px;
}

.skynsmfa-import-form .skynsmfa-file-input {
	margin-bottom: 10px;
	display: block;
	font-size: 13px;
}

/* -------------------------------------------------------------------------
   Submit
   ------------------------------------------------------------------------- */

.skynsmfa-submit-wrap {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--skynsmfa-border);
}

.skynsmfa-submit-wrap--inline {
	margin-top: 16px;
	padding-top: 0;
	border-top: none;
}

.skynsmfa-btn-primary.button-primary {
	background: linear-gradient(180deg, var(--skynsmfa-blue-bright) 0%, var(--skynsmfa-blue) 100%) !important;
	border-color: #0f52c8 !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 8px 20px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	min-height: 40px !important;
	box-shadow: 0 2px 8px rgba(24, 111, 255, 0.35) !important;
	text-shadow: none !important;
	transition: filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.skynsmfa-btn-primary.button-primary:hover,
.skynsmfa-btn-primary.button-primary:focus {
	filter: brightness(1.06);
	border-color: #0a3d9e !important;
	box-shadow: 0 3px 12px rgba(24, 111, 255, 0.4) !important;
}

.skynsmfa-btn-primary.button-primary:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(24, 111, 255, 0.55) !important;
}

/* -------------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------------- */

.skynsmfa-wrap .notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 6px;
	border-left-width: 4px;
}

.skynsmfa-wrap .notice p {
	margin: 0;
}

/* -------------------------------------------------------------------------
   Legacy / misc
   ------------------------------------------------------------------------- */

.skynsmfa-content-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.skynsmfa-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--skynsmfa-navy);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--skynsmfa-border);
}

.skynsmfa-form-wrapper h2.skynsmfa-section-title:not(:first-of-type) {
	margin-top: 32px;
}

.skynsmfa-field-row {
	margin-bottom: 16px;
}

.skynsmfa-field-row.skynsmfa-select-wrap label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

.skynsmfa-settings-form--compact .skynsmfa-settings-section__body {
	padding-top: 12px;
}

/* Secondary actions (Tools tab, etc.) */
.skynsmfa-wrap .button.button-secondary {
	border-radius: 8px;
	font-weight: 600;
	border-color: var(--skynsmfa-border);
	color: var(--skynsmfa-navy);
	background: var(--skynsmfa-white);
	box-shadow: 0 1px 2px rgba(13, 23, 56, 0.04);
}

.skynsmfa-wrap .button.button-secondary:hover,
.skynsmfa-wrap .button.button-secondary:focus {
	border-color: var(--skynsmfa-blue);
	color: var(--skynsmfa-blue);
	background: var(--skynsmfa-surface);
	box-shadow: 0 1px 3px rgba(24, 111, 255, 0.12);
}

/* Button Customizer layout */
.skynsmfa-settings-section__body--appearance {
	padding: 0;
	background: var(--skynsmfa-white);
}

.skynsmfa-appearance-layout {
	padding: 20px;
}

.skynsmfa-appearance-divider {
	display: block;
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--skynsmfa-border);
}

.skynsmfa-appearance-section__desc {
	margin: -4px 0 16px;
	font-size: 13px;
	color: var(--skynsmfa-text-muted);
	line-height: 1.5;
	max-width: 60ch;
}

.skynsmfa-settings-subhead--inline {
	margin-bottom: 14px;
}

.skynsmfa-appearance-section.is-hidden,
.skynsmfa-appearance-section--icon.is-hidden,
.skynsmfa-appearance-section--text-button.is-hidden {
	display: none;
}

.skynsmfa-appearance-two-col {
	margin-bottom: 0;
	padding-top: 4px;
}

.skynsmfa-appearance-two-col .skynsmfa-settings-col {
	padding: 0 4px;
}

@media screen and (min-width: 783px) {
	.skynsmfa-appearance-two-col .skynsmfa-settings-col:first-child {
		padding-right: 20px;
		border-right: 1px solid var(--skynsmfa-border);
	}

	.skynsmfa-appearance-two-col .skynsmfa-settings-col:last-child {
		padding-left: 20px;
	}
}

.skynsmfa-appearance-subsection {
	margin-top: 20px;
	padding: 16px 0 0;
	border-top: 1px dashed var(--skynsmfa-border);
}

.skynsmfa-appearance-subsection:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.skynsmfa-appearance-subsection__title {
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 3px solid var(--skynsmfa-blue);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--skynsmfa-navy);
	line-height: 1.3;
}

.skynsmfa-appearance-section .skynsmfa-field-block {
	margin-bottom: 14px;
}

.skynsmfa-field-block--compact {
	max-width: 420px;
}

.skynsmfa-field-block--icon-text-only.is-hidden {
	display: none;
}

.skynsmfa-settings-row-grid--triple {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media screen and (max-width: 960px) {
	.skynsmfa-settings-row-grid--triple {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.skynsmfa-settings-row-grid--triple {
		grid-template-columns: 1fr;
	}
}

/* Button appearance: color fields + live preview */
.skynsmfa-field-block--color .wp-picker-container {
	display: inline-block;
}

.skynsmfa-appearance-preview {
	position: sticky;
	top: 46px;
	z-index: 10;
	padding: 18px 20px 20px;
	border: 1px solid var(--skynsmfa-border);
	border-radius: 10px;
	background: var(--skynsmfa-surface);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skynsmfa-appearance-preview .skynsmfa-settings-subhead--inline {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--skynsmfa-border);
}

.skynsmfa-appearance-preview__stage {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0;
	padding: 14px 16px;
	border: 1px solid var(--skynsmfa-border);
	border-radius: 8px;
	background: var(--skynsmfa-white);
}

.skynsmfa-appearance-preview__stage.is-hidden {
	display: none;
}

.skynsmfa-preview-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 16px;
	min-width: 0;
}

.skynsmfa-preview-item:first-child {
	padding-left: 0;
}

.skynsmfa-preview-item:last-child {
	padding-right: 0;
}

.skynsmfa-preview-item + .skynsmfa-preview-item {
	border-left: 1px solid var(--skynsmfa-border);
}

.skynsmfa-preview-item figcaption {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
}

.skynsmfa-preview-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--skynsmfa-border);
	cursor: default;
}

.skynsmfa-preview-svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.skynsmfa-preview-icon.is-added .skynsmfa-preview-svg {
	fill: currentColor;
}

.skynsmfa-preview-text {
	pointer-events: none;
	cursor: default !important;
}

.skynsmfa-preview-text.skynsmfa-has-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.skynsmfa-preview-text .skynsmfa-btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.skynsmfa-field-block--custom-css {
	max-width: 720px;
}

.skynsmfa-textarea--css {
	display: block;
	width: 100%;
	min-height: 10rem;
	padding: 10px 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
	border: 1px solid var(--skynsmfa-border);
	border-radius: 6px;
	background: #fff;
	resize: vertical;
}

.skynsmfa-field-block__help {
	margin: 8px 0 0;
	color: var(--skynsmfa-muted);
	font-size: 12px;
	line-height: 1.45;
}

.skynsmfa-preview-text .skynsmfa-btn-icon .skynsmfa-preview-svg {
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.skynsmfa-preview-text.is-added .skynsmfa-btn-icon .skynsmfa-preview-svg,
.skynsmfa-preview-text.skynsmfa-icon-fill-filled .skynsmfa-btn-icon .skynsmfa-preview-svg {
	fill: currentColor;
}

/* Custom icon upload control */
.skynsmfa-custom-icon {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.skynsmfa-custom-icon__preview {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border: 1px solid var(--skynsmfa-border);
	border-radius: 6px;
	background: #fff;
	padding: 3px;
}

@media screen and (max-width: 900px) {
	.skynsmfa-content-grid {
		grid-template-columns: 1fr;
	}

	.skynsmfa-settings-section__header--row .skynsmfa-segmented {
		width: 100%;
		justify-content: stretch;
	}

	.skynsmfa-segmented__btn {
		flex: 1;
		text-align: center;
	}
}
