/**
 * Panel of the searchable town list (assets/js/town-search.js). Colors and font come from the field it opens from.
 *
 * @package FatihCargo
 */

.fatih-cargo-town-search {
	position: fixed;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--fatih-cargo-town-search-border, rgba(127, 127, 127, 0.45));
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	font-size: 16px;
	line-height: 1.4;
	text-align: start;
}

.fatih-cargo-town-search[hidden],
.fatih-cargo-town-search [hidden] {
	display: none !important;
}

.fatih-cargo-town-search__header {
	display: none;
}

.fatih-cargo-town-search.is-sheet {
	padding: 12px 16px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fatih-cargo-town-search.is-sheet .fatih-cargo-town-search__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	font-weight: 600;
}

.fatih-cargo-town-search__close {
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.fatih-cargo-town-search__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0 0 6px;
	padding: 8px 12px;
	border: 1px solid var(--fatih-cargo-town-search-border, rgba(127, 127, 127, 0.45));
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 16px;
}

.fatih-cargo-town-search__list {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.fatih-cargo-town-search__option {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 8px 10px;
	border-radius: 4px;
	cursor: pointer;
	list-style: none;
}

.fatih-cargo-town-search__option.is-active {
	background: rgba(127, 127, 127, 0.16);
}

.fatih-cargo-town-search__option[aria-selected="true"] .fatih-cargo-town-search__name {
	font-weight: 600;
}

.fatih-cargo-town-search__option[aria-selected="true"] .fatih-cargo-town-search__name::after {
	content: " \2713";
}

.fatih-cargo-town-search__region {
	font-size: 0.85em;
	opacity: 0.7;
}

.fatih-cargo-town-search__empty {
	margin: 8px 10px;
	opacity: 0.7;
}
