/* Category and location pickers (job form, profiles, sign-up, jobs filter) and the home search drill-down. */
.mcx-hide {
	display: none !important;
}
.mcx-row {
	grid-column: 1 / -1;
	width: 100%;
}
.mcx-step-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: #0f172a;
	text-align: left;
	cursor: pointer;
}
.mcx-step-btn:hover,
.mcx-step-btn.mcx-open {
	border-color: #15803d;
}
.mcx-step-btn:focus-visible {
	outline: 2px solid #15803d;
	outline-offset: 2px;
}
.mcx-step-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mcx-ph {
	color: #94a3b8;
}
.mcx-step-chev {
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 2px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: rotate(45deg) translateY(-2px);
}
.mcx-dd-search {
	display: block;
	width: calc(100% - 16px);
	margin: 8px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	background: #f8fafc;
	box-sizing: border-box;
}
.mcx-dd-search:focus {
	outline: 2px solid #15803d;
	outline-offset: 0;
	background: #fff;
}
.mcx-empty {
	padding: 14px 10px;
	font-size: 13px;
	color: #64748b;
}
/* home search capsule: group headings and counts inside the old pill dropdown */
.mcx-dd-head {
	padding: 10px 14px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #64748b;
}
.mcx-dd-head[hidden],
.mc-dd-opt[hidden] {
	display: none;
}
.mc-dd-opt .mcx-opt-count {
	margin-left: auto;
	padding-left: 10px;
}
.mc-dd-opt.mcx-child > span:first-child {
	padding-left: 10px;
}
.mc-dd-panel-inner .mcx-dd-search {
	position: sticky;
	top: 0;
	z-index: 2;
}

/* home categories: the "All jobs" card; parent rows in the search dropdown */
.mcx-c4--all {
	border-style: dashed;
	background: transparent;
}
.mc-dd-opt.mcx-parent > span:first-child {
	font-weight: 700;
}
.mc-dd-opt.mcx-parent:not(:first-child) {
	margin-top: 2px;
}

/* ---- home search dropdowns: a short list of groups that open, search box on top ---- */
.mc-dd-panel.mcx-dd-big {
	min-width: max(100%, 340px);
	display: none;
	flex-direction: column;
	border-radius: 16px;
}
.mc-dd-panel.mcx-dd-big .mc-dd-panel-inner {
	max-height: min(400px, 55vh);
	padding: 4px 8px 10px;
}
.mc-open .mc-dd-panel.mcx-dd-big {
	display: flex;
}
.mcx-dd-big > .mcx-dd-search {
	width: auto;
	margin: 10px 10px 6px;
	flex: none;
}
.mcx-acc {
	border-bottom: 1px solid #f1f5f9;
}
.mcx-acc[hidden] {
	display: none;
}
.mcx-acc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 8px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	text-align: left;
	cursor: pointer;
}
.mcx-acc-head:hover {
	color: #15803d;
}
.mcx-acc-name {
	flex: 1 1 auto;
	min-width: 0;
}
.mcx-acc-chev {
	flex: none;
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s;
}
.mcx-acc.mcx-open > .mcx-acc-head .mcx-acc-chev {
	transform: rotate(-135deg) translateY(-2px);
}
.mcx-acc-body {
	padding: 0 0 8px 6px;
}
.mcx-acc-body[hidden] {
	display: none;
}
.mcx-acc-body .mc-dd-opt {
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 14.5px;
}
.mcx-acc-body .mc-dd-opt.mcx-all {
	font-weight: 600;
	color: #15803d;
}
.mc-dd-opt > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}
.mc-dd-opt .mcx-opt-count {
	flex: none;
	margin-left: auto;
	padding-left: 8px;
	font-size: 12px;
	color: #94a3b8;
}
.mc-dd-opt .mc-dd-check {
	flex: none;
	margin-left: 4px;
}
.mcx-dd-big .mc-dd-opt:not(.mcx-all):not(.mcx-child) {
	/* the top "All categories / All Bangladesh" row */
	font-weight: 600;
}

/* home search: drill-down panel */
.mcx-dd-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 10px 2px;
	padding: 0 0 0 2px;
}
.mcx-dd-bar[hidden] {
	display: none;
}
.mcx-dd-back {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 10px 0 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.mcx-dd-back:hover {
	background: #f1f5f9;
	color: #15803d;
}
.mcx-dd-back:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.mcx-back-ico {
	display: block;
	width: 6px;
	height: 6px;
	margin-left: 3px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.mcx-dd-head2 {
	display: flex;
	min-width: 0;
	padding-left: 10px;
	border-left: 1px solid #e2e8f0;
}
.mcx-dd-cap {
	display: none;
}
.mcx-dd-title {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mcx-sep {
	height: 1px;
	margin: 6px 10px 6px;
	background: #f1f5f9;
}
.mcx-dd-list .mcx-row-opt {
	align-items: center;
	padding: 11px 12px;
	border-radius: 10px;
	font-size: 15px;
}
.mcx-dd-list .mcx-strong {
	font-weight: 700;
	color: #15803d;
	background: #f0fdf4;
}
.mcx-go {
	flex: none;
	width: 7px;
	height: 7px;
	margin: 0 4px 0 2px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(-45deg);
}
.mcx-trail {
	display: block;
	font-size: 12px;
	color: #94a3b8;
}

/* active field in the home search: no thin outline, a soft tint instead */
.mc-search-capsule-form .mc-dd-btn.mc-open,
.mc-search-capsule-form .mc-dd-btn:focus,
.mc-search-capsule-form .mc-dd-btn:focus-visible {
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
.mc-search-capsule-form .mc-dd-btn {
	margin: -6px -8px;
	padding: 6px 8px;
	border-radius: 12px;
	transition: background-color 0.15s ease;
}
.mc-search-capsule-form .mc-dd-btn:hover,
.mc-search-capsule-form .mc-dd-btn.mc-open {
	background-color: #f1f7f3;
}
/* search boxes inside the panels and the job form pickers: soft focus, no hard outline */
.mcx-dd-search:focus {
	outline: none;
	border-color: #86d4a3;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
	background: #fff;
}
.mcx-step-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.mcx-step-btn.mcx-open {
	border-color: #86d4a3;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* dropdown panels never wider than the screen */
.mc-dd-panel.mcx-dd-big {
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
}
@media (max-width: 767px) {
	/* phones: the panel is as wide as the field and stays inside the search card */
	.mc-dd-panel.mcx-dd-big {
		left: -8px;
		right: -8px;
		width: auto;
		min-width: 0;
		max-width: none;
	}
	.mc-dd-panel.mcx-dd-big .mc-dd-panel-inner {
		max-height: min(52vh, 360px);
	}
	.mcx-dd-list .mcx-row-opt {
		padding: 12px 10px;
	}
}
/* tablet / small laptop: the right-hand field opens towards the left so it cannot run off the screen */
@media (min-width: 768px) and (max-width: 1100px) {
	.mc-search-field-loc .mc-dd-panel.mcx-dd-big {
		left: auto;
		right: 0;
	}
}

/* clear (x) button on the home search fields */
[data-mc-dropdown] > .mcx-clear {
	position: absolute;
	top: 50%;
	right: 40px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	margin-top: -11px;
	border: 0;
	border-radius: 50%;
	background: #fee2e2;
	cursor: pointer;
	transition: background-color 0.15s;
}
[data-mc-dropdown] > .mcx-clear[hidden] {
	display: none;
}
.mcx-clear::before,
.mcx-clear::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	margin: -1px 0 0 -5px;
	border-radius: 1px;
	background: #dc2626;
	transform: rotate(45deg);
}
.mcx-clear::after {
	transform: rotate(-45deg);
}
.mcx-clear:hover {
	background: #fecaca;
}
.mcx-clear:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* long selections are cut with "..." before the clear button */
.mc-search-capsule-form .mc-dd-btn > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}
.mc-search-capsule-form .mc-dd-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mcx-has-val > .mc-dd-btn > span:first-child {
	margin-right: 58px;
}
.mc-dd-panel .mcx-dd-list .mc-dd-opt.mcx-sel:not(.mcx-strong) {
	font-weight: 600;
	color: #15803d;
	background: #f0fdf4;
}

/* ---- the shared picker (job form, profiles, sign-up) ---- */
.mcx-dp {
	min-width: 0;
}
.mcx-dp-field {
	position: relative;
}
.mcx-dp-btn.mcx-open {
	border-color: #86d4a3;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.mcx-dp-field > .mcx-clear {
	position: absolute;
	top: 50%;
	right: 40px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	margin-top: -11px;
	border: 0;
	border-radius: 50%;
	background: #fee2e2;
	cursor: pointer;
}
.mcx-dp-field > .mcx-clear[hidden] {
	display: none;
}
.mcx-dp-field > .mcx-clear:hover {
	background: #fecaca;
}
.mcx-dp-field.mcx-has-val .mcx-step-text {
	margin-right: 36px;
}
.mcx-dp-panel {
	position: absolute;
	z-index: 80;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	max-width: calc(100vw - 32px);
	padding-bottom: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	box-sizing: border-box;
}
.mcx-dp-panel[hidden] {
	display: none;
}
.mcx-dp-panel > .mcx-dd-search {
	flex: none;
	width: auto;
	margin: 10px 10px 6px;
}
.mcx-dp-list {
	max-height: min(340px, 50vh);
	overflow-y: auto;
	padding: 4px 8px 6px;
}
.mcx-r {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: #0f172a;
	text-align: left;
	cursor: pointer;
}
.mcx-r:hover,
.mcx-r:focus-visible {
	background: #f0fdf4;
	outline: none;
}
.mcx-r-name {
	flex: 1 1 auto;
	min-width: 0;
}
.mcx-r.mcx-strong {
	font-weight: 700;
	color: #15803d;
	background: #f0fdf4;
}
.mcx-r.mcx-sel:not(.mcx-strong) {
	font-weight: 600;
	color: #15803d;
	background: #f0fdf4;
}
.mcx-tick {
	flex: none;
	width: 5px;
	height: 10px;
	margin: 0 6px 3px 2px;
	border-right: 2px solid #15803d;
	border-bottom: 2px solid #15803d;
	transform: rotate(45deg);
}
.mcx-dp-done {
	flex: none;
	margin: 4px 10px 4px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	background: #15803d;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}
.mcx-dp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.mcx-dp-chips:empty {
	display: none;
}
.mcx-dp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 6px 5px 12px;
	border-radius: 999px;
	background: #f0fdf4;
	font-size: 13px;
	font-weight: 500;
	color: #166534;
}
.mcx-dp-chip-x {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fee2e2;
	cursor: pointer;
}
.mcx-dp-chip-x::before,
.mcx-dp-chip-x::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 2px;
	margin: -1px 0 0 -4px;
	border-radius: 1px;
	background: #dc2626;
	transform: rotate(45deg);
}
.mcx-dp-chip-x::after {
	transform: rotate(-45deg);
}
/* a native select kept for its value (sign-up): invisible but still counted by the form */
.mcx-vh {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}
select:disabled + .mcx-dp,
select[class*="-cat-hidden"] + .mcx-dp {
	display: none;
}
@media (max-width: 767px) {
	.mcx-r {
		padding: 12px 10px;
	}
}

.mcx-cell {
	position: relative;
}
.mcx-dp-btn.mcx-err {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
