/**
 * Full-screen header search overlay.
 */
body.wego-search-open {
	overflow: hidden;
}

body.wego-search-open .u-search-slide-down-bg-overlay {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 9998 !important;
	background: rgba(59, 68, 79, 0.88) !important;
}

#searchSlideDown.u-search-slide-down {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 1.5rem;
	z-index: 9999 !important;
	background: transparent;
	border: none;
	box-shadow: none;
	transform: none !important;
	opacity: 1 !important;
	visibility: hidden;
	pointer-events: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

#searchSlideDown.u-search-slide-down.active {
	visibility: visible !important;
	pointer-events: auto;
}

#searchSlideDown form,
#searchSlideDown .wego-search-form {
	position: relative;
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	overflow: visible !important;
}

#searchSlideDown .u-search-slide-down__input {
	position: relative;
	background: #fff !important;
	border-radius: 0.3125rem !important;
	overflow: hidden;
	box-shadow: 0 0.625rem 2.5rem rgba(59, 68, 79, 0.22);
	opacity: 1 !important;
	transform: none !important;
}

#searchSlideDown .form-control {
	min-height: 3.75rem;
	font-size: 1.125rem;
	border: 0;
	background: #fff;
	color: var(--wego-text, #3e3a39);
}

#searchSlideDown .form-control::placeholder {
	color: #8c98a4;
}

#searchSlideDown .input-group-append {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	flex-shrink: 0;
}

#searchSlideDown .input-group-append .btn {
	padding-left: 1rem;
	padding-right: 1.25rem;
	color: var(--wego-text, #3e3a39);
}

#searchSlideDown .input-group-append > .btn:not(.wego-search-close) {
	margin-left: 0 !important;
}

.wego-search-close {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 3.25rem;
	width: 3.25rem;
	min-width: 3.25rem;
	height: auto;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	border: 0;
	border-left: 1px solid #ebf0f7 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--wego-text, #3e3a39) !important;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wego-search-close:hover,
.wego-search-close:focus {
	background: #f8f9fa !important;
	color: var(--wego-primary, #e6333b) !important;
	outline: none;
}

.wego-search-close__icon {
	display: block;
	font-size: 1.625rem;
	line-height: 1;
	font-weight: 700;
}

.wego-header-search {
	position: static;
}

/**
 * Always show header search trigger (theme hides u-header__search-lg below 1480px).
 */
.u-header .u-header__search-lg.wego-header-search-visible,
.u-header .wego-header-search.u-header__search-lg {
	display: flex !important;
	align-items: center;
	flex-shrink: 0;
	visibility: visible !important;
	opacity: 1 !important;
	min-height: 2.5rem;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

.u-header.js-header-fix-moment .wego-header-search.u-header__search-lg {
	display: flex !important;
}

/**
 * Icon-only search, placed immediately left of the cart.
 */
.header-v1 .wego-header-search.wego-header-search-cart-side {
	order: 2;
	margin-left: auto !important;
	margin-right: 0.25rem;
	z-index: 10000;
}

.header-v1 .wego-header-search.wego-header-search-cart-side + .shopping-cart,
.header-v1 .wego-header-search.wego-header-search-cart-side ~ .shopping-cart {
	order: 3;
	margin-left: 0 !important;
}

@media (max-width: 1199.98px) {
	.header-v1 .wego-header-search.wego-header-search-cart-side {
		margin-left: auto !important;
		margin-right: 0.5rem;
	}
}

/**
 * Keep search icon visible on transparent and solid headers.
 */
.u-header--white-nav-links-xl .wego-header-search .flaticon-magnifying-glass,
.u-header--white-nav-links-xl .wego-header-search .text-white {
	color: #fff !important;
}

.u-header--dark-nav-links-xl .wego-header-search .flaticon-magnifying-glass,
.u-header--dark-nav-links-xl .wego-header-search .text-dark {
	color: var(--wego-text, #3e3a39) !important;
}

.wego-header-search #searchSlideDownInvoker {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	cursor: pointer;
	position: relative;
}

.wego-header-search #searchSlideDownInvoker > .d-flex {
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
}

.wego-header-search #searchSlideDownInvoker > .d-flex > span:first-child {
	display: none !important;
}

.wego-header-search #searchSlideDownInvoker .flaticon-magnifying-glass {
	display: inline-block !important;
	font-size: 1.35rem;
	line-height: 1;
	font-family: flaticon !important;
}

.wego-navbar-brand-img {
	display: block;
	max-height: 2.25rem;
	width: auto;
}

/* When a logo image is set, hide the duplicate text site title next to it */
.custom-logo-link .u-header__navbar-brand-text,
.navbar-brand .u-header__navbar-brand-text,
.navbar-brand img + .u-header__navbar-brand-text {
	display: none !important;
}

@media (min-width: 992px) {
	.wego-navbar-brand-img {
		max-height: 2.5rem;
	}
}

body.wego-search-open .wego-header-search #searchSlideDownInvoker.active .flaticon-magnifying-glass::before {
	content: "\f00d";
}

/* Mobile header layout lives in assets/css/mobile-header.css */
