.mj-smart-field-selector {
	--mj-field-primary: #2563eb;
	--mj-field-primary-strong: #1748b7;
	--mj-field-primary-soft: #eff6ff;
	--mj-field-text: #172b46;
	--mj-field-muted: #667991;
	--mj-field-border: #dbe5f1;
	--mj-field-surface: #ffffff;
	--mj-field-surface-soft: #f7f9fc;
	--mj-field-success: #08775f;
	--mj-field-danger: #b4233d;
	position: relative;
	direction: rtl;
	font-family: var(--minejobs-font-family, "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif);
	color: var(--mj-field-text);
}

.mj-smart-field-selector *,
.mj-smart-field-selector *::before,
.mj-smart-field-selector *::after {
	box-sizing: border-box;
}

.mj-smart-field-selector [hidden] {
	display: none !important;
}

.mj-smart-field-selector .screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
}

.mj-smart-field-selector__announcement {
	pointer-events: none;
}

.mj-smart-field-selector__summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
}

.mj-smart-field-selector__summary-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.mj-smart-field-selector__summary-heading {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
}

.mj-smart-field-selector__required-badge {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	border: 1px solid #ffd2da;
	border-radius: 999px;
	background: #fff3f5;
	color: #a8243d;
	font-size: 9px;
	font-weight: 850;
	line-height: 1.4;
}

.mj-smart-field-selector__eyebrow {
	color: var(--mj-field-text);
	font-size: 12px;
	font-weight: 800;
}

.mj-smart-field-selector__summary-text {
	color: var(--mj-field-muted);
	font-size: 12px;
	line-height: 1.8;
}

.mj-smart-field-selector__counter {
	flex: 0 0 auto;
	max-width: 235px;
	padding: 6px 10px;
	border: 1px solid #cfe0ff;
	border-radius: 999px;
	background: var(--mj-field-primary-soft);
	color: var(--mj-field-primary-strong);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.6;
	text-align: center;
}

.mj-smart-field-selector.is-full .mj-smart-field-selector__counter {
	border-color: #b9eadf;
	background: #ecfdf8;
	color: var(--mj-field-success);
}

.mj-smart-field-selector[data-mode="search"] .mj-smart-field-selector__summary-copy {
	display: none;
}

.mj-smart-field-selector[data-mode="search"] .mj-smart-field-selector__summary {
	justify-content: flex-start;
	margin-bottom: 7px;
}

.mj-smart-field-selector[data-mode="search"]:not(.has-selection) .mj-smart-field-selector__summary,
.mj-smart-field-selector[data-mode="search"]:not(.has-selection) .mj-smart-field-selector__selected {
	display: none;
}

.mj-smart-field-selector[data-mode="search"] .mj-smart-field-selector__trigger {
	min-height: 52px;
}

.mj-smart-field-selector__selected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin-bottom: 10px;
	padding: 8px;
	border: 1px dashed #cfdbea;
	border-radius: 14px;
	background: #fbfcfe;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.mj-smart-field-selector.has-selection .mj-smart-field-selector__selected {
	border-style: solid;
	border-color: #d5e3fa;
	background: #f8fbff;
}

.mj-smart-field-selector__feedback {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: -2px 0 10px;
	padding: 8px 10px;
	border: 1px solid #c9ddfa;
	border-radius: 11px;
	background: #f2f7ff;
	color: #33577f;
	font-size: 11px;
	line-height: 1.8;
}

.mj-smart-field-selector__feedback[hidden] {
	display: none;
}

.mj-smart-field-selector__feedback-text {
	min-width: 0;
}

.mj-smart-field-selector__feedback-undo,
.mj-smart-field-selector__undo {
	flex: 0 0 auto;
	min-height: 30px;
	padding: 4px 10px;
	border: 1px solid #9fc2fb;
	border-radius: 9px;
	background: #fff;
	color: var(--mj-field-primary-strong);
	font: inherit;
	font-size: 10px;
	font-weight: 850;
	cursor: pointer;
}

.mj-smart-field-selector__feedback-undo:hover,
.mj-smart-field-selector__feedback-undo:focus-visible,
.mj-smart-field-selector__undo:hover,
.mj-smart-field-selector__undo:focus-visible {
	outline: 0;
	border-color: var(--mj-field-primary);
	background: #e8f1ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.mj-smart-field-selector__empty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 5px;
	color: #8291a5;
	font-size: 12px;
	line-height: 1.8;
}

.mj-smart-field-selector__empty .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #9aa9bc;
}

.mj-smart-field-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 36px;
	padding: 6px 9px 6px 6px;
	border: 1px solid #c8dcfb;
	border-radius: 999px;
	background: #eef5ff;
	color: #153f78;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.65;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.mj-smart-field-chip__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mj-smart-field-chip__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: #65768e;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.mj-smart-field-chip__remove:hover {
	background: #fff0f3;
	color: var(--mj-field-danger);
}

.mj-smart-field-chip__remove:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
	background: #fff0f3;
	color: var(--mj-field-danger);
}

.mj-smart-field-selector__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 9px 13px;
	border: 1px solid var(--mj-field-border);
	border-radius: 14px;
	background: var(--mj-field-surface-soft);
	color: var(--mj-field-text);
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mj-smart-field-selector__trigger:hover {
	border-color: #9fc2fb;
	background: var(--mj-field-surface);
	box-shadow: 0 7px 20px rgba(37, 99, 235, 0.08);
}

.mj-smart-field-selector__trigger:focus-visible {
	outline: 0;
	border-color: var(--mj-field-primary);
	background: var(--mj-field-surface);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.mj-smart-field-selector__trigger[aria-invalid="true"] {
	border-color: #f29caf;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.mj-smart-field-selector__trigger-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.mj-smart-field-selector__trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #e8f1ff;
	color: var(--mj-field-primary);
	font-size: 18px;
	line-height: 34px;
}

.mj-smart-field-selector.has-selection .mj-smart-field-selector__trigger-icon {
	background: #e8fbf5;
	color: var(--mj-field-success);
}

.mj-smart-field-selector__trigger-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.mj-smart-field-selector__trigger-text {
	color: var(--mj-field-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.6;
}

.mj-smart-field-selector__trigger-hint {
	overflow: hidden;
	color: var(--mj-field-muted);
	font-size: 11px;
	line-height: 1.6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mj-smart-field-selector__trigger-arrow {
	flex: 0 0 auto;
	color: #7a8ca5;
	transition: transform 180ms ease;
}

.mj-smart-field-selector.is-open .mj-smart-field-selector__trigger-arrow {
	transform: rotate(180deg);
}

.mj-smart-field-selector__backdrop {
	display: none;
}

.mj-smart-field-selector__panel {
	position: absolute;
	z-index: 10050;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	overflow: hidden;
	border: 1px solid #d8e2ef;
	border-radius: 18px;
	background: var(--mj-field-surface);
	box-shadow: 0 22px 60px rgba(24, 48, 79, 0.2);
}

.mj-smart-field-selector__panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 15px 16px 13px;
	border-bottom: 1px solid #edf2f8;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mj-smart-field-selector__panel-title {
	display: block;
	margin-bottom: 3px;
	color: var(--mj-field-text);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.7;
}

.mj-smart-field-selector__panel-description {
	margin: 0;
	color: var(--mj-field-muted);
	font-size: 11px;
	line-height: 1.85;
}

.mj-smart-field-selector__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #e1e8f1;
	border-radius: 10px;
	background: #f8fafc;
	color: #63758c;
	cursor: pointer;
}

.mj-smart-field-selector__close:hover,
.mj-smart-field-selector__close:focus-visible {
	outline: 0;
	border-color: #ffc4cf;
	background: #fff2f4;
	color: var(--mj-field-danger);
}

.mj-smart-field-selector__panel:focus {
	outline: 0;
}

.mj-smart-field-selector__panel-selection {
	display: grid;
	gap: 8px;
	padding: 11px 14px 10px;
	border-bottom: 1px solid #e8eef6;
	background: #f8fbff;
}

.mj-smart-field-selector__panel-selection-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mj-smart-field-selector__panel-selection-head > div {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

.mj-smart-field-selector__panel-selection-title {
	color: #234568;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.7;
}

.mj-smart-field-selector__panel-counter {
	color: #71839a;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.7;
}

.mj-smart-field-selector__clear-all {
	flex: 0 0 auto;
	min-height: 30px;
	padding: 4px 9px;
	border: 1px solid #ffd2da;
	border-radius: 9px;
	background: #fff;
	color: #a8243d;
	font: inherit;
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}

.mj-smart-field-selector__clear-all:hover,
.mj-smart-field-selector__clear-all:focus-visible {
	outline: 0;
	border-color: #f29caf;
	background: #fff2f4;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.09);
}

.mj-smart-field-selector__panel-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 30px;
}

.mj-smart-field-selector__panel-empty {
	color: #7b8ca1;
	font-size: 10px;
	line-height: 1.8;
}

.mj-smart-field-selector__panel-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	min-height: 32px;
	padding: 5px 9px 5px 6px;
	border: 1px solid #c9dcfa;
	border-radius: 999px;
	background: #fff;
	color: #194879;
	font: inherit;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.55;
	cursor: pointer;
	box-shadow: 0 2px 7px rgba(37, 99, 235, 0.05);
}

.mj-smart-field-selector__panel-chip > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mj-smart-field-selector__panel-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff1f3;
	color: #b4233d;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.mj-smart-field-selector__panel-chip:hover,
.mj-smart-field-selector__panel-chip:focus-visible {
	outline: 0;
	border-color: #f3a8b7;
	background: #fff7f8;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.mj-smart-field-selector__progress {
	overflow: hidden;
	height: 3px;
	border-radius: 999px;
	background: #dfe8f4;
}

.mj-smart-field-selector__progress > span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #4d8cff, #2563eb);
	transition: width 180ms ease;
}

.mj-smart-field-selector.is-full .mj-smart-field-selector__progress > span {
	background: linear-gradient(90deg, #20a889, #08775f);
}

.mj-smart-field-selector__search-wrap {
	position: relative;
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f7;
	background: #fff;
}

.mj-smart-field-selector__search-wrap > .dashicons-search {
	position: absolute;
	top: 50%;
	right: 28px;
	z-index: 1;
	width: 19px;
	height: 19px;
	margin-top: -9px;
	color: #73849a;
	font-size: 19px;
	pointer-events: none;
}

.mj-smart-field-selector__search {
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 43px 0 43px !important;
	border: 1px solid #d8e2ee !important;
	border-radius: 12px !important;
	background: #f7f9fc !important;
	color: var(--mj-field-text) !important;
	font: inherit !important;
	font-size: 12px !important;
	box-shadow: none !important;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
}

.mj-smart-field-selector__search::placeholder {
	color: #8a99ab;
	opacity: 1;
}

.mj-smart-field-selector__search:focus {
	outline: 0 !important;
	border-color: var(--mj-field-primary) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.mj-smart-field-selector__search::-webkit-search-cancel-button {
	display: none;
}

.mj-smart-field-selector__clear {
	position: absolute;
	top: 50%;
	left: 25px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8291a5;
	cursor: pointer;
}

.mj-smart-field-selector__clear:hover,
.mj-smart-field-selector__clear:focus-visible {
	outline: 0;
	background: #edf2f8;
	color: #43566f;
}

.mj-smart-field-selector__message-row {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 10px 7px 15px;
	border-bottom: 1px solid #edf2f7;
	background: #f8fafc;
}

.mj-smart-field-selector__message {
	flex: 1 1 auto;
	min-width: 0;
	color: #5f728b;
	font-size: 11px;
	line-height: 1.8;
}

.mj-smart-field-selector.is-full .mj-smart-field-selector__message-row {
	background: #eefbf7;
}

.mj-smart-field-selector.is-full .mj-smart-field-selector__message {
	color: #116a58;
}

.mj-smart-field-selector__results {
	max-height: 365px;
	overflow: auto;
	padding: 8px;
	scrollbar-width: thin;
	scrollbar-color: #c7d4e4 transparent;
}

.mj-smart-field-selector__results::-webkit-scrollbar {
	width: 7px;
}

.mj-smart-field-selector__results::-webkit-scrollbar-thumb {
	border: 2px solid #fff;
	border-radius: 999px;
	background: #c7d4e4;
}

.mj-smart-field-group {
	padding: 3px;
}

.mj-smart-field-group + .mj-smart-field-group {
	margin-top: 7px;
	padding-top: 8px;
	border-top: 1px solid #edf2f7;
}

.mj-smart-field-group h4 {
	position: sticky;
	top: -8px;
	z-index: 2;
	margin: 0;
	padding: 9px 10px 7px;
	background: rgba(255, 255, 255, 0.97);
	color: #24466f;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.7;
	backdrop-filter: blur(8px);
}

.mj-smart-field-result {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin: 2px 0;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: #fff;
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mj-smart-field-result:hover:not(:disabled) {
	border-color: #c9ddff;
	background: #f3f7ff;
	transform: translateY(-1px);
}

.mj-smart-field-result:focus-visible {
	outline: 0;
	border-color: var(--mj-field-primary);
	background: #f3f7ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.mj-smart-field-result__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #d7e5fb;
	border-radius: 9px;
	background: #f2f7ff;
	color: var(--mj-field-primary);
}

.mj-smart-field-result__icon::before {
	content: "+";
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
}

.mj-smart-field-result__copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.mj-smart-field-result__title {
	overflow: hidden;
	color: #1b3555;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.75;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mj-smart-field-result__meta {
	color: #7a8ba1;
	font-size: 10px;
	line-height: 1.65;
}

.mj-smart-field-result.is-selected {
	opacity: 1;
	border-color: #b9eadf;
	background: #effbf7;
	cursor: pointer;
}

.mj-smart-field-result.is-selected:hover,
.mj-smart-field-result.is-selected:focus-visible {
	border-color: #f3b4c0;
	background: #fff7f8;
}

.mj-smart-field-result.is-selected:hover .mj-smart-field-result__icon,
.mj-smart-field-result.is-selected:focus-visible .mj-smart-field-result__icon {
	border-color: #f3b4c0;
	background: #fff0f3;
	color: var(--mj-field-danger);
}

.mj-smart-field-result.is-selected:hover .mj-smart-field-result__icon::before,
.mj-smart-field-result.is-selected:focus-visible .mj-smart-field-result__icon::before {
	content: "×";
}

.mj-smart-field-result.is-selected .mj-smart-field-result__icon {
	border-color: #a9e2d5;
	background: #daf6ee;
	color: var(--mj-field-success);
}

.mj-smart-field-result.is-selected .mj-smart-field-result__icon::before {
	content: "✓";
	font-size: 16px;
	font-weight: 900;
}

.mj-smart-field-result.is-selected .mj-smart-field-result__meta {
	color: var(--mj-field-success);
	font-weight: 750;
}

.mj-smart-field-result.is-unavailable {
	opacity: 0.5;
	cursor: not-allowed;
}

.mj-smart-field-selector__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	padding: 24px 20px;
	text-align: center;
}

.mj-smart-field-selector__state-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 10px;
	border-radius: 14px;
	background: #eef4fc;
	color: #5b7494;
	font-size: 22px;
	line-height: 44px;
}

.mj-smart-field-selector__state strong {
	margin-bottom: 4px;
	color: #29435f;
	font-size: 13px;
	font-weight: 900;
}

.mj-smart-field-selector__state > span:not(.mj-smart-field-selector__state-icon) {
	max-width: 390px;
	color: #75869a;
	font-size: 11px;
	line-height: 1.9;
}

.mj-smart-field-selector__state--error .mj-smart-field-selector__state-icon {
	background: #fff1f3;
	color: var(--mj-field-danger);
}

.mj-smart-field-selector__state-action {
	margin-top: 13px;
	padding: 7px 13px;
	border: 1px solid #c8dcfb;
	border-radius: 9px;
	background: #f2f7ff;
	color: var(--mj-field-primary-strong);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.mj-smart-field-selector__state-action:hover,
.mj-smart-field-selector__state-action:focus-visible {
	outline: 0;
	border-color: var(--mj-field-primary);
	background: #e8f1ff;
}

.mj-smart-field-selector__skeletons {
	display: grid;
	gap: 8px;
	padding: 5px;
}

.mj-smart-field-selector__skeleton {
	display: block;
	height: 55px;
	border-radius: 11px;
	background: linear-gradient(90deg, #f1f4f8 20%, #f8fafc 38%, #f1f4f8 58%);
	background-size: 200% 100%;
	animation: mj-smart-field-loading 1.2s linear infinite;
}

@keyframes mj-smart-field-loading {
	to { background-position: -200% 0; }
}

.mj-smart-field-selector__panel-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	padding: 10px 12px 12px;
	border-top: 1px solid #edf2f7;
	background: #fff;
}

.mj-smart-field-selector__more,
.mj-smart-field-selector__done {
	min-height: 38px;
	padding: 7px 13px;
	border-radius: 10px;
	font: inherit;
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
}

.mj-smart-field-selector__more {
	border: 1px solid #c9dcfa;
	background: #f2f7ff;
	color: var(--mj-field-primary-strong);
}

.mj-smart-field-selector__more:hover,
.mj-smart-field-selector__more:focus-visible {
	outline: 0;
	border-color: var(--mj-field-primary);
	background: #e8f1ff;
}

.mj-smart-field-selector__more:disabled {
	opacity: 0.55;
	cursor: wait;
}

.mj-smart-field-selector__done {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-right: auto;
	border: 1px solid #1f5edf;
	background: linear-gradient(135deg, #3478f6, #1d56ce);
	color: #fff;
	box-shadow: 0 7px 17px rgba(37, 99, 235, 0.18);
}

.mj-smart-field-selector__done:hover,
.mj-smart-field-selector__done:focus-visible {
	outline: 0;
	filter: brightness(1.04);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 8px 18px rgba(37, 99, 235, 0.2);
}

.mj-smart-field-selector__done .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.mj-smart-field-selector__done-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
}

.mj-smart-field-selector__footer {
	margin-top: 8px;
}

.mj-smart-field-selector__help {
	display: inline-flex;
	align-items: flex-start;
	gap: 5px;
	color: #72839a;
	font-size: 11px;
	line-height: 1.85;
}

.mj-smart-field-selector__help .dashicons {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: #8798ad;
	font-size: 16px;
}

.mj-smart-field-selector__error {
	margin-top: 9px;
	padding: 10px 12px;
	border: 1px solid #ffc5d0;
	border-radius: 11px;
	background: #fff2f4;
	color: #9f1f37;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.9;
}

.mj-job-field-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 2px;
}

.mj-job-field-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid #d5e3fa;
	border-radius: 999px;
	background: #f4f8ff;
	color: #214f87;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	white-space: normal;
}

.mjj-detail-item .mj-job-field-chips,
.mjj-detail-row .mj-job-field-chips {
	justify-content: flex-start;
}

@media (max-width: 767px) {
	body.mj-smart-field-selector-open {
		overflow: hidden;
	}

	.mj-smart-field-selector__summary {
		display: grid;
		gap: 8px;
	}

	.mj-smart-field-selector__counter {
		justify-self: start;
		max-width: 100%;
		text-align: right;
	}

	.mj-smart-field-chip {
		max-width: 100%;
	}

	.mj-smart-field-chip__label {
		white-space: normal;
	}

	.mj-smart-field-selector__backdrop:not([hidden]) {
		position: fixed;
		z-index: 999998;
		inset: 0;
		display: block;
		background: rgba(11, 24, 42, 0.48);
		backdrop-filter: blur(2px);
	}

	.mj-smart-field-selector__panel {
		position: fixed;
		z-index: 999999;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		max-height: min(88vh, 760px);
		border: 0;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -18px 55px rgba(10, 30, 55, 0.26);
		animation: mj-smart-field-sheet-in 190ms ease-out;
	}

	.mj-smart-field-selector__panel::before {
		content: "";
		display: block;
		flex: 0 0 4px;
		width: 48px;
		height: 4px;
		margin: 8px auto 1px;
		border-radius: 999px;
		background: #d4deea;
	}

	.mj-smart-field-selector__panel-header {
		padding: 11px 15px 12px;
	}

	.mj-smart-field-selector__search-wrap {
		padding: 10px 13px;
	}

	.mj-smart-field-selector__close {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.mj-smart-field-selector__panel-selection {
		padding: 10px 13px 9px;
	}

	.mj-smart-field-selector__panel-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 2px;
		scrollbar-width: thin;
	}

	.mj-smart-field-selector__panel-chip {
		flex: 0 0 auto;
		max-width: min(78vw, 330px);
		min-height: 38px;
	}

	.mj-smart-field-selector__clear-all {
		min-height: 36px;
	}

	.mj-smart-field-selector__message-row {
		padding: 8px 12px;
	}

	.mj-smart-field-selector__undo {
		min-height: 34px;
	}

	.mj-smart-field-selector__results {
		flex: 1 1 auto;
		max-height: none;
		min-height: 0;
		padding-bottom: 16px;
	}

	.mj-smart-field-selector__panel-actions {
		position: sticky;
		bottom: 0;
		z-index: 3;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		box-shadow: 0 -8px 20px rgba(29, 50, 78, 0.07);
	}

	.mj-smart-field-selector__done {
		min-width: 132px;
	}
}

@keyframes mj-smart-field-sheet-in {
	from { transform: translateY(22px); opacity: 0.75; }
	to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mj-smart-field-selector *,
	.mj-smart-field-selector *::before,
	.mj-smart-field-selector *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.mj-smart-field-selector__trigger,
	.mj-smart-field-selector__panel,
	.mj-smart-field-result,
	.mj-smart-field-chip,
	.mj-smart-field-selector__selected {
		border: 1px solid CanvasText;
	}
}
