.cpcf-admin {
	--cpcf-bg: #f5f1e8;
	--cpcf-surface: #fffdf8;
	--cpcf-surface-strong: #ffffff;
	--cpcf-border: #e6ddcf;
	--cpcf-border-strong: #d9c9ab;
	--cpcf-text: #1f252d;
	--cpcf-muted: #6d727a;
	--cpcf-accent: #b98a32;
	--cpcf-accent-dark: #8f6721;
	--cpcf-accent-soft: #f5ead3;
	--cpcf-shadow: 0 18px 46px rgba(20, 26, 34, 0.08);
	--cpcf-font-heading: inherit;
	--cpcf-font-body: inherit;
	margin: 24px 20px 0 0;
	color: var(--cpcf-text);
	font-family: inherit;
}

.cpcf-admin > * + * {
	margin-top: 14px;
}

.cpcf-admin * {
	box-sizing: border-box;
}

.cpcf-editor [hidden] {
	display: none !important;
}

.cpcf-admin button,
.cpcf-admin input,
.cpcf-admin select,
.cpcf-admin textarea {
	font-family: var(--cpcf-font-body);
}

.cpcf-admin__notice-stack:empty {
	display: none;
}

.cpcf-admin__notice-stack {
	margin-bottom: 18px;
}

.cpcf-admin__notice-stack .notice {
	margin: 18px 0 0;
	border-radius: 12px;
	overflow: hidden;
	padding: 12px 16px;
	border-left-width: 4px;
	border-left-style: solid;
	background: #ffffff;
	color: var(--cpcf-text);
}

.cpcf-admin__notice-stack .notice:first-child {
	margin-top: 0;
}

.cpcf-admin__notice-stack .notice p {
	margin: 0;
	color: inherit;
}

.cpcf-admin__notice-stack .notice.notice-success {
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #166534;
}

.cpcf-admin__notice-stack .notice.notice-warning {
	border-left-color: #d97706;
	background: #fffbeb;
	color: #92400e;
}

.cpcf-admin__notice-stack .notice.notice-error {
	border-left-color: #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.cpcf-admin .button-primary {
	background: var(--cpcf-accent);
	border-color: var(--cpcf-accent-dark);
	color: #ffffff;
	box-shadow: none;
	text-shadow: none;
}

.cpcf-admin .button-primary:hover,
.cpcf-admin .button-primary:focus {
	background: var(--cpcf-accent-dark);
	border-color: var(--cpcf-accent-dark);
	color: #ffffff;
}

.cpcf-admin .button-secondary {
	border-color: var(--cpcf-border-strong);
	color: var(--cpcf-text);
	background: #ffffff;
}

.cpcf-admin__hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 24px 28px;
	border-radius: 22px;
	border: 1px solid rgba(201, 148, 47, 0.22);
	background: #131b24;
	box-shadow: 0 22px 44px rgba(10, 14, 20, 0.2);
	color: #ffffff;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.cpcf-admin__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)) 0 0 / 100% 100% no-repeat,
		radial-gradient(circle at top right, rgba(201, 148, 47, 0.12), transparent 28%);
	pointer-events: none;
	z-index: -2;
}

.cpcf-admin__hero::after {
	content: "";
	position: absolute;
	inset: auto 28px 0 auto;
	width: 136px;
	height: 136px;
	border: 1px solid rgba(201, 148, 47, 0.16);
	border-radius: 22px;
	transform: translate(30%, 30%) rotate(12deg);
	pointer-events: none;
	z-index: -1;
}

.cpcf-admin__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #d2a548;
}

.cpcf-admin__hero-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.04;
	font-weight: 600;
	letter-spacing: -0.035em;
	color: #ffffff;
}

.cpcf-admin__hero-description {
	max-width: 680px;
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(239, 243, 249, 0.8);
}

.cpcf-admin__hero-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	max-width: 760px;
	flex: 1 1 520px;
}

.cpcf-admin__hero-copy {
	min-width: 0;
	position: relative;
}

.cpcf-admin__hero-copy::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -14px;
	width: 72px;
	height: 3px;
	border-radius: 999px;
	background: #c9942f;
}

.cpcf-admin__hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	align-items: center;
	margin-left: auto;
}

.cpcf-admin__hero-actions .button-secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

.cpcf-admin__hero-actions .button-secondary:hover,
.cpcf-admin__hero-actions .button-secondary:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.38);
	color: #ffffff;
}

.cpcf-admin .button-hero {
	min-width: 170px;
	padding: 0 18px;
	height: 42px;
	border-radius: 999px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0.01em;
	text-align: center;
	white-space: nowrap;
	box-shadow: none;
}

.cpcf-admin__dashboard {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.cpcf-admin__dashboard .cpcf-admin__hero {
	gap: 16px;
	padding: 22px 24px;
	box-shadow: 0 16px 32px rgba(10, 14, 20, 0.16);
}

.cpcf-admin__dashboard .cpcf-admin__hero::after,
.cpcf-admin__dashboard .cpcf-admin__hero-copy::after {
	display: none;
}

.cpcf-admin__dashboard .cpcf-admin__hero-title {
	font-size: 30px;
	line-height: 1.08;
}

.cpcf-admin__dashboard .cpcf-admin__hero-description {
	max-width: 620px;
	font-size: 14px;
	line-height: 1.6;
}

.cpcf-admin__dashboard .cpcf-list-panel,
.cpcf-admin__dashboard .cpcf-empty-state {
	padding: 22px 24px;
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(20, 26, 34, 0.05);
}

.cpcf-empty-state,
.cpcf-list-panel,
.cpcf-panel {
	margin-top: 0;
	padding: 18px;
	border: 1px solid var(--cpcf-border);
	border-radius: 18px;
	background: var(--cpcf-surface);
	box-shadow: var(--cpcf-shadow);
}

.cpcf-empty-state {
	text-align: center;
	padding: 42px 24px;
	background:
		radial-gradient(circle at top, rgba(185, 138, 50, 0.12), transparent 40%),
		var(--cpcf-surface);
}

.cpcf-empty-state__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cpcf-accent-soft);
	color: var(--cpcf-accent-dark);
}

.cpcf-empty-state__icon .dashicons {
	width: 30px;
	height: 30px;
	font-size: 30px;
}

.cpcf-empty-state h2,
.cpcf-list-panel__header h2,
.cpcf-editor__topbar h2,
.cpcf-panel__header h3,
.cpcf-filter-card__header h3,
.cpcf-style-card h4,
.cpcf-style-group h5,
.cpcf-style-state-panel h6 {
	margin: 0;
	color: var(--cpcf-text);
	font-family: var(--cpcf-font-heading);
}

.cpcf-empty-state p,
.cpcf-list-panel__header p,
.cpcf-panel__header p,
.cpcf-editor__topbar p,
.cpcf-sidebar-card p,
.cpcf-filter-card__meta-value,
.cpcf-back-link,
.cpcf-category-option__path,
.cpcf-field .description {
	color: var(--cpcf-muted);
}

.cpcf-empty-state p {
	max-width: 620px;
	margin: 12px auto 20px;
	font-size: 15px;
	line-height: 1.6;
}

.cpcf-list-panel__header,
.cpcf-editor__topbar,
.cpcf-panel__header--with-tools {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
}

.cpcf-section-count {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--cpcf-accent-soft);
	color: var(--cpcf-accent-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cpcf-section-count--soft {
	background: #f5f2eb;
	color: var(--cpcf-muted);
}

.cpcf-empty-state h2,
.cpcf-list-panel__header h2,
.cpcf-editor__topbar h2 {
	font-size: 28px;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.cpcf-panel__header h3 {
	font-size: 20px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cpcf-panel__header p,
.cpcf-editor__topbar p {
	margin: 6px 0 0;
	max-width: 760px;
	line-height: 1.55;
}

.cpcf-list-panel__header p {
	margin: 8px 0 0;
	line-height: 1.55;
}

.cpcf-admin__dashboard .cpcf-list-panel__header {
	gap: 18px;
}

.cpcf-admin__dashboard .cpcf-list-panel__header h2 {
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.cpcf-admin__dashboard .cpcf-list-panel__header p {
	max-width: 680px;
	font-size: 14px;
	line-height: 1.6;
}

.cpcf-collapsible > .cpcf-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.cpcf-collapsible > .cpcf-panel__header > div,
.cpcf-collapsible > .cpcf-style-card__heading > div {
	min-width: 0;
	flex: 1 1 auto;
}

.cpcf-collapsible__toggle {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--cpcf-border-strong);
	border-radius: 999px;
	background: #ffffff;
	color: var(--cpcf-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cpcf-collapsible__toggle:hover,
.cpcf-collapsible__toggle:focus-visible {
	border-color: var(--cpcf-accent-dark);
	background: var(--cpcf-accent-soft);
	color: var(--cpcf-text);
	outline: none;
}

.cpcf-collapsible__toggle-label {
	white-space: nowrap;
}

.cpcf-collapsible__toggle-icon {
	width: 16px;
	height: 16px;
	font-size: 16px;
	transition: transform 0.2s ease;
}

.cpcf-collapsible.is-collapsed > .cpcf-style-card__heading,
.cpcf-collapsible.is-collapsed > .cpcf-panel__header {
	margin-bottom: 0;
}

.cpcf-collapsible.is-collapsed .cpcf-collapsible__toggle-icon {
	transform: rotate(180deg);
}

.cpcf-collapsible__body[hidden] {
	display: none !important;
}

.cpcf-toggle-card.is-disabled {
	opacity: 0.58;
	pointer-events: none;
}

.cpcf-plan-note {
	font-size: 13px;
	color: var(--cpcf-accent-dark);
}

.cpcf-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.cpcf-admin__dashboard .cpcf-filter-grid {
	gap: 18px;
	margin-top: 20px;
}

.cpcf-list-panel__empty {
	margin: 12px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.6;
}

.cpcf-settings-form {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cpcf-settings-form__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cpcf-list-panel--settings .cpcf-toggle-grid {
	gap: 8px;
}

.cpcf-list-panel--settings .cpcf-toggle-card {
	padding: 10px 12px;
	border-radius: 14px;
}

.cpcf-list-panel--settings .cpcf-settings-form__actions .button {
	min-height: 34px;
	padding: 0 12px;
	line-height: 32px;
}

.cpcf-filter-card {
	padding: 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 16px;
	background: var(--cpcf-surface-strong);
	box-shadow: 0 12px 32px rgba(25, 31, 39, 0.06);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cpcf-admin__dashboard .cpcf-filter-card {
	padding: 20px;
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(25, 31, 39, 0.05);
	gap: 14px;
}

.cpcf-filter-card__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.cpcf-filter-card__summary {
	min-width: 0;
}

.cpcf-filter-card__type {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cpcf-text);
}

.cpcf-filter-card__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cpcf-border);
}

.cpcf-filter-card__details--single {
	grid-template-columns: minmax(0, 1fr);
}

.cpcf-filter-card__detail {
	min-width: 0;
}

.cpcf-filter-card__detail-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cpcf-muted);
}

.cpcf-filter-card__detail-value {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cpcf-text);
}

.cpcf-filter-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	max-width: none;
}

.cpcf-admin__dashboard .cpcf-filter-card__actions {
	gap: 8px;
}

.cpcf-filter-card__actions .button {
	min-height: 34px;
	padding: 0 12px;
	line-height: 32px;
}

.cpcf-admin__dashboard .cpcf-filter-card__actions .button {
	min-height: 36px;
	line-height: 34px;
}

.cpcf-inline-form {
	margin: 0;
	display: inline-flex;
}

.cpcf-button-danger {
	border-color: #efc3c0 !important;
	background: #fff7f6 !important;
	color: #b42318 !important;
}

.cpcf-button-danger:hover,
.cpcf-button-danger:focus {
	border-color: #d92d20 !important;
	background: #fef3f2 !important;
	color: #912018 !important;
}

.cpcf-filter-card__header h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.2;
}

.cpcf-admin__dashboard .cpcf-filter-card__header h3 {
	font-size: 20px;
	line-height: 1.25;
}

.cpcf-filter-card__badges,
.cpcf-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.cpcf-badge,
.cpcf-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.cpcf-badge {
	background: var(--cpcf-accent-soft);
	color: var(--cpcf-accent-dark);
}

.cpcf-badge--subtle,
.cpcf-chip {
	background: #f5f2eb;
	color: var(--cpcf-muted);
}

.cpcf-filter-card__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
	align-items: stretch;
}

.cpcf-filter-card__meta-item {
	padding: 9px 10px;
	border: 1px solid var(--cpcf-border);
	border-radius: 12px;
	background: #fcfaf5;
}

.cpcf-filter-card__meta-label,
.cpcf-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cpcf-muted);
}

.cpcf-filter-card__meta-value {
	margin: 0;
	line-height: 1.45;
}

.cpcf-shortcode-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--cpcf-border);
	border-radius: 12px;
	background: #fcfaf5;
}

.cpcf-shortcode-box--stacked,
.cpcf-shortcode-box--static {
	align-items: flex-start;
	flex-direction: column;
}

.cpcf-shortcode-box code {
	font-size: 13px;
	word-break: break-all;
	background: transparent;
	padding: 0;
	color: var(--cpcf-text);
	line-height: 1.4;
}

.cpcf-filter-card__footer {
	padding-top: 8px;
	border-top: 1px solid var(--cpcf-border);
}

.cpcf-filter-card__footer .cpcf-chip-list {
	margin-top: 6px;
}

.cpcf-editor {
	margin-top: 10px;
	padding-bottom: 20px;
}

.cpcf-editor__hero {
	margin-bottom: 20px;
	align-items: flex-end;
}

.cpcf-editor__hero .cpcf-back-link {
	margin-bottom: 12px;
	color: rgba(239, 243, 249, 0.78);
}

.cpcf-editor__hero .cpcf-back-link:hover,
.cpcf-editor__hero .cpcf-back-link:focus {
	color: #ffffff;
}

.cpcf-editor__hero .cpcf-admin__hero-title,
.cpcf-editor__hero .cpcf-admin__hero-description {
	max-width: 760px;
}

.cpcf-editor__topbar {
	margin-bottom: 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--cpcf-border);
}

.cpcf-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	text-decoration: none;
	font-weight: 600;
}

.cpcf-back-link:hover,
.cpcf-back-link:focus {
	color: var(--cpcf-text);
}

.cpcf-editor__actions,
.cpcf-editor__footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.cpcf-editor__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
	gap: 20px;
	align-items: start;
}

.cpcf-editor__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.cpcf-panel {
	padding: 20px;
	background: var(--cpcf-surface);
}

.cpcf-panel--sidebar {
	position: sticky;
	top: 32px;
	height: fit-content;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cpcf-sidebar-card {
	padding: 16px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #fcfaf5;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cpcf-sidebar-card p {
	margin: 0;
	line-height: 1.6;
}

.cpcf-sidebar-card .cpcf-field__label:not(:first-child) {
	margin-top: 2px;
}

.cpcf-sidebar-card--nav {
	gap: 14px;
}

.cpcf-editor-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.cpcf-editor-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 13px;
	border: 1px solid var(--cpcf-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--cpcf-text);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cpcf-editor-nav a::after {
	content: '\2192';
	color: var(--cpcf-accent-dark);
	font-size: 13px;
	line-height: 1;
}

.cpcf-editor-nav a:hover,
.cpcf-editor-nav a:focus {
	border-color: var(--cpcf-accent-dark);
	box-shadow: 0 8px 20px rgba(25, 31, 39, 0.06);
	transform: translateY(-1px);
	color: var(--cpcf-text);
	outline: none;
}

.cpcf-panel__header--sectioned {
	align-items: flex-start;
	gap: 16px;
}

.cpcf-panel__header-main {
	min-width: 0;
	flex: 1 1 auto;
}

.cpcf-panel__header-top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cpcf-editor-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cpcf-editor-section-grid {
	display: grid;
	gap: 14px;
	align-items: start;
}

.cpcf-editor-section-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cpcf-sidebar-card--danger {
	border-color: #efc3c0;
	background: #fff7f6;
}

.cpcf-sidebar-card .button-link-delete {
	padding: 0;
	border: 0;
	background: transparent;
	color: #b42318;
	text-decoration: none;
	box-shadow: none;
}

.cpcf-field-grid {
	display: grid;
	gap: 14px;
}

.cpcf-field-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0;
}

.cpcf-field-grid .cpcf-filter-swatch-style-settings,
.cpcf-field-grid .cpcf-filter-checkbox-style-settings {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: inherit;
}

.cpcf-field-grid--basics {
	grid-template-columns: 1fr;
	margin-top: 16px;
	margin-bottom: 16px;
	align-items: start;
}

.cpcf-basics-section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cpcf-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cpcf-basics-section .description {
	max-width: 860px;
}

.cpcf-basics-section > .description {
	margin: 0;
}

.cpcf-basics-section .cpcf-field__label {
	margin-bottom: 6px;
}

.cpcf-basics-section .cpcf-field .description {
	margin-top: 6px;
}

.cpcf-basics-section .cpcf-field .description + .description {
	margin-top: 4px;
}

.cpcf-basics-section .cpcf-toggle-card--compact {
	padding-top: 10px;
	padding-bottom: 10px;
}

.cpcf-filter-reference-list {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.cpcf-filter-reference {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.cpcf-filter-reference:hover,
.cpcf-filter-reference:focus-within {
	border-color: var(--cpcf-accent-dark);
	box-shadow: 0 8px 24px rgba(25, 31, 39, 0.06);
	transform: translateY(-1px);
}

.cpcf-filter-reference__selection {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	cursor: pointer;
}

.cpcf-filter-reference__selection input[type='checkbox'] {
	margin: 4px 0 0;
	flex: 0 0 auto;
}

.cpcf-filter-reference__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cpcf-filter-reference__body strong {
	color: var(--cpcf-text);
	font-size: 14px;
	line-height: 1.4;
}

.cpcf-filter-reference__meta {
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-filter-reference__order {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cpcf-filter-reference__order-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cpcf-muted);
}

.cpcf-filter-reference__order input[type='number'] {
	width: 100%;
	min-height: 40px;
}

.cpcf-field-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpcf-field {
	display: block;
}

.cpcf-field input[type='text'],
.cpcf-field input[type='number'],
.cpcf-field select,
.cpcf-category-search {
	width: 100%;
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid var(--cpcf-border-strong);
	border-radius: 12px;
	background: #ffffff;
}

.cpcf-field--number input[type='number'] {
	width: 148px;
	max-width: 100%;
	padding-right: 10px;
}

.cpcf-field .description {
	margin: 8px 0 0;
	line-height: 1.5;
}

.cpcf-choice-grid,
.cpcf-toggle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}

.cpcf-choice-grid + .cpcf-toggle-grid,
.cpcf-choice-grid + .cpcf-choice-grid,
.cpcf-filter-display-mode-settings {
	margin-top: 12px;
}

.cpcf-filter-display-mode-settings .cpcf-field__label,
.cpcf-filter-swatch-shape-settings .cpcf-field__label,
.cpcf-filter-swatch-layout-settings .cpcf-field__label {
	display: block;
	margin-bottom: 8px;
}

.cpcf-filter-swatch-shape-settings,
.cpcf-filter-swatch-layout-settings {
	margin-top: 12px;
}

.cpcf-filter-display-mode-settings[hidden],
.cpcf-filter-swatch-extra-settings[hidden],
.cpcf-filter-swatch-shape-settings[hidden],
.cpcf-filter-swatch-style-settings[hidden],
.cpcf-filter-checkbox-style-settings[hidden] {
	display: none !important;
}

.cpcf-toggle-grid--single {
	grid-template-columns: 1fr;
}

.cpcf-toggle-grid--after-basics {
	margin-top: 6px;
	margin-bottom: 4px;
}

.cpcf-choice-card,
.cpcf-toggle-card {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #fcfaf5;
}

.cpcf-choice-card {
	align-items: flex-start;
	padding: 14px 16px;
}

.cpcf-toggle-card {
	align-items: flex-start;
}

.cpcf-choice-card input,
.cpcf-toggle-card input {
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.cpcf-toggle-card--compact {
	padding-top: 12px;
	padding-bottom: 12px;
}

.cpcf-choice-card strong,
.cpcf-toggle-card strong {
	display: block;
	color: var(--cpcf-text);
	font-weight: 600;
}

.cpcf-toggle-card > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.cpcf-toggle-card small {
	display: block;
	line-height: 1.5;
	color: var(--cpcf-muted);
	font-weight: 400;
}

.cpcf-choice-card small {
	display: block;
	margin-top: 4px;
	line-height: 1.5;
	color: var(--cpcf-muted);
}

.cpcf-category-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	max-height: 520px;
	overflow: auto;
	padding-right: 6px;
	margin-top: 14px;
}

.cpcf-category-option {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
}

.cpcf-category-option__select {
	display: block;
	position: relative;
	cursor: pointer;
}

.cpcf-category-option__select > input[type="checkbox"] {
	position: absolute;
	top: 14px;
	left: 14px;
	margin: 0;
	z-index: 1;
}

.cpcf-category-option__body {
	position: relative;
	display: block;
	padding: 12px 14px 12px calc(42px + (var(--cpcf-depth, 0) * 16px));
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cpcf-category-option__body::before {
	content: '';
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: calc(25px + (var(--cpcf-depth, 0) * 16px));
	width: 1px;
	background: rgba(185, 138, 50, 0.22);
}

.cpcf-category-option__select > input[type="checkbox"]:checked + .cpcf-category-option__body {
	border-color: var(--cpcf-accent);
	background: #fffaf0;
	box-shadow: 0 10px 24px rgba(185, 138, 50, 0.14);
}

.cpcf-category-option__topline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cpcf-category-option__name {
	font-weight: 600;
	color: var(--cpcf-text);
}

.cpcf-category-option__slug {
	padding: 4px 8px;
	border-radius: 999px;
	background: #f4efe5;
	font-size: 12px;
	color: var(--cpcf-muted);
}

.cpcf-category-option__path {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.5;
}

.cpcf-category-option__path::before {
	content: 'Path:';
	display: inline-block;
	margin-right: 6px;
	font-weight: 600;
	color: var(--cpcf-accent-dark);
}

.cpcf-term-color-hint {
	margin: 8px 0 0;
	color: var(--cpcf-muted);
}

.cpcf-term-color-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 42px;
	padding: 0 2px 4px;
}

.cpcf-term-color-wrap[hidden] {
	display: none !important;
}

.cpcf-term-color-wrap__label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: var(--cpcf-muted);
}

.cpcf-term-color-picker {
	width: 36px;
	height: 32px;
	padding: 2px;
	border: 1px solid var(--cpcf-border);
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
}

.cpcf-term-color-hex {
	width: 7.5em;
	max-width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--cpcf-border);
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.cpcf-category-search-empty {
	margin-top: 14px;
	color: var(--cpcf-muted);
}

.cpcf-source-taxonomy-field[hidden],
.cpcf-term-list-panel[hidden] {
	display: none !important;
}

.cpcf-term-panel-meta {
	margin-bottom: 10px;
}

.cpcf-term-list-empty {
	margin: 0;
	color: var(--cpcf-muted);
}

.cpcf-terms-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
	gap: 18px;
	align-items: start;
	margin-top: 14px;
}

.cpcf-terms-workspace__list,
.cpcf-terms-workspace__order {
	min-width: 0;
}

.cpcf-terms-workspace__order {
	position: sticky;
	top: 16px;
	align-self: start;
	padding: 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #fcfaf5;
}

.cpcf-selection-order-panel {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cpcf-border);
}

.cpcf-selection-order-panel--side {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.cpcf-selection-order-panel .description {
	margin: 0 0 10px;
	line-height: 1.5;
}

.cpcf-sortable-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.cpcf-sortable-list__empty {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--cpcf-border-strong);
	border-radius: 14px;
	background: #fffdf8;
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-sortable-item {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(25, 31, 39, 0.04);
	min-height: 54px;
	box-sizing: border-box;
}

.cpcf-sortable-item--placeholder {
	min-height: 54px;
	border: 1px dashed var(--cpcf-accent-dark);
	border-radius: 14px;
	background: #fffaf0;
	box-shadow: none;
	visibility: visible !important;
}

.cpcf-sortable-item__handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #f5f2eb;
	color: var(--cpcf-muted);
	font-size: 16px;
	cursor: move;
}

.cpcf-sortable-item__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cpcf-sortable-item__body strong {
	color: var(--cpcf-text);
	font-size: 14px;
	line-height: 1.35;
}

.cpcf-sortable-item__body small {
	color: var(--cpcf-muted);
	line-height: 1.45;
}

.cpcf-add-panel-heading {
	margin: 0 0 12px;
}

.cpcf-sortable-item.cpcf-sortable-item--heading {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	background: #f7f1e4;
	border-color: #e4d6b8;
}

.cpcf-sortable-item__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cpcf-sortable-item__toolbar .cpcf-sortable-item__remove {
	margin-left: auto;
}

.cpcf-sortable-item__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 999px;
	background: #efe4cc;
	color: var(--cpcf-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cpcf-sortable-item--heading .cpcf-sortable-item__heading-field {
	min-width: 0;
	width: 100%;
	margin: 0;
}

.cpcf-sortable-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cpcf-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cpcf-sortable-item__remove:hover,
.cpcf-sortable-item__remove:focus {
	background: #efe4cc;
	color: var(--cpcf-text);
}

.cpcf-sortable-item__order {
	display: none;
}

.cpcf-style-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cpcf-style-grid--single-column {
	grid-template-columns: 1fr;
}

.cpcf-style-card {
	padding: 16px;
	border: 1px solid var(--cpcf-border);
	border-radius: 16px;
	background: #fcfaf5;
}

.cpcf-style-card__heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.cpcf-style-card--wide {
	grid-column: 1 / -1;
}

.cpcf-style-card--panel-clear,
.cpcf-style-card--panel-mobile,
.cpcf-style-card--panel-separators {
	margin-top: 18px;
}

.cpcf-style-card h4 {
	margin: 0;
	font-size: 17px;
	color: var(--cpcf-text);
}

.cpcf-style-card > .cpcf-field-grid,
.cpcf-style-group > .cpcf-field-grid {
	margin-top: 12px;
}

.cpcf-style-card__heading p,
.cpcf-style-group p {
	margin: 6px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.55;
}

.cpcf-feature-lock {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px dashed var(--cpcf-border-strong);
	border-radius: 14px;
	background: #fffaf0;
}

.cpcf-feature-lock--compact {
	margin-top: 16px;
}

.cpcf-feature-lock__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--cpcf-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cpcf-feature-lock__content {
	min-width: 0;
	flex: 1 1 auto;
}

.cpcf-feature-lock__content strong {
	display: block;
	color: var(--cpcf-text);
	font-size: 13px;
	line-height: 1.4;
}

.cpcf-feature-lock__content p {
	margin: 6px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-feature-lock__action {
	margin: 10px 0 0;
}

.cpcf-feature-lock__action a {
	color: var(--cpcf-accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.cpcf-feature-lock__action a:hover,
.cpcf-feature-lock__action a:focus {
	color: var(--cpcf-accent-dark);
	text-decoration: underline;
}

.cpcf-style-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cpcf-style-groups--stacked {
	grid-template-columns: 1fr;
}

.cpcf-style-groups--compact {
	gap: 10px;
}

.cpcf-style-groups--responsive {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpcf-style-group {
	padding: 14px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #ffffff;
}

.cpcf-style-groups--compact .cpcf-style-group {
	padding: 12px;
}

.cpcf-style-group h5 {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--cpcf-text);
}

.cpcf-style-group__intro h5 {
	margin: 0;
}

.cpcf-style-group__intro p {
	margin: 8px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-panel-mobile-preview {
	margin-top: 12px;
	padding: 10px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #fcfaf5;
}

.cpcf-panel-mobile-preview__toggle {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #1d2327;
	border-radius: 12px;
	background: #1d2327;
	color: #ffffff;
	font-family: var(--cpcf-font-heading);
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
}

.cpcf-panel-mobile-preview__toggle-main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

.cpcf-panel-mobile-preview__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.cpcf-panel-mobile-preview__icon svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.cpcf-panel-mobile-preview__label {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	white-space: nowrap;
}


.cpcf-panel-mobile-preview__arrow {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transform-origin: center;
	flex: 0 0 auto;
}

.cpcf-style-group--states {
	align-self: start;
}

.cpcf-style-group--states .cpcf-field-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpcf-style-state-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 12px;
}

.cpcf-style-state-panel {
	padding: 12px;
	border: 1px solid var(--cpcf-border);
	border-radius: 14px;
	background: #fcfaf5;
	width: 100%;
}

.cpcf-style-state-panel h6 {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cpcf-text);
}

.cpcf-style-state-panel p {
	margin: 6px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-style-state-panel > .cpcf-field-grid {
	margin-top: 12px;
}

.cpcf-responsive-inline {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--cpcf-border-strong);
}

.cpcf-responsive-inline[hidden] {
	display: none !important;
}

.cpcf-responsive-inline__header {
	margin-bottom: 14px;
}

.cpcf-responsive-inline__header p {
	margin: 8px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.5;
}

.cpcf-responsive-inline__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--cpcf-accent-soft);
	color: var(--cpcf-accent-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cpcf-style-card--preview {
	padding: 16px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(252, 250, 245, 0.98)),
		#fcfaf5;
}

.cpcf-preview-mode {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f1eadb;
	color: var(--cpcf-accent-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cpcf-preview-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.cpcf-preview-toolbar__actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cpcf-preview-feedback {
	margin: 0 0 12px;
	color: var(--cpcf-muted);
	font-size: 13px;
	line-height: 1.5;
}

.cpcf-preview-feedback.is-error {
	color: #a12622;
}

.cpcf-preview-feedback.is-success {
	color: #146c2e;
}

.cpcf-preview-context {
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(185, 138, 50, 0.25);
	border-radius: 16px;
	background: rgba(245, 234, 211, 0.48);
}

.cpcf-preview-context__title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cpcf-accent-dark);
}

.cpcf-preview-context__description {
	margin: 8px 0 0;
	color: var(--cpcf-muted);
	line-height: 1.6;
}

.cpcf-preview-switcher {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cpcf-preview-switcher__button {
	padding: 8px 12px;
	border: 1px solid var(--cpcf-border-strong);
	border-radius: 999px;
	background: #ffffff;
	color: var(--cpcf-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cpcf-preview-switcher__button:hover,
.cpcf-preview-switcher__button:focus-visible {
	border-color: var(--cpcf-accent-dark);
	color: var(--cpcf-accent-dark);
	outline: none;
	transform: translateY(-1px);
}

.cpcf-preview-switcher__button.is-active {
	background: var(--cpcf-accent);
	border-color: var(--cpcf-accent-dark);
	color: #ffffff;
}

.cpcf-style-preview-frame {
	display: flex;
	justify-content: center;
	width: 100%;
}

.cpcf-style-preview {
	width: 100%;
	max-width: 100%;
	padding: 16px;
	border: 1px solid var(--cpcf-border);
	border-radius: 16px;
	background: #ffffff;
	transition: max-width 0.2s ease, padding 0.2s ease;
}

.cpcf-style-preview[data-preview-device='laptop'] {
	max-width: 1080px;
}

.cpcf-style-preview[data-preview-device='tablet'] {
	max-width: 768px;
}

.cpcf-style-preview[data-preview-device='mobile'] {
	max-width: 390px;
}

.cpcf-style-preview__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.cpcf-style-preview__taxonomy[hidden] {
	display: none !important;
}

.cpcf-style-preview.is-vertical .cpcf-style-preview__choices {
	align-items: stretch;
}

.cpcf-style-preview__choice {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.cpcf-style-preview__choice-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cpcf-style-preview.is-vertical .cpcf-style-preview__choice,
.cpcf-style-preview.is-vertical .cpcf-style-preview__choice-row,
.cpcf-style-preview.is-vertical .cpcf-style-preview__button {
	width: 100%;
}

.cpcf-style-preview__state {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	background: #f5f2eb;
	color: var(--cpcf-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cpcf-style-preview__checkbox {
	display: none;
	width: var(--cpcf-admin-checkbox-size, 18px);
	height: var(--cpcf-admin-checkbox-size, 18px);
	border: var(--cpcf-admin-checkbox-border-width, 2px) solid var(--cpcf-border-strong);
	border-radius: var(--cpcf-admin-checkbox-radius, 5px);
	background: #ffffff;
	flex: 0 0 auto;
	box-shadow: inset 0 0 0 2px #ffffff;
}

.cpcf-style-preview.is-multiple .cpcf-style-preview__checkbox {
	display: inline-block;
}

.cpcf-style-preview.is-multiple .cpcf-style-preview__choice.is-active .cpcf-style-preview__checkbox {
	background: var(--cpcf-accent);
	border-color: var(--cpcf-accent-dark);
}

.cpcf-style-preview__swatch {
	display: none;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: var(--cpcf-preview-swatch-color, #d0d5dd);
	box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.16);
}

.cpcf-style-preview.is-swatches .cpcf-style-preview__swatch {
	display: inline-block;
}

.cpcf-style-preview.is-swatches-circle .cpcf-style-preview__swatch {
	border-radius: 50%;
}

.cpcf-style-preview.is-swatches .cpcf-style-preview__checkbox {
	display: none !important;
}

.cpcf-style-preview.is-swatches .cpcf-style-preview__button {
	min-height: 0;
	box-shadow: none;
}

.cpcf-style-preview.is-swatches-stack .cpcf-style-preview__choices,
.cpcf-style-preview.is-swatches-stack .cpcf-style-preview__choice,
.cpcf-style-preview.is-swatches-stack .cpcf-style-preview__choice-row,
.cpcf-style-preview.is-swatches-stack .cpcf-style-preview__button {
	width: 100%;
}

.cpcf-style-preview__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 13px;
	border: 1px solid #c7c7c7;
	border-radius: 4px;
	background: #ffffff;
	color: var(--cpcf-text);
	font-weight: 600;
	line-height: 1.2;
	min-height: 40px;
	box-shadow: 0 8px 20px rgba(31, 37, 45, 0.06);
	transition: all 0.2s ease;
}

.cpcf-style-preview.is-vertical .cpcf-style-preview__button {
	justify-content: space-between;
}

.cpcf-style-preview__choice.is-active .cpcf-style-preview__button {
	background: #1d2327;
	border-color: #1d2327;
	color: #ffffff;
}

.cpcf-style-preview__choice.is-hover .cpcf-style-preview__button {
	background: #f8f2e7;
	border-color: var(--cpcf-accent);
	color: var(--cpcf-text);
	transform: translateY(-1px);
}

.cpcf-style-preview[data-preview-device='tablet'] .cpcf-style-preview__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.cpcf-style-preview[data-preview-device='tablet'] .cpcf-style-preview__choice,
.cpcf-style-preview[data-preview-device='mobile'] .cpcf-style-preview__choice {
	width: 100%;
}

.cpcf-style-preview[data-preview-device='tablet'] .cpcf-style-preview__choice-row,
.cpcf-style-preview[data-preview-device='mobile'] .cpcf-style-preview__choice-row {
	width: 100%;
}

.cpcf-style-preview[data-preview-device='tablet'] .cpcf-style-preview__button,
.cpcf-style-preview[data-preview-device='mobile'] .cpcf-style-preview__button {
	flex: 1 1 auto;
	width: 100%;
}

.cpcf-style-preview[data-preview-device='tablet'] .cpcf-style-preview__button {
	justify-content: center;
}

.cpcf-style-preview[data-preview-device='mobile'] .cpcf-style-preview__choices {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 8px;
}

.cpcf-style-preview[data-preview-device='mobile'] .cpcf-style-preview__button {
	justify-content: space-between;
	padding-left: 14px;
	padding-right: 14px;
}

.cpcf-style-preview__label,
.cpcf-style-preview__count {
	display: inline-block;
}

.cpcf-style-preview__count {
	color: var(--cpcf-muted);
	font-size: 14px;
}

.cpcf-editor__footer {
	margin-top: 18px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cpcf-editor__footer-secondary,
.cpcf-editor__footer-primary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cpcf-editor__footer-primary {
	margin-left: auto;
}

.cpcf-field--color .wp-picker-container {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
}

.cpcf-field--color .wp-color-result.button {
	margin: 0;
	border-radius: 10px;
}

.cpcf-copy-buffer {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.cpcf-panel--styles .cpcf-panel__header {
	margin-bottom: 18px;
}

@media (max-width: 1400px) {
	.cpcf-style-groups--responsive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1200px) {
	.cpcf-editor__grid,
	.cpcf-editor-section-grid--two,
	.cpcf-field-grid--three,
	.cpcf-terms-workspace,
	.cpcf-style-groups,
	.cpcf-style-grid {
		grid-template-columns: 1fr;
	}

	.cpcf-filter-grid {
		grid-template-columns: 1fr;
	}

	.cpcf-filter-reference-list {
		grid-template-columns: 1fr;
	}

	.cpcf-panel--sidebar {
		position: static;
	}

	.cpcf-terms-workspace__order {
		position: static;
	}
}

@media (max-width: 900px) {
	.cpcf-admin__hero,
	.cpcf-list-panel__header,
	.cpcf-editor__topbar,
	.cpcf-panel__header-top {
		padding: 18px;
	}

	.cpcf-panel__header--with-tools,
	.cpcf-filter-card__header,
	.cpcf-filter-card__meta,
	.cpcf-editor__footer,
	.cpcf-field-grid--two {
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.cpcf-admin__hero {
		align-items: flex-start;
	}

	.cpcf-admin__hero-brand {
		padding-right: 0;
	}

	.cpcf-editor__hero {
		align-items: flex-start;
	}

	.cpcf-filter-card__details {
		grid-template-columns: 1fr;
	}

	.cpcf-filter-card__actions {
		flex-wrap: wrap;
		justify-content: flex-start;
		max-width: none;
	}

	.cpcf-editor__footer-primary {
		margin-left: 0;
	}

}

.cpcf-admin .cpcf-sortable-item.cpcf-sortable-item--heading {
	padding: 16px !important;
	box-sizing: border-box !important;
	overflow: visible !important;
	height: auto !important;
	min-width: 0 !important;
}

.cpcf-admin .cpcf-sortable-item--heading .cpcf-sortable-item__body,
.cpcf-admin .cpcf-sortable-item--heading .cpcf-sortable-item__heading-field,
.cpcf-admin .cpcf-sortable-item--heading .cpcf-sortable-item__toolbar {
	min-width: 0 !important;
	max-width: 100% !important;
}

.cpcf-admin .cpcf-sortable-item--heading input[type='text'] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	box-sizing: border-box !important;
	min-height: 40px !important;
	line-height: 1.4 !important;
}

.cpcf-search-scope {
	display: grid;
	gap: 14px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--cpcf-border);
}

.cpcf-search-scope__terms {
	display: grid;
	gap: 14px;
}

.cpcf-search-scope__term-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cpcf-search-scope__term-tools .cpcf-category-search {
	margin: 0;
	max-width: 280px;
}

.cpcf-search-scope .cpcf-category-list {
	margin-top: 0;
}
