.sapura-header-search {
	--sapura-search-dark: var(--e-global-color-116f76d, #4b4a49);
	--sapura-search-accent: var(--e-global-color-2252940, #ebcd8d);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.sapura-header-search,
.sapura-header-search * {
	box-sizing: border-box;
}

.sapura-header-search__toggle,
.sapura-header-search__close {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #353434;
	box-shadow: none;
	cursor: pointer;
}

.sapura-header-search__close:hover,
.sapura-header-search__close:focus-visible {
	background: rgba(53, 52, 52, 0.08);
	color: #353434;
}

/*
 * Elementor and the theme apply their global button background to buttons.
 * Keep the header trigger visually identical to the existing plain search icon
 * while retaining its accessible 44 x 44 px click target.
 */
.sapura-header-search .sapura-header-search__toggle,
.sapura-header-search .sapura-header-search__toggle:hover,
.sapura-header-search .sapura-header-search__toggle:focus,
.sapura-header-search .sapura-header-search__toggle:active {
	min-width: 44px;
	min-height: 44px;
	border: 0 !important;
	background: transparent !important;
	color: #353434 !important;
	box-shadow: none !important;
	transform: none !important;
}

.sapura-header-search__toggle:focus-visible,
.sapura-header-search__close:focus-visible,
.sapura-header-search__input:focus-visible,
.sapura-header-search__submit:focus-visible {
	outline: 2px solid #353434;
	outline-offset: 3px;
}

.sapura-header-search__toggle svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
	stroke: none;
}

.sapura-header-search__overlay[hidden] {
	display: none !important;
}

.sapura-header-search__overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.sapura-header-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.72);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
}

.sapura-header-search__panel {
	position: relative;
	z-index: 1;
	width: min(870px, 100%);
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.sapura-header-search__heading {
	position: absolute;
	right: 0;
	bottom: calc(100% + 48px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
}

.sapura-header-search__title {
	margin: 0;
}

.sapura-header-search__close {
	flex: 0 0 44px;
	background: transparent !important;
	color: #fff !important;
}

.sapura-header-search__close svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.sapura-header-search__form {
	position: relative;
	display: block;
	margin: 0;
}

.sapura-header-search__input {
	width: 100%;
	min-width: 0;
	height: 90px !important;
	margin: 0;
	padding: 0 106px 0 24px !important;
	border: 3px solid var(--sapura-search-dark) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #353434;
	font: inherit !important;
	font-size: 20px;
	line-height: 1;
	box-shadow: none;
}

.sapura-header-search__input:focus {
	border-color: var(--sapura-search-dark);
	box-shadow: none;
}

.sapura-header-search__input:focus-visible {
	outline: 0;
	box-shadow: none;
}

.sapura-header-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.sapura-header-search__submit {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 7px;
	right: 7px;
	width: 76px;
	min-width: 76px;
	height: 76px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sapura-search-dark);
	color: #fff;
	font-family: inherit !important;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.sapura-header-search__submit svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sapura-header-search__submit:hover,
.sapura-header-search__submit:focus-visible {
	background: var(--sapura-search-accent);
	color: var(--sapura-search-dark);
	transform: scale(1.04);
}

body.sapura-search-is-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.sapura-header-search__toggle svg {
		width: 21px;
		height: 21px;
	}

	.sapura-header-search__overlay {
		padding: 24px;
	}

	.sapura-header-search__panel {
		padding: 0;
	}

	.sapura-header-search__heading {
		bottom: calc(100% + 30px);
	}

	.sapura-header-search__input {
		height: 62px !important;
		padding-right: 74px !important;
		padding-left: 20px !important;
		border-width: 2px !important;
		font-size: 17px;
	}

	.sapura-header-search__submit {
		top: 6px;
		right: 6px;
		width: 50px;
		min-width: 50px;
		height: 50px;
	}

	.sapura-header-search__submit svg {
		width: 21px;
		height: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sapura-header-search__submit {
		transition: none;
	}
}
