﻿/**
 * Admin styles – Advanced Custom Checkout Fields for WooCommerce
 * Modern card-based UI with clear hierarchy and spacing.
 *
 * @package RoyalCFM
 */

/* -------------------------------------------------------------------------
   Variables
   ------------------------------------------------------------------------- */
.royalcfm-admin {
	--royalcfm-primary: #3858e9;
	--royalcfm-primary-hover: #2d4bd6;
	--royalcfm-primary-light: rgba(56, 88, 233, 0.08);
	--royalcfm-danger: #d63638;
	--royalcfm-danger-hover: #b32d2e;
	--royalcfm-danger-bg: rgba(214, 54, 56, 0.08);
	--royalcfm-surface: #ffffff;
	--royalcfm-border: #dcdcde;
	--royalcfm-border-light: #e8e8eb;
	--royalcfm-text: #1d2327;
	--royalcfm-text-muted: #646970;
	--royalcfm-text-subtle: #787c82;
	--royalcfm-bg: #f0f0f1;
	--royalcfm-radius: 8px;
	--royalcfm-radius-sm: 6px;
	--royalcfm-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	--royalcfm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--royalcfm-transition: 0.2s ease;
}

/* -------------------------------------------------------------------------
   Page header
   ------------------------------------------------------------------------- */
.royalcfm-admin .royalcfm-page-header {
	margin: 0 0 24px 0;
	padding: 0;
}

.royalcfm-page-header-inner {
	max-width: 960px;
}

.royalcfm-page-title {
	font-size: 23px;
	font-weight: 400;
	color: var(--royalcfm-text);
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.royalcfm-page-desc {
	color: var(--royalcfm-text-muted);
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------------------- */
.royalcfm-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.royalcfm-toolbar-count {
	font-size: 13px;
	color: var(--royalcfm-text-muted);
}

/* -------------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------------- */
.royalcfm-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 20px 0;
	padding: 0;
	border-bottom: 1px solid var(--royalcfm-border);
}

.royalcfm-tab {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: var(--royalcfm-text-muted);
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: color var(--royalcfm-transition), border-color var(--royalcfm-transition);
}

.royalcfm-tab:hover {
	color: var(--royalcfm-text);
}

.royalcfm-tab.is-active {
	color: var(--royalcfm-primary);
	border-bottom-color: var(--royalcfm-primary);
}

.royalcfm-tab-panel {
	margin-bottom: 24px;
}

.royalcfm-default-fields-table-wrap {
	margin-bottom: 24px;
	border: 1px solid var(--royalcfm-border-light);
	border-radius: var(--royalcfm-radius);
	overflow: hidden;
	background: var(--royalcfm-surface);
	box-shadow: var(--royalcfm-shadow);
}

.royalcfm-default-fields-table {
	width: 100%;
	border: none;
	margin: 0;
}

.royalcfm-default-fields-table th,
.royalcfm-default-fields-table td {
	padding: 10px 12px;
	vertical-align: middle;
	border-bottom: 1px solid var(--royalcfm-border-light);
	font-size: 13px;
}

.royalcfm-default-fields-table thead th {
	background: var(--royalcfm-bg);
	font-weight: 600;
	color: var(--royalcfm-text);
}

.royalcfm-default-fields-table tbody tr:last-child td {
	border-bottom: none;
}

.royalcfm-default-fields-table .check-column {
	width: 32px;
	padding-left: 12px;
}

.royalcfm-default-fields-table .check-column input {
	margin: 0;
}

.royalcfm-default-fields-table input.regular-text {
	width: 100%;
	min-width: 120px;
	max-width: 200px;
	padding: 6px 10px;
	font-size: 13px;
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
}

.royalcfm-default-field-disabled {
	opacity: 0.65;
	background: var(--royalcfm-bg);
}
.royalcfm-default-field-disabled:hover {
	opacity: 0.9;
}
.royalcfm-default-fields-hint {
	margin: -12px 0 20px;
	font-size: 13px;
	color: var(--royalcfm-text-muted);
	line-height: 1.5;
}
.royalcfm-default-fields-table code {
	font-size: 12px;
	background: var(--royalcfm-bg);
	padding: 2px 6px;
	border-radius: 4px;
}

.royalcfm-custom-fields-heading {
	margin: 0 0 14px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--royalcfm-text);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.royalcfm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	line-height: 1.4;
	border-radius: var(--royalcfm-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color var(--royalcfm-transition), border-color var(--royalcfm-transition), color var(--royalcfm-transition);
}

.royalcfm-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.royalcfm-btn-primary {
	background: var(--royalcfm-primary);
	color: #fff;
	border-color: var(--royalcfm-primary);
}

.royalcfm-btn-primary:hover {
	background: var(--royalcfm-primary-hover);
	border-color: var(--royalcfm-primary-hover);
	color: #fff;
}

.royalcfm-btn-ghost {
	background: transparent;
	color: var(--royalcfm-text-muted);
	border-color: var(--royalcfm-border);
}

.royalcfm-btn-ghost:hover {
	background: var(--royalcfm-border-light);
	color: var(--royalcfm-text);
}

.royalcfm-btn-danger.royalcfm-btn-ghost:hover {
	background: var(--royalcfm-danger-bg);
	color: var(--royalcfm-danger);
	border-color: transparent;
}

.royalcfm-btn-save {
	padding: 10px 20px;
	font-size: 14px;
}

.royalcfm-btn-save .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* -------------------------------------------------------------------------
   Fields list & cards
   ------------------------------------------------------------------------- */
.royalcfm-fields-list {
	max-width: 960px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.royalcfm-field-row {
	background: var(--royalcfm-surface);
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius);
	box-shadow: var(--royalcfm-shadow);
	overflow: hidden;
	transition: box-shadow var(--royalcfm-transition), border-color var(--royalcfm-transition);
}

.royalcfm-field-row:hover {
	border-color: var(--royalcfm-border);
	box-shadow: var(--royalcfm-shadow-md);
}

.royalcfm-field-row.ui-sortable-helper {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: var(--royalcfm-radius);
}

.royalcfm-field-placeholder {
	background: var(--royalcfm-primary-light);
	border: 2px dashed var(--royalcfm-primary);
	opacity: 0.6;
	min-height: 52px;
}

.royalcfm-field-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	min-height: 52px;
}

.royalcfm-field-handle {
	cursor: grab;
	color: var(--royalcfm-text-subtle);
	flex-shrink: 0;
}

.royalcfm-field-handle:active {
	cursor: grabbing;
}

.royalcfm-field-handle:hover {
	color: var(--royalcfm-text-muted);
}

.royalcfm-field-head-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.royalcfm-field-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--royalcfm-text);
	margin: 0;
}

.royalcfm-field-key {
	font-size: 12px;
	color: var(--royalcfm-text-subtle);
	font-weight: 400;
	font-family: Consolas, Monaco, monospace;
}

.royalcfm-field-type-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--royalcfm-primary);
	background: var(--royalcfm-primary-light);
	border-radius: 20px;
	text-transform: capitalize;
}

.royalcfm-field-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.royalcfm-field-chevron {
	color: var(--royalcfm-text-subtle);
	font-size: 20px;
	width: 20px;
	height: 20px;
	transition: transform var(--royalcfm-transition);
	flex-shrink: 0;
}

.royalcfm-field-row.royalcfm-field-open .royalcfm-field-chevron {
	transform: rotate(180deg);
}

.royalcfm-field-body {
	background: #fafafa;
	border-top: 1px solid var(--royalcfm-border-light);
}

.royalcfm-field-body-inner {
	padding: 20px 18px 24px;
}

.royalcfm-field-body .form-table {
	margin: 0;
}

.royalcfm-field-body .form-table th {
	width: 200px;
	padding: 12px 16px 12px 0;
	font-weight: 500;
	color: var(--royalcfm-text);
	vertical-align: top;
}

.royalcfm-field-body-inner .royalcfm-field-panels {
	margin-bottom: 24px;
}

.royalcfm-field-panels .royalcfm-panel {
	margin-bottom: 18px;
}

.royalcfm-field-panels .royalcfm-panel:last-child {
	margin-bottom: 0;
}

.royalcfm-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.royalcfm-form-grid .royalcfm-field-group-full {
	grid-column: 1 / -1;
}

.royalcfm-form-grid-2 {
	grid-template-columns: 1fr 1fr;
}

.royalcfm-form-grid-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

.royalcfm-field-panels .royalcfm-field-group label:first-child {
	margin: 0 0 6px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--royalcfm-text);
}

.royalcfm-field-panels .royalcfm-field-group input[type="text"],
.royalcfm-field-panels .royalcfm-field-group input[type="number"],
.royalcfm-field-panels .royalcfm-field-group select,
.royalcfm-field-panels .royalcfm-field-group textarea {
	width: 100%;
	padding: 8px 12px;
	font-size: 13px;
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
	background: var(--royalcfm-surface);
}

.royalcfm-field-panels .royalcfm-field-group textarea {
	min-height: 72px;
	resize: vertical;
}

.royalcfm-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--royalcfm-text-muted);
}

.royalcfm-field-panels .royalcfm-input-opts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.royalcfm-field-panels .royalcfm-input-opt label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

.royalcfm-field-panels .royalcfm-input-opt input[type="text"],
.royalcfm-field-panels .royalcfm-input-opt input[type="number"] {
	width: 80px;
	padding: 6px 10px;
	font-size: 13px;
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
}

.royalcfm-field-panels .royalcfm-panel-options .royalcfm-field-group textarea {
	min-height: 100px;
}

.royalcfm-field-body .form-table {
	margin-top: 4px;
}

.royalcfm-field-body .form-table td {
	padding: 12px 0;
}

.royalcfm-field-body .form-table input[type="text"],
.royalcfm-field-body .form-table input[type="number"],
.royalcfm-field-body .form-table select,
.royalcfm-field-body .form-table textarea {
	border-radius: var(--royalcfm-radius-sm);
	border: 1px solid var(--royalcfm-border);
	padding: 8px 12px;
	font-size: 13px;
}

.royalcfm-field-body .form-table input[type="text"]:focus,
.royalcfm-field-body .form-table input[type="number"]:focus,
.royalcfm-field-body .form-table select:focus,
.royalcfm-field-body .form-table textarea:focus {
	border-color: var(--royalcfm-primary);
	box-shadow: 0 0 0 1px var(--royalcfm-primary);
	outline: none;
}

.royalcfm-field-body .form-table textarea {
	min-height: 80px;
	resize: vertical;
}

.royalcfm-field-body .form-table .description {
	margin-top: 6px;
	font-size: 12px;
	color: var(--royalcfm-text-muted);
}

/* Checkboxes in form table */
.royalcfm-field-body .form-table label input[type="checkbox"] {
	margin-right: 6px;
}

.royalcfm-field-body .form-table label {
	display: inline-flex;
	align-items: center;
	margin-right: 16px;
	margin-bottom: 4px;
}

/* Section grouping: Visibility & Fee */
.royalcfm-field-body .form-table tr.royalcfm-visibility th,
.royalcfm-field-body .form-table tr.royalcfm-fee th {
	padding-top: 24px;
	border-top: 1px solid var(--royalcfm-border-light);
	vertical-align: top;
}

.royalcfm-section-intro {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: var(--royalcfm-text-muted);
	line-height: 1.5;
	max-width: 520px;
}

.royalcfm-panel {
	background: var(--royalcfm-surface);
	border: 1px solid var(--royalcfm-border-light);
	border-radius: var(--royalcfm-radius);
	padding: 20px 22px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.royalcfm-panel:last-child {
	margin-bottom: 0;
}

.royalcfm-panel-title {
	margin: 0 0 14px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--royalcfm-text);
	letter-spacing: -0.01em;
}

.royalcfm-panel-desc {
	margin: -4px 0 14px 0;
	font-size: 12px;
	color: var(--royalcfm-text-muted);
	line-height: 1.45;
}

.royalcfm-visibility p,
.royalcfm-fee p {
	margin: 0 0 12px 0;
}

.royalcfm-visibility p:last-child,
.royalcfm-fee p:last-child {
	margin-bottom: 0;
}

.royalcfm-visibility label,
.royalcfm-fee label {
	display: block;
	margin-right: 0;
	margin-bottom: 4px;
	font-weight: 500;
	color: var(--royalcfm-text);
	font-size: 13px;
}

.royalcfm-visibility input[type="text"],
.royalcfm-fee input[type="text"] {
	margin-top: 4px;
	width: 100%;
	max-width: 320px;
}

/* Extra conditions grid */
.royalcfm-extra-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.royalcfm-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.royalcfm-field-group label:first-child {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--royalcfm-text);
}

.royalcfm-field-group input[type="text"],
.royalcfm-field-group select {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	font-size: 13px;
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
	background: var(--royalcfm-surface);
}

.royalcfm-field-group-full {
	grid-column: 1 / -1;
}

.royalcfm-checkbox-row {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.royalcfm-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
}

.royalcfm-checkbox-label input[type="checkbox"] {
	margin: 0 !important;
}

/* Fee panel */
.royalcfm-panel-fee .royalcfm-fee-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px 0;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
}

.royalcfm-panel-fee .royalcfm-fee-toggle input {
	margin: 0 !important;
}

.royalcfm-fee-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
	margin-top: 4px;
}

.royalcfm-fee-fields .royalcfm-field-group-full {
	grid-column: 1 / -1;
}

@media screen and (max-width: 640px) {
	.royalcfm-extra-fields,
	.royalcfm-fee-fields {
		grid-template-columns: 1fr;
	}
	.royalcfm-form-grid,
	.royalcfm-form-grid-2,
	.royalcfm-form-grid-3 {
		grid-template-columns: 1fr;
	}
}

.royalcfm-visibility-rule {
	margin-bottom: 16px;
	padding: 12px;
	background: var(--royalcfm-surface);
	border: 1px solid var(--royalcfm-border-light);
	border-radius: var(--royalcfm-radius-sm);
}

.royalcfm-rule-label {
	margin: 0 0 10px 0;
	font-weight: 600;
	font-size: 12px;
	color: var(--royalcfm-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.royalcfm-visibility-rules .royalcfm-visibility-rule:not(.royalcfm-rule-template) {
	margin-bottom: 14px;
	padding: 14px 16px;
	background: var(--royalcfm-bg);
	border: 1px solid var(--royalcfm-border-light);
	border-radius: var(--royalcfm-radius-sm);
}

.royalcfm-visibility-rules .royalcfm-visibility-rule:not(.royalcfm-rule-template):last-of-type {
	margin-bottom: 16px;
}

.royalcfm-add-condition-wrap {
	margin: 0 !important;
	padding-top: 4px;
}

.royalcfm-add-condition {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	border-radius: var(--royalcfm-radius-sm) !important;
	border: 1px dashed var(--royalcfm-border) !important;
	background: transparent !important;
	color: var(--royalcfm-primary) !important;
	transition: border-color var(--royalcfm-transition), background var(--royalcfm-transition), color var(--royalcfm-transition);
}

.royalcfm-add-condition:hover {
	background: var(--royalcfm-primary-light) !important;
	border-color: var(--royalcfm-primary) !important;
	color: var(--royalcfm-primary-hover) !important;
}

.royalcfm-rule-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px 0;
}

.royalcfm-rule-remove {
	margin-left: auto;
	padding: 4px 8px !important;
	font-size: 12px !important;
	color: var(--royalcfm-text-muted);
	border-radius: 4px;
	transition: color var(--royalcfm-transition), background var(--royalcfm-transition);
}

.royalcfm-rule-remove:hover {
	color: var(--royalcfm-danger, #b32d2e);
	background: var(--royalcfm-danger-bg);
}

.royalcfm-rule-type,
.royalcfm-rule-operator {
	min-width: 140px;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: var(--royalcfm-radius-sm);
	border: 1px solid var(--royalcfm-border);
	background: var(--royalcfm-surface);
}

.royalcfm-rule-type {
	min-width: 180px;
}

.royalcfm-rule-value-wrap {
	position: relative;
	min-width: 260px;
	max-width: 400px;
	margin-top: 10px;
}

.royalcfm-rule-value-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
	min-height: 0;
}

.royalcfm-rule-value-tags:empty {
	display: none;
}

.royalcfm-rule-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	font-size: 12px;
	background: var(--royalcfm-primary-light);
	color: var(--royalcfm-primary);
	border-radius: 4px;
	border: 1px solid rgba(56, 88, 233, 0.25);
}

.royalcfm-rule-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	margin-left: 2px;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
	opacity: 0.8;
	border-radius: 2px;
}

.royalcfm-rule-tag-remove:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.1);
}

.royalcfm-rule-value-trigger {
	display: inline-block;
	padding: 8px 12px;
	font-size: 13px;
	color: var(--royalcfm-text-muted);
	background: var(--royalcfm-surface);
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
	cursor: pointer;
	text-align: left;
	width: 100%;
	transition: border-color var(--royalcfm-transition), color var(--royalcfm-transition);
}

.royalcfm-rule-value-trigger:hover {
	border-color: var(--royalcfm-primary);
	color: var(--royalcfm-text);
}

.royalcfm-rule-value-wrap.is-open .royalcfm-rule-value-trigger {
	border-color: var(--royalcfm-primary);
	color: var(--royalcfm-text);
}

.royalcfm-rule-value-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	max-height: 280px;
	overflow-y: auto;
	background: var(--royalcfm-surface);
	border: 1px solid var(--royalcfm-border);
	border-radius: var(--royalcfm-radius-sm);
	box-shadow: var(--royalcfm-shadow-md);
	z-index: 100;
	padding: 8px 0;
}

.royalcfm-rule-value-wrap.is-open .royalcfm-rule-value-dropdown {
	display: block;
}

.royalcfm-rule-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.royalcfm-rule-check:hover {
	background: var(--royalcfm-border-light);
}

.royalcfm-rule-check input {
	margin: 0;
	flex-shrink: 0;
}

.royalcfm-rule-value {
	min-width: 220px;
	min-height: 32px;
	max-height: 120px;
	padding: 4px 8px;
	border-radius: var(--royalcfm-radius-sm);
	border: 1px solid var(--royalcfm-border);
}

.royalcfm-visibility-rule .description {
	margin: 0;
	font-size: 12px;
	color: var(--royalcfm-text-muted);
}

.royalcfm-input-options label {
	display: inline-flex;
	align-items: center;
	margin-right: 16px;
	margin-bottom: 8px;
}

.royalcfm-input-opt {
	display: inline-block;
	margin-right: 16px;
	margin-bottom: 8px;
}

.royalcfm-input-opt[style*="display: none"] {
	display: none !important;
}

.royalcfm-input-options input[type="number"],
.royalcfm-input-options input[type="text"] {
	width: 72px;
	margin-left: 6px;
}

.royalcfm-type-row[style*="display: none"] {
	display: none !important;
}

.royalcfm-options-text {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Submit bar
   ------------------------------------------------------------------------- */
.royalcfm-submit-bar {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--royalcfm-border);
	max-width: 960px;
}

/* -------------------------------------------------------------------------
   Empty state
   ------------------------------------------------------------------------- */
.royalcfm-empty-state {
	text-align: center;
	max-width: 400px;
	margin: 40px auto 0;
	padding: 48px 24px;
	background: var(--royalcfm-surface);
	border: 1px dashed var(--royalcfm-border);
	border-radius: var(--royalcfm-radius);
}

.royalcfm-empty-state-icon {
	margin-bottom: 16px;
}

.royalcfm-empty-state-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--royalcfm-text-subtle);
}

.royalcfm-empty-state-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--royalcfm-text);
	margin: 0 0 8px 0;
}

.royalcfm-empty-state-desc {
	font-size: 13px;
	color: var(--royalcfm-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Admin order meta (display in order edit)
   ------------------------------------------------------------------------- */
.royalcfm-admin-fields {
	margin-top: 12px;
	padding: 12px;
	background: #f6f7f7;
	border-radius: var(--royalcfm-radius-sm);
}

.royalcfm-admin-fields h4 {
	margin: 0 0 8px 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--royalcfm-text-muted);
}

.royalcfm-admin-fields p {
	margin: 4px 0;
	font-size: 13px;
}
