/**
 * A search field whose results drop down over the content below
 *
 * Registered as mkl_pc/admin/css/search_dropdown. Markup:
 *   .mkl-pc-search-dropdown
 *     input
 *     ul.mkl-pc-search-dropdown__results(.mkl-pc-is-open)
 *       li (clickable), or li > button.button-link (keyboard reachable)
 *       li.mkl-pc-search-dropdown__status / li.empty
 * Used by the global configurator picker and the quote request's customer account picker.
 */
.mkl-pc-search-dropdown {
	position: relative;
}

.mkl-pc-search-dropdown__results {
	/* Do not use the [hidden] attribute on the same element we toggle: UA display:none !important. */
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 220px;
	overflow-y: auto;
	z-index: 100100;
	box-shadow: 0 8px 18px -10px #0000003d;
}

.mkl-pc-search-dropdown__results.mkl-pc-is-open {
	display: block;
}

.mkl-pc-search-dropdown__results li {
	padding: 8px 10px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f1;
	margin: 0;
}

.mkl-pc-search-dropdown__results li:last-child { border-bottom: none; }
.mkl-pc-search-dropdown__results li:hover,
.mkl-pc-search-dropdown__results li:focus-within { background: #f6f7f7; }

.mkl-pc-search-dropdown__results li > button.button-link {
	display: block;
	width: calc(100% + 20px);
	margin: -8px -10px;
	padding: 8px 10px;
	color: inherit;
	text-align: left;
	text-decoration: none;
	box-shadow: none;
}

.mkl-pc-search-dropdown__results li.empty,
.mkl-pc-search-dropdown__results li.mkl-pc-search-dropdown__status {
	color: #646970;
	cursor: default;
	font-size: 13px;
}

.mkl-pc-search-dropdown__results li.empty:hover,
.mkl-pc-search-dropdown__results li.mkl-pc-search-dropdown__status:hover { background: none; }
