/**
 * CMS Header Search — icon in Astra header bar; full-screen overlay for the form.
 */

.cms-header-search-wrap {
	flex: 0 0 auto;
	align-self: center;
	margin-left: 0.65rem;
	padding: 0;
}

.cms-header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: #933404;
	cursor: pointer;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease;
}

.cms-header-search__toggle:hover,
.cms-header-search__toggle:focus {
	color: #ff6a00;
	background: rgba(255, 106, 0, 0.08);
	outline: none;
}

.cms-header-search__toggle:focus-visible {
	outline: 2px dotted #ff6a00;
	outline-offset: 2px;
}

.cms-header-search-panel {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 6rem 1.25rem 2rem;
	box-sizing: border-box;
}

.cms-header-search-panel[hidden] {
	display: none !important;
}

.cms-header-search-panel.is-open {
	display: flex !important;
}

.cms-header-search-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
}

.cms-header-search-panel__dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
	padding: 1.75rem 1.5rem 1.5rem;
	border-top: 3px solid #ff6a00;
}

.cms-header-search-panel__close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: #334155;
	cursor: pointer;
	padding: 0;
}

.cms-header-search-panel__close:hover {
	color: #ff6a00;
}

.cms-header-search-panel__title {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #ff6a00;
}

.cms-header-search-panel__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
	margin: 0;
}

.cms-header-search-panel__form .search-field {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	height: 48px;
}

.cms-header-search-panel__submit {
	flex: 0 0 auto;
	margin: 0;
	height: 48px;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	background-color: #ff6a00;
	border-color: #ff6a00;
}

.cms-header-search-panel__submit:hover,
.cms-header-search-panel__submit:focus {
	background-color: #e55f00;
	border-color: #e55f00;
	color: #fff;
}

@media (max-width: 921px) {
	.cms-header-search-wrap {
		margin-left: 0.35rem;
		margin-right: 0.25rem;
		order: -1;
	}
	#ast-mobile-header .site-header-primary-section-right {
		flex-wrap: nowrap;
		align-items: center;
	}
	.cms-header-search-panel {
		padding-top: 5rem;
	}
}

body.cms-header-search-open {
	overflow: hidden;
}

.search .cms-search-results-section__title {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ff6a00;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search .ast-row > .cms-search-results-section__title:first-child {
	margin-top: 0;
}
