/**
 * Profession title suggestions dropdown (hero + header search).
 * Matches banner search radius/shadow and Select2 rework accents.
 */

.sugg-search-results.rework-prof-sugg-dropdown,
body > .sugg-search-results.rework-prof-sugg-dropdown {
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 6px 0 !important;
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
	text-align: left !important;
	float: none !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.sugg-search-results.rework-prof-sugg-dropdown::-webkit-scrollbar {
	width: 8px;
}

.sugg-search-results.rework-prof-sugg-dropdown::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 8px;
	border: 2px solid #fff;
}

.sugg-search-results.rework-prof-sugg-dropdown .search-res-item,
.careerfy-typo-wrap .sugg-search-results.rework-prof-sugg-dropdown .search-res-item {
	float: none;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-bottom: none;
	border-radius: 0;
	color: #1a202c;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	background: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sugg-search-results.rework-prof-sugg-dropdown .search-res-item:hover,
.sugg-search-results.rework-prof-sugg-dropdown .search-res-item.active,
.careerfy-typo-wrap .sugg-search-results.rework-prof-sugg-dropdown .search-res-item:hover,
.careerfy-typo-wrap .sugg-search-results.rework-prof-sugg-dropdown .search-res-item.active {
	background: #edf3ff;
	color: #0a65fc;
}

.sugg-search-results.rework-prof-sugg-dropdown .search-res-item:active {
	background: #dbe7ff;
	transform: none;
}

/* Keep in-flow fallback usable if portal JS fails (header search etc.). */
.jobsearch-prof-sugg-wrap > .sugg-search-results:not(.rework-prof-sugg-dropdown),
.jobsearch-sugges-search > .sugg-search-results:not(.rework-prof-sugg-dropdown) {
	max-height: min(280px, 42vh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	padding: 6px 0;
	z-index: 100050;
}

@media (prefers-reduced-motion: reduce) {
	.sugg-search-results.rework-prof-sugg-dropdown .search-res-item {
		transition: none;
	}
}
