.search-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

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

.search-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.search-modal__panel {
	position: relative;
	z-index: 1;
	margin-top: 10vh;
	width: min(90vw, 640px);
	background: #fff;
	border-radius: 6px;
	padding: 2.5rem 1.5rem 1.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.search-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #17212E;
}

.search-modal__close:hover,
.search-modal__close:focus {
	color: #1D4E89;
}

a[href="#search-modal"] {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
}

@media (min-width: 1261px) {
	a[href="#search-modal"] .wp-block-navigation-item__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}


@media (max-width: 1260px) {
	a[href="#search-modal"].wp-block-navigation-item__content {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		flex-direction: row;
	}

	a[href="#search-modal"] .wp-block-navigation-item__label {
		text-transform: uppercase;
	}
}

a[href="#search-modal"]::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: #82178d;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

#site-container header .wp-block-navigation>.wp-block-navigation-item:before {
	right: -5px !important;
}

#site-container header .wp-block-navigation.items-justified-right {
	column-gap: 10px;
}