/* Emirates Elements: Search Filter. Colors, sizes and typography are set by the widget's style controls. */

.ee-search {
	margin: 0;
}

.ee-search *,
.ee-search *::before,
.ee-search *::after {
	box-sizing: border-box;
}

.ee-search__field {
	display: flex;
	align-items: center;
	width: 100%;
	transition: border-color 0.15s ease;
}

.ee-search__icon,
.ee-search__clear {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}

.ee-search__icon svg,
.ee-search__clear svg {
	display: block;
}

.ee-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* The browser's own clear icon would double up with ours. */
.ee-search__input::-webkit-search-cancel-button,
.ee-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ee-search__clear {
	padding: 4px;
	border: 0;
	background: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.ee-search__clear[hidden] {
	display: none;
}

.ee-search__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	margin: 0;
	border-style: solid;
	border-width: 0;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ee-search__clear:focus-visible,
.ee-search__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ee-search * {
		transition-duration: 0ms !important;
	}
}
