// ============================================================================
// :: Battery Search
// ============================================================================
.m-battery-search {
	position: relative;
}

// ============================================================================
// :: Elements
// ============================================================================
.m-battery-search__list-container {
	position: absolute;
	top: calc(100% + 1rem);
	left: 0;
	z-index: $z-index-low;

	width: 100%;
}

.m-battery-search__list {
	width: 100%;
	height: 100%;
	max-height: 30rem;
	overflow-x: hidden;
	overflow-y: scroll;
	padding: 1.5rem 2.5rem 1.5rem 1.5rem;

	font-family: $font-family-roboto;
	font-weight: $font-weight-thin;
	font-size: $font-size;
	line-height: $line-height-3x-large;

	border-radius: 3.2rem;
	border: 0.1rem solid transparent;
	background-color: $background-color-white;
	color: $text-color;
	opacity: 0;

	list-style-type: none;

	transform: translateY(-2rem);

	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

	pointer-events: none;
}

.m-battery-search__list-item {
	padding: 0.5rem 0 0.5rem 1.5rem;

	// text-transform: lowercase;

	border-bottom: 0.1rem solid $border-color-grey-extra-light;
	background-color: transparent;

	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;

	cursor: pointer;

	&:last-child {
		border-bottom: none;
	}

	&::first-letter {
		text-transform: uppercase;
	}

	&:hover {
		background-color: $background-color-grey-extra-light;

		transform: translateX(1rem);
	}
}

.m-battery-search__list-item-no-result {
	display: none;

	cursor: auto;

	&:hover {
		background-color: transparent;

		transform: none;
	}
}

// ============================================================================
// :: Modifiers
// ============================================================================
.m-battery-search__list {

	&.is-active {
		opacity: 1;

		transform: translateY(0);

		pointer-events: visible;
	}
}

.m-battery-search__list-item-no-result {

	&.is-active {
		display: block;
	}
}
