/**
 * Custom Fields admin styles.
 * Scoped under .wpps-cf (builder) and .cf-* (meta boxes / term screens).
 * Panel/card design matches the Code Snippets module: flat (no radius),
 * #c3c4c7 borders, and a subtle shadow.
 */

.wpps-cf {
	--wpps-accent: var(--wp-admin-theme-color, #2271b1);
	--wpps-accent-hover: var(--wp-admin-theme-color-darker-10, #135e96);
	--wpps-accent-surface: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 12%, #fff);
	--cf-blue: var(--wpps-accent);
	--cf-blue-hover: var(--wpps-accent-hover);
	--cf-black: #1d2327;
	--cf-gray: #50575e;
	--cf-muted: #646970;
	--cf-border: #c3c4c7;
	--cf-divider: #dcdcde;
	--cf-bg: #f6f7f7;
	--cf-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	--cf-success: #00a32a;
	--cf-success-bg: #edfaef;
	--cf-success-text: #00622b;
	--cf-danger: #d63638;
	--cf-danger-hover: #b32d2e;
}

.wrap.wpps-cf {
	margin: 20px 20px 20px 0;
}

.wpps-cf .cf-muted {
	color: var(--cf-muted);
}

.wpps-cf .cf-req,
.cf-field .cf-req {
	color: var(--cf-danger);
}

/* Empty state — matches Options Page Builder pattern */
.wpps-cf .cf-empty {
	text-align: center;
	background: #fff;
	border: 1px solid var(--cf-border);
	box-shadow: var(--cf-shadow);
	padding: 64px 40px;
	margin-top: 16px;
}

.wpps-cf .cf-empty__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f1;
	color: var(--cf-black);
	border-radius: 4px;
}

.wpps-cf .cf-empty__icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--wpps-accent);
}

.wpps-cf .cf-empty__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--cf-black);
}

.wpps-cf .cf-empty__desc {
	margin: 0 0 24px;
	font-size: 0.9375rem;
	color: var(--cf-muted);
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

/* Status badges */
.wpps-cf .cf-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}

.wpps-cf .cf-status--on {
	background: var(--cf-success-bg);
	color: var(--cf-success-text);
}

.wpps-cf .cf-status--off {
	background: #f0f0f1;
	color: var(--cf-muted);
}

.wpps-cf .cf-actions a.cf-delete {
	color: var(--cf-danger-hover);
}

/* Cards */
.wpps-cf-edit .cf-card {
	background: #fff;
	border: 1px solid var(--cf-border);
	box-shadow: var(--cf-shadow);
	padding: 20px 24px;
	margin: 16px 0;
}

.wpps-cf-edit .cf-builder-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	gap: 18px;
	align-items: start;
}

.wpps-cf-edit .cf-builder-main,
.wpps-cf-edit .cf-builder-sidebar {
	min-width: 0;
}

.wpps-cf-edit .cf-builder-sidebar {
	position: sticky;
	top: 48px;
}

.wpps-cf-edit .cf-builder-sidebar .cf-card,
.wpps-cf-edit .cf-builder-sidebar .cf-settings {
	margin: 0 0 14px;
}

.wpps-cf-edit .cf-card--fields {
	margin-top: 0;
}

.wpps-cf-edit .cf-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cf-border);
}

.wpps-cf-edit .cf-card > h2 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cf-border);
	font-size: 1.125rem;
}

.wpps-cf-edit .cf-card__head h2,
.wpps-cf-edit .cf-builder-sidebar .cf-card > h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
}

.wpps-cf-edit .cf-card__head .description {
	margin: 4px 0 0;
}

.wpps-cf-edit .cf-builder-feedback {
	display: flex;
	align-items: center;
	min-height: 36px;
	box-sizing: border-box;
	margin: -4px 0 16px;
	padding: 8px 12px;
	color: #8a4b00;
	background: #fcf9e8;
	border: 1px solid #dba617;
	border-left-width: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.wpps-cf-edit .cf-builder-feedback[hidden] {
	display: none !important;
}

.wpps-cf-edit .cf-add-field-menu {
	position: relative;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-field-type-menu {
	position: fixed;
	top: 64px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 40;
	width: min(860px, calc(100vw - 56px));
	max-width: 860px;
	max-height: calc(100vh - 80px);
	box-sizing: border-box;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0 0 28px;
	background: #fff;
	border: 1px solid var(--cf-border);
	border-radius: 4px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.wpps-cf-edit .cf-field-type-menu:focus {
	outline: none;
}

.wpps-cf-edit .cf-field-type-menu__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px 10px;
	background: #fff;
	border-bottom: 1px solid var(--cf-border);
}

.wpps-cf-edit .cf-field-type-menu__head strong,
.wpps-cf-edit .cf-field-type-menu__head span {
	display: block;
}

.wpps-cf-edit .cf-field-type-menu__head strong {
	color: var(--cf-black);
	font-size: 14px;
	line-height: 1.3;
}

.wpps-cf-edit .cf-field-type-menu__head span {
	margin-top: 2px;
	color: var(--cf-muted);
	font-size: 12px;
	line-height: 1.35;
}

.wpps-cf-edit .cf-field-type-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #646970;
	cursor: pointer;
}

.wpps-cf-edit .cf-field-type-menu__close .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
	line-height: 28px;
}

.wpps-cf-edit .cf-field-type-menu__close:hover,
.wpps-cf-edit .cf-field-type-menu__close:focus {
	color: var(--cf-black);
	outline: none;
}

.wpps-cf-edit .cf-field-type-menu__group {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 6px;
	padding: 10px 16px;
	border-top: 1px solid #f0f0f1;
}

.wpps-cf-edit .cf-field-type-menu__group:first-child {
	border-top: 0;
}

.wpps-cf-edit .cf-field-type-menu__group:last-child {
	padding-bottom: 20px;
}

.wpps-cf-edit .cf-field-type-menu__label {
	color: var(--cf-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: uppercase;
	padding-top: 9px;
}

.wpps-cf-edit .cf-field-type-menu__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	min-width: 0;
}

.wpps-cf-edit .cf-field-type-menu .cf-quick-add-btn {
	justify-content: flex-start;
	width: 100%;
	max-width: none;
	height: 34px;
	min-height: 34px;
	padding: 0 10px;
	background: #fff;
	border-color: #dcdcde;
	box-shadow: none;
	color: var(--cf-black);
	font-weight: 500;
}

.wpps-cf-edit .cf-field-type-menu .cf-quick-add-btn:hover,
.wpps-cf-edit .cf-field-type-menu .cf-quick-add-btn:focus {
	background: #f8f9ff;
	border-color: var(--wpps-accent);
	box-shadow: 0 0 0 1px var(--wpps-accent);
	color: var(--cf-black);
}

.wpps-cf-edit .cf-field-type-menu .cf-quick-add-btn .dashicons {
	color: #1d2327;
}

.wpps-cf-edit .cf-quick-add-strip {
	position: sticky;
	top: 32px;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--cf-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.wpps-cf-edit .cf-quick-add-strip__head {
	display: grid;
	gap: 1px;
	min-width: 120px;
	padding-top: 2px;
}

.wpps-cf-edit .cf-quick-add-strip__head strong {
	font-size: 13px;
	color: var(--cf-black);
}

.wpps-cf-edit .cf-quick-add-strip__head span,
.wpps-cf-edit .cf-quick-add-cluster__label {
	font-size: 11px;
	color: var(--cf-muted);
}

.wpps-cf-edit .cf-quick-add-strip__scroller {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
}

.wpps-cf-edit .cf-quick-add-cluster {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	align-items: center;
	gap: 5px 6px;
	min-width: 0;
	width: 100%;
	padding: 0;
	border: 0;
}

.wpps-cf-edit .cf-quick-add-cluster__label {
	padding-right: 2px;
	text-transform: uppercase;
	font-weight: 600;
	white-space: nowrap;
	line-height: 28px;
}

.wpps-cf-edit .cf-quick-add-cluster__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 6px;
	min-width: 0;
}

.wpps-cf-edit .cf-sidebar-control {
	margin: 14px 0 0;
}

.wpps-cf-edit .cf-sidebar-control:first-child {
	margin-top: 0;
}

.wpps-cf-edit .cf-sidebar-control > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wpps-cf-edit .cf-sidebar-control input.regular-text,
.wpps-cf-edit .cf-sidebar-control select {
	width: 100%;
	max-width: 100%;
}

.wpps-cf-edit .cf-quick-add-group {
	margin-top: 14px;
}

.wpps-cf-edit .cf-quick-add-group h3 {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--cf-muted);
}

.wpps-cf-edit .cf-quick-add-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.wpps-cf-edit .cf-quick-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	box-sizing: border-box;
	height: 28px;
	min-height: 28px;
	width: max-content;
	max-width: 148px;
	padding: 0 8px;
	background: #fff;
	border: 1px solid var(--cf-border);
	border-radius: 3px;
	color: var(--cf-black);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.wpps-cf-edit .cf-quick-add-btn:hover,
.wpps-cf-edit .cf-quick-add-btn:focus {
	border-color: var(--wpps-accent);
	box-shadow: 0 0 0 1px var(--wpps-accent);
	color: var(--wpps-accent);
	outline: none;
}

.wpps-cf-edit .cf-quick-add-btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-quick-add-btn span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpps-cf-edit .cf-position-picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wpps-cf-edit .cf-position-option {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 62px;
	padding: 10px 12px;
	border: 1px solid var(--cf-border);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
}

.wpps-cf-edit .cf-position-option.is-selected,
.wpps-cf-edit .cf-position-option:has(input:checked) {
	border-color: var(--wpps-accent);
	box-shadow: inset 3px 0 0 var(--wpps-accent);
	background: var(--wpps-accent-surface);
}

.wpps-cf-edit .cf-position-option input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	justify-self: center;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-position-option strong,
.wpps-cf-edit .cf-position-option small {
	display: block;
}

.wpps-cf-edit .cf-position-option small {
	margin-top: 2px;
	color: var(--cf-muted);
	line-height: 1.35;
}

/* Action bars */
.wpps-cf-edit .cf-actions-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	justify-content: flex-end;
	margin: 12px 0;
}

.wpps-cf-edit .cf-actions-bar--top {
	min-height: 36px;
}

.wpps-cf-edit .cf-actions-bar--bottom {
	justify-content: space-between;
}

.wpps-cf-edit .cf-actions-bar--bottom:not(:has(.cf-delete)) {
	justify-content: flex-end;
}

.wpps-cf-edit .cf-save-cluster {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-left: auto;
}

.cf-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1d2327;
	font-weight: 600;
	text-decoration: none;
	vertical-align: middle;
}

.cf-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.cf-switch__track {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: #c3c4c7;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cf-switch__thumb {
	position: absolute;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.cf-switch input:checked + .cf-switch__track,
.cf-switch--on .cf-switch__track {
	background: var(--wpps-accent);
}

.cf-switch input:checked + .cf-switch__track .cf-switch__thumb,
.cf-switch--on .cf-switch__thumb {
	transform: translateX(16px);
}

.cf-switch:focus,
.cf-switch:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wpps-accent);
}

.cf-switch:has(input:focus-visible) .cf-switch__track {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wpps-accent);
}

.cf-switch--list {
	gap: 7px;
	width: max-content;
}

.cf-switch--list .cf-switch__label {
	font-size: 12px;
}

.cf-switch--off .cf-switch__label {
	color: #646970;
}

.wpps-cf-edit .cf-key-readonly {
	background: #f6f7f7;
	padding: 4px 8px;
	border-radius: 2px;
}

/* Checkbox grid */
.wpps-cf-edit .cf-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.wpps-cf-edit .cf-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--cf-border);
	border-radius: 2px;
	transition: border-color 0.2s, background 0.2s;
}

.wpps-cf-edit .cf-check:hover {
	border-color: var(--wpps-accent);
	background: var(--wpps-accent-surface);
}

.wpps-cf-edit .cf-check code {
	color: #646970;
	font-size: 11px;
}

/* Field rows — accordion cards (matches Options Page Builder field list) */
.wpps-cf-edit .cf-field-row {
	background: var(--cf-bg);
	border: 1px solid var(--cf-border);
	border-radius: 2px;
	margin-bottom: 8px;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wpps-cf-edit .cf-field-row:hover {
	background: #fff;
	border-color: var(--wpps-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpps-cf-edit .cf-field-row__head {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s;
}

.wpps-cf-edit .cf-field-row__handle {
	cursor: move;
	color: var(--cf-gray);
	margin-right: 12px;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-field-row__handle .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpps-cf-edit .cf-field-row__toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--cf-gray);
	margin-right: 8px;
	transition: transform 0.2s;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-field-row.collapsed .cf-field-row__toggle {
	transform: rotate(-90deg);
}

.wpps-cf-edit .cf-field-row__toggle .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpps-cf-edit .cf-field-row__title {
	flex: 1;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--cf-black);
}

.wpps-cf-edit .cf-field-row__type {
	font-size: 0.75rem;
	color: var(--cf-gray);
	background: var(--cf-border);
	padding: 4px 8px;
	border-radius: 6px;
	margin-right: 12px;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-field-row__width-badge {
	display: inline-flex;
	align-items: center;
	background: var(--cf-border);
	color: var(--cf-blue-hover);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.6875rem;
	margin-right: 12px;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-field-row__head .cf-field-row__actions {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	margin-left: auto;
}

.wpps-cf-edit .cf-field-row__duplicate,
.wpps-cf-edit .cf-field-row__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: none !important;
	border: none !important;
	color: var(--cf-gray) !important;
	padding: 4px !important;
	cursor: pointer;
	line-height: 1;
}

.wpps-cf-edit .cf-field-row__duplicate .dashicons,
.wpps-cf-edit .cf-field-row__remove .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpps-cf-edit .cf-field-row__duplicate:hover {
	color: var(--wpps-accent) !important;
}

.wpps-cf-edit .cf-field-row__remove:hover {
	color: var(--cf-danger) !important;
}

.wpps-cf-edit .cf-field-row__body {
	padding: 12px;
	border-top: 1px solid var(--cf-border);
	width: 100%;
	box-sizing: border-box;
}

.wpps-cf-edit .cf-field-row.collapsed .cf-field-row__body {
	display: none;
}

.wpps-cf-edit .cf-field-row-placeholder {
	border: 2px dashed var(--wpps-accent);
	background: var(--wpps-accent-surface);
	margin-bottom: 8px;
	height: 60px;
	border-radius: 2px;
}

/* Author display rules above override the UA's [hidden] { display: none },
   so styled containers (e.g. display: grid) would stay visible. */
.wpps-cf [hidden],
.wpps-cf-edit [hidden] {
	display: none !important;
}

.wpps-cf-edit .cf-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px 12px;
	margin: 0 0 14px;
}

.wpps-cf-edit .cf-field-grid > .cf-field-control {
	margin: 0;
}

.wpps-cf-edit .cf-field-grid--basics {
	grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) minmax(150px, 220px);
	align-items: start;
}

.wpps-cf-edit .cf-field-grid--primary-values {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-grid--primary-values > .cf-field-control {
	grid-column: span 6;
	min-width: 0;
}

.wpps-cf-edit .cf-field-row[data-field-type="range"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="password"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="date"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="time"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="datetime"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="toggle"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="select"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="radio"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="button_group"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="icon_picker"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]),
.wpps-cf-edit .cf-field-row[data-field-type="wysiwyg"] .cf-field-grid--primary-values > .cf-field-control:not([hidden]) {
	grid-column: 1 / -1;
}

.wpps-cf-edit .cf-field-bounds {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-bounds > .cf-field-control {
	grid-column: span 4;
	min-width: 0;
}

.wpps-cf-edit .cf-field-count,
.wpps-cf-edit .cf-field-gallery-count {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-count > .cf-field-control,
.wpps-cf-edit .cf-field-gallery-count > .cf-field-control {
	grid-column: span 6;
	min-width: 0;
}

.wpps-cf-edit .cf-field-appearance {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-appearance > .cf-field-control {
	grid-column: 1 / -1;
	min-width: 0;
}

.wpps-cf-edit .cf-field-row[data-field-type="text"] .cf-field-appearance .cf-field-maxlength,
.wpps-cf-edit .cf-field-row[data-field-type="email"] .cf-field-appearance .cf-field-maxlength,
.wpps-cf-edit .cf-field-row[data-field-type="phone"] .cf-field-appearance .cf-field-maxlength,
.wpps-cf-edit .cf-field-row[data-field-type="url"] .cf-field-appearance .cf-field-maxlength,
.wpps-cf-edit .cf-field-row[data-field-type="text"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="email"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="phone"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="url"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="text"] .cf-field-appearance > .cf-field-control:last-child,
.wpps-cf-edit .cf-field-row[data-field-type="email"] .cf-field-appearance > .cf-field-control:last-child,
.wpps-cf-edit .cf-field-row[data-field-type="phone"] .cf-field-appearance > .cf-field-control:last-child,
.wpps-cf-edit .cf-field-row[data-field-type="url"] .cf-field-appearance > .cf-field-control:last-child {
	grid-column: span 3;
}

.wpps-cf-edit .cf-field-row[data-field-type="textarea"] .cf-field-appearance .cf-field-rows,
.wpps-cf-edit .cf-field-row[data-field-type="textarea"] .cf-field-appearance .cf-field-maxlength,
.wpps-cf-edit .cf-field-row[data-field-type="textarea"] .cf-field-appearance .cf-field-new-lines,
.wpps-cf-edit .cf-field-row[data-field-type="textarea"] .cf-field-appearance > .cf-field-control:last-child {
	grid-column: span 3;
}

.wpps-cf-edit .cf-field-row[data-field-type="number"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="number"] .cf-field-appearance > .cf-field-control:last-child,
.wpps-cf-edit .cf-field-row[data-field-type="range"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="range"] .cf-field-appearance > .cf-field-control:last-child,
.wpps-cf-edit .cf-field-row[data-field-type="password"] .cf-field-appearance .cf-field-before-after,
.wpps-cf-edit .cf-field-row[data-field-type="password"] .cf-field-appearance > .cf-field-control:last-child {
	grid-column: span 4;
}

.wpps-cf-edit .cf-field-row[data-field-type="wysiwyg"] .cf-field-appearance .cf-field-rows,
.wpps-cf-edit .cf-field-row[data-field-type="wysiwyg"] .cf-field-appearance > .cf-field-control:last-child {
	grid-column: span 6;
}

.wpps-cf-edit .cf-field-selection-settings {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-date-display,
.wpps-cf-edit .cf-field-color-options,
.wpps-cf-edit .cf-field-toggle-options,
.wpps-cf-edit .cf-field-taxonomy-sync,
.wpps-cf-edit .cf-field-oembed-dimensions,
.wpps-cf-edit .cf-field-google-map-defaults,
.wpps-cf-edit .cf-field-message-options,
.wpps-cf-edit .cf-field-wysiwyg-options,
.wpps-cf-edit .cf-field-image-preview-size,
.wpps-cf-edit .cf-field-relationship-ui,
.wpps-cf-edit .cf-field-nav-menu-options,
.wpps-cf-edit .cf-field-gallery-display {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-date-display > .cf-field-control,
.wpps-cf-edit .cf-field-toggle-options > .cf-field-control {
	grid-column: span 4;
	min-width: 0;
}

.wpps-cf-edit .cf-field-toggle-options {
	align-items: start;
}

.wpps-cf-edit .cf-field-taxonomy-sync > .cf-field-control,
.wpps-cf-edit .cf-field-color-options > .cf-field-control,
.wpps-cf-edit .cf-field-oembed-dimensions > .cf-field-control,
.wpps-cf-edit .cf-field-message-options > .cf-field-control,
.wpps-cf-edit .cf-field-image-preview-size > .cf-field-control,
.wpps-cf-edit .cf-field-relationship-ui > .cf-field-control,
.wpps-cf-edit .cf-field-nav-menu-options > .cf-field-control,
.wpps-cf-edit .cf-field-gallery-display > .cf-field-control {
	grid-column: span 6;
	min-width: 0;
}

.wpps-cf-edit .cf-field-google-map-defaults > .cf-field-control,
.wpps-cf-edit .cf-field-wysiwyg-options > .cf-field-control {
	grid-column: span 3;
	min-width: 0;
}

.wpps-cf-edit .cf-field-selection-settings > .cf-field-control {
	grid-column: span 6;
	min-width: 0;
}

.wpps-cf-edit .cf-field-row[data-field-type="select"] .cf-field-selection-settings .cf-field-allow-null,
.wpps-cf-edit .cf-field-row[data-field-type="button_group"] .cf-field-selection-settings .cf-field-allow-null,
.wpps-cf-edit .cf-field-row[data-field-type="post_object"] .cf-field-selection-settings .cf-field-allow-null,
.wpps-cf-edit .cf-field-row[data-field-type="page_link"] .cf-field-selection-settings .cf-field-allow-null,
.wpps-cf-edit .cf-field-row[data-field-type="user"] .cf-field-selection-settings .cf-field-allow-null {
	grid-column: 1 / -1;
}

.wpps-cf-edit .cf-field-media-size {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-media-size > .cf-field-control {
	grid-column: span 3;
	min-width: 0;
}

.wpps-cf-edit .cf-field-media-size > .cf-field-media-mime {
	grid-column: span 6;
}

.wpps-cf-edit .cf-field-image-dimensions {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-image-dimensions > .cf-field-control {
	grid-column: span 3;
	min-width: 0;
}

.wpps-cf-edit .cf-field-flags,
.wpps-cf-edit .cf-clone-settings {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: end;
}

.wpps-cf-edit .cf-field-flags > .cf-field-control {
	grid-column: span 6;
	min-width: 0;
}

.wpps-cf-edit .cf-field-row[data-field-type="group"] .cf-field-flags .cf-field-required,
.wpps-cf-edit .cf-field-row[data-field-type="repeater"] .cf-field-flags .cf-field-required,
.wpps-cf-edit .cf-field-row[data-field-type="flexible_content"] .cf-field-flags .cf-field-required,
.wpps-cf-edit .cf-field-row[data-field-type="clone"] .cf-field-flags .cf-field-required {
	grid-column: 1 / -1;
}

.wpps-cf-edit .cf-clone-settings > .cf-field-control {
	grid-column: span 3;
	min-width: 0;
}

.wpps-cf-edit .cf-clone-source-picker {
	width: 100%;
	max-width: 100%;
	min-height: 132px;
	box-sizing: border-box;
}

.wpps-cf-edit .cf-field-control input.small-text {
	width: 100%;
	max-width: 100%;
}

.wpps-cf-edit .cf-field-control input[type="text"],
.wpps-cf-edit .cf-field-control input[type="number"],
.wpps-cf-edit .cf-field-control input[type="url"],
.wpps-cf-edit .cf-field-control input[type="email"],
.wpps-cf-edit .cf-field-control select,
.wpps-cf-edit .cf-field-control textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wpps-cf-edit .cf-field-control {
	margin: 8px 0;
}

.wpps-cf-edit .cf-field-control > label,
.wpps-cf-edit .cf-field-control > .cf-field-control__label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.wpps-cf-edit .cf-field-editor-tabs {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0 0 10px;
	padding: 2px;
	background: #f6f7f7;
	border: 1px solid var(--cf-border);
	border-radius: 3px;
}

.wpps-cf-edit .cf-field-editor-tab {
	min-height: 28px;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: var(--cf-muted);
	cursor: pointer;
	font-weight: 600;
}

.wpps-cf-edit .cf-field-editor-tab:hover {
	color: var(--wpps-accent);
}

.wpps-cf-edit .cf-field-editor-tab.is-active {
	background: #fff;
	color: var(--cf-black);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wpps-cf-edit .cf-field-editor-panel {
	min-width: 0;
}

/* Checkbox labels: keep the box, text, and help bubble on one line. */
.wpps-cf-edit .cf-field-control > label.cf-check-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 0;
}

.wpps-cf-edit .cf-check-label .wpps-cf-accordion-tooltip {
	margin-left: 0;
}

.wpps-cf-edit .cf-field-control input.regular-text,
.wpps-cf-edit .cf-field-control select {
	width: 100%;
	max-width: 100%;
}

.wpps-cf-edit .cf-fields-empty {
	display: grid;
	gap: 4px;
	color: var(--cf-muted);
	padding: 28px;
	margin: 0;
	background: #f6f7f7;
	border: 1px dashed var(--cf-border);
	text-align: center;
}

.wpps-cf-edit .cf-fields-empty strong {
	color: var(--cf-black);
	font-size: 14px;
}

/* Add Field button — align dashicon with label text */
.wpps-cf-edit .cf-open-field-type-menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 30px;
	line-height: 1;
	vertical-align: middle;
}

.wpps-cf-edit .cf-open-field-type-menu .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
	margin: 0;
	flex-shrink: 0;
}

.wpps-cf-edit .cf-fields-list-footer {
	display: flex;
	justify-content: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--cf-border);
}

/* Field controls (meta boxes / term screens) */
.cf-field {
	margin: 0 0 12px;
}

.cf-field__label label {
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.cf-meta-box__cell .cf-field {
	margin-bottom: 0;
}

.cf-postbox--after-title {
	border-left: 4px solid #3858e9;
}

.cf-postbox--after-title .postbox-header {
	background: #f8f9ff;
}

.cf-meta-box__cell .cf-field__control .description {
	margin-top: 6px;
	margin-bottom: 0;
}

.cf-field--layout {
	padding: 8px 0 4px;
	border-top: 1px solid #dcdcde;
}

.cf-layout-field__title {
	font-weight: 700;
	color: #1d2327;
}

.cf-field--tab .cf-layout-field__title {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-bottom-color: #fff;
	background: #fff;
	border-radius: 4px 4px 0 0;
}

.cf-field--tab[data-placement="left"] .cf-layout-field__title {
	border-radius: 4px 0 0 4px;
	border-right-color: #fff;
	border-bottom-color: #c3c4c7;
}

.cf-field--tab[data-selected="1"] .cf-layout-field__title,
.cf-field--accordion[data-open="1"] .cf-layout-field__title {
	color: #135e96;
}

.cf-field--layout[data-endpoint="1"] .cf-layout-field__title {
	color: #646970;
	font-style: italic;
}

.cf-field--accordion .cf-layout-field__title {
	position: relative;
	padding-left: 20px;
}

.cf-field--accordion .cf-layout-field__title::before {
	content: "\f347";
	position: absolute;
	left: 0;
	top: 1px;
	font-family: dashicons;
	font-size: 16px;
	line-height: 1;
	color: #646970;
}

.cf-layout-tabs-row {
	margin-bottom: -12px;
}

.cf-layout-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: flex-end;
	width: 100%;
	border-bottom: 1px solid #c3c4c7;
}

.cf-layout-tab-button {
	appearance: none;
	margin: 0 4px -1px 0;
	padding: 9px 14px;
	border: 1px solid #c3c4c7;
	border-bottom-color: transparent;
	border-radius: 4px 4px 0 0;
	background: #f6f7f7;
	color: #2c3338;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.cf-layout-tab-button:hover,
.cf-layout-tab-button:focus {
	background: #fff;
	color: #135e96;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.cf-layout-tab-button.is-active {
	background: #fff;
	color: #135e96;
	border-bottom-color: #fff;
}

.cf-meta-box__cell[hidden],
.cf-meta-box__row[hidden] {
	display: none !important;
}

.cf-field--accordion {
	padding: 0;
	border: 1px solid #c3c4c7;
	background: #fff;
}

.cf-field--accordion .cf-layout-field__title {
	padding-left: 0;
}

.cf-field--accordion .cf-layout-field__title::before {
	display: none;
}

.cf-layout-accordion-button {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: #1d2327;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.cf-layout-accordion-button::after {
	content: "\f347";
	font-family: dashicons;
	font-size: 16px;
	line-height: 1;
	color: #646970;
	transform: rotate(-90deg);
	transition: transform 120ms ease;
}

.cf-field--accordion.is-open .cf-layout-accordion-button::after {
	transform: rotate(0deg);
}

.cf-layout-accordion-button:hover,
.cf-layout-accordion-button:focus {
	color: #135e96;
	outline: none;
	box-shadow: inset 0 0 0 1px #2271b1;
}

.cf-choices {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cf-choices--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.cf-choice,
.cf-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cf-choice--custom {
	gap: 8px;
}

.cf-choice--custom input[type="text"] {
	width: min(260px, 100%);
}

.cf-checkbox-custom-add {
	align-self: flex-start;
}

.cf-checkbox-custom-remove {
	font-size: 18px;
	line-height: 1;
	color: #b32d2e;
	text-decoration: none;
}

.cf-choice--toggle-all {
	margin-bottom: 4px;
	font-weight: 600;
}

.cf-button-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.cf-button-group--vertical {
	flex-direction: column;
}

.cf-button-choice {
	display: inline-flex;
	margin: 0;
}

.cf-button-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cf-button-choice span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-left: 1px solid #c3c4c7;
	color: #1d2327;
	cursor: pointer;
}

.cf-button-choice:first-child span {
	border-left: 0;
}

.cf-button-choice input:checked + span {
	background: #2271b1;
	color: #fff;
}

.cf-button-choice input:focus-visible + span {
	box-shadow: inset 0 0 0 2px #72aee6;
}

.cf-icon-picker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.cf-icon-picker__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	width: 100%;
}

.cf-icon-picker__tab.is-active {
	border-color: #2271b1;
	background: #f0f6fc;
	color: #135e96;
}

.cf-icon-picker__panel {
	min-width: min(360px, 100%);
}

.cf-icon-picker__panel[hidden] {
	display: none !important;
}

.cf-icon-picker__select,
.cf-icon-picker__url {
	width: min(360px, 100%);
}

.cf-icon-picker__preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font-size: 20px;
	overflow: hidden;
}

.cf-icon-picker__preview--image img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wpps-cf-icon-output {
	display: inline-block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	vertical-align: middle;
}

.cf-group-field {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
	padding: 10px 0 0;
	border-top: 1px solid #dcdcde;
}

.cf-group-field__subfield {
	grid-column: span 12;
}

.cf-group-field--layout-row,
.cf-repeater--layout-row .cf-repeater__row-body,
.cf-flexible--layout-row .cf-flexible__row-body {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cf-group-field--layout-table .cf-group-field__subfield,
.cf-repeater--layout-table .cf-repeater__subfield,
.cf-flexible--layout-table .cf-flexible__subfield {
	grid-column: span 12;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
}

.cf-group-field--layout-table .cf-group-field__subfield:first-child,
.cf-repeater--layout-table .cf-repeater__subfield:first-child,
.cf-flexible--layout-table .cf-flexible__subfield:first-child {
	padding-top: 0;
	border-top: 0;
}

.cf-clone {
	display: grid;
	gap: 10px;
}

.cf-clone--group {
	padding: 12px;
	border: 1px solid #dcdcde;
	background: #fff;
}

.cf-clone__title {
	margin: 0 0 2px;
	font-weight: 700;
	color: #1d2327;
}

.cf-clone--layout-row {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	align-items: start;
}

.cf-clone--layout-table .cf-clone__subfield {
	padding: 8px 0;
	border-top: 1px solid #dcdcde;
}

.cf-clone--layout-table .cf-clone__subfield:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.cf-google-map-field {
	display: grid;
	gap: 10px;
}

.cf-google-map-field__address,
.cf-google-map-field__coords p {
	margin: 0;
}

.cf-google-map-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cf-google-map-field__coords {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.cf-google-map-field__preview {
	display: grid;
	gap: 8px;
}

.cf-google-map-field__frame {
	min-height: var(--cf-map-height, 320px);
	border: 1px solid #dcdcde;
	background: #f6f7f7;
}

.cf-google-map-field__frame iframe {
	display: block;
	width: 100%;
	height: var(--cf-map-height, 320px);
	border: 0;
}

.cf-google-map-field__frame p {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--cf-map-height, 320px);
	margin: 0;
	padding: 16px;
	color: #646970;
	text-align: center;
}

.cf-google-map-field__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cf-google-map-field__open.is-disabled {
	pointer-events: none;
	color: #8c8f94;
	border-color: #dcdcde;
	background: #f6f7f7;
}

.cf-media__preview {
	margin: 6px 0;
}

.cf-media-preview__img {
	max-width: 150px;
	height: auto;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: block;
}

.cf-media-preview__file {
	display: inline-block;
	background: #f6f7f7;
	padding: 4px 8px;
	border-radius: 4px;
}

.cf-field--separator hr {
	border: 0;
	border-top: 1px solid #dcdcde;
	margin: 10px 0;
}

.cf-field__message,
.cf-field__output {
	background: var(--cf-bg);
	border-left: 3px solid var(--wpps-accent);
	padding: 10px 12px;
	border-radius: 4px;
}

.cf-link p {
	margin: 0 0 10px;
}

.cf-link label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.cf-range-field {
	vertical-align: middle;
	max-width: 280px;
}

.cf-range-value {
	display: inline-block;
	min-width: 2.5em;
	margin-left: 8px;
	font-weight: 600;
}

.cf-term-create {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px) auto;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
}

.cf-term-create__input,
.cf-term-create__parent {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cf-term-create__status {
	grid-column: 1 / -1;
	color: #646970;
	font-size: 13px;
}

.cf-gallery__preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.cf-gallery-preview__item {
	position: relative;
	display: inline-block;
	cursor: move;
}

.cf-gallery-preview__img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: block;
}

.cf-gallery-preview__remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: var(--cf-danger-hover);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.cf-color-picker--no-wheel .iris-square,
.cf-color-picker--no-wheel .iris-slider,
.cf-color-picker--no-wheel .iris-strip {
	display: none !important;
}

.cf-color-picker--no-wheel .iris-picker {
	width: auto !important;
	min-width: 180px;
	height: auto !important;
	padding-bottom: 12px !important;
}

.cf-relational {
	min-width: 240px;
	max-width: 100%;
}

.cf-relational-search {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 100%;
}

.cf-relational-search.is-loading .cf-relational__select {
	opacity: 0.6;
}

.cf-relational-search--relationship {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
	gap: 10px 14px;
	align-items: start;
}

.cf-relational-search--relationship .cf-relational-search__input,
.cf-relational-search--relationship .cf-relationship-picker__filters,
.cf-relational-search--relationship .cf-relational-search__status {
	grid-column: 1 / -1;
}

.cf-relational-search--relationship.cf-relational-search--no-search .cf-relational-search__input,
.cf-relational-search--relationship.cf-relational-search--no-search .cf-relational-search__status {
	display: none;
}

.cf-relationship-picker__filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
	padding: 10px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
}

.cf-relationship-picker__filters label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
	font-weight: 600;
	color: #1d2327;
}

.cf-relationship-picker__filters select {
	width: 100%;
	max-width: none;
}

.cf-relationship-picker__available,
.cf-relationship-picker__selected {
	min-width: 0;
}

.cf-relationship-picker__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	color: #50575e;
	font-size: 12px;
	line-height: 1.35;
}

.cf-relationship-picker__head strong {
	color: #1d2327;
	font-size: 13px;
}

.cf-relational-search--relationship .cf-relational__select {
	width: 100%;
	min-height: 150px;
}

.cf-relationship-selected__empty,
.cf-relationship-selected__list {
	min-height: 150px;
	margin: 0;
	padding: 8px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}

.cf-relationship-selected__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #646970;
}

.cf-relationship-selected__empty[hidden] {
	display: none;
}

.cf-relationship-selected__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
}

.cf-relationship-selected__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 8px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background: #f6f7f7;
}

.cf-relationship-selected__item.has-image {
	grid-template-columns: 32px minmax(0, 1fr) 28px;
}

.cf-relationship-selected__image {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border: 1px solid #dcdcde;
	background: #fff;
}

.cf-relationship-selected__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cf-relationship-selected__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #b32d2e;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}

.cf-relationship-selected__remove:hover,
.cf-relationship-selected__remove:focus {
	color: #8a2424;
	box-shadow: 0 0 0 1px #b32d2e;
	outline: none;
}

.cf-oembed-preview {
	margin-top: 8px;
}

.cf-oembed-preview.is-loading {
	opacity: 0.6;
}

.cf-oembed-preview iframe,
.cf-oembed-preview embed {
	max-width: 100%;
}

.wpps-cf-edit .cf-checkbox-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Import panel */
.wpps-cf .cf-import-panel {
	background: #fff;
	border: 1px solid var(--cf-border);
	box-shadow: var(--cf-shadow);
	padding: 22px 24px 20px;
	margin: 16px 0;
}

.wpps-cf .cf-import-panel form {
	display: grid;
	gap: 14px;
}

.wpps-cf .cf-import-panel h2 {
	margin: 0 0 8px;
	font-size: 1.125rem;
}

.wpps-cf .cf-import-panel .description {
	margin: 0;
}

.wpps-cf .cf-import-panel p {
	margin: 0;
}

.wpps-cf .cf-import-panel textarea {
	margin: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wpps-cf .cf-import-panel input[type="file"] {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

.wpps-cf .cf-import-panel p:last-child {
	display: flex;
	justify-content: flex-end;
	padding-top: 14px;
	border-top: 1px solid var(--cf-divider);
}

.wrap.wpps-cf .wpps-page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.wrap.wpps-cf .wpps-page-hero__meta .button {
	margin: 0;
	min-height: 30px;
	line-height: 1.4;
	vertical-align: middle;
}

.wpps-cf .cf-list-badge {
	display: inline-block;
	font-size: 11px;
	background: var(--wpps-accent-surface);
	color: var(--wpps-accent-hover);
	padding: 1px 6px;
	border-radius: 8px;
}

.cf-meta-key-preview code {
	font-size: 12px;
}

/* Meta box grid layout on post edit */
.cf-meta-box--grid {
	display: grid;
	gap: 12px;
}

.cf-meta-box__row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px 16px;
	width: 100%;
	align-items: flex-start;
}

.cf-meta-box__cell {
	box-sizing: border-box;
	min-width: 0;
}

.cf-meta-box__cell.cf-field--w100 {
	grid-column: span 12;
	width: 100%;
	max-width: 100%;
}

.cf-meta-box__cell.cf-field--w75 {
	grid-column: span 9;
	max-width: 100%;
}

.cf-meta-box__cell.cf-field--w50 {
	grid-column: span 6;
	max-width: 100%;
}

.cf-meta-box__cell.cf-field--w33 {
	grid-column: span 4;
	max-width: 100%;
}

.cf-meta-box__cell.cf-field--w25 {
	grid-column: span 3;
	max-width: 100%;
}

/* Side column and narrow contexts always stack fields vertically */
#side-sortables .cf-meta-box__cell,
.cf-meta-box--side .cf-meta-box__cell,
.cf-term-fields .cf-meta-box__cell {
	grid-column: 1 / -1 !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* After-title zone spacing */
#wpps-cf-after-title-sortables {
	margin: 0 0 16px;
}

#wpps-cf-after-title-sortables:empty {
	display: none;
}

/* Seamless meta box presentation. */
.postbox.cf-postbox--seamless {
	border: none;
	box-shadow: none;
	background: transparent;
}

.postbox.cf-postbox--seamless > .postbox-header,
.postbox.cf-postbox--seamless > .handlediv,
.postbox.cf-postbox--seamless .handle-actions {
	display: none;
}

.postbox.cf-postbox--seamless > .inside {
	padding: 0;
	margin: 0;
}

.postbox.cf-postbox > .inside {
	padding-top: 8px;
}

.postbox.cf-postbox .cf-meta-box--grid:first-child {
	margin-top: 0;
}

/* Term edit screen group layout */
.cf-term-group th[scope="row"] {
	vertical-align: top;
	padding-top: 16px;
	width: 200px;
}

.cf-term-group td {
	vertical-align: top;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Editor controls should fill their grid cell (WP .regular-text defaults to ~25em). */
.cf-meta-box .cf-field__control,
.cf-term-fields .cf-field__control {
	max-width: 100%;
}

.cf-meta-box .cf-field__control input.regular-text,
.cf-meta-box .cf-field__control input[type="text"],
.cf-meta-box .cf-field__control input[type="url"],
.cf-meta-box .cf-field__control input[type="email"],
.cf-meta-box .cf-field__control input[type="tel"],
.cf-meta-box .cf-field__control input[type="number"],
.cf-meta-box .cf-field__control input[type="password"],
.cf-meta-box .cf-field__control input[type="search"],
.cf-meta-box .cf-field__control input[type="date"],
.cf-meta-box .cf-field__control input[type="time"],
.cf-meta-box .cf-field__control input[type="datetime-local"],
.cf-meta-box .cf-field__control input.cf-color-field,
.cf-meta-box .cf-field__control textarea,
.cf-meta-box .cf-field__control select,
.cf-term-fields .cf-field__control input.regular-text,
.cf-term-fields .cf-field__control input[type="text"],
.cf-term-fields .cf-field__control input[type="url"],
.cf-term-fields .cf-field__control input[type="email"],
.cf-term-fields .cf-field__control input[type="tel"],
.cf-term-fields .cf-field__control input[type="number"],
.cf-term-fields .cf-field__control input[type="password"],
.cf-term-fields .cf-field__control input[type="search"],
.cf-term-fields .cf-field__control input[type="date"],
.cf-term-fields .cf-field__control input[type="time"],
.cf-term-fields .cf-field__control input[type="datetime-local"],
.cf-term-fields .cf-field__control input.cf-color-field,
.cf-term-fields .cf-field__control textarea,
.cf-term-fields .cf-field__control select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cf-meta-box .cf-field__control input[type="range"],
.cf-term-fields .cf-field__control input[type="range"] {
	width: 100%;
	max-width: 100%;
	vertical-align: middle;
}

.cf-meta-box .cf-field__control .cf-multiselect,
.cf-term-fields .cf-field__control .cf-multiselect {
	min-height: 6em;
}

.cf-meta-box .cf-field__control .cf-relational-search,
.cf-meta-box .cf-field__control .cf-media,
.cf-meta-box .cf-field__control .cf-gallery,
.cf-meta-box .cf-field__control .cf-link,
.cf-meta-box .cf-field__control .wp-editor-wrap,
.cf-term-fields .cf-field__control .cf-relational-search,
.cf-term-fields .cf-field__control .cf-media,
.cf-term-fields .cf-field__control .cf-gallery,
.cf-term-fields .cf-field__control .cf-link,
.cf-term-fields .cf-field__control .wp-editor-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cf-meta-box .cf-field__control .wp-picker-container,
.cf-term-fields .cf-field__control .wp-picker-container {
	max-width: 100%;
}

.cf-meta-box .cf-field__control:has(.cf-field__before),
.cf-meta-box .cf-field__control:has(.cf-field__after),
.cf-term-fields .cf-field__control:has(.cf-field__before),
.cf-term-fields .cf-field__control:has(.cf-field__after) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.cf-meta-box .cf-field__control .cf-field__before,
.cf-meta-box .cf-field__control .cf-field__after,
.cf-term-fields .cf-field__control .cf-field__before,
.cf-term-fields .cf-field__control .cf-field__after {
	flex-shrink: 0;
}

.cf-meta-box .cf-field__control:has(.cf-field__before) .regular-text,
.cf-meta-box .cf-field__control:has(.cf-field__after) .regular-text,
.cf-term-fields .cf-field__control:has(.cf-field__before) .regular-text,
.cf-term-fields .cf-field__control:has(.cf-field__after) .regular-text {
	flex: 1 1 12rem;
	min-width: 0;
	width: auto;
	max-width: 100%;
}

/* Nested fields inside meta boxes */
.cf-meta-box .cf-repeater,
.cf-meta-box .cf-flexible,
.cf-meta-box .cf-clone,
.cf-term-fields .cf-repeater,
.cf-term-fields .cf-flexible,
.cf-term-fields .cf-clone {
	width: 100%;
	min-width: 0;
}

.cf-group-field,
.cf-repeater__row-body,
.cf-flexible__row-body {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px 16px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.cf-group-field__subfield,
.cf-repeater__subfield,
.cf-flexible__subfield {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.cf-group-field__subfield.cf-field--w100,
.cf-repeater__subfield.cf-field--w100,
.cf-flexible__subfield.cf-field--w100 {
	grid-column: span 12;
}

.cf-group-field__subfield.cf-field--w75,
.cf-repeater__subfield.cf-field--w75,
.cf-flexible__subfield.cf-field--w75 {
	grid-column: span 9;
}

.cf-group-field__subfield.cf-field--w50,
.cf-repeater__subfield.cf-field--w50,
.cf-flexible__subfield.cf-field--w50 {
	grid-column: span 6;
}

.cf-group-field__subfield.cf-field--w33,
.cf-repeater__subfield.cf-field--w33,
.cf-flexible__subfield.cf-field--w33 {
	grid-column: span 4;
}

.cf-group-field__subfield.cf-field--w25,
.cf-repeater__subfield.cf-field--w25,
.cf-flexible__subfield.cf-field--w25 {
	grid-column: span 3;
}

.edit-post-layout__metaboxes,
.edit-post-layout__metaboxes .edit-post-meta-boxes-area,
.edit-post-layout__metaboxes .postbox-container,
.edit-post-layout__metaboxes .meta-box-sortables,
.edit-post-layout__metaboxes .postbox.cf-postbox,
.edit-post-layout__metaboxes .postbox.cf-postbox > .inside,
.cf-meta-box,
.cf-meta-box__row,
.cf-meta-box__cell,
.cf-field,
.cf-field__control {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.edit-post-layout__metaboxes .postbox.cf-postbox {
	overflow: hidden;
}

.postbox.cf-postbox .postbox-header,
.postbox.cf-postbox .hndle,
.postbox.cf-postbox h2,
.cf-field__label,
.cf-field__label label {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: normal;
}

.cf-field__before,
.cf-field__after {
	color: #646970;
	font-weight: 600;
}

@media (max-width: 782px) {
	.cf-meta-box__cell.cf-field--w75,
	.cf-meta-box__cell.cf-field--w50,
	.cf-meta-box__cell.cf-field--w25 {
		grid-column: 1 / -1 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
}

.cf-rules-list .cf-rule-row,
.cf-subfield-row,
.cf-layout-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
	padding: 10px 12px;
	background: var(--cf-bg);
	border: 1px solid var(--cf-divider);
	border-radius: 2px;
}

.cf-subfield-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 36px;
	align-items: end;
	width: 100%;
	box-sizing: border-box;
}

.cf-rules-list .cf-rule-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 38px;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.cf-layout-row {
	display: block;
}

.cf-layout-row__head {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(120px, 0.75fr) 80px 80px 40px;
	gap: 8px;
	align-items: end;
	margin-bottom: 10px;
}

.cf-subfield-row__control,
.cf-layout-row__control {
	display: grid;
	gap: 4px;
	min-width: 0;
	margin: 0;
	font-weight: 600;
	color: var(--cf-black);
}

.cf-subfield-row__control span,
.cf-layout-row__control span {
	font-size: 12px;
	line-height: 1.35;
	color: var(--cf-muted);
}

.cf-subfield-row__control input,
.cf-subfield-row__control select,
.cf-layout-row__control input,
.cf-layout-row__control select {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.cf-subfield-key-display code {
	display: flex;
	align-items: center;
	min-height: 30px;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cf-subfield-row__details {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 10px 12px;
	width: 100%;
	padding-top: 10px;
	border-top: 1px solid var(--cf-divider);
}

.cf-subfield-row__details > .cf-subfield-row__control {
	grid-column: span 4;
}

.cf-subfield-row__details > .cf-subfield-choices,
.cf-subfield-row__details > .cf-subfield-instructions {
	grid-column: 1 / -1;
}

.cf-subfield-row__details textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	resize: vertical;
}

.cf-subfield-row__details .cf-check-label {
	grid-column: span 4;
	align-self: end;
	min-height: 30px;
	margin: 0;
}

.cf-layout-row__fields {
	padding-top: 10px;
	border-top: 1px solid var(--cf-divider);
}

.cf-layout-subfields-list {
	margin: 8px 0;
}

.cf-rules-list .cf-rule-row:last-child,
.cf-subfield-row:last-child,
.cf-layout-row:last-child {
	margin-bottom: 0;
}

.cf-rules-list .cf-rule-row select,
.cf-rules-list .cf-rule-row input.regular-text {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.cf-rules-list .cf-rule-value-select {
	min-width: 0;
	max-width: 100%;
}

.cf-rules-list .cf-rule-remove,
.cf-subfield-row .cf-subfield-remove,
.cf-layout-row .cf-layout-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--cf-danger-hover);
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 2px;
}

.cf-rules-list .cf-rule-remove:hover,
.cf-subfield-row .cf-subfield-remove:hover,
.cf-layout-row .cf-layout-remove:hover {
	background: #fcf0f1;
	border-color: #f1b8bc;
	color: var(--cf-danger);
}

.wpps-cf-edit .cf-add-location-rule {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 16px !important;
	font-weight: 600;
	line-height: 1 !important;
	border-color: var(--wpps-accent) !important;
	color: var(--wpps-accent) !important;
	background: #fff !important;
}

.wpps-cf-edit .cf-add-location-rule:hover,
.wpps-cf-edit .cf-add-location-rule:focus {
	border-color: var(--wpps-accent-hover) !important;
	color: var(--wpps-accent-hover) !important;
	background: #f8fbff !important;
}

.wpps-cf-edit .cf-add-location-rule .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
}

/* Conditional logic panel */
.wpps-cf-edit .cf-field-conditional {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--cf-divider);
}

.wpps-cf-edit .cf-conditional-panel {
	margin-top: 12px;
	padding: 16px;
	background: var(--cf-bg);
	border: 1px solid var(--cf-divider);
	border-radius: 2px;
}

.wpps-cf-edit .cf-conditional-match {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.wpps-cf-edit .cf-conditional-match__label {
	font-weight: 600;
	font-size: 13px;
	color: var(--cf-black);
	margin: 0;
}

.wpps-cf-edit .cf-conditional-match-select {
	min-width: 100px;
	margin: 0;
}

.wpps-cf-edit .cf-conditional-rules {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.wpps-cf-edit .cf-conditional-rule-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 38px;
	gap: 12px;
	align-items: center;
	margin-bottom: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--cf-divider);
	border-radius: 2px;
}

.wpps-cf-edit .cf-conditional-rule-row > select,
.wpps-cf-edit .cf-conditional-value-wrap {
	min-width: 0;
	max-width: 100%;
	margin: 0;
}

.wpps-cf-edit .cf-conditional-value-wrap .cf-conditional-value {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}

.wpps-cf-edit .cf-conditional-rule-row .cf-conditional-rule-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--cf-danger-hover);
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 2px;
}

.wpps-cf-edit .cf-conditional-rule-row .cf-conditional-rule-remove:hover {
	background: #fcf0f1;
	border-color: #f1b8bc;
	color: var(--cf-danger);
}

.wpps-cf-edit .cf-add-conditional-rule {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 16px !important;
	font-weight: 600;
	line-height: 1 !important;
	border-color: var(--wpps-accent) !important;
	color: var(--wpps-accent) !important;
	background: #fff !important;
}

.wpps-cf-edit .cf-add-conditional-rule:hover,
.wpps-cf-edit .cf-add-conditional-rule:focus {
	border-color: var(--wpps-accent-hover) !important;
	color: var(--wpps-accent-hover) !important;
	background: #f8fbff !important;
}

.wpps-cf-edit .cf-add-conditional-rule .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
}

@media screen and (max-width: 782px) {
	.wpps-cf-edit .cf-conditional-rule-row {
		grid-template-columns: 1fr;
	}
}

.cf-rule-summary {
	margin: 4px 0 0;
	padding-left: 1.2em;
}

.cf-location-target {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1.4;
}

.cf-location-target .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: #646970;
	flex-shrink: 0;
}

.cf-location-target__icon--multi {
	opacity: 0.85;
}

.cf-location-target--various .dashicons {
	color: #787c82;
}

.cf-repeater__row,
.cf-flexible__row {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 0;
	margin-bottom: 10px;
	background: #fff;
	max-width: 100%;
	box-sizing: border-box;
}

.cf-repeater__row-head,
.cf-flexible__row-head {
	display: grid;
	grid-template-columns: 28px 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 6px 10px;
	border-bottom: 1px solid #dcdcde;
	background: #f6f7f7;
}

.cf-repeater__row-label,
.cf-flexible__row-head strong {
	min-width: 0;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-wrap: anywhere;
}

.cf-repeater__row-preview {
	color: #646970;
	font-weight: 400;
}

.cf-repeater__drag,
.cf-repeater__toggle,
.cf-flexible__drag,
.cf-flexible__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	color: #3c434a;
	text-decoration: none;
	cursor: pointer;
}

.cf-repeater__drag .dashicons,
.cf-repeater__toggle .dashicons,
.cf-flexible__drag .dashicons,
.cf-flexible__toggle .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

.cf-repeater__drag:hover,
.cf-repeater__drag:focus,
.cf-repeater__toggle:hover,
.cf-repeater__toggle:focus,
.cf-flexible__drag:hover,
.cf-flexible__drag:focus,
.cf-flexible__toggle:hover,
.cf-flexible__toggle:focus {
	color: #135e96;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.cf-repeater__row.is-collapsed .cf-repeater__row-body,
.cf-flexible__row.is-collapsed .cf-flexible__row-body {
	display: none;
}

.cf-repeater__row--paged-hidden {
	display: none;
}

.cf-repeater__row.is-collapsed .cf-repeater__toggle .dashicons,
.cf-flexible__row.is-collapsed .cf-flexible__toggle .dashicons {
	transform: rotate(-90deg);
}

.cf-repeater__row-body,
.cf-flexible__row-body {
	padding: 12px;
	background: #fafafa;
}

.cf-repeater__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.cf-repeater__pager {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cf-repeater__pager[hidden] {
	display: none !important;
}

.cf-repeater__page-status {
	color: #646970;
	font-size: 12px;
	line-height: 1.35;
	white-space: nowrap;
}

.cf-repeater__add {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px !important;
	padding: 0 14px !important;
	font-weight: 600;
	line-height: 1 !important;
}

.cf-repeater__add .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
}

.cf-repeater__status,
.cf-flexible__status {
	color: #646970;
	font-size: 12px;
	line-height: 1.35;
}

.cf-repeater__remove[disabled],
.cf-flexible__remove[disabled] {
	color: #a7aaad;
	cursor: not-allowed;
	text-decoration: none;
}

.cf-flexible__add-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
}

.cf-flexible__add-wrap .cf-flexible__layout-select {
	min-width: 0;
}

.cf-flexible__layout-buttons {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}

.cf-flexible__layout-button {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 40px !important;
	padding: 6px 10px !important;
	text-align: left;
}

.cf-flexible__layout-button.is-active {
	border-color: #2271b1 !important;
	box-shadow: inset 3px 0 0 #2271b1;
}

.cf-flexible__layout-button-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.cf-flexible__layout-button-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.cf-flexible__layout-button[disabled] .cf-flexible__layout-button-count {
	background: #dcdcde;
	color: #787c82;
}

.cf-flexible__add {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 120px;
	height: 34px !important;
	padding: 0 14px !important;
	font-weight: 600;
	line-height: 1 !important;
	white-space: nowrap;
}

.cf-flexible__add .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
}

.cf-flexible__layout-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	min-height: 1px !important;
	max-height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.cf-relational-search {
	display: grid;
	gap: 6px;
}

.cf-relational-search__status {
	min-height: 16px;
	color: #646970;
	font-size: 12px;
	line-height: 1.35;
}

.cf-relational-search.is-loading .cf-relational-search__status {
	color: var(--wp-admin-theme-color, #2271b1);
}

.cf-relational-search .cf-relational__select {
	min-height: 92px;
}

@media screen and (max-width: 782px) {
	.cf-subfield-row,
	.cf-layout-row__head,
	.cf-flexible__add-wrap {
		grid-template-columns: 1fr;
	}

	.cf-subfield-row .cf-subfield-remove,
	.cf-layout-row .cf-layout-remove {
		justify-self: end;
	}
}

@media screen and (max-width: 782px) {
	.wpps-cf-edit .cf-actions-bar {
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 1320px) {
	.wpps-cf-edit .cf-builder-layout {
		grid-template-columns: 1fr;
	}

	.wpps-cf-edit .cf-builder-sidebar {
		display: contents;
		position: static;
	}

	.wpps-cf-edit .cf-builder-sidebar .cf-card,
	.wpps-cf-edit .cf-builder-sidebar .cf-settings {
		margin-bottom: 0;
	}

	.wpps-cf-edit .cf-builder-sidebar .cf-card--identity {
		order: 2;
	}

	.wpps-cf-edit .cf-builder-main {
		order: 1;
	}

	.wpps-cf-edit .cf-builder-sidebar .cf-card--settings {
		order: 3;
	}

	.wpps-cf-edit .cf-builder-sidebar .cf-settings {
		order: 4;
	}
}

@media screen and (max-width: 1320px) {
	.wpps-cf-edit .cf-field-grid--basics {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}
}

@media screen and (max-width: 782px) {
	.wpps-cf-edit .cf-save-cluster {
		width: 100%;
		justify-content: space-between;
	}

	.wpps-cf-edit .cf-add-field-menu {
		width: 100%;
	}

	.wpps-cf-edit .cf-field-type-menu {
		position: fixed;
		top: 64px;
		left: 12px;
		right: 12px;
		transform: none;
		width: auto;
		max-width: 100%;
		max-height: calc(100vh - 88px);
		margin-top: 0;
		box-sizing: border-box;
	}

	.wpps-cf-edit .cf-field-type-menu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpps-cf-edit .cf-field-type-menu__group {
		grid-template-columns: 1fr;
	}

	.wpps-cf-edit .cf-field-type-menu__label {
		padding-top: 0;
	}

	.wpps-cf-edit .cf-quick-add-strip {
		position: static;
		grid-template-columns: 1fr;
	}

	.wpps-cf-edit .cf-quick-add-strip__head {
		min-width: 0;
	}

	.wpps-cf-edit .cf-quick-add-cluster {
		grid-template-columns: 78px minmax(0, 1fr);
		width: 100%;
	}

	.wpps-cf-edit .cf-field-grid,
	.wpps-cf-edit .cf-field-grid--basics,
	.wpps-cf-edit .cf-field-grid--primary-values,
	.wpps-cf-edit .cf-field-bounds,
	.wpps-cf-edit .cf-field-count,
	.wpps-cf-edit .cf-field-gallery-count,
	.wpps-cf-edit .cf-field-appearance,
	.wpps-cf-edit .cf-field-selection-settings,
	.wpps-cf-edit .cf-field-date-display,
	.wpps-cf-edit .cf-field-color-options,
	.wpps-cf-edit .cf-field-toggle-options,
	.wpps-cf-edit .cf-field-taxonomy-sync,
	.wpps-cf-edit .cf-field-oembed-dimensions,
	.wpps-cf-edit .cf-field-google-map-defaults,
	.wpps-cf-edit .cf-field-message-options,
	.wpps-cf-edit .cf-field-wysiwyg-options,
	.wpps-cf-edit .cf-field-gallery-display,
	.wpps-cf-edit .cf-field-media-size,
	.wpps-cf-edit .cf-field-image-dimensions,
	.wpps-cf-edit .cf-field-flags,
	.wpps-cf-edit .cf-clone-settings {
		grid-template-columns: 1fr;
	}

	.wpps-cf-edit .cf-field-grid--primary-values > .cf-field-control,
	.wpps-cf-edit .cf-field-bounds > .cf-field-control,
	.wpps-cf-edit .cf-field-count > .cf-field-control,
	.wpps-cf-edit .cf-field-gallery-count > .cf-field-control,
	.wpps-cf-edit .cf-field-appearance > .cf-field-control,
	.wpps-cf-edit .cf-field-selection-settings > .cf-field-control,
	.wpps-cf-edit .cf-field-date-display > .cf-field-control,
	.wpps-cf-edit .cf-field-color-options > .cf-field-control,
	.wpps-cf-edit .cf-field-toggle-options > .cf-field-control,
	.wpps-cf-edit .cf-field-taxonomy-sync > .cf-field-control,
	.wpps-cf-edit .cf-field-oembed-dimensions > .cf-field-control,
	.wpps-cf-edit .cf-field-google-map-defaults > .cf-field-control,
	.wpps-cf-edit .cf-field-message-options > .cf-field-control,
	.wpps-cf-edit .cf-field-wysiwyg-options > .cf-field-control,
	.wpps-cf-edit .cf-field-gallery-display > .cf-field-control,
	.wpps-cf-edit .cf-field-media-size > .cf-field-control,
	.wpps-cf-edit .cf-field-image-dimensions > .cf-field-control,
	.wpps-cf-edit .cf-field-flags > .cf-field-control,
	.wpps-cf-edit .cf-clone-settings > .cf-field-control {
		grid-column: 1 / -1 !important;
	}
}

.wpps-cf .cf-usage-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 12px;
}

.wpps-cf .cf-usage-block {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 14px 16px;
}

.wpps-cf .cf-usage-block__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-cf .cf-usage-block__intro {
	margin: 0 0 12px;
}

.wpps-cf .cf-usage-snippet + .cf-usage-snippet {
	margin-top: 12px;
}

.wpps-cf .cf-usage-snippet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.wpps-cf .cf-usage-snippet__label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wpps-cf .cf-usage-snippet__code {
	display: block;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #c3c4c7;
	font-size: 12px;
	line-height: 1.5;
	word-break: break-all;
	white-space: pre-wrap;
}

.wpps-cf .cf-usage-snippet--inline {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wpps-cf .cf-usage-snippet--inline .cf-usage-snippet__code {
	flex: 1;
	margin: 0;
}

.wpps-cf .cf-usage-copy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.wpps-cf .cf-usage-copy .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.wpps-cf .cf-usage-copy.is-copied {
	color: var(--wpps-accent);
	border-color: var(--wpps-accent);
}

.wpps-cf .cf-usage-fields {
	margin: 0;
	background: #fff;
}

.wpps-cf .cf-usage-fields__action {
	width: 72px;
	text-align: center;
}

.wpps-cf .cf-usage-fields code {
	font-size: 12px;
}

.wpps-cf .cf-usage-empty {
	padding: 14px 16px;
	background: #fff;
	border: 1px dashed #c3c4c7;
	color: #646970;
}

.wpps-cf .cf-usage-empty p {
	margin: 0;
}

.wpps-cf .cf-usage-integrations {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpps-cf .cf-usage-integrations li {
	display: grid;
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid #dcdcde;
}

.wpps-cf .cf-usage-integrations li:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.wpps-cf .cf-usage-integrations__name {
	font-weight: 600;
	color: #1d2327;
}

.wpps-cf .cf-usage-integrations__detail {
	font-size: 13px;
	color: #646970;
}

.wpps-cptb .cptb-usage-list {
	margin: 0.5em 0 0;
	padding-left: 1.2em;
}

.wpps-cptb .cptb-usage-list code {
	word-break: break-all;
}

.wpps-cf .cf-card--usage {
	margin-top: 16px;
}

.wpps-cptb .cptb-empty--inline {
	padding: 12px 16px;
	margin: 12px 0;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
}

/* List table header (views + search) — WP_List_Table handles the table */
.wpps-cf .cf-list-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 0;
}

.wpps-cf .cf-list-header .subsubsub {
	float: none;
	margin: 0;
}

.wpps-cf .cf-list-header .search-box {
	float: none;
	margin: 0;
}

.wpps-cf #cf-groups-list-form {
	margin-top: 0;
	clear: both;
}

.wpps-cf .wp-list-table .column-title {
	width: 22%;
}

.wpps-cf .wp-list-table .column-fields {
	width: 8%;
}

.wpps-cf .wp-list-table .row-actions {
	color: #646970;
}

.wpps-cf .wp-list-table .cf-muted {
	margin-top: 2px;
	font-size: 12px;
}

/* Validation errors. Intentionally not a .notice so admin notice managers
   cannot hide or relocate it. */
.wpps-cf-edit .cf-error-box {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fcf0f1;
	border: 1px solid var(--cf-danger);
	border-left-width: 4px;
	color: var(--cf-black);
}

.wpps-cf-edit .cf-error-box p {
	margin: 0 0 4px;
}

/* Settings accordion below the fields builder (matches WP postbox / admin tabs) */
.wpps-cf-edit .cf-settings {
	position: relative;
	z-index: 1;
	display: block;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin: 16px 0;
}

.wpps-cf-edit .cf-settings[open] {
	display: grid;
	grid-template-rows: auto auto;
}

.wpps-cf-edit .cf-settings > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	cursor: pointer;
	user-select: none;
	list-style: none;
	transition: background 0.15s ease;
}

.wpps-cf-edit .cf-settings > summary:hover {
	background: #f6f7f7;
}

.wpps-cf-edit .cf-settings > summary::-webkit-details-marker {
	display: none;
}

.wpps-cf-edit .cf-settings > summary::after {
	content: "\f140";
	font-family: dashicons;
	margin-left: auto;
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #787c82;
	transition: transform 0.15s ease;
}

.wpps-cf-edit .cf-settings[open] > summary {
	border-bottom: 1px solid #c3c4c7;
}

.wpps-cf-edit .cf-settings[open] > summary::after {
	transform: rotate(180deg);
}

.wpps-cf-edit .cf-settings > summary .dashicons {
	color: var(--wpps-accent);
}

.wpps-cf-edit .cf-settings:not([open]) > .cf-settings__inner {
	display: none !important;
}

.wpps-cf-edit .cf-settings__inner {
	position: relative;
	z-index: 1;
	padding: 0 16px 16px;
}

.wpps-cf-edit .cf-settings--locations {
	margin-top: 20px;
	margin-bottom: 20px;
}

.wpps-cf-edit .cf-settings--locations .cf-settings__inner {
	padding: 18px 20px 22px;
}

.wpps-cf-edit .cf-settings--locations .cf-sidebar-control {
	margin-bottom: 14px;
}

.wpps-cf-edit .cf-settings--locations .cf-rules-list {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.wpps-cf-edit .cf-settings--locations .cf-rule-row {
	position: relative;
	z-index: 1;
	gap: 12px;
	margin-bottom: 0;
	padding: 12px 14px;
}

.wpps-cf-edit .cf-settings--locations .cf-settings__inner > p {
	position: relative;
	z-index: 1;
	margin: 16px 0 0;
}

.wpps-cf-edit .cf-settings-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 12px 0 0;
	padding: 0;
	border-bottom: 1px solid #c3c4c7;
}

.wpps-cf-edit .cf-settings-tab {
	border: none;
	background: transparent;
	padding: 10px 16px;
	margin: 0 0 -1px;
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	box-shadow: none;
}

.wpps-cf-edit .cf-settings-tab:hover {
	color: #1d2327;
}

.wpps-cf-edit .cf-settings-tab.is-active {
	color: var(--wpps-accent);
	border-bottom-color: var(--wpps-accent);
}

.wpps-cf-edit .cf-settings-panel {
	padding-top: 8px;
}

.wpps-cf-edit .cf-settings .wpps-cf-accordion-tooltip:hover .wpps-cf-accordion-tooltip-trigger,
.wpps-cf-edit .cf-settings .wpps-cf-accordion-tooltip.is-active .wpps-cf-accordion-tooltip-trigger {
	color: var(--wpps-accent);
	background: var(--wpps-accent-surface);
}

/* Help tooltips (shared viewport-aware pattern; matches Code Snippets) */
.wpps-cf-accordion-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	cursor: help;
	vertical-align: middle;
}

.wpps-cf-accordion-tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	background: #f0f0f1;
	border-radius: 50%;
	line-height: 1;
	transition: color 0.2s, background 0.2s;
}

.wpps-cf-accordion-tooltip:hover .wpps-cf-accordion-tooltip-trigger {
	color: var(--wpps-accent);
	background: var(--wpps-accent-surface);
}

.wpps-cf-accordion-tooltip-panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	transform: translateY(4px);
	min-width: 220px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 12px 14px;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}

.wpps-cf-accordion-tooltip-panel.is-positioned {
	position: fixed !important;
	bottom: auto !important;
	transform: none !important;
	transition: opacity 0.12s ease, visibility 0.12s ease;
}

.wpps-cf-accordion-tooltip-panel::before {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--wpps-tip-x, 14px);
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: #c3c4c7;
}

.wpps-cf-accordion-tooltip-panel::after {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--wpps-tip-x, 14px);
	margin-left: -6px;
	margin-top: -1px;
	border: 6px solid transparent;
	border-top-color: #fff;
}

.wpps-cf-accordion-tooltip-panel.wpps-accordion-tooltip-panel--below::before {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: -1px;
	border-top-color: transparent;
	border-bottom-color: #c3c4c7;
}

.wpps-cf-accordion-tooltip-panel.wpps-accordion-tooltip-panel--below::after {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: -2px;
	border-top-color: transparent;
	border-bottom-color: #fff;
}

.wpps-cf-accordion-tooltip.is-active .wpps-cf-accordion-tooltip-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (hover: hover) {
	html:not(.wpps-accordion-tooltips-ready) .wpps-cf-accordion-tooltip:hover .wpps-cf-accordion-tooltip-panel:not(.is-positioned) {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

