/* ==========================================================================
   Booking Form Builder — Admin UI
   ========================================================================== */

/* ── HugeIcons global reset for builder ──────────────────────────────────── */
.bf-builder-app [class*="hgi-"] {
	font-size: 15px;
	line-height: 1;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── WP chrome override on builder pages ─────────────────────────────────── */
.bf-builder-fullscreen #adminmenumain,
.bf-builder-fullscreen #adminmenuback,
.bf-builder-fullscreen #adminmenuwrap { display: none !important; }

.bf-builder-fullscreen #wpcontent,
.bf-builder-fullscreen #wpbody { margin-left: 0 !important; }

.bf-builder-fullscreen #wpcontent { padding: 0 !important; }
.bf-builder-fullscreen #wpbody-content { padding: 0 !important; }
.bf-builder-fullscreen #wpbody-content .wrap { margin: 0 !important; padding: 0 !important; }

.bf-builder-fullscreen #wpfooter,
.bf-builder-fullscreen .update-nag,
.bf-builder-fullscreen .notice,
.bf-builder-fullscreen .updated,
.bf-builder-fullscreen .error { display: none !important; }

/* ── Reset ────────────────────────────────────────────────────────────────── */
#bf-builder-app,
#bf-builder-app * { box-sizing: border-box; }

/* ── App shell ────────────────────────────────────────────────────────────── */
#bf-builder-app {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 32px); /* 32px = WP admin bar */
	background: #f1f3f8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	color: #1e1e2e;
	overflow: hidden;
	margin: 0;
	padding: 0;
	position: relative;
	left: 0;
}

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.bf-builder-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 54px;
	padding: 0 20px;
	background: #1e1e2e;
	flex-shrink: 0;
	gap: 12px;
	box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 12px rgba(0,0,0,.35);
	z-index: 20;
}

.bf-topbar-left,
.bf-topbar-center,
.bf-topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bf-topbar-center { flex: 1; justify-content: center; }

/* Back button */
.bf-back-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	color: #8b8fa8;
	text-decoration: none;
	transition: background .15s, color .15s;
	flex-shrink: 0;
}
.bf-back-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.bf-back-btn svg { display: block; }
.bf-back-btn [class*="hgi-"] { font-size: 18px !important; }

/* Brand chip */
.bf-brand-chip {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.01em;
	padding-right: 12px;
	border-right: 1px solid rgba(255,255,255,.1);
}
.bf-brand-icon {
	width: 24px;
	height: 24px;
	background: #4f46e5;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

/* Form title */
.bf-form-title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bf-form-title-input {
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.1);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	outline: none;
	min-width: 220px;
	max-width: 360px;
	transition: border-color .15s, background .15s;
}
.bf-form-title-input:hover { border-color: rgba(255,255,255,.2); }
.bf-form-title-input:focus { border-color: #6366f1; background: rgba(255,255,255,.1); }

.bf-unsaved-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f59e0b;
	flex-shrink: 0;
	animation: bf-pulse 2s infinite;
}
@keyframes bf-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}

/* Right buttons */
.bf-topbar-right { gap: 6px; }

.bf-save-status {
	font-size: 11px;
	color: #6ee7b7;
	white-space: nowrap;
}

.bf-topbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 32px;
	padding: 0 12px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all .15s;
	white-space: nowrap;
	font-family: inherit;
}

.bf-preview-btn {
	background: rgba(255,255,255,.1) !important;
	border-color: rgba(255,255,255,.15) !important;
	color: #c7d2fe !important;
	text-decoration: none;
}
.bf-preview-btn:hover { background: rgba(255,255,255,.18) !important; color: #fff !important; }

.bf-save-btn {
	background: #4f46e5 !important;
	border-color: #4338ca !important;
	color: #fff !important;
}
.bf-save-btn:hover { background: #4338ca !important; }
.bf-save-btn:disabled { opacity: .6; cursor: not-allowed; }

.bf-topbar-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.bf-topbar-btn [class*="hgi-"] { font-size: 15px !important; }

@keyframes bf-spin { to { transform: rotate(360deg); } }
.bf-spin { animation: bf-spin .7s linear infinite; display: inline-block; }

.bf-shortcode-pill {
	display: flex;
	align-items: center;
	gap: 5px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 6px;
	padding: 0 4px 0 10px;
	height: 30px;
}
.bf-shortcode-pill code {
	background: none;
	color: #a5b4fc;
	font-size: 11px;
	font-family: 'SFMono-Regular', Consolas, monospace;
	padding: 0;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bf-copy-sc {
	background: none;
	border: none;
	cursor: pointer;
	color: #8b8fa8;
	padding: 4px;
	display: flex;
	align-items: center;
	border-radius: 4px;
	transition: background .12s, color .12s;
}
.bf-copy-sc:hover { background: rgba(255,255,255,.1); color: #fff; }
.bf-copy-sc svg { width: 13px; height: 13px; }

/* ── 3-column layout ──────────────────────────────────────────────────────── */
.bf-builder-layout {
	display: grid;
	grid-template-columns: 240px 1fr 300px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* ── LEFT: Field Library Panel ────────────────────────────────────────────── */
.bf-fields-panel {
	background: #fff;
	border-right: 1px solid #e5e7ef;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.bf-panel-inner {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	scrollbar-width: thin;
	scrollbar-color: #e5e7ef transparent;
}
.bf-panel-inner::-webkit-scrollbar { width: 4px; }
.bf-panel-inner::-webkit-scrollbar-track { background: transparent; }
.bf-panel-inner::-webkit-scrollbar-thumb { background: #e5e7ef; border-radius: 2px; }

.bf-panel-header {
	padding: 14px 14px 10px;
	border-bottom: 1px solid #f1f3f8;
	flex-shrink: 0;
}
.bf-panel-header h3 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9ca3af;
}

.bf-field-search-input {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #e5e7ef;
	border-radius: 7px;
	font-size: 12px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	background: #f8f9fc;
	color: #1e1e2e;
}
.bf-field-search-input:focus {
	border-color: #6366f1;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.bf-field-search-input::placeholder { color: #9ca3af; }

/* Field groups */
.bf-field-group { margin-bottom: 16px; }
.bf-field-group-title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #9ca3af;
	padding: 0 2px 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bf-field-group-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #f1f3f8;
}

.bf-field-types-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.bf-field-type-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 9px;
	background: #f8f9fc;
	border: 1px solid #e5e7ef;
	border-radius: 7px;
	cursor: pointer;
	transition: background .12s, border-color .12s, transform .1s, box-shadow .12s;
	font-size: 11.5px;
	font-weight: 500;
	color: #374151;
	text-align: left;
	line-height: 1.2;
	font-family: inherit;
}
.bf-field-type-btn:hover {
	background: #eef2ff;
	border-color: #a5b4fc;
	color: #4338ca;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(99,102,241,.12);
}
.bf-field-type-btn:active { transform: translateY(0); box-shadow: none; }

.bf-ft-icon {
	width: 26px;
	height: 26px;
	background: #fff;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
	transition: background .12s;
	color: #6366f1;
}
.bf-field-type-btn:hover .bf-ft-icon { background: #eef2ff; border-color: #a5b4fc; }

.bf-ft-label { flex: 1; }
.bf-field-type-btn.hidden { display: none; }

/* ── CENTER: Canvas Panel ─────────────────────────────────────────────────── */
.bf-canvas-panel {
	display: flex;
	flex-direction: column;
	background: #f1f3f8;
	overflow: hidden;
	min-width: 0;
}

/* Step nav */
.bf-steps-nav {
	display: flex;
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #e5e7ef;
	padding: 0 16px;
	min-height: 44px;
	gap: 4px;
	flex-shrink: 0;
}

.bf-steps-tabs {
	display: flex;
	gap: 6px;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}
.bf-steps-tabs::-webkit-scrollbar { display: none; }

.bf-step-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 18px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	background: #f3f4f6;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	white-space: nowrap;
	transition: background .12s, color .12s, border-color .12s;
	position: relative;
	bottom: -1px;
	font-family: inherit;
}
.bf-step-tab:hover { background: #f8f9fc; color: #374151; }
.bf-step-tab.active {
	background: #fff;
	border-color: #e5e7ef;
	border-bottom-color: #fff;
	color: #1e1e2e;
	font-weight: 600;
}
.bf-step-tab-name {
	outline: none;
	background: transparent;
	border: none;
	font: inherit;
	color: inherit;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}
.bf-step-tab.active .bf-step-tab-name { cursor: text; }

.bf-step-tab-delete {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fee2e2;
	border: none;
	cursor: pointer;
	font-size: 11px;
	color: #dc2626;
	padding: 0;
	display: none;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}
.bf-step-tab:hover .bf-step-tab-delete { display: flex; }

.bf-add-step-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: transparent;
	border: 1px dashed #c7d2fe;
	border-radius: 6px;
	cursor: pointer;
	font-size: 11.5px;
	font-weight: 500;
	color: #6366f1;
	white-space: nowrap;
	transition: background .12s, border-color .12s;
	font-family: inherit;
}
.bf-add-step-btn:hover { background: #eef2ff; border-color: #818cf8; }
.bf-add-step-btn svg { width: 12px; height: 12px; }

/* Canvas scroll wrapper */
.bf-canvas-scroll {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 28px 20px;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

/* Empty state */
.bf-canvas-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	text-align: center;
	padding: 40px;
}
.bf-canvas-empty-art { margin-bottom: 20px; opacity: .8; }
.bf-canvas-empty h3 {
	font-size: 16px;
	font-weight: 700;
	color: #374151;
	margin: 0 0 8px;
}
.bf-canvas-empty p {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 6px;
}
.bf-canvas-empty-hint {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
	background: rgba(255,255,255,.6);
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-block;
}

/* Form "page" card in canvas */
.bf-canvas-page {
	max-width: 740px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.07);
	overflow: visible;
}

.bf-canvas-page-header {
	padding: 20px 24px 0;
	border-bottom: 1px dashed #e5e7ef;
	margin-bottom: 4px;
}
.bf-canvas-page-header-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #c7d2fe;
	display: flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 12px;
}
.bf-canvas-page-header-label::before,
.bf-canvas-page-header-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e5e7ef;
}

/* Fields wrap — stacks rows vertically */
.bf-canvas-fields-wrap {
	display: flex;
	flex-direction: column;
	padding: 16px 14px 14px;
	gap: 6px;
	min-height: 80px;
	overflow: visible;
}

/* Row container — fields inside share the row horizontally */
.bf-canvas-row {
	display: flex;
	width: 100%;
	position: relative;
	border: 1.5px dashed transparent;
	border-radius: 8px;
	transition: border-color .15s, background .15s;
	margin-bottom: 4px;
}
.bf-canvas-row:last-child { margin-bottom: 0; }
.bf-canvas-row:hover { border-color: #e0e7ff; }
.bf-canvas-row.sortable-drag-target { border-color: #a5b4fc; background: #f5f3ff; }

/* Row label (appears on hover) */
.bf-canvas-row-label {
	position: absolute;
	top: -8px;
	left: 8px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #a5b4fc;
	background: #fff;
	padding: 0 4px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.bf-canvas-row:hover .bf-canvas-row-label { opacity: 1; }

/* Multi-column rows get a subtle accent */
.bf-canvas-row.is-multi-col { background: #fafbff; border-color: #e0e7ff; }
.bf-canvas-row.is-multi-col:hover { border-color: #a5b4fc; background: #f5f3ff; }

/* Vertical divider between sibling field cards in the same row */
.bf-canvas-row.is-multi-col .bf-canvas-field + .bf-canvas-field::before {
	content: '';
	position: absolute;
	top: 10%;
	left: 0;
	width: 1px;
	height: 80%;
	background: #e0e7ff;
	pointer-events: none;
}

/* ── Individual field card ────────────────────────────────────────────────── */
.bf-canvas-field {
	padding: 5px 5px;
	flex-shrink: 0;
	position: relative;
	transition: opacity .15s;
	/* width is set via data-width */
}

/* Width classes — percentage of the row width */
.bf-canvas-field[data-width="25"]  { width: 25%; }
.bf-canvas-field[data-width="33"]  { width: 33.333%; }
.bf-canvas-field[data-width="50"]  { width: 50%; }
.bf-canvas-field[data-width="66"]  { width: 66.666%; }
.bf-canvas-field[data-width="75"]  { width: 75%; }
.bf-canvas-field[data-width="100"] { width: 100%; }

/* Inner card */
.bf-cf-inner {
	border: 1.5px solid #e5e7ef;
	border-radius: 8px;
	background: #fafbff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .12s;
	overflow: hidden;
	position: relative;
}
.bf-cf-inner:hover {
	border-color: #a5b4fc;
	box-shadow: 0 2px 8px rgba(99,102,241,.1);
}
.bf-canvas-field.active .bf-cf-inner {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.15);
	background: #fff;
}
.bf-canvas-field.sortable-ghost .bf-cf-inner {
	background: #eef2ff;
	border-color: #a5b4fc;
	opacity: .7;
}

/* Top toolbar (label + actions) */
.bf-cf-toolbar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px 6px;
	border-bottom: 1px solid #f1f3f8;
}

.bf-cf-drag {
	color: #cbd5e1;
	cursor: grab;
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
	padding: 2px;
	border-radius: 3px;
	transition: color .12s;
}
.bf-cf-drag:hover { color: #94a3b8; }
.bf-cf-drag:active { cursor: grabbing; }

.bf-cf-type-chip {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #eef2ff;
	border-radius: 4px;
	padding: 2px 7px 2px 4px;
	font-size: 10px;
	font-weight: 600;
	color: #6366f1;
	flex-shrink: 0;
}
.bf-cf-type-chip-icon { font-size: 11px; }

.bf-cf-label {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.bf-cf-required-star { color: #ef4444; margin-left: 1px; }

.bf-cf-badge {
	font-size: 10px;
	background: #f1f5f9;
	border-radius: 3px;
	padding: 1px 5px;
	color: #64748b;
	flex-shrink: 0;
}

/* Action buttons (shown on hover) */
.bf-cf-actions {
	display: flex;
	gap: 2px;
	opacity: 0;
	transition: opacity .12s;
	flex-shrink: 0;
}
.bf-cf-inner:hover .bf-cf-actions { opacity: 1; }
.bf-canvas-field.active .bf-cf-actions { opacity: 1; }

.bf-cf-action-btn {
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #94a3b8;
	transition: background .1s, color .1s;
	padding: 0;
}
.bf-cf-action-btn:hover { background: #fee2e2; color: #dc2626; }
.bf-cf-action-btn.is-dup:hover { background: #dbeafe; color: #2563eb; }
.bf-cf-action-btn svg { width: 12px; height: 12px; }

/* Preview area */
.bf-cf-preview {
	padding: 8px 10px 10px;
}

.bf-cf-mock-label {
	font-size: 10px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 4px;
}

.bf-cf-mock-input {
	height: 28px;
	background: #f8f9fc;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	padding: 0 8px;
	font-size: 11px;
	color: #9ca3af;
	display: flex;
	align-items: center;
}

.bf-cf-mock-textarea {
	height: 48px;
	background: #f8f9fc;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	padding: 6px 8px;
	font-size: 11px;
	color: #9ca3af;
	display: flex;
	align-items: flex-start;
}

.bf-cf-mock-options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bf-cf-mock-option {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	color: #6b7280;
}
.bf-cf-mock-radio,
.bf-cf-mock-check {
	width: 12px;
	height: 12px;
	border: 1.5px solid #d1d5db;
	border-radius: 50%;
	flex-shrink: 0;
}
.bf-cf-mock-check { border-radius: 3px; }

.bf-cf-mock-cards {
	display: flex;
	gap: 4px;
}
.bf-cf-mock-card {
	flex: 1;
	height: 36px;
	background: #f8f9fc;
	border: 1.5px solid #e5e7ef;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #9ca3af;
}

.bf-cf-mock-select {
	height: 28px;
	background: #f8f9fc;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	padding: 0 8px;
	font-size: 11px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.bf-cf-mock-select::after { content: '▾'; font-size: 10px; }

.bf-cf-mock-date {
	height: 28px;
	background: #f8f9fc;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	padding: 0 8px;
	font-size: 11px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	gap: 5px;
}

.bf-cf-mock-heading {
	font-weight: 700;
	font-size: 14px;
	color: #374151;
	padding: 2px 0;
}
.bf-cf-mock-paragraph {
	font-size: 11px;
	color: #6b7280;
	line-height: 1.5;
}
.bf-cf-mock-divider {
	height: 1px;
	background: #e5e7ef;
	margin: 4px 0;
}

/* Width indicator bar at bottom */
.bf-cf-width-bar {
	height: 3px;
	background: #eef2ff;
	margin: 0 10px 8px;
	border-radius: 2px;
	overflow: hidden;
}
.bf-cf-width-fill {
	height: 100%;
	background: linear-gradient(90deg, #818cf8, #6366f1);
	border-radius: 2px;
}

/* ── RIGHT: Settings Panel ────────────────────────────────────────────────── */
.bf-settings-panel {
	background: #fff;
	border-left: 1px solid #e5e7ef;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Single scrollable settings body */
.bf-settings-body {
	flex: 1;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #e5e7ef transparent;
}
.bf-settings-body::-webkit-scrollbar { width: 4px; }
.bf-settings-body::-webkit-scrollbar-thumb { background: #e5e7ef; border-radius: 2px; }

/* ── Accordion sections ──────────────────────────────────────────────────── */
.bf-acc-section {
	border-bottom: 1px solid #e5e7ef;
}

.bf-acc-header {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	background: #fafbff;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .04em;
	transition: background .12s, color .12s;
}
.bf-acc-header:hover { background: #f1f3f8; color: #111827; }
.bf-acc-header [class*="hgi-"]:first-child { font-size: 15px; color: #6366f1; flex-shrink: 0; }
.bf-acc-header span { flex: 1; }
.bf-acc-chevron { font-size: 13px !important; color: #9ca3af; transition: transform .2s; flex-shrink: 0; }
.bf-acc-section.open > .bf-acc-header { color: #6366f1; background: #f0f0ff; }
.bf-acc-section.open > .bf-acc-header [class*="hgi-"]:first-child { color: #6366f1; }
.bf-acc-section.open > .bf-acc-header .bf-acc-chevron { transform: rotate(180deg); }

/* Accordion body — hidden by default, shown via JS .open class */
.bf-acc-body {
	display: none;
}
.bf-acc-section.open > .bf-acc-body {
	display: block;
	padding: 14px 16px 16px;
}

/* All settings panes now live inside acc-body — padding comes from acc-body */
.bf-spane { padding: 0; }

/* No field selected state */
.bf-no-field-selected {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px 20px;
	text-align: center;
	color: #9ca3af;
	font-size: 12px;
	line-height: 1.5;
}
.bf-no-field-selected p { margin: 0; }

/* Settings sections */
.bf-settings-section {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f3f8;
}
.bf-settings-section:last-child { border-bottom: none; margin-bottom: 0; }

.bf-section-heading {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #9ca3af;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bf-section-heading::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #f1f3f8;
}

/* Setting rows */
.bf-sl {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #374151;
}

.bf-sl-toggle {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	cursor: pointer;
}
.bf-sl-toggle span { flex: 1; font-size: 12px; font-weight: 500; color: #374151; }
.bf-sl-toggle span small { display: block; font-size: 10px; color: #9ca3af; font-weight: 400; margin-top: 1px; }

.bf-sl-color {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.bf-sl-color span { font-size: 11.5px; font-weight: 500; color: #374151; flex: 1; }

/* Inputs */
.bf-sinput {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #e5e7ef;
	border-radius: 6px;
	font-size: 12.5px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	font-family: inherit;
	color: #1e1e2e;
	background: #fafbff;
}
.bf-sinput:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.1);
	background: #fff;
}
.bf-sinput[type="number"] { -moz-appearance: textfield; }
.bf-sinput[type="number"]::-webkit-outer-spin-button,
.bf-sinput[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

select.bf-sinput { cursor: pointer; }
textarea.bf-sinput { resize: vertical; min-height: 60px; }

/* Toggle — fully suppress native checkbox appearance incl. WP-admin overrides */
.bf-stoggle,
.bf-stoggle:focus,
.bf-stoggle:checked {
	-webkit-appearance: none !important;
	-moz-appearance:    none !important;
	appearance:         none !important;
	display: inline-block !important;
	width: 38px  !important;
	height: 22px !important;
	min-width: 38px;
	border-radius: 11px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	vertical-align: middle;
	cursor: pointer;
	transition: background .2s;
	flex-shrink: 0;
	position: relative;
	background: #d1d5db;
}

/* Kill any native or WP-injected tick marks */
.bf-stoggle::before { display: none !important; content: none !important; }

.bf-stoggle::after {
	content: '' !important;
	display: block !important;
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: left .2s;
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.bf-stoggle:checked { background: #6366f1 !important; }
.bf-stoggle:checked::after { left: 19px; }

/* Color swatches */
.bf-scolor {
	width: 40px;
	height: 26px;
	border-radius: 5px;
	border: 1px solid #e5e7ef;
	padding: 2px;
	cursor: pointer;
	background: #fff;
	flex-shrink: 0;
}

/* Width picker */
.bf-width-picker {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 3px;
	margin-top: 5px;
}
.bf-width-opt {
	height: 30px;
	border: 1.5px solid #e5e7ef;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
	background: #fafbff;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .12s;
}
.bf-width-opt:hover { border-color: #a5b4fc; background: #eef2ff; color: #4338ca; }
.bf-width-opt.active { border-color: #6366f1; background: #6366f1; color: #fff; }

/* Field settings dynamic inputs */
.bf-fs-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #374151;
}
.bf-fs-input {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #e5e7ef;
	border-radius: 6px;
	font-size: 12.5px;
	outline: none;
	font-family: inherit;
	color: #1e1e2e;
	background: #fafbff;
	transition: border-color .15s, box-shadow .15s;
}
.bf-fs-input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.1);
	background: #fff;
}
textarea.bf-fs-input { resize: vertical; min-height: 56px; }
select.bf-fs-input { cursor: pointer; }

/* Options editor */
.bf-options-list { margin-top: 6px; }
.bf-option-item {
	display: flex;
	gap: 5px;
	align-items: flex-start;
	margin-bottom: 5px;
	padding: 8px;
	background: #fafbff;
	border: 1px solid #e5e7ef;
	border-radius: 7px;
	transition: border-color .12s;
}
.bf-option-item:hover { border-color: #c7d2fe; }
.bf-option-drag {
	cursor: grab;
	color: #c7d2fe;
	font-size: 13px;
	margin-top: 7px;
	flex-shrink: 0;
	padding: 2px;
}
.bf-option-drag:hover { color: #818cf8; }
.bf-option-fields { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bf-option-fields input {
	width: 100%;
	padding: 5px 7px;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	font-size: 11.5px;
	outline: none;
	font-family: inherit;
	color: #1e1e2e;
	background: #fff;
	transition: border-color .15s;
}
.bf-option-fields input:focus { border-color: #6366f1; }
.bf-option-fields input::placeholder { color: #c7d2fe; }

.bf-option-desc-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bf-option-desc-ta {
	width: 100%;
	padding: 5px 7px;
	border: 1px solid #e5e7ef;
	border-radius: 5px;
	font-size: 11.5px;
	font-family: inherit;
	color: #1e1e2e;
	background: #fff;
	resize: vertical;
	outline: none;
	transition: border-color .15s;
	line-height: 1.45;
}
.bf-option-desc-ta:focus { border-color: #6366f1; }
.bf-option-desc-ta::placeholder { color: #c7d2fe; }
.bf-option-desc-hint {
	font-size: 10px;
	color: #a5b4fc;
	padding-left: 2px;
}
.bf-option-del {
	background: transparent;
	border: none;
	cursor: pointer;
	color: #fca5a5;
	font-size: 16px;
	padding: 2px 4px;
	margin-top: 4px;
	border-radius: 4px;
	line-height: 1;
	transition: background .1s, color .1s;
}
.bf-option-del:hover { background: #fee2e2; color: #dc2626; }

.bf-add-option-btn {
	width: 100%;
	padding: 7px;
	border: 1.5px dashed #c7d2fe;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-size: 11.5px;
	font-weight: 600;
	color: #818cf8;
	margin-top: 6px;
	transition: all .12s;
	font-family: inherit;
}
.bf-add-option-btn:hover { border-color: #6366f1; color: #4338ca; background: #eef2ff; }

.bf-help-note {
	font-size: 11px;
	color: #9ca3af;
	background: #f8f9fc;
	border-left: 3px solid #c7d2fe;
	padding: 8px 10px;
	border-radius: 0 6px 6px 0;
	margin-top: 10px;
	line-height: 1.6;
}

/* ── Entries & Forms list pages ───────────────────────────────────────────── */
.bf-admin-wrap { margin-top: 10px; }
.bf-admin-wrap .wp-list-table th { font-size: 12px; }
.bf-row-actions { white-space: nowrap; }
.bf-row-actions .button { margin-right: 3px; font-size: 11px; }

.bf-entries-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0;
}
.bf-entries-filters form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1; }
.bf-entries-actions { margin-left: auto; }
.bf-status-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.bf-status-tab {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	color: #374151;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .12s, border-color .12s;
}
.bf-status-tab:hover { background: #f1f3f8; border-color: #e5e7ef; }
.bf-status-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.bf-status-count {
	background: rgba(0,0,0,.1);
	border-radius: 8px;
	padding: 1px 6px;
	font-size: 10px;
	margin-left: 3px;
}
.bf-status-tab.active .bf-status-count { background: rgba(255,255,255,.25); }
.bf-search-input { padding: 6px 10px; border: 1px solid #e5e7ef; border-radius: 6px; font-size: 12px; min-width: 200px; outline: none; }
.bf-select-filter { font-size: 12px; }
.bf-bulk-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.bf-select-small { font-size: 12px; }
.bf-bulk-msg { font-size: 12px; }
.bf-entry-unread td { font-weight: 600; }
.bf-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; display: inline-block; }

/* Modal */
.bf-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; }
.bf-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.bf-modal-box { position: relative; background: #fff; border-radius: 12px; width: 600px; max-width: 95vw; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.25); z-index: 1; }
.bf-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #f1f3f8; }
.bf-modal-header h2 { margin: 0; font-size: 16px; }
.bf-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #9ca3af; line-height: 1; padding: 2px 6px; border-radius: 5px; transition: background .12s; }
.bf-modal-close:hover { background: #fee2e2; color: #dc2626; }
.bf-modal-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.bf-modal-footer { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid #f1f3f8; justify-content: flex-end; }
.bf-entry-meta { display: flex; flex-wrap: wrap; gap: 12px; background: #fafbff; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 12px; color: #374151; border: 1px solid #e5e7ef; }
.bf-entry-detail-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bf-entry-detail-table th, .bf-entry-detail-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.bf-entry-detail-table th { background: #fafbff; width: 140px; color: #374151; font-weight: 600; white-space: nowrap; }
.bf-entry-detail-table td { color: #1e1e2e; word-break: break-word; }

/* Toast */
.bf-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #1e1e2e;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	z-index: 999999;
	box-shadow: 0 4px 20px rgba(0,0,0,.25);
	animation: bf-toast-in .2s ease;
}
@keyframes bf-toast-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Preview overlay ──────────────────────────────────────────────────────── */
.bf-preview-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #f1f3f8;
	display: flex;
	flex-direction: column;
}

/* Overlay topbar */
.bf-preview-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	padding: 0 20px;
	background: #1e1e2e;
	color: #e2e8f0;
	flex-shrink: 0;
	gap: 12px;
}

.bf-preview-topbar-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.bf-preview-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #a5b4fc;
	flex-shrink: 0;
}

.bf-preview-form-name {
	font-size: 13px;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

/* Device switcher */
.bf-preview-device-switcher {
	display: flex;
	align-items: center;
	gap: 2px;
	background: rgba(255,255,255,.07);
	border-radius: 8px;
	padding: 3px;
}

.bf-dev-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #64748b;
	border-radius: 6px;
	cursor: pointer;
	transition: all .15s;
}
.bf-dev-btn:hover  { background: rgba(255,255,255,.1); color: #e2e8f0; }
.bf-dev-btn.active { background: #6366f1;               color: #fff; box-shadow: 0 1px 6px rgba(99,102,241,.5); }

/* Right side */
.bf-preview-topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bf-preview-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8 !important;
	text-decoration: none !important;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.1);
	transition: all .15s;
}
.bf-preview-open-btn:hover { background: rgba(255,255,255,.12); color: #e2e8f0 !important; }

.bf-preview-close-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 500;
	color: #94a3b8;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.1);
	cursor: pointer;
	transition: all .15s;
}
.bf-preview-close-btn:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3); color: #fca5a5; }

/* Preview body & iframe */
.bf-preview-body {
	flex: 1;
	overflow: auto;
	display: flex;
	flex-direction: column;
}

.bf-preview-iframe-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	transition: max-width .25s ease, margin .25s ease;
	width: 100%;
}

.bf-preview-loading {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: #6b7280;
	font-size: 13px;
}
.bf-spin {
	animation: bf-preview-spin .7s linear infinite;
}
@keyframes bf-preview-spin { to { transform: rotate(360deg); } }

.bf-preview-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* When device frame is applied, body becomes a centering container */
.bf-preview-body.is-device-frame {
	background: #e2e8f0;
	padding: 0 20px 20px;
}
.bf-preview-body.is-device-frame .bf-preview-iframe-wrap {
	overflow: hidden;
	height: calc(100vh - 52px - 40px);
}
.bf-preview-body.is-device-frame .bf-preview-iframe {
	border-radius: 12px;
}

/* ── Style preset tiles ───────────────────────────────────────────────────── */
.bf-preset-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
	padding: 2px 0 6px;
}

/* Keep tiles compact so all 5 fit in a single row */

.bf-preset-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: #fafbff;
	border: 1.5px solid #e5e7ef;
	border-radius: 7px;
	padding: 7px 3px 5px;
	cursor: pointer;
	transition: all .15s;
	position: relative;
	min-width: 0;
}
.bf-preset-tile:hover  { border-color: #a5b4fc; background: #f5f3ff; }
.bf-preset-tile.active { border-color: #6366f1; background: #eef2ff; box-shadow: 0 0 0 2px rgba(99,102,241,.2); }
.bf-preset-tile.active::after {
	content: '✓';
	position: absolute;
	top: 3px; right: 4px;
	font-size: 9px;
	color: #6366f1;
	font-weight: 700;
}

/* Mini form preview inside each tile */
.bf-pt-preview {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 5px 5px 4px;
}
.bf-pt-half { display: flex; gap: 3px; }
.bf-pt-half .bf-pt-line { flex: 1; }

.bf-pt-line { height: 5px; border-radius: 2px; }
.bf-pt-label { background: #9ca3af; width: 55%; height: 3px; }
.bf-pt-input { background: #e5e7eb; height: 7px; }
.bf-pt-btn   { background: #6366f1; width: 60%; height: 6px; margin: 0 auto; }

/* Per-preset visual differences */
.bf-pt-classic  .bf-pt-input { background: #ffffff; border: 1px solid #d1d5db; border-radius: 1px; }
.bf-pt-classic  .bf-pt-btn   { border-radius: 2px; }

.bf-pt-modern   .bf-pt-input { background: #f3f4f6; border-radius: 4px; border: none; }
.bf-pt-modern   .bf-pt-btn   { border-radius: 4px; }

.bf-pt-professional .bf-pt-input { background: #f8fafc; border-radius: 1px; border-bottom: 1px solid #cbd5e1; }
.bf-pt-professional .bf-pt-btn   { border-radius: 1px; }

.bf-pt-outline  .bf-pt-input { background: transparent; border: 1.5px solid #9ca3af; border-radius: 2px; }
.bf-pt-outline  .bf-pt-btn   { border-radius: 2px; background: transparent; border: 1.5px solid #6366f1; }

.bf-pt-soft     .bf-pt-input { background: #eef2ff; border-radius: 6px; border: none; }
.bf-pt-soft     .bf-pt-btn   { border-radius: 8px; }

.bf-pt-name {
	font-size: 9px;
	font-weight: 700;
	color: #374151;
	text-align: center;
	line-height: 1.2;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bf-pt-desc {
	font-size: 8px;
	color: #9ca3af;
	text-align: center;
	line-height: 1.2;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Background context toggle ────────────────────────────────────────────── */
.bf-bg-context-toggle {
	display: flex;
	gap: 4px;
	background: #f1f3f8;
	border-radius: 8px;
	padding: 3px;
}
.bf-bg-ctx-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 10px;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	background: transparent;
	cursor: pointer;
	transition: all .15s;
}
.bf-bg-ctx-btn:hover  { background: rgba(0,0,0,.06); color: #111827; }
.bf-bg-ctx-btn.active { background: #fff; color: #111827; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ── Primary color row ────────────────────────────────────────────────────── */
.bf-primary-color-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.bf-primary-swatch {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	padding: 2px;
	background: none;
	flex-shrink: 0;
}
.bf-primary-hex {
	flex: 1;
	padding: 7px 10px;
	border: 1.5px solid #e5e7ef;
	border-radius: 7px;
	font-size: 13px;
	font-family: "SFMono-Regular", Consolas, monospace;
	color: #374151;
	background: #fff;
	outline: none;
	transition: border-color .15s;
}
.bf-primary-hex:focus { border-color: #6366f1; }

/* ── Color swatches ───────────────────────────────────────────────────────── */
.bf-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.bf-color-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .15s;
	outline: none;
}
.bf-color-swatch:hover { transform: scale(1.2); border-color: rgba(0,0,0,.2); }

/* ── Advanced details accordion ───────────────────────────────────────────── */
.bf-advanced-details {
	margin: 0;
}
.bf-advanced-summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}
.bf-advanced-summary::-webkit-details-marker { display: none; }
.bf-adv-chevron {
	transition: transform .2s;
	font-size: 13px !important;
	margin-left: auto;
}
.bf-advanced-details[open] .bf-adv-chevron { transform: rotate(180deg); }

/* ── WC product card ─────────────────────────────────────────────────────── */
.bf-create-product-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	padding: 10px 14px;
	background: #f0fdf4;
	color: #16a34a;
	border: 1.5px dashed #86efac;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.bf-create-product-btn:hover  { background: #dcfce7; border-color: #4ade80; }
.bf-create-product-btn:disabled { opacity: .6; cursor: wait; }

.bf-manual-product-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
}

/* ── Select2 overrides inside the builder ─────────────────────────────────── */
.bf-wc-product-select + .select2-container {
	flex: 1;
}
.select2-container--classic .select2-selection--single,
.select2-container--classic .select2-selection--single:focus {
	height: 32px;
	border: 1.5px solid #e5e7ef !important;
	border-radius: 7px !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none;
	font-size: 12.5px;
	font-family: inherit;
}
.select2-container--classic .select2-selection--single .select2-selection__rendered {
	line-height: 30px;
	padding-left: 10px;
	color: #111827;
	font-size: 12.5px;
}
.select2-container--classic .select2-selection--single .select2-selection__arrow {
	height: 30px;
	border-left: 1px solid #e5e7ef !important;
	background: transparent !important;
	border-radius: 0 7px 7px 0 !important;
}
.select2-container--classic.select2-container--open .select2-selection--single {
	border-color: #6366f1 !important;
}
.select2-container--classic .select2-dropdown {
	border: 1.5px solid #6366f1;
	border-radius: 8px;
	font-size: 12.5px;
	font-family: inherit;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(99,102,241,.12);
}
.select2-container--classic .select2-search--dropdown {
	padding: 6px;
	background: #f8f9fc;
	border-bottom: 1px solid #e5e7ef;
}
.select2-container--classic .select2-search--dropdown .select2-search__field {
	border: 1.5px solid #e5e7ef;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	font-family: inherit;
	outline: none;
	width: 100%;
}
.select2-container--classic .select2-search--dropdown .select2-search__field:focus {
	border-color: #6366f1;
}
.select2-container--classic .select2-results__option {
	padding: 7px 12px;
	font-size: 12.5px;
	color: #374151;
}
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
	background: #eef2ff !important;
	color: #4338ca !important;
}
.select2-container--classic .select2-results__option[aria-selected="true"] {
	background: #f5f3ff;
	color: #6366f1;
}
.select2-container--classic .select2-selection__clear {
	color: #9ca3af;
	font-size: 14px;
	margin-right: 4px;
}
.select2-container--classic .select2-selection__placeholder {
	color: #9ca3af;
}

.bf-product-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	margin-top: 6px;
}
.bf-product-card-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	background: #eff6ff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3b82f6;
}
.bf-product-card-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bf-product-card-info strong {
	font-size: 12.5px;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bf-product-badge {
	font-size: 10px;
	color: #6b7280;
	background: #e5e7eb;
	border-radius: 4px;
	padding: 1px 5px;
	width: fit-content;
}
.bf-product-edit-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: #e0f2fe;
	color: #0284c7;
	border-radius: 5px;
	text-decoration: none;
	transition: background .15s;
}
.bf-product-edit-btn:hover { background: #bae6fd; color: #0369a1; }

.bf-btn-link-sm {
	display: block;
	margin-top: 6px;
	padding: 0;
	background: none;
	border: none;
	font-size: 11.5px;
	color: #6b7280;
	cursor: pointer;
	text-decoration: underline;
}
.bf-btn-link-sm:hover { color: #374151; }
