@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

.wrap.wfb-wpbot-page,
.wfb-wpbot-page {
	--woobot-primary: #5B4E96;
	--woobot-primary-dark: #463a7a;
	--woobot-primary-soft: #f3f1fa;
	--woobot-primary-border: #e4e0f2;
	--woobot-surface: #ffffff;
	--woobot-text: #2d2a3a;
	--woobot-muted: #6b6680;
	--woobot-danger: #e25563;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 20px auto 40px;
	padding: 0 12px;
	color: var(--woobot-text);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wfb-wpbot-page *,
.wfb-wpbot-page *::before,
.wfb-wpbot-page *::after {
	box-sizing: border-box;
}

.wfb-wpbot-page__header {
	background: var(--woobot-surface);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	padding: 20px 24px;
	margin: 0 0 20px;
}

.wfb-wpbot-page__header h2 {
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: 24px;
	font-weight: 700;
	color: var(--woobot-primary) !important;
	line-height: 1.3;
}

.wfb-wpbot-page__header p {
	margin: 0;
	font-size: 14px;
	color: var(--woobot-muted);
}

.wfb-wpbot-page__card {
	background: var(--woobot-surface);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	width: 100%;
	margin: 0 0 20px;
}

.wfb-wpbot-page__info {
	background: var(--woobot-primary-soft);
	padding: 20px 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--woobot-text);
}

.wfb-wpbot-page__info p {
	margin: 0 0 10px;
}

.wfb-wpbot-page__info p:last-child {
	margin-bottom: 0;
}

.wfb-wpbot-page__info strong {
	color: var(--woobot-primary-dark);
	font-weight: 700;
}

.wfb-wpbot-page .plugin-card,
.wfb-wpbot-plugin-card {
	float: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	flex-wrap: wrap;
	width: 100%;
	margin: 0 0 20px;
}

.wfb-wpbot-plugin-card__main {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
	flex: 1 1 280px;
}

.wfb-wpbot-plugin-card__icon {
	flex-shrink: 0;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--woobot-primary-soft);
	border: 1px solid var(--woobot-primary-border);
}

.wfb-wpbot-plugin-card__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wfb-wpbot-plugin-card__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.wfb-wpbot-plugin-card__title a {
	color: var(--woobot-primary);
	text-decoration: none;
}

.wfb-wpbot-plugin-card__title a:hover {
	color: var(--woobot-primary-dark);
}

.wfb-wpbot-plugin-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.wfb-wpbot-plugin-card__actions ul {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfb-wpbot-plugin-card__actions li {
	margin: 0;
}

.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button,
.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-primary,
.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: auto;
	padding: 10px 18px;
	border-radius: 8px;
	border: 2px solid var(--woobot-primary);
	background: #fff;
	color: var(--woobot-primary) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button:hover,
.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-primary:hover {
	background: var(--woobot-primary);
	border-color: var(--woobot-primary);
	color: #fff !important;
	transform: translateY(-1px);
}

.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .update-now {
	border-color: var(--woobot-danger);
	color: var(--woobot-danger) !important;
}

.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .update-now:hover {
	background: var(--woobot-danger);
	border-color: var(--woobot-danger);
	color: #fff !important;
}

.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-disabled,
.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-disabled:hover {
	opacity: 0.7;
	transform: none;
	cursor: default;
	background: var(--woobot-primary-soft);
	border-color: var(--woobot-primary-border);
	color: var(--woobot-muted) !important;
}

.wfb-wpbot-page .wfb-wpbot-more-details {
	color: var(--woobot-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.wfb-wpbot-page .wfb-wpbot-more-details:hover {
	color: var(--woobot-primary-dark);
	text-decoration: underline;
}

.wfb-wpbot-page .notice {
	flex: 1 1 100%;
	margin: 0 0 8px;
	border-radius: 8px;
}

.wfb-wpbot-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100100;
	background: rgba(45, 42, 58, 0.55);
}

.wfb-wpbot-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.wfb-wpbot-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 950px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(91, 78, 150, 0.2);
	overflow: hidden;
}

.wfb-wpbot-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: var(--woobot-primary);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.wfb-wpbot-modal__close:hover {
	background: var(--woobot-primary-dark);
}

.wfb-wpbot-modal__body iframe {
	display: block;
	width: 100%;
	height: 550px;
	border: 0;
}

@media screen and (max-width: 782px) {
	.wfb-wpbot-page {
		margin: 12px auto 24px;
		padding: 0 4px;
	}

	.wfb-wpbot-page__header,
	.wfb-wpbot-page__info,
	.wfb-wpbot-plugin-card {
		border-radius: 12px;
		padding: 16px;
	}

	.wfb-wpbot-plugin-card {
		align-items: flex-start;
	}

	.wfb-wpbot-plugin-card__actions,
	.wfb-wpbot-plugin-card__actions ul {
		width: 100%;
		align-items: stretch;
	}

	.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button,
	.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-primary,
	.wfb-wpbot-page .wfb-wpbot-plugin-card__actions .button-disabled {
		width: 100%;
	}

	.wfb-wpbot-page .wfb-wpbot-more-details {
		text-align: center;
	}

	.wfb-form-list-page .qcformbuilder-editor-header,
	.wfb-form-list-page .qcld_header_buttons,
	.wfb-form-list-page .qcformbuilder-editor-header-nav {
		flex-direction: column;
		align-items: flex-start;
	}

	.wfb-form-list-page .qcld_header_buttons .button,
	.wfb-form-list-page .qcld_header_buttons .button-primary {
		width: 100%;
		justify-content: center;
	}
}

/* ─── Bot Form Builder list page ─────────────────────────────────────────── */
.wfb-form-list-page .qcformbuilder-editor-header {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 20px !important;
	padding: 20px 24px !important;
	background: var(--woobot-surface) !important;
	border: 1px solid var(--woobot-primary-border) !important;
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	z-index: 1;
	clear: none;
}

.wfb-form-list-page .qcformbuilder-editor-header-nav {
	float: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 0;
	margin: 0;
}

.wfb-form-list-page .qcformbuilder-editor-header-nav > li {
	float: none;
}

.wfb-form-list-page li.qcformbuilder-editor-logo {
	background-image: none;
	font-size: 24px;
	font-weight: 700;
	padding: 0;
	color: var(--woobot-primary);
}

.wfb-form-list-page .qcformbuilder-forms-name {
	margin-left: 0;
	color: var(--woobot-primary);
}

.wfb-form-list-page li.qcformbuilder-forms-version {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--woobot-primary-soft);
	color: var(--woobot-primary);
	font-size: 12px;
	font-weight: 600;
}

.wfb-form-list-page .qcformbuilder-editor-header-nav > li.qcformbuilder-forms-toolbar-item.separator {
	display: none;
}

.wfb-form-list-page .qcld_header_buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.wfb-form-list-page .qcld_header_buttons .button,
.wfb-form-list-page .qcld_header_buttons .button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	padding: 10px 18px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wfb-form-list-page .qcld_header_buttons .wfb-new-form-button,
.wfb-form-list-page .qcld_header_buttons .button-primary {
	background: var(--woobot-primary) !important;
	border: 2px solid var(--woobot-primary) !important;
	color: #fff !important;
}

.wfb-form-list-page .qcld_header_buttons .wfb-new-form-button:hover,
.wfb-form-list-page .qcld_header_buttons .button-primary:hover {
	background: var(--woobot-primary-dark) !important;
	border-color: var(--woobot-primary-dark) !important;
	transform: translateY(-1px);
}

.wfb-form-list-page .qcld_header_buttons #wfb-form-order {
	background: #fff !important;
	border: 2px solid var(--woobot-primary) !important;
	color: var(--woobot-primary) !important;
}

.wfb-form-list-page .qcld_header_buttons #wfb-form-order:hover {
	background: var(--woobot-primary) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.wfb-form-list-page .form-admin-page-wrap {
	margin: 0;
}

.wfb-form-list-page #qcformbuilder-forms-admin-page-left,
.wfb-form-list-page .form-panel-wrap {
	float: none;
	width: 100%;
	margin: 0;
	position: static;
}

.wfb-form-list-page .form-panel-wrap {
	background: var(--woobot-surface);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	overflow: hidden;
	margin: 0 0 20px;
}

.wfb-form-list-page .form-panel-wrap table.widefat {
	border: 0;
	box-shadow: none;
	background: transparent;
	table-layout: auto;
}

.wfb-form-list-page .form-panel-wrap table.widefat thead th {
	background: var(--woobot-primary-soft);
	border-bottom: 1px solid var(--woobot-primary-border);
	color: var(--woobot-primary);
	font-size: 13px;
	font-weight: 700;
	padding: 14px 20px;
}

.wfb-form-list-page .form-panel-wrap .wfb-form-list-col-name {
	width: auto;
}

.wfb-form-list-page .form-panel-wrap .wfb-form-list-col-actions {
	width: 280px;
	text-align: right;
}

.wfb-form-list-page .form-panel-wrap table.widefat td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--woobot-primary-border);
	vertical-align: middle;
}

.wfb-form-list-page .form-panel-wrap table.widefat tbody tr:last-child td {
	border-bottom: 0;
}

.wfb-form-list-page .form-panel-wrap table.widefat tbody tr:hover td {
	background: var(--woobot-primary-soft);
}

.wfb-form-list-page span.wfb-form-name-preview {
	display: block;
	margin-bottom: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--woobot-text);
}

.wfb-form-list-page .wfb-form-list-actions-cell {
	text-align: right;
	white-space: nowrap;
}

.wfb-form-list-page .form-panel-wrap .row-actions {
	position: static;
	left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	visibility: visible;
	font-size: 13px;
}

.wfb-form-list-page .form-panel-wrap .row-actions span {
	margin: 0;
	padding: 0;
}

.wfb-form-list-page .form-panel-wrap .row-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 7px 12px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	background: #fff;
	color: var(--woobot-primary);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
}

.wfb-form-list-page .form-panel-wrap .row-actions a:hover {
	background: var(--woobot-primary);
	border-color: var(--woobot-primary);
	color: #fff;
	text-decoration: none;
}

.wfb-form-list-page .form-panel-wrap .row-actions .trash a {
	border-color: #f3c4c8;
	color: var(--woobot-danger);
}

.wfb-form-list-page .form-panel-wrap .row-actions .trash a:hover {
	background: var(--woobot-danger);
	border-color: var(--woobot-danger);
	color: #fff;
}

.wfb-form-list-page #wfb-you-have-no-forms p {
	margin: 24px 20px !important;
	color: var(--woobot-muted);
}

.wfb-form-list-page .qc_cfp_help_section {
	background: var(--woobot-surface);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	padding: 24px;
	margin: 0 0 20px;
}

.wfb-form-list-page .qc_cfp_help_section h2 {
	margin: 0 0 8px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--woobot-primary);
	line-height: 1.3;
}

.wfb-form-list-page .qc_cfp_help_section h2:not(:first-child) {
	margin-top: 22px;
}

.wfb-form-list-page .qc_cfp_help_section p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--woobot-text);
}

.wfb-form-list-page .qc_cfp_help_section a {
	color: var(--woobot-primary);
	font-weight: 600;
	text-decoration: none;
}

.wfb-form-list-page .qc_cfp_help_section a:hover {
	color: var(--woobot-primary-dark);
	text-decoration: underline;
}

.wfb-form-list-page .qc_cfp_help_section .wfb-help-warning {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fdecee;
	color: var(--woobot-danger);
	font-weight: 600;
}

.wfb-form-list-page #qcformbuilder-forms-admin-page-right {
	width: 100%;
	margin: 0;
}

.wfb-form-list-page .form-entries-wrap {
	padding: 0;
}

/* ─── Create New Conversation modal ──────────────────────────────────────── */
#new_form_baldrickModal.baldrick-modal-wrap,
.wfb-create-conversation-modal.baldrick-modal-wrap {
	--woobot-primary: #5B4E96;
	--woobot-primary-dark: #463a7a;
	--woobot-primary-soft: #f3f1fa;
	--woobot-primary-border: #e4e0f2;
	--woobot-surface: #ffffff;
	--woobot-text: #2d2a3a;
	--woobot-muted: #6b6680;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	transform: translate(-50%, -50%) !important;
	width: min(1280px, calc(100vw - 48px)) !important;
	max-width: 1280px !important;
	height: auto !important;
	max-height: calc(100vh - 48px) !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
	background: var(--woobot-surface);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(91, 78, 150, 0.22);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transition: none;
}

#new_form_baldrickModal .baldrick-modal-title,
.wfb-create-conversation-modal .baldrick-modal-title {
	position: relative;
	flex: 0 0 auto;
	background: var(--woobot-primary);
	border-bottom: 0;
	padding: 0;
}

#new_form_baldrickModal .baldrick-modal-title .modal-label,
.wfb-create-conversation-modal .baldrick-modal-title .modal-label {
	background: transparent !important;
	color: #fff !important;
	text-shadow: none;
	margin: 0;
	padding: 16px 52px 16px 24px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

#new_form_baldrickModal .baldrick-modal-closer,
.wfb-create-conversation-modal .baldrick-modal-closer {
	position: absolute;
	top: 10px;
	right: 12px;
	float: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	color: #fff !important;
	font-size: 26px;
	line-height: 30px;
	text-align: center;
	text-shadow: none;
}

#new_form_baldrickModal .baldrick-modal-closer:hover,
.wfb-create-conversation-modal .baldrick-modal-closer:hover {
	background: rgba(0, 0, 0, 0.18) !important;
}

#new_form_baldrickModal .baldrick-modal-body,
.wfb-create-conversation-modal .baldrick-modal-body {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	flex: 1 1 auto;
	overflow: auto;
	padding: 24px;
	max-height: calc(100vh - 120px);
}

#new_form_baldrickModal .wfb-templates-wrapper,
.wfb-create-conversation-modal .wfb-templates-wrapper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	overflow: visible;
	padding: 0;
}

#new_form_baldrickModal .wfb-form-template,
.wfb-create-conversation-modal .wfb-form-template {
	float: none;
	width: auto;
	height: auto;
	min-height: 240px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#new_form_baldrickModal .wfb-form-template:hover,
.wfb-create-conversation-modal .wfb-form-template:hover {
	border: 1px solid var(--woobot-primary);
	background: var(--woobot-primary-soft);
	box-shadow: 0 6px 18px rgba(91, 78, 150, 0.08);
}

#new_form_baldrickModal .wfb-form-template.selected,
.wfb-create-conversation-modal .wfb-form-template.selected {
	background: var(--woobot-primary-soft);
	border: 1px solid var(--woobot-primary);
	color: var(--woobot-text);
}

#new_form_baldrickModal .wfb-form-template > small,
.wfb-create-conversation-modal .wfb-form-template > small {
	display: block;
	margin-bottom: 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--woobot-primary);
}

#new_form_baldrickModal .wfb-form-template small.wfb-preview-field,
.wfb-create-conversation-modal .wfb-form-template small.wfb-preview-field {
	border-bottom: 1px solid var(--woobot-primary-border);
	color: var(--woobot-muted);
	font-size: 11px;
	font-weight: 500;
}

#new_form_baldrickModal .wfb-preview-field.wfb-preview-button,
.wfb-create-conversation-modal .wfb-preview-field.wfb-preview-button {
	background: var(--woobot-primary-soft);
	color: var(--woobot-primary);
	border-radius: 6px;
}

#new_form_baldrickModal .wfb-form-template.selected .wfb-preview-field.wfb-preview-button,
.wfb-create-conversation-modal .wfb-form-template.selected .wfb-preview-field.wfb-preview-button {
	background: var(--woobot-primary);
	color: #fff;
}

#new_form_baldrickModal .wfb-form-create,
.wfb-create-conversation-modal .wfb-form-create {
	background: var(--woobot-primary);
	border-radius: 12px;
	padding: 16px;
	width: min(380px, 100%);
}

#new_form_baldrickModal .wfb-template-title,
.wfb-create-conversation-modal .wfb-template-title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

#new_form_baldrickModalBody .new-form-name.block-input.field-config,
.wfb-create-conversation-modal .new-form-name.block-input.field-config {
	border: 1px solid var(--woobot-primary-border) !important;
	border-radius: 8px;
	box-shadow: none !important;
	padding: 10px 12px;
	font-size: 14px;
}

#new_form_baldrickModal .qcformbuilder-grid.wfb-form-create button.wfb-change-template-button,
#new_form_baldrickModal .qcformbuilder-grid.wfb-form-create button.wfb-create-form-button,
.wfb-create-conversation-modal .qcformbuilder-grid.wfb-form-create button.wfb-change-template-button,
.wfb-create-conversation-modal .qcformbuilder-grid.wfb-form-create button.wfb-create-form-button {
	background-color: #fff;
	color: var(--woobot-primary);
	border: 2px solid #fff;
	border-radius: 8px;
	font-weight: 600;
	width: auto;
	min-width: 150px;
	margin: 16px 8px 0 0;
	padding: 10px 14px;
}

#new_form_baldrickModal .qcformbuilder-grid.wfb-form-create button.wfb-create-form-button,
.wfb-create-conversation-modal .qcformbuilder-grid.wfb-form-create button.wfb-create-form-button {
	background-color: var(--woobot-primary-dark);
	border-color: var(--woobot-primary-dark);
	color: #fff;
}

@media screen and (max-width: 1100px) {
	#new_form_baldrickModal .wfb-templates-wrapper,
	.wfb-create-conversation-modal .wfb-templates-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 782px) {
	#new_form_baldrickModal.baldrick-modal-wrap,
	.wfb-create-conversation-modal.baldrick-modal-wrap {
		width: calc(100vw - 16px) !important;
		max-height: calc(100vh - 16px) !important;
		border-radius: 12px;
	}

	#new_form_baldrickModal .wfb-templates-wrapper,
	.wfb-create-conversation-modal .wfb-templates-wrapper {
		grid-template-columns: 1fr;
	}

	#new_form_baldrickModal .wfb-form-template,
	.wfb-create-conversation-modal .wfb-form-template {
		min-height: 0;
	}
}

/* ─── Form editor page ───────────────────────────────────────────────────── */
.wrap:has(> form.wfb-form-editor-page) {
	padding-top: 8px;
}

form.wfb-form-editor-page.wfb-wpbot-page {
	position: relative;
	max-width: 1280px;
	margin: 12px auto 40px;
	padding: 0 8px;
}

form.wfb-form-editor-page.wfb-wpbot-page {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}
.wfb-wpbot-page.wfb-form-list-page {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}
.wfb-form-editor-page .qcformbuilder-editor-header {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 12px !important;
	padding: 12px 16px !important;
	overflow: visible;
	background: #fff !important;
	border: 1px solid var(--woobot-primary-border) !important;
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	z-index: 20;
}

.wfb-form-editor-page .qcformbuilder-editor-header.qcformbuilder-editor-subnav {
	top: auto !important;
	margin-bottom: 16px !important;
	padding: 8px !important;
	border-top: 0 !important;
	background: var(--woobot-primary-soft) !important;
	box-shadow: none;
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav {
	float: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 0;
	margin: 0;
	flex: 1 1 auto;
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li {
	float: none;
	margin: 0;
}

.wfb-form-editor-page li.qcformbuilder-editor-logo {
	background-image: none;
	padding: 4px 8px 4px 0;
	font-size: 20px;
	font-weight: 700;
}

.wfb-form-editor-page .qcformbuilder-forms-name {
	margin-left: 0;
	color: var(--woobot-primary);
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav li.qcformbuilder-element-type-label {
	background: var(--woobot-primary-soft);
	color: var(--woobot-primary);
	border-radius: 8px;
	padding: 6px 12px;
	font-weight: 600;
}

.wfb-form-editor-page .qcformbuilder-editor-header.qcformbuilder-editor-subnav .qcformbuilder-editor-header-nav > li a {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 10px;
	background: #fff;
	color: var(--woobot-primary);
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 1px 4px rgba(91, 78, 150, 0.06);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wfb-form-editor-page .qcformbuilder-editor-header.qcformbuilder-editor-subnav .qcformbuilder-editor-header-nav > li a:hover {
	background: #fff;
	color: var(--woobot-primary-dark);
	box-shadow: 0 4px 12px rgba(91, 78, 150, 0.12);
}

.wfb-form-editor-page .qcformbuilder-editor-header.qcformbuilder-editor-subnav .qcformbuilder-editor-header-nav > li.active a {
	background: var(--woobot-primary) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(91, 78, 150, 0.22);
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li a {
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--woobot-primary);
	font-weight: 600;
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li.active a {
	background: var(--woobot-primary) !important;
	color: #fff !important;
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li.wfb-pro-tab p,
.wfb-form-editor-page .qcformbuilder-editor-header-nav > li p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 14px;
	border: 1px dashed var(--woobot-primary-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--woobot-muted);
	font-weight: 600;
	line-height: 1.2;
	cursor: default;
	position: relative;
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li.wfb-pro-tab p::before {
	content: "\f160";
	font-family: dashicons;
	font-size: 16px;
	line-height: 1;
	color: var(--woobot-muted);
}

.wfb-form-editor-page .qcformbuilder-editor-header-nav > li p span,
.wfb-form-editor-page .qcformbuilder-editor-header-nav > li .wfb-pro-badge {
	position: static !important;
	top: auto !important;
	right: auto !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 18px;
	min-width: 0;
	padding: 0 7px;
	border-radius: 999px;
	background: linear-gradient(135deg, #e25563 0%, #c43d4c 100%) !important;
	box-shadow: none !important;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 18px;
	text-transform: uppercase;
}

.wfb-form-editor-page .qcformbuilder-header-save-button,
.wfb-form-editor-page .qcformbuilder-header-restore-button,
.wfb-form-editor-page .qcformbuilder-header-return-button,
.wfb-form-editor-page .qcformbuilder-header-email-preview-button {
	float: none !important;
	margin: 0 0 0 auto !important;
	height: auto;
	padding: 4px 18px;
	border-radius: 8px;
	border: 2px solid var(--woobot-primary) !important;
	background: var(--woobot-primary) !important;
	color: #fff !important;
	font-weight: 600;
	box-shadow: none !important;
}

.wfb-form-editor-page .qcformbuilder-header-return-button,
.wfb-form-editor-page .qcformbuilder-header-email-preview-button {
	background: #fff !important;
	color: var(--woobot-primary) !important;
}

.wfb-form-editor-page .qcformbuilder-editor-body {
	padding-top: 0 !important;
	min-height: 0;
}

.wfb-form-editor-page .qcformbuilder-editor-body > h3,
.wfb-form-editor-page .qcformbuilder-config-editor-main-panel > h3 {
	position: relative !important;
	top: auto !important;
	width: auto !important;
	margin: 0 0 16px !important;
	padding: 12px 16px !important;
	background: #fff !important;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(91, 78, 150, 0.05);
	color: var(--woobot-primary);
	font-weight: 700;
	z-index: 5;
}

.wfb-form-editor-page .layout-new-form-field.button {
	background: var(--woobot-primary) !important;
	border-color: var(--woobot-primary) !important;
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	box-shadow: none !important;
}

.wfb-form-editor-page .qcformbuilder-editor-body.qcformbuilder-config-editor-panel.qcformbuilder-config-has-side {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-right: 0 !important;
}

.wfb-form-editor-page .qcformbuilder-config-editor-main-panel {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

.wfb-form-editor-page .qcformbuilder-config-editor-side-panel {
	position: sticky !important;
	top: 12px;
	right: auto;
	bottom: auto;
	float: none;
	flex: 0 0 380px;
	width: 380px;
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	padding-right: 0;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper {
	background: var(--woobot-primary-soft) !important;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 12px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	padding: 16px;
}

.wfb-form-editor-page h3.qcformbuilder-editor-field-title {
	border-bottom-color: var(--woobot-primary-border);
	color: var(--woobot-primary);
	font-weight: 700;
}

.wfb-form-editor-page .layout-grid .layout-column {
	background: #fff !important;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	padding: 22px 16px 28px;
	margin: 18px 0 8px;
	min-height: 72px;
}

.wfb-form-editor-page .layout-grid .row.active .layout-column.column-container {
	box-shadow: 0 8px 24px rgba(91, 78, 150, 0.1);
	padding: 22px 16px 28px;
}

.wfb-form-editor-page .layout-form-field {
	position: relative;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(91, 78, 150, 0.05);
	padding: 16px 18px 14px;
	margin: 0 0 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wfb-form-editor-page .layout-grid .layout-form-field:hover {
	min-width: 0;
	border-color: var(--woobot-primary);
	box-shadow: 0 8px 22px rgba(91, 78, 150, 0.1);
}

.wfb-form-editor-page .layout-form-field.field-edit-open,
.wfb-form-editor-page .field-edit-open {
	border-color: var(--woobot-primary);
	box-shadow: 0 0 0 3px rgba(91, 78, 150, 0.12);
}

.wfb-form-editor-page .field-edit-open .field_preview {
	background: transparent;
	border-color: transparent;
}

.wfb-form-editor-page .layout-form-field .field_preview {
	min-height: 48px;
	border: 0;
}

.wfb-form-editor-page .preview-qcformbuilder-config-group {
	padding: 0;
}

.wfb-form-editor-page .layout-form-field .control-label {
	display: block;
	margin: 0 0 8px;
	padding: 0 72px 0 0;
	color: var(--woobot-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.wfb-form-editor-page .preview-field-config,
.wfb-form-editor-page .layout-form-field input.preview-field-config,
.wfb-form-editor-page .layout-form-field select.preview-field-config,
.wfb-form-editor-page .layout-form-field textarea.preview-field-config {
	width: 100%;
	max-width: 100%;
	height: auto !important;
	min-height: 42px;
	margin: 0;
	padding: 10px 14px;
	background: var(--woobot-primary-soft) !important;
	border: 1px solid var(--woobot-primary-border) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	color: var(--woobot-muted);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.wfb-form-editor-page .layout-form-field .help-block {
	margin: 6px 0 0;
	color: var(--woobot-muted);
	font-size: 12px;
}

.wfb-form-editor-page .layout-form-field .icon-edit,
.wfb-form-editor-page .layout-form-field .dashicons-admin-page {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	background: #fff;
	color: var(--woobot-primary);
	box-shadow: 0 2px 8px rgba(91, 78, 150, 0.08);
	line-height: 28px;
	font-size: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wfb-form-editor-page .layout-grid .layout-form-field:hover .icon-edit,
.wfb-form-editor-page .layout-grid .layout-form-field:hover .dashicons-admin-page,
.wfb-form-editor-page .layout-form-field.field-edit-open .icon-edit,
.wfb-form-editor-page .layout-form-field.field-edit-open .dashicons-admin-page {
	opacity: 1;
	pointer-events: auto;
}

.wfb-form-editor-page .layout-grid .layout-form-field.button-primary .icon-edit,
.wfb-form-editor-page .layout-grid .layout-form-field.button-primary .dashicons-admin-page {
	display: none !important;
}

.wfb-form-editor-page .layout-form-field .icon-edit {
	right: 12px;
	top: 12px;
}

.wfb-form-editor-page .layout-form-field .dashicons-admin-page {
	right: 46px;
	top: 12px;
}

.wfb-form-editor-page .layout-form-field .icon-edit:hover,
.wfb-form-editor-page .layout-form-field .dashicons-admin-page:hover {
	background: var(--woobot-primary) !important;
	border-color: var(--woobot-primary);
	color: #fff !important;
}

.wfb-form-editor-page .column-tools i,
.wfb-form-editor-page .column-fieldinsert .dashicons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 50%;
	background: #fff;
	color: var(--woobot-primary);
	box-shadow: 0 4px 12px rgba(91, 78, 150, 0.12);
	font-size: 16px;
	line-height: 28px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wfb-form-editor-page .column-remove.column-tools {
	top: -14px;
	left: -6px;
	width: 28px;
}

.wfb-form-editor-page .column-sort.column-tools {
	top: -14px;
	right: -6px;
	width: 28px;
}

.wfb-form-editor-page .column-fieldinsert.column-tools {
	bottom: -16px;
	margin-left: -14px;
	width: 28px;
}

.wfb-form-editor-page .column-remove.column-tools i {
	border-color: #f3c4c8;
	color: var(--woobot-danger);
}

.wfb-form-editor-page .column-remove.column-tools i:hover {
	background: var(--woobot-danger);
	border-color: var(--woobot-danger);
	color: #fff;
	transform: scale(1.06);
}

.wfb-form-editor-page .column-sort.column-tools i:hover,
.wfb-form-editor-page .column-fieldinsert .dashicons:hover {
	background: var(--woobot-primary);
	border-color: var(--woobot-primary);
	color: #fff;
	transform: scale(1.06);
}

.wfb-form-editor-page .column-fieldinsert .dashicons.dashicons-plus-alt {
	background: var(--woobot-primary);
	border-color: var(--woobot-primary);
	color: #fff;
	font-size: 18px;
}

.wfb-form-editor-page .add-new-item.qcformbuilder-add-row {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	margin: 16px 0 8px;
	border: 2px dashed var(--woobot-primary-border);
	border-radius: 14px;
	background: var(--woobot-primary-soft);
}

.wfb-form-editor-page .add-new-item.qcformbuilder-add-row:hover {
	background: #fff;
	border-color: var(--woobot-primary);
}

.wfb-form-editor-page .add-new-item .dashicons.dashicons-plus {
	color: var(--woobot-primary);
	font-size: 28px;
	line-height: 1;
}

.wfb-form-editor-page .qcformbuilder-config-editor-main-panel > h3 {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: 100% !important;
	gap: 10px;
}

.wfb-form-editor-page .layout-new-form-field.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	margin-left: auto;
	margin-right: 0;
	padding: 8px 14px;
	background: var(--woobot-primary) !important;
	border: 2px solid var(--woobot-primary) !important;
	border-radius: 8px;
	color: #fff !important;
	font-weight: 600;
	box-shadow: none !important;
	line-height: 1.2;
	cursor: move;
}

.wfb-form-editor-page .layout-new-form-field .layout_field_name {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

body > .layout-new-form-field.ui-draggable-dragging,
.layout-new-form-field.ui-draggable-dragging {
	position: fixed !important;
	z-index: 100000 !important;
	margin: 0 !important;
	transform: none !important;
	background: #5B4E96 !important;
	border: 2px solid #5B4E96 !important;
	border-radius: 8px !important;
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(91, 78, 150, 0.28) !important;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-group {
	margin-left: 0;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-group > label {
	float: none;
	display: block;
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--woobot-primary-dark);
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field {
	width: 100%;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper select.field-config,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper textarea.field-config,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field select,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .block-input,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper textarea.block-input {
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 9px 12px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	box-shadow: none;
	background: #fff;
	color: var(--woobot-text);
	font-size: 13px;
	line-height: 1.4;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper select.field-config:focus,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field select:focus,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .block-input:focus,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper textarea.block-input:focus {
	border-color: var(--woobot-primary);
	box-shadow: 0 0 0 2px rgba(91, 78, 150, 0.12);
	outline: none;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config[type="checkbox"],
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config[type="radio"],
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field input[type="checkbox"],
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .qcformbuilder-config-field input[type="radio"] {
	width: 16px !important;
	min-width: 16px;
	max-width: 16px;
	height: 16px !important;
	min-height: 16px;
	margin: 0 8px 0 0;
	padding: 0;
	float: none;
	display: inline-block;
	vertical-align: middle;
	border: 1px solid var(--woobot-primary-border);
	box-shadow: none;
	background: #fff;
	accent-color: var(--woobot-primary);
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config[type="checkbox"] {
	border-radius: 4px;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper input.field-config[type="radio"] {
	border-radius: 50%;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .delete-field {
	width: 100%;
	height: auto;
	margin-top: 8px;
	padding: 9px 14px;
	border: 2px solid var(--woobot-danger) !important;
	border-radius: 8px;
	background: #fff !important;
	color: var(--woobot-danger) !important;
	font-weight: 600;
	box-shadow: none !important;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .delete-field:hover {
	background: var(--woobot-danger) !important;
	color: #fff !important;
}

.wfb-form-editor-page .qcformbuilder-config-group-toggle-options {
	margin: 0;
}

.wfb-form-editor-page .toggle-options-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 10px;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.add-toggle-option {
	width: 100% !important;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid var(--woobot-primary) !important;
	border-radius: 8px;
	background: var(--woobot-primary) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: none !important;
	text-align: center;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.add-toggle-option[data-bulk] {
	background: #fff !important;
	color: var(--woobot-primary) !important;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.add-toggle-option:hover,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.add-toggle-option[data-bulk]:hover {
	background: var(--woobot-primary-dark) !important;
	border-color: var(--woobot-primary-dark) !important;
	color: #fff !important;
}

.wfb-form-editor-page .bulk-preset-panel {
	grid-column: 1 / -1;
	margin-top: 2px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 10px;
}

.wfb-form-editor-page .bulk-preset-panel .preset_options,
.wfb-form-editor-page .bulk-preset-panel textarea.block-input {
	width: 100% !important;
	margin: 0 0 8px;
}

.wfb-form-editor-page .bulk-preset-panel .description {
	margin: 0 0 8px;
	color: var(--woobot-muted);
	font-size: 12px;
}

.wfb-form-editor-page .bulk-preset-panel button.button.add-toggle-option {
	margin-top: 0 !important;
}

.wfb-form-editor-page .toggle-options-flags {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.wfb-form-editor-page .toggle-options-flags > label,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle-options-flags > label {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	float: none !important;
	margin: 0;
	padding: 8px 10px !important;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	color: var(--woobot-primary-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.wfb-form-editor-page .toggle-options-flags > label.pull-right {
	float: none !important;
	margin-left: auto;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 12px 40px 12px 40px;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 10px;
	box-shadow: none;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row .dashicons-sort {
	position: absolute;
	top: 12px;
	left: 8px;
	width: 22px;
	height: 22px;
	padding: 0 !important;
	color: var(--woobot-muted);
	font-size: 18px;
	line-height: 22px;
	text-align: center;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row > input.toggle_set_default {
	position: absolute;
	top: 40px;
	left: 11px;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row .qcformbuilder-config-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	margin: 0;
	overflow: hidden;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row .qcformbuilder-config-group:has(input[style*="display:none"]),
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row .qcformbuilder-config-group:has(input[style*="display: none"]) {
	display: none;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row .qcformbuilder-config-group > label,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row label.option-setting-label {
	display: block !important;
	float: none !important;
	width: auto !important;
	margin: 0;
	padding: 0;
	color: var(--woobot-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row input.option-setting,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row input.toggle_calc_value_field,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row input.toggle_value_field,
.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper .toggle_option_row input.toggle_label_field {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	display: block;
	margin: 0;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.toggle-remove-option {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	min-width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid #f3c4c8 !important;
	border-radius: 8px;
	background: #fff !important;
	color: var(--woobot-danger) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	box-shadow: none !important;
}

.wfb-form-editor-page .qcformbuilder-editor-field-config-wrapper button.button.toggle-remove-option:hover {
	background: var(--woobot-danger) !important;
	border-color: var(--woobot-danger) !important;
	color: #fff !important;
}

.wfb-form-editor-page .qc_instructions {
	margin-top: 16px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 10px;
	color: var(--woobot-muted);
	font-size: 13px;
	line-height: 1.6;
}

.wfb-form-editor-page .qc_instructions ul {
	margin: 0;
	padding-left: 18px;
}

.wfb-form-editor-page .qcformbuilder-editor-body.qcformbuilder-config-editor-panel:not(.qcformbuilder-config-has-side) {
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(91, 78, 150, 0.06);
	padding: 24px 28px 32px;
	min-height: 280px;
}

.wfb-form-editor-page .qcformbuilder-editor-body.qcformbuilder-config-editor-panel:not(.qcformbuilder-config-has-side) > h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	margin: 0 0 20px !important;
	padding: 22px 0 0 0 !important;
}

.wfb-form-editor-page .qcformbuilder-forms-tab-help-bubble {
	color: var(--woobot-primary);
	text-decoration: none;
	width: 22px;
	height: 22px;
	font-size: 18px;
}

.wfb-form-editor-page #settings-panel .wfb-form-settings-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.wfb-form-editor-page #settings-panel .qcformbuilder-config-group {
	margin-left: 0;
	max-width: none;
}

.wfb-form-editor-page #settings-panel .qcformbuilder-config-group > label {
	float: none;
	display: block;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--woobot-primary-dark);
}

.wfb-form-editor-page #settings-panel .qcformbuilder-config-field {
	display: block;
	width: 100%;
}

.wfb-form-editor-page #settings-panel #wfb-form-name {
	width: 100% !important;
	max-width: none;
	height: auto;
	padding: 10px 14px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--woobot-text);
}

.wfb-form-editor-page #settings-panel #wfb-form-name:focus {
	border-color: var(--woobot-primary);
	box-shadow: 0 0 0 2px rgba(91, 78, 150, 0.15);
	outline: none;
}

.wfb-form-editor-page #settings-panel .wfb-form-settings-help {
	margin: 0;
	padding: 16px 18px;
	background: var(--woobot-primary-soft);
	border: 1px solid var(--woobot-primary-border);
	border-radius: 12px;
}

.wfb-form-editor-page #settings-panel .wfb-form-settings-help p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--woobot-muted);
}

.wfb-form-editor-page #settings-panel .wfb-form-settings-help p:last-child {
	margin-bottom: 0;
}

.wfb-form-editor-page #mailer-config-panel .wfb-email-settings {
	width: 100%;
}

.wfb-form-editor-page #mailer-config-panel .wfb-email-mailer-toggle {
	margin: 0 0 20px;
	max-width: none;
}

.wfb-form-editor-page #mailer-config-panel .wfb-email-mailer-toggle > label {
	display: none;
}

.wfb-form-editor-page #mailer-config-panel .toggle_processor_event {
	float: none;
	margin: 0;
}

.wfb-form-editor-page #mailer-config-panel .toggle_processor_event > label.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto;
	margin: 0;
	padding: 9px 16px;
	border-radius: 8px !important;
	border: 2px solid var(--woobot-primary) !important;
	background: #fff !important;
	color: var(--woobot-primary) !important;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
}

.wfb-form-editor-page #mailer-config-panel .toggle_processor_event > label.button.activated {
	background: var(--woobot-primary) !important;
	color: #fff !important;
}

.wfb-form-editor-page #mailer-config-panel .wfb-email-disabled-note {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--woobot-primary-soft);
	color: var(--woobot-muted);
	text-align: left;
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px 24px;
	width: 100%;
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup .qcformbuilder-config-group {
	margin: 0;
	max-width: none;
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup .qcformbuilder-config-group > label {
	float: none;
	display: block;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--woobot-primary-dark);
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-field,
.wfb-form-editor-page #mailer-config-panel .mailer-control-panel .qcformbuilder-config-group .qcformbuilder-config-field {
	display: block;
	width: 100%;
	max-width: none;
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup input.field-config {
	width: 100% !important;
	max-width: none;
	height: auto;
	padding: 10px 14px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--woobot-text);
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup input.field-config:focus {
	border-color: var(--woobot-primary);
	box-shadow: 0 0 0 2px rgba(91, 78, 150, 0.15);
	outline: none;
}

.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup .description {
	margin: 6px 0 0;
	color: var(--woobot-muted);
	font-size: 12px;
	line-height: 1.5;
}

@media screen and (max-width: 1100px) {
	.wfb-form-editor-page .qcformbuilder-editor-body.qcformbuilder-config-editor-panel.qcformbuilder-config-has-side {
		flex-direction: column;
	}

	.wfb-form-editor-page .qcformbuilder-config-editor-side-panel {
		flex: 1 1 auto;
		width: 100%;
		max-height: none;
		position: relative !important;
		top: auto;
	}

	.wfb-form-editor-page #settings-panel .wfb-form-settings-layout,
	.wfb-form-editor-page #mailer-config-panel .qcformbuilder-config-processor-setup {
		grid-template-columns: 1fr;
	}
}

/* ─── Fields picker modal ────────────────────────────────────────────────── */
#field_setup_baldrickModal,
#field_setup_baldrickModal.baldrick-modal-wrap,
#field_setup_baldrickModal.wfb-fields-modal,
.wfb-fields-modal.baldrick-modal-wrap {
	--woobot-primary: #5B4E96;
	--woobot-primary-dark: #463a7a;
	--woobot-primary-soft: #f3f1fa;
	--woobot-primary-border: #e4e0f2;
	--woobot-text: #2d2a3a;
	--woobot-muted: #6b6680;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	transform: translate(-50%, -50%) !important;
	width: min(760px, calc(100vw - 48px)) !important;
	height: min(560px, calc(100vh - 48px)) !important;
	max-width: 1280px !important;
	margin: 0 !important;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(91, 78, 150, 0.22);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transition: none !important;
}

#field_setup_baldrickModal .baldrick-modal-title,
.wfb-fields-modal .baldrick-modal-title {
	background: var(--woobot-primary);
	border-bottom: 0;
}

#field_setup_baldrickModal .baldrick-modal-title .modal-label,
.wfb-fields-modal .baldrick-modal-title .modal-label {
	background: var(--woobot-primary) !important;
	color: #fff !important;
	text-shadow: none;
	margin: 0;
	padding: 16px 52px 16px 24px;
	font-size: 18px;
	font-weight: 700;
}

#field_setup_baldrickModal .baldrick-modal-closer,
.wfb-fields-modal .baldrick-modal-closer {
	position: absolute;
	top: 10px;
	right: 12px;
	float: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	color: #fff !important;
	font-size: 26px;
	line-height: 30px;
	text-align: center;
	text-shadow: none;
}

#field_setup_baldrickModal .baldrick-modal-closer:hover,
.wfb-fields-modal .baldrick-modal-closer:hover {
	background: rgba(0, 0, 0, 0.18) !important;
}

#field_setup_baldrickModal .baldrick-modal-body,
.wfb-fields-modal .baldrick-modal-body {
	top: 52px !important;
	padding: 16px 20px;
	background: #faf9fd;
}

#field_setup_baldrickModal .navtabs,
.wfb-fields-modal .navtabs {
	box-sizing: border-box;
	width: 168px;
	left: 0;
	bottom: 0;
	padding: 16px 12px;
	background: var(--woobot-primary-soft);
	border-right: 1px solid var(--woobot-primary-border);
}

#field_setup_baldrickModal .navtabs > li,
.wfb-fields-modal .navtabs > li {
	margin: 0 0 8px;
	border-radius: 10px;
	overflow: hidden;
}

#field_setup_baldrickModal .navtabs > li:hover,
.wfb-fields-modal .navtabs > li:hover {
	background: #fff;
}

#field_setup_baldrickModal .navtabs > li a,
.wfb-fields-modal .navtabs > li a {
	display: block;
	padding: 11px 12px;
	border-radius: 10px;
	color: var(--woobot-primary);
	font-weight: 600;
}

#field_setup_baldrickModal .navtabs > li.selected > a,
.wfb-fields-modal .navtabs > li.selected > a {
	background: var(--woobot-primary) !important;
	color: #fff !important;
}

#field_setup_baldrickModal .baldrick-modal-body.has-tabs,
.wfb-fields-modal .baldrick-modal-body.has-tabs {
	margin-left: 168px;
	padding: 16px 20px;
}

#field_setup_baldrickModal .form-modal-add-line,
.wfb-fields-modal .form-modal-add-line {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	column-gap: 12px;
	row-gap: 2px;
	align-items: center;
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid var(--woobot-primary-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(91, 78, 150, 0.05);
}

#field_setup_baldrickModal .form-modal-add-line:hover,
.wfb-fields-modal .form-modal-add-line:hover {
	background: #fff;
	border-color: var(--woobot-primary);
	box-shadow: 0 8px 20px rgba(91, 78, 150, 0.1);
}

#field_setup_baldrickModal .form-modal-lgo,
.wfb-fields-modal .form-modal-lgo {
	grid-column: 1;
	grid-row: 1 / span 2;
	float: none;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 10px;
	background: var(--woobot-primary-soft);
	object-fit: contain;
}

#field_setup_baldrickModal .form-modal-add-line strong,
.wfb-fields-modal .form-modal-add-line strong {
	grid-column: 2;
	grid-row: 1;
	color: var(--woobot-text);
	font-size: 14px;
}

#field_setup_baldrickModal .form-modal-add-line .description,
.wfb-fields-modal .form-modal-add-line .description {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	color: var(--woobot-muted);
	font-size: 12px;
}

#field_setup_baldrickModal button.button.info-button,
.wfb-fields-modal button.button.info-button {
	grid-column: 3;
	grid-row: 1 / span 2;
	float: none;
	margin: 0 !important;
	height: auto;
	padding: 9px 16px;
	border-radius: 8px;
	border: 2px solid var(--woobot-primary) !important;
	background: var(--woobot-primary) !important;
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
	white-space: nowrap;
}

#field_setup_baldrickModal button.button.info-button:hover,
.wfb-fields-modal button.button.info-button:hover {
	background: var(--woobot-primary-dark) !important;
	border-color: var(--woobot-primary-dark) !important;
	color: #fff !important;
}

@media screen and (max-width: 782px) {
	#field_setup_baldrickModal.baldrick-modal-wrap,
	.wfb-fields-modal.baldrick-modal-wrap {
		width: calc(100vw - 16px) !important;
		height: calc(100vh - 16px) !important;
		border-radius: 12px;
	}

	#field_setup_baldrickModal .navtabs,
	.wfb-fields-modal .navtabs {
		width: 110px;
	}

	#field_setup_baldrickModal .baldrick-modal-body.has-tabs,
	.wfb-fields-modal .baldrick-modal-body.has-tabs {
		margin-left: 110px;
	}

	#field_setup_baldrickModal .form-modal-add-line,
	.wfb-fields-modal .form-modal-add-line {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	#field_setup_baldrickModal button.button.info-button,
	.wfb-fields-modal button.button.info-button {
		grid-column: 1 / -1;
		grid-row: 3;
		justify-self: end;
	}
}

/* ─── Save preloader + success toast ─────────────────────────────────────── */
#save_indicator.wfb-save-preloader {
	position: fixed !important;
	inset: 0 !important;
	right: 0 !important;
	z-index: 100200;
	display: none;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0;
	float: none;
	background: rgba(45, 42, 58, 0.38);
	visibility: hidden;
	pointer-events: none;
}

#save_indicator.wfb-save-preloader.loading {
	display: flex !important;
	visibility: visible !important;
	pointer-events: auto;
	background-image: none !important;
}

#save_indicator.wfb-save-preloader.loading::after {
	content: "";
	width: 52px;
	height: 52px;
	border: 4px solid rgba(255, 255, 255, 0.35);
	border-top-color: #5B4E96;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(91, 78, 150, 0.28);
	animation: wfb-save-spin 0.7s linear infinite;
}

@keyframes wfb-save-spin {
	to {
		transform: rotate(360deg);
	}
}

body > .updated_notice_box,
.wfb-form-editor-page .updated_notice_box,
.qcformbuilder-editor-header .updated_notice_box {
	position: fixed !important;
	top: auto !important;
	left: auto !important;
	right: 24px;
	bottom: 24px;
	z-index: 100210;
	display: flex;
	align-items: center;
	min-width: 240px;
	max-width: min(360px, calc(100vw - 32px));
	padding: 14px 18px;
	background: #fff !important;
	border: 1px solid #e4e0f2;
	border-left: 6px solid #5B4E96 !important;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(91, 78, 150, 0.18);
	color: #2d2a3a;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body > .updated_notice_box.is-visible,
.wfb-form-editor-page .updated_notice_box.is-visible,
.qcformbuilder-editor-header .updated_notice_box.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ─── Add Field help pointer ─────────────────────────────────────────────── */
.wfb-add-field-pointer.wp-pointer {
	max-width: 420px;
	border: 1px solid #e4e0f2;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(91, 78, 150, 0.18);
	overflow: visible;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wfb-add-field-pointer .wp-pointer-content {
	padding: 0 0 4px;
	background: #fff;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
}

.wfb-add-field-pointer .wp-pointer-content h3 {
	margin: 0 !important;
	padding: 14px 18px !important;
	background: #5B4E96 !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.3;
}

.wfb-add-field-pointer .wp-pointer-content h3:before {
	display: none !important;
}

.wfb-add-field-pointer .wp-pointer-content p {
	margin: 0;
	padding: 12px 16px 0;
	color: #6b6680;
	font-size: 14px;
	line-height: 1.6;
}

.wfb-add-field-pointer .wp-pointer-content p.wfb-pointer-gif {
	padding: 12px 16px 8px;
}

.wfb-add-field-pointer .wp-pointer-content img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 1px solid #e4e0f2;
	border-radius: 10px;
	background: #f6f5fb;
}

.wfb-add-field-pointer .wp-pointer-buttons {
	padding: 4px 16px 12px;
	background: transparent;
	border: 0;
	text-align: right;
}

.wfb-add-field-pointer .wp-pointer-buttons a.close {
	float: none !important;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 12px;
	border-radius: 8px;
	background: #f3f1fa;
	color: #5B4E96 !important;
	font-weight: 600;
	text-decoration: none;
}

.wfb-add-field-pointer .wp-pointer-buttons a.close:before {
	color: #5B4E96;
}

.wfb-add-field-pointer .wp-pointer-buttons a.close:hover {
	background: #5B4E96;
	color: #fff !important;
}

.wfb-add-field-pointer .wp-pointer-buttons a.close:hover:before {
	color: #fff;
}

.wfb-add-field-pointer.wp-pointer-top .wp-pointer-arrow,
.wfb-add-field-pointer .wp-pointer-arrow {
	border-bottom-color: #5B4E96 !important;
}

.wfb-add-field-pointer.wp-pointer-top .wp-pointer-arrow-inner,
.wfb-add-field-pointer .wp-pointer-arrow-inner {
	border-bottom-color: #5B4E96 !important;
}

.qcformbuilder-config-group .toggle_option_row input[type=radio]:checked::before {
    content: "";
    border-radius: 50%;
    width: .5rem;
    height: .5rem;
    margin: 3px 0 0 3px;
    background-color: #E91E63;
    outline: 4px solid transparent;
}

.qcformbuilder-config-group-toggle-options .qcformbuilder-config-group.qcformbuilder-config-group-full.toggle-options-flags input[type=checkbox]:checked::before {
    background: #5b4e96;
    border-radius: 50%;
}


.qcformbuilder-config-group-toggle-options  input[type=radio]:checked::before {
    margin: 3px 0 0 3px;
    background-color: #E91E63;
}