/**
 * New Investment options — professional neighborhood checkbox picker.
 */

body.toplevel_page_citidoorz-theme-settings .cdz-ni-neighborhood-picker,
body.citidoorz_page_citidoorz-new-investment .cdz-ni-neighborhood-picker {
	margin-top: 4px;
}

.cdz-ni-neighborhood-picker .acf-label {
	margin-bottom: 8px;
}

.cdz-ni-picker-shell {
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cdz-ni-picker-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #f6f8fa;
	border-bottom: 1px solid #e5e7eb;
}

.cdz-ni-picker-search {
	flex: 1 1 auto;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #c9d1d9;
	border-radius: 6px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
	font-size: 13px;
	line-height: 34px;
}

.cdz-ni-picker-search:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.cdz-ni-picker-meta {
	flex: 0 0 auto;
	font-size: 12px;
	color: #57606a;
	white-space: nowrap;
}

.cdz-ni-picker-actions {
	display: flex;
	gap: 6px;
	flex: 0 0 auto;
}

.cdz-ni-picker-actions button {
	height: 30px;
	padding: 0 10px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	background: #fff;
	color: #24292f;
	font-size: 12px;
	cursor: pointer;
	line-height: 28px;
}

.cdz-ni-picker-actions button:hover {
	background: #f3f4f6;
	border-color: #afb8c1;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list,
.cdz-ni-neighborhood-picker ul.acf-bl {
	margin: 0 !important;
	padding: 8px !important;
	max-height: 260px;
	overflow: auto;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 10px;
	background: #fff;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li,
.cdz-ni-neighborhood-picker ul.acf-bl li {
	margin: 0 !important;
	padding: 0 !important;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li label,
.cdz-ni-neighborhood-picker ul.acf-bl li label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.35;
	color: #1f2328;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li label:hover,
.cdz-ni-neighborhood-picker ul.acf-bl li label:hover {
	background: #f6f8fa;
	border-color: #e5e7eb;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li.is-checked label,
.cdz-ni-neighborhood-picker ul.acf-bl li.is-checked label {
	background: #eef6ff;
	border-color: #c6ddf7;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li input[type="checkbox"],
.cdz-ni-neighborhood-picker ul.acf-bl li input[type="checkbox"] {
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li.is-filtered-out,
.cdz-ni-neighborhood-picker ul.acf-bl li.is-filtered-out {
	display: none !important;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li.is-used-elsewhere,
.cdz-ni-neighborhood-picker ul.acf-bl li.is-used-elsewhere {
	display: none !important;
}

.cdz-ni-neighborhood-picker .acf-checkbox-list li.is-used-elsewhere label,
.cdz-ni-neighborhood-picker ul.acf-bl li.is-used-elsewhere label {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f3f4f6;
	border-color: #e5e7eb;
}

.cdz-ni-used-badge {
	margin-left: auto;
	padding: 1px 6px;
	border-radius: 999px;
	background: #e5e7eb;
	color: #57606a;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.cdz-ni-picker-empty {
	display: none;
	padding: 18px 12px;
	text-align: center;
	font-size: 13px;
	color: #6e7781;
}

.cdz-ni-picker-empty.is-visible {
	display: block;
}

/* Repeater row chrome */
#acf-group_citidoorz_new_investment .acf-repeater .acf-row {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-bottom: 14px;
	overflow: hidden;
	background: #fff;
}

#acf-group_citidoorz_new_investment .acf-repeater .acf-row:hover {
	border-color: #c9d1d9;
}

#acf-group_citidoorz_new_investment .acf-repeater .-collapse,
#acf-group_citidoorz_new_investment .acf-repeater .acf-row-handle {
	background: #f6f8fa;
}
