/**
 * Compact navbar search overlay.
 * Resets Elementor kit button styles that otherwise paint brown circles
 * onto the search / close controls.
 */

#ln-nav-search {
	--ln-ns-brown: #7e4129;
	--ln-ns-icon: #000000;
	--ln-ns-line: #d8d2cb;
	--ln-ns-muted: #8a8a8a;
	--ln-ns-font: "ABCRepro-Regular", "ABC_Repro", Kanit, sans-serif;
	--ln-ns-top: 120px;
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 0 16px;
	background: transparent;
	pointer-events: none;
	box-sizing: border-box;
	font-family: var(--ln-ns-font);
}

#ln-nav-search.is-open {
	display: flex;
	pointer-events: none;
}

#ln-nav-search,
#ln-nav-search * {
	font-family: var(--ln-ns-font);
	box-sizing: border-box;
}

.ln-ns__scrim {
	position: absolute;
	inset: 0;
	background: transparent;
	pointer-events: auto;
}

.ln-ns__panel {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	width: min(640px, calc(100vw - 32px));
	max-width: 640px;
	margin-top: var(--ln-ns-top);
	padding: 0;
	background: #fff;
	border: 1px solid var(--ln-ns-line);
	border-radius: 0;
	box-shadow: none;
}

.ln-ns__form {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 8px 0 18px;
	gap: 4px;
}

body.elementor-kit-5 #ln-nav-search .ln-ns__input,
#ln-nav-search .ln-ns__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 52px;
	margin: 0;
	padding: 0 8px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	background-color: #fff !important;
	color: var(--ln-ns-brown) !important;
	caret-color: var(--ln-ns-brown);
	font-family: var(--ln-ns-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}

body.elementor-kit-5 #ln-nav-search .ln-ns__input::placeholder,
#ln-nav-search .ln-ns__input::placeholder {
	color: var(--ln-ns-muted) !important;
	opacity: 1;
	text-transform: none !important;
	letter-spacing: 0;
	font-family: var(--ln-ns-font) !important;
	font-weight: 400;
}

#ln-nav-search .ln-ns__input::-webkit-search-cancel-button,
#ln-nav-search .ln-ns__input::-webkit-search-decoration,
#ln-nav-search .ln-ns__input::-webkit-search-results-button,
#ln-nav-search .ln-ns__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

/*
 * Elementor kit paints every <button> as a brown 47px-radius pill.
 * Kill that completely inside this overlay.
 */
body.elementor-kit-5 #ln-nav-search button.ln-ns__submit,
body.elementor-kit-5 #ln-nav-search button.ln-ns__close,
#ln-nav-search button.ln-ns__submit,
#ln-nav-search button.ln-ns__close {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #000 !important;
	fill: #000 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

body.elementor-kit-5 #ln-nav-search button.ln-ns__submit:hover,
body.elementor-kit-5 #ln-nav-search button.ln-ns__submit:focus,
body.elementor-kit-5 #ln-nav-search button.ln-ns__submit:active,
body.elementor-kit-5 #ln-nav-search button.ln-ns__close:hover,
body.elementor-kit-5 #ln-nav-search button.ln-ns__close:focus,
body.elementor-kit-5 #ln-nav-search button.ln-ns__close:active,
#ln-nav-search button.ln-ns__submit:hover,
#ln-nav-search button.ln-ns__submit:focus,
#ln-nav-search button.ln-ns__submit:active,
#ln-nav-search button.ln-ns__close:hover,
#ln-nav-search button.ln-ns__close:focus,
#ln-nav-search button.ln-ns__close:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #000 !important;
	fill: #000 !important;
}

#ln-nav-search button.ln-ns__submit::before,
#ln-nav-search button.ln-ns__submit::after,
#ln-nav-search button.ln-ns__close::before,
#ln-nav-search button.ln-ns__close::after {
	content: none !important;
	display: none !important;
	background: none !important;
}

#ln-nav-search button.ln-ns__submit svg,
#ln-nav-search button.ln-ns__close svg {
	display: block;
	width: 26px;
	height: 26px;
	color: #000 !important;
	fill: #000 !important;
	stroke: none;
	pointer-events: none;
}

#ln-nav-search button.ln-ns__close svg {
	width: 24px;
	height: 24px;
}

#ln-nav-search button.ln-ns__submit:focus-visible,
#ln-nav-search button.ln-ns__close:focus-visible {
	outline: 1px solid #000;
	outline-offset: 3px;
}

.elementor-popup-modal:has([data-elementor-id="19038"]),
.elementor-popup-modal:has(.elementor-19038),
.elementor-location-popup.elementor-19038,
div[data-elementor-id="19038"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 767px) {
	#ln-nav-search {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ln-ns__panel {
		width: 100%;
		max-width: none;
	}

	body.elementor-kit-5 #ln-nav-search .ln-ns__input,
	#ln-nav-search .ln-ns__input,
	.ln-ns__form {
		min-height: 48px;
		height: 48px;
	}

	#ln-nav-search .ln-ns__input {
		font-size: 16px !important;
	}

	body.elementor-kit-5 #ln-nav-search button.ln-ns__submit,
	body.elementor-kit-5 #ln-nav-search button.ln-ns__close,
	#ln-nav-search button.ln-ns__submit,
	#ln-nav-search button.ln-ns__close {
		width: 40px !important;
		height: 40px !important;
	}

	#ln-nav-search button.ln-ns__submit svg {
		width: 24px;
		height: 24px;
	}

	#ln-nav-search button.ln-ns__close svg {
		width: 22px;
		height: 22px;
	}
}
