.wb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
}

.wb-search-overlay.is-open {
	display: flex;
}

.wb-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 27, 42, .6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: wb-fade-in .18s ease;
}

.wb-search-panel {
	position: relative;
	z-index: 1;
	width: min(680px, calc(100vw - 40px));
	margin-top: min(14vh, 120px);
	max-height: min(70vh, 640px);
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(13, 27, 42, .35);
	overflow: hidden;
	animation: wb-panel-in .2s cubic-bezier(.2, .8, .2, 1);
}

@keyframes wb-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes wb-panel-in {
	from { opacity: 0; transform: translateY(-12px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.wb-search-input-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(13, 27, 42, .08);
	flex-shrink: 0;
}

.wb-search-input-icon {
	display: flex;
	color: rgba(13, 27, 42, .4);
	flex-shrink: 0;
}

.wb-search-input {
	flex: 1;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
	font-family: "Figtree", sans-serif;
	font-size: 18px;
	color: #0D1B2A;
}

.wb-search-input::placeholder {
	color: rgba(13, 27, 42, .38);
}

.wb-search-close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	outline: none;
	background: rgba(13, 27, 42, .06) !important;
	color: #1A2A40 !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .2s ease;
}

.wb-search-close:hover,
.wb-search-close:focus {
	background: rgba(13, 27, 42, .12) !important;
}

.wb-search-results {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
	transition: opacity .12s ease;
}

.wb-search-results.is-fetching {
	opacity: .45;
}

.wb-search-hint,
.wb-search-empty,
.wb-search-loading {
	padding: 40px 20px;
	text-align: center;
	font-family: "Figtree", sans-serif;
	font-size: 15px;
	color: rgba(13, 27, 42, .48);
}

.wb-search-group-label {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(13, 27, 42, .4);
	padding: 12px 14px 6px;
}

.wb-search-result {
	display: block;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}

.wb-search-result:hover,
.wb-search-result.is-selected {
	background: rgba(233, 180, 76, .12);
}

.wb-search-result-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.wb-search-result-title {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #1A2A40;
	line-height: 1.4;
}

.wb-search-result-title mark {
	background: rgba(233, 180, 76, .35);
	color: inherit;
	border-radius: 3px;
	padding: 0 1px;
}

.wb-search-result-type {
	flex-shrink: 0;
	font-family: "Figtree", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #C7952E;
	white-space: nowrap;
}

.wb-search-result-snippet {
	margin-top: 3px;
	font-family: "Figtree", sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(13, 27, 42, .6);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wb-search-footer {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 24px;
	border-top: 1px solid rgba(13, 27, 42, .08);
	background: #F6F1E9;
	flex-shrink: 0;
}

.wb-search-footer span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: "Figtree", sans-serif;
	font-size: 12px;
	color: rgba(13, 27, 42, .5);
}

.wb-search-footer kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 4px;
	background: #FFFFFF;
	border: 1px solid rgba(13, 27, 42, .15);
	font-family: "Figtree", sans-serif;
	font-size: 11px;
	color: rgba(13, 27, 42, .6);
}

body.wb-search-locked {
	overflow: hidden;
}

@media (max-width: 640px) {
	.wb-search-panel {
		margin-top: 0;
		width: 100vw;
		max-height: 100vh;
		height: 100vh;
		border-radius: 0;
	}

	.wb-search-footer span:not(:last-child) {
		display: none;
	}
}
