/**
 * Desktop site search — icon + Solutions-sized panel.
 * Overrides Genesis theme button { background:#333; padding:15px 30px }.
 */

/* ── Header icon (always visible) ── */
.epsh-search-wrap {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin: 0 2px 0 0;
	line-height: 0;
}

body.epsh-custom-desktop-nav .site-header button.epsh-search-toggle,
body.epsh-custom-desktop-nav .genesis-header button.epsh-search-toggle,
.epsh-header-extras-wrap button.epsh-search-toggle,
button.epsh-search-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #002a38 !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: 0 !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	transition: background-color 0.15s ease, color 0.15s ease !important;
}

body.epsh-custom-desktop-nav .site-header button.epsh-search-toggle:hover,
body.epsh-custom-desktop-nav .site-header button.epsh-search-toggle:focus,
body.epsh-custom-desktop-nav .site-header button.epsh-search-toggle:focus-visible,
body.epsh-custom-desktop-nav .site-header button.epsh-search-toggle[aria-expanded="true"],
body.epsh-custom-desktop-nav .genesis-header button.epsh-search-toggle:hover,
body.epsh-custom-desktop-nav .genesis-header button.epsh-search-toggle:focus,
body.epsh-custom-desktop-nav .genesis-header button.epsh-search-toggle:focus-visible,
body.epsh-custom-desktop-nav .genesis-header button.epsh-search-toggle[aria-expanded="true"],
.epsh-header-extras-wrap button.epsh-search-toggle:hover,
.epsh-header-extras-wrap button.epsh-search-toggle:focus,
.epsh-header-extras-wrap button.epsh-search-toggle:focus-visible,
.epsh-header-extras-wrap button.epsh-search-toggle[aria-expanded="true"],
button.epsh-search-toggle:hover,
button.epsh-search-toggle:focus,
button.epsh-search-toggle:focus-visible,
button.epsh-search-toggle[aria-expanded="true"] {
	background: rgba(20, 114, 186, 0.1) !important;
	background-color: rgba(20, 114, 186, 0.1) !important;
	color: #1472ba !important;
	outline: none !important;
	box-shadow: none !important;
}

.epsh-search-toggle__icon {
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	pointer-events: none;
}

/* ── Panel shell ── */
.epsh-search-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(0, 42, 56, 0.18);
}

.epsh-search-backdrop[hidden],
.epsh-search-panel[hidden],
.epsh-search-panel:not(.is-visible) {
	display: none !important;
}

.epsh-search-panel {
	position: fixed;
	left: 50%;
	top: var(--epsh-search-panel-top, 88px);
	transform: translateX(-50%) translateY(8px);
	z-index: 99999;
	width: min(var(--epsh-mega-panel-max, 1290px), calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.24s ease,
		visibility 0.24s ease,
		transform 0.24s ease;
}

.epsh-search-panel.is-visible {
	display: block !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.epsh-search-panel {
		transition: none !important;
	}
}

.epsh-search-panel__inner {
	background: var(--epsh-panel-bg, #ffffff);
	border: 1px solid var(--epsh-panel-border, rgba(0, 42, 56, 0.1));
	border-radius: var(--epsh-panel-radius, 16px);
	box-shadow: var(--epsh-panel-shadow, 0 18px 44px rgba(0, 42, 56, 0.12));
	padding: 20px 22px 16px;
	max-height: min(70vh, 560px);
	display: flex;
	flex-direction: column;
}

.epsh-search-panel__form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.epsh-search-panel__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(0, 42, 56, 0.14);
	border-radius: 12px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	color: #002a38;
	background: #fff;
}

.epsh-search-panel__input:focus {
	outline: none;
	border-color: #1472ba;
	box-shadow: 0 0 0 3px rgba(20, 114, 186, 0.15);
}

body.epsh-custom-desktop-nav .site-header button.epsh-search-panel__submit,
body .epsh-search-panel button.epsh-search-panel__submit,
.epsh-search-panel__submit {
	flex: 0 0 auto !important;
	height: 48px !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #1472ba !important;
	background-color: #1472ba !important;
	color: #fff !important;
	font-family: "Nunito Sans", sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

body.epsh-custom-desktop-nav .site-header button.epsh-search-panel__close,
body .epsh-search-panel button.epsh-search-panel__close,
.epsh-search-panel__close {
	flex: 0 0 auto !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #5a6a75 !important;
	font-size: 28px !important;
	line-height: 1 !important;
	font-weight: 400 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

.epsh-search-panel__close:hover,
.epsh-search-panel__close:focus-visible {
	background: rgba(0, 42, 56, 0.06) !important;
	color: #002a38 !important;
	outline: none !important;
}

.epsh-search-panel__status {
	min-height: 20px;
	margin: 0 0 8px;
	color: #5a6a75;
	font-size: 13px;
	font-family: "Nunito Sans", sans-serif;
}

.epsh-search-panel__results {
	flex: 1 1 auto;
	overflow: auto;
	max-height: 400px;
	margin: 0 -6px;
	padding: 0 6px;
}

.epsh-search-group {
	margin: 0 0 14px;
}

.epsh-search-group__title {
	margin: 0 0 8px;
	padding: 0 6px 6px;
	border-bottom: 2px solid rgba(20, 114, 186, 0.2);
	font-family: "Nunito Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1472ba;
}

.epsh-search-result {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: #002a38;
	font-family: "Nunito Sans", sans-serif;
}

.epsh-search-result:hover,
.epsh-search-result:focus,
.epsh-search-result.is-active {
	background: rgba(20, 114, 186, 0.07);
	outline: none;
}

.epsh-search-result__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.epsh-search-result__excerpt {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.4;
	color: #5a6a75;
}

.epsh-search-panel__footer {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 42, 56, 0.08);
	text-align: right;
}

.epsh-search-panel__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #1472ba;
	text-decoration: none;
}

.epsh-search-panel__view-all:hover,
.epsh-search-panel__view-all:focus-visible {
	text-decoration: underline;
	outline: none;
}

@media (max-width: 1200px) {
	.epsh-search-wrap,
	.epsh-search-panel,
	.epsh-search-backdrop {
		display: none !important;
	}
}