.lahu-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	color: inherit;
	line-height: 0;
}

.lahu-search-btn:hover {
	opacity: 0.8;
}

.lahu-search-btn--dark {
	color: #ffffff;
}

.lahu-search-btn--light {
	color: #003057;
}

.lahu-nav .lahu-search-btn {
	color: inherit;
}

.lahu-search-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	font-family: "avenir-lt-pro", "Avenir", sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lahu-search-modal[hidden] {
	display: none;
}

.lahu-search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
}

.lahu-search-modal__dialog {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 0.5rem;
	padding: 1.5rem;
	width: 91.666%;
	max-width: 32rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lahu-search-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: transparent;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}

.lahu-search-modal__close:hover {
	color: #111827;
}

.lahu-search-modal__input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.lahu-search-modal__results {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 24rem;
	overflow-y: auto;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
}

.lahu-search-modal__results[hidden] {
	display: none;
}

.lahu-search-modal__section {
	padding: 0.5rem 0.75rem 0.25rem;
	font-weight: 700;
	color: #111827;
}

.lahu-search-modal__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	text-decoration: none;
	color: #111827;
	cursor: pointer;
}

.lahu-search-modal__item:hover,
.lahu-search-modal__item.is-selected {
	background: #dbeafe;
}

.lahu-search-modal__thumb {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	object-fit: cover;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.lahu-search-modal__empty {
	padding: 0.75rem;
	color: #6b7280;
}

.lahu-search-modal__loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.lahu-search-modal__spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	border: 2px solid #d1d5db;
	border-top-color: #00b2a9;
	animation: lahu-search-spin 0.8s linear infinite;
	flex-shrink: 0;
}

@keyframes lahu-search-spin {
	to {
		transform: rotate(360deg);
	}
}

body.lahu-search-open {
	overflow: hidden;
}
