/**
 * Cuvys Header Search — Woodmart-style search widget.
 */

.elementor-widget-cuvys-essential-commerce-header-search,
.elementor-widget-cuvys-essential-commerce-header-search .elementor-widget-container {
	overflow: visible;
}

.elementor-widget-cuvys-essential-commerce-header-search {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	max-width: none;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.elementor-widget-cuvys-essential-commerce-header-search .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	display: inline-flex;
	justify-content: flex-end;
	align-items: center;
}

/* Form display: Style → Form width wins, including when Advanced → Width is Custom. */
.elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-ec-header-search--display-form) {
	flex: 0 0 var(--cuvys-ec-hs-width, 100%) !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	width: var(--cuvys-ec-hs-width, 100%) !important;
	max-width: var(--cuvys-ec-hs-width, 100%) !important;
	min-width: 0 !important;
}

.elementor-widget-cuvys-essential-commerce-header-search[class*="__width-initial"],
.elementor-widget-cuvys-essential-commerce-header-search[class*="__width-inherit"] {
	flex-grow: 0;
	flex-shrink: 1;
	min-width: 0;
}

.elementor-widget-cuvys-essential-commerce-header-search[class*="__width-initial"] .cuvys-ec-header-search--display-form,
.elementor-widget-cuvys-essential-commerce-header-search[class*="__width-inherit"] .cuvys-ec-header-search--display-form {
	width: 100% !important;
	max-width: 100% !important;
}

@media (max-width: 767px) {
	.elementor-widget-cuvys-essential-commerce-header-search.elementor-hidden-mobile,
	.elementor-widget-cuvys-essential-commerce-header-search.elementor-hidden-phone {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		flex: 0 0 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		pointer-events: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-widget-cuvys-essential-commerce-header-search.elementor-hidden-tablet {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		flex: 0 0 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		pointer-events: none !important;
	}
}

@media (min-width: 1025px) {
	.elementor-widget-cuvys-essential-commerce-header-search.elementor-hidden-desktop {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		flex: 0 0 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		pointer-events: none !important;
	}
}

.cuvys-ec-header-search--display-form {
	display: flex;
	width: 100%;
	max-width: 100%;
}

.cuvys-ec-header-search__control {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	flex: 0 0 auto;
	align-items: center;
}

.cuvys-ec-header-search--display-dropdown:not(.is-open) .cuvys-ec-header-search__panel {
	display: none !important;
}

.cuvys-ec-header-search {
	--cuvys-ec-hs-backdrop: rgba(0, 0, 0, 0.45);
	--cuvys-ec-hs-height: 42px;
	--cuvys-ec-hs-button-pad: 0px;
	--cuvys-ec-hs-button-border-width: 0px;
	--cuvys-ec-hs-button-border-color: currentColor;
	--cuvys-ec-hs-button-icon-size: 18px;
	--cuvys-ec-hs-button-icon-stroke: 2;
	--cuvys-ec-hs-button-icon-gap: 6px;
	--cuvys-ec-hs-button-inner-pad: 14px;
	--cuvys-ec-hs-radius: 0;
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
}

.cuvys-ec-header-search.cuvys-ec-header-search--display-dropdown,
.cuvys-ec-header-search.cuvys-ec-header-search--display-fullscreen,
.cuvys-ec-header-search.cuvys-ec-header-search--display-fullscreen-2 {
	width: auto !important;
	max-width: none;
	flex: 0 0 auto;
	align-self: center;
}

.cuvys-ec-header-search__opener {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-button-color, #111111));
	cursor: pointer;
}

.cuvys-ec-header-search__opener .cuvys-ec-header-search__icon-svg {
	display: block;
	stroke: currentColor;
}

.cuvys-ec-header-search__panel {
	width: 100%;
}

.cuvys-ec-header-search__panel[hidden] {
	display: none !important;
}

.cuvys-ec-header-search__panel-inner {
	width: 100%;
}

.cuvys-ec-header-search__form {
	position: relative;
	width: 100%;
}

/* Theme reset — Shoptimizer/Cuvys Commerce global input[type=search] rules */
.cuvys-ec-header-search input[type="search"].cuvys-ec-header-search__input,
.cuvys-ec-header-search input[type="text"].cuvys-ec-header-search__input,
.cuvys-ec-header-search .cuvys-ec-header-search__input {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	height: var(--cuvys-ec-hs-height) !important;
	width: auto !important;
	max-width: none !important;
	background: transparent !important;
	color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
	-webkit-text-fill-color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
	caret-color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
	-webkit-appearance: none;
	appearance: none;
}

.cuvys-ec-header-search input[type="search"].cuvys-ec-header-search__input:focus,
.cuvys-ec-header-search input[type="text"].cuvys-ec-header-search__input:focus,
.cuvys-ec-header-search .cuvys-ec-header-search__input:focus {
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.cuvys-ec-header-search button.cuvys-ec-header-search__submit {
	box-shadow: none !important;
	margin: 0 !important;
	color: var(--cuvys-ec-hs-button-color, #ffffff) !important;
	border-width: var(--cuvys-ec-hs-button-border-width, 0px) !important;
	border-style: solid !important;
	border-color: var(--cuvys-ec-hs-button-border-color, currentColor) !important;
	-webkit-appearance: none;
	appearance: none;
}

.cuvys-ec-header-search button.cuvys-ec-header-search__submit .cuvys-ec-header-search__icon-svg {
	width: var(--cuvys-ec-hs-button-icon-size, 18px) !important;
	height: var(--cuvys-ec-hs-button-icon-size, 18px) !important;
	color: inherit !important;
	stroke: currentColor !important;
	stroke-width: var(--cuvys-ec-hs-icon-weight, var(--cuvys-ec-hs-button-icon-stroke, 2)) !important;
}

.cuvys-ec-header-search button.cuvys-ec-header-search__cat-trigger {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	height: 100% !important;
	min-height: var(--cuvys-ec-hs-height) !important;
	margin: 0 !important;
	padding: 0 1.75rem 0 1rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: inherit !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer !important;
	touch-action: manipulation;
	-webkit-appearance: none;
	appearance: none;
}

.cuvys-ec-header-search--has-categories {
	min-width: 320px;
}

.cuvys-ec-header-search__field-wrap--has-categories {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cuvys-ec-hs-cat-width) var(--cuvys-ec-hs-height);
	align-items: stretch;
	min-width: min(100%, 420px);
	overflow: visible;
}

.cuvys-ec-header-search--has-categories,
.cuvys-ec-header-search--has-categories .cuvys-ec-header-search__form,
.cuvys-ec-header-search--has-categories .cuvys-ec-header-search__panel,
.cuvys-ec-header-search--has-categories .cuvys-ec-header-search__panel-inner {
	overflow: visible;
}

.cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__input {
	grid-column: 1;
	min-width: 0;
	border-top-left-radius: var(--cuvys-ec-hs-radius);
	border-bottom-left-radius: var(--cuvys-ec-hs-radius);
}

.cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__categories {
	grid-column: 2;
	height: 100%;
	align-self: stretch;
}

.cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__submit {
	grid-column: 3;
}

.cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left {
	grid-template-columns: auto minmax(0, 1fr) var(--cuvys-ec-hs-cat-width) var(--cuvys-ec-hs-height);
}

.cuvys-ec-header-search:not(.cuvys-ec-header-search--has-button-text) .cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left {
	grid-template-columns: auto minmax(0, 1fr) var(--cuvys-ec-hs-cat-width);
}

.cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left .cuvys-ec-header-search__icon--left {
	grid-column: 1;
}

.cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left .cuvys-ec-header-search__input {
	grid-column: 2;
}

.cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left .cuvys-ec-header-search__categories {
	grid-column: 3;
}

.cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left .cuvys-ec-header-search__submit:not(.cuvys-ec-header-search__icon--left) {
	grid-column: 4;
}

.cuvys-ec-header-search__categories {
	position: relative;
	display: flex;
	align-items: stretch;
	align-self: stretch;
	flex: 0 0 auto;
	width: var(--cuvys-ec-hs-cat-width);
	height: 100%;
	min-height: var(--cuvys-ec-hs-height);
	margin: 0;
	padding: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--cuvys-ec-hs-bg-color);
	cursor: pointer;
}

.cuvys-ec-header-search__cat-trigger {
	gap: 0.5rem;
	color: inherit;
	text-align: left;
	cursor: pointer;
	touch-action: manipulation;
}

.cuvys-ec-header-search__cat-display {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	min-height: var(--cuvys-ec-hs-height);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #777;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	user-select: none;
}

.cuvys-ec-header-search__cat-select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.cuvys-ec-header-search__cat-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: center;
	color: #999;
	pointer-events: none;
}

.cuvys-ec-header-search__cat-panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: max(100%, 250px);
	width: max-content;
	max-width: 320px;
	z-index: 999999;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	padding: 0.4rem 0;
	max-height: 300px;
	overflow-x: hidden;
	overflow-y: auto;
}

.cuvys-ec-header-search__cat-panel.is-portaled {
	position: fixed;
	top: auto;
	left: auto;
	right: auto;
}

.cuvys-ec-header-search__cat-panel[hidden] {
	display: none !important;
}

.cuvys-ec-header-search__cat-panel:not([hidden]) {
	display: block;
}

.cuvys-ec-header-search__cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cuvys-ec-header-search button.cuvys-ec-header-search__cat-item {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.6rem 1.5rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-align: left !important;
	text-transform: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.cuvys-ec-header-search__cat-item {
	display: block;
	width: 100%;
	padding: 0.6rem 1.5rem;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cuvys-ec-header-search__cat-item:hover,
.cuvys-ec-header-search__cat-item:focus-visible,
.cuvys-ec-header-search__cat-item.is-active {
	background: #f8f8f8;
	color: #333;
	outline: none;
}

.cuvys-ec-header-search__categories.is-open .cuvys-ec-header-search__cat-chevron {
	transform: rotate(180deg);
}

.cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__submit {
	flex: 0 0 auto;
	border-radius: 0 !important;
	border-top-right-radius: var(--cuvys-ec-hs-radius) !important;
	border-bottom-right-radius: var(--cuvys-ec-hs-radius) !important;
}

.cuvys-ec-header-search--has-categories.cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__submit {
	background: var(--cuvys-ec-hs-button-bg);
	color: var(--cuvys-ec-hs-button-color);
	min-width: var(--cuvys-ec-hs-height);
}

.cuvys-ec-header-search--has-categories.cuvys-ec-header-search--style-icon-right .cuvys-ec-header-search__submit,
.cuvys-ec-header-search--has-categories.cuvys-ec-header-search--style-compact .cuvys-ec-header-search__submit {
	background: transparent;
	color: var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-placeholder-color, #6f6a60));
	min-width: var(--cuvys-ec-hs-height);
	padding: 0 1rem;
}

.cuvys-ec-header-search__field-wrap {
	display: flex !important;
	align-items: stretch !important;
	width: 100% !important;
	min-height: var(--cuvys-ec-hs-height, 42px) !important;
	background: var(--cuvys-ec-hs-bg-color, #ffffff) !important;
	border: 1px solid var(--cuvys-ec-hs-border-color, #cfc9bb) !important;
	border-radius: var(--cuvys-ec-hs-radius, 0) !important;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 993px) {
	.elementor-location-header .elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-ec-header-search--display-form),
	.elementor-edit-area-active .elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-ec-header-search--display-form),
	.elementor-editor-preview .elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-ec-header-search--display-form) {
		flex: 0 0 var(--cuvys-ec-hs-width, 100%) !important;
		flex-grow: 0 !important;
		flex-shrink: 0 !important;
		flex-basis: var(--cuvys-ec-hs-width, 100%) !important;
		width: var(--cuvys-ec-hs-width, 100%) !important;
		min-width: 140px !important;
		max-width: var(--cuvys-ec-hs-width, 100%) !important;
		--container-widget-width: var(--cuvys-ec-hs-width, 100%) !important;
		--container-widget-flex-grow: 0 !important;
		margin-left: 0.5rem !important;
		margin-inline-start: 0.5rem !important;
		position: relative !important;
		z-index: 80 !important;
		align-self: center !important;
		background: transparent !important;
		overflow: visible !important;
	}

	.elementor-location-header .elementor-widget-cuvys-essential-commerce-header-search .elementor-widget-container,
	.elementor-editor-preview .elementor-widget-cuvys-essential-commerce-header-search .elementor-widget-container {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		background: transparent !important;
	}

	.elementor-location-header .cuvys-ec-header-search--display-form,
	.elementor-editor-preview .cuvys-ec-header-search--display-form {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
	}

	.elementor-location-header .cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__submit,
	.elementor-editor-preview .cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__submit {
		flex: 0 0 auto !important;
		background: var(--cuvys-ec-hs-button-bg, #69b364) !important;
		background-color: var(--cuvys-ec-hs-button-bg, #69b364) !important;
		color: var(--cuvys-ec-hs-button-color, #ffffff) !important;
	}

	.elementor-location-header .cuvys-ec-header-search__submit--has-text,
	.elementor-editor-preview .cuvys-ec-header-search__submit--has-text {
		width: max-content !important;
		min-width: max-content !important;
		max-width: none !important;
		flex: 0 0 auto !important;
		flex-shrink: 0 !important;
		padding: 0 var(--cuvys-ec-hs-button-inner-pad, 14px) !important;
		gap: var(--cuvys-ec-hs-button-icon-gap, 6px) !important;
		white-space: nowrap !important;
	}

	.elementor-location-header .cuvys-ec-header-search--style-icon-left .cuvys-ec-header-search__submit,
	.elementor-location-header .cuvys-ec-header-search--style-icon-right .cuvys-ec-header-search__submit,
	.elementor-location-header .cuvys-ec-header-search--style-compact .cuvys-ec-header-search__submit {
		background: var(--cuvys-ec-hs-button-bg, transparent) !important;
		background-color: var(--cuvys-ec-hs-button-bg, transparent) !important;
	}

	.elementor-location-header .cuvys-ec-header-search--style-icon-left button.cuvys-ec-header-search__icon,
	.elementor-editor-preview .cuvys-ec-header-search--style-icon-left button.cuvys-ec-header-search__icon {
		background: var(--cuvys-ec-hs-button-bg, transparent) !important;
		background-color: var(--cuvys-ec-hs-button-bg, transparent) !important;
		color: var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-placeholder-color, #6f6a60)) !important;
		border-width: var(--cuvys-ec-hs-button-border-width, 0px) !important;
		border-style: solid !important;
		border-color: var(--cuvys-ec-hs-button-border-color, transparent) !important;
		border-radius: var(--cuvys-ec-hs-button-radius, 0) !important;
		margin: var(--cuvys-ec-hs-button-pad, 0px) !important;
		padding: 0 var(--cuvys-ec-hs-button-inner-pad, 0.85rem) !important;
		box-shadow: none !important;
	}
}

.cuvys-ec-header-search__field-wrap.cuvys-ec-header-search__field-wrap--has-categories {
	overflow: visible;
}

.cuvys-ec-header-search__field-wrap:focus-within {
	border-color: var(--cuvys-ec-hs-border-focus-color);
	box-shadow: 0 0 0 1px var(--cuvys-ec-hs-border-focus-color);
}

.cuvys-ec-header-search__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0 0.85rem;
	color: var(--cuvys-ec-hs-placeholder-color, #6f6a60);
}

button.cuvys-ec-header-search__icon {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	margin: var(--cuvys-ec-hs-button-pad, 0px);
	height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px)));
	min-height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px)));
	align-self: center;
	background: var(--cuvys-ec-hs-button-bg, transparent) !important;
	background-color: var(--cuvys-ec-hs-button-bg, transparent) !important;
	border-width: var(--cuvys-ec-hs-button-border-width, 0px) !important;
	border-style: solid !important;
	border-color: var(--cuvys-ec-hs-button-border-color, transparent) !important;
	border-radius: var(--cuvys-ec-hs-button-radius, 0) !important;
	padding: 0 var(--cuvys-ec-hs-button-inner-pad, 0.85rem) !important;
	box-shadow: none !important;
	cursor: pointer;
	color: var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-placeholder-color, #6f6a60)) !important;
}

button.cuvys-ec-header-search__icon:hover,
button.cuvys-ec-header-search__icon:focus-visible {
	background: var(--cuvys-ec-hs-button-bg-hover, var(--cuvys-ec-hs-button-bg, transparent)) !important;
	background-color: var(--cuvys-ec-hs-button-bg-hover, var(--cuvys-ec-hs-button-bg, transparent)) !important;
	border-color: var(--cuvys-ec-hs-button-border-color-hover, var(--cuvys-ec-hs-button-border-color, transparent)) !important;
	color: var(--cuvys-ec-hs-button-color-hover, var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-placeholder-color, #6f6a60))) !important;
}

button.cuvys-ec-header-search__icon .cuvys-ec-header-search__icon-svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	color: inherit;
}

.cuvys-ec-header-search__input {
	flex: 1;
	min-width: 0;
	height: var(--cuvys-ec-hs-height);
	padding: 0 1rem;
	border: 0;
	background: transparent;
	color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
	-webkit-text-fill-color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
	font-size: 0.9375rem;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
}

.cuvys-ec-header-search__input::placeholder,
.cuvys-ec-header-search__input::-webkit-input-placeholder {
	color: var(--cuvys-ec-hs-placeholder-color, #6f6a60) !important;
	-webkit-text-fill-color: var(--cuvys-ec-hs-placeholder-color, #6f6a60) !important;
	opacity: 1 !important;
}

.cuvys-ec-header-search__input::-moz-placeholder {
	color: var(--cuvys-ec-hs-placeholder-color, #6f6a60) !important;
	opacity: 1 !important;
}

.cuvys-ec-header-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--cuvys-ec-hs-button-icon-gap, 6px);
	flex: 0 0 auto;
	flex-shrink: 0;
	min-width: var(--cuvys-ec-hs-height);
	width: auto;
	height: var(--cuvys-ec-hs-height);
	padding: 0 1rem;
	box-sizing: border-box;
	border-width: var(--cuvys-ec-hs-button-border-width, 0px);
	border-style: solid;
	border-color: var(--cuvys-ec-hs-button-border-color, currentColor);
	background: var(--cuvys-ec-hs-button-bg, #69b364);
	color: var(--cuvys-ec-hs-button-color, #ffffff) !important;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cuvys-ec-header-search__submit--has-text {
	width: max-content;
	min-width: max-content;
	flex: 0 0 auto;
	flex-shrink: 0;
}

.cuvys-ec-header-search__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex-shrink: 0;
}

.cuvys-ec-header-search__submit-icon .cuvys-ec-header-search__icon-svg {
	display: block;
	width: var(--cuvys-ec-hs-button-icon-size, 18px);
	height: var(--cuvys-ec-hs-button-icon-size, 18px);
}

.cuvys-ec-header-search__submit-label {
	display: inline-block;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--cuvys-ec-hs-button-text-color, var(--cuvys-ec-hs-button-color, #ffffff));
}

.cuvys-ec-header-search__submit--icon-after {
	flex-direction: row-reverse;
}

.cuvys-ec-header-search__submit:hover,
.cuvys-ec-header-search__submit:focus-visible,
.elementor-widget-cuvys-essential-commerce-header-search:hover .cuvys-ec-header-search__submit,
.cuvys-ec-header-search button.cuvys-ec-header-search__submit:hover {
	color: var(--cuvys-ec-hs-button-color-hover, var(--cuvys-ec-hs-button-color, #ffffff)) !important;
	background: var(--cuvys-ec-hs-button-bg-hover, var(--cuvys-ec-hs-button-bg, #69b364)) !important;
	background-color: var(--cuvys-ec-hs-button-bg-hover, var(--cuvys-ec-hs-button-bg, #69b364)) !important;
	border-color: var(--cuvys-ec-hs-button-border-color-hover, var(--cuvys-ec-hs-button-border-color, currentColor)) !important;
}

.cuvys-ec-header-search__submit:hover .cuvys-ec-header-search__submit-label,
.elementor-widget-cuvys-essential-commerce-header-search:hover .cuvys-ec-header-search__submit-label {
	color: var(--cuvys-ec-hs-button-text-color-hover, var(--cuvys-ec-hs-button-text-color, inherit)) !important;
}

.elementor-widget-cuvys-essential-commerce-header-search .cuvys-ec-header-search--style-icon-left:not(.cuvys-ec-header-search--has-button-text) .cuvys-ec-header-search__submit,
.cuvys-ec-header-search--style-icon-left:not(.cuvys-ec-header-search--has-button-text) .cuvys-ec-header-search__submit {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	background: transparent !important;
}

.cuvys-ec-header-search--style-icon-right .cuvys-ec-header-search__field-wrap,
.cuvys-ec-header-search--style-compact .cuvys-ec-header-search__field-wrap {
	border-radius: var(--cuvys-ec-hs-radius);
}

.cuvys-ec-header-search--style-icon-right .cuvys-ec-header-search__submit,
.cuvys-ec-header-search--style-compact .cuvys-ec-header-search__submit {
	background: var(--cuvys-ec-hs-button-bg, transparent) !important;
	background-color: var(--cuvys-ec-hs-button-bg, transparent) !important;
	color: var(--cuvys-ec-hs-icon-color, var(--cuvys-ec-hs-placeholder-color, #6f6a60)) !important;
	min-width: 44px;
	padding: 0 var(--cuvys-ec-hs-button-inner-pad, 0.85rem);
	margin: var(--cuvys-ec-hs-button-pad, 0px);
	border-radius: var(--cuvys-ec-hs-button-radius, 0);
}

.cuvys-ec-header-search--style-button-right:not(.cuvys-ec-header-search--has-categories) .cuvys-ec-header-search__submit {
	border-radius: var(--cuvys-ec-hs-button-radius, 0);
}

.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__submit:not(.cuvys-ec-header-search__submit--has-text),
.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right button.cuvys-ec-header-search__submit:not(.cuvys-ec-header-search__submit--has-text),
.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__submit:not(.cuvys-ec-header-search__submit--has-text) {
	box-sizing: border-box !important;
	align-self: center !important;
	margin: var(--cuvys-ec-hs-button-pad, 0px) !important;
	padding: 0 !important;
	height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	min-height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	width: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	min-width: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	border-radius: var(--cuvys-ec-hs-button-radius, calc(var(--cuvys-ec-hs-button-pad, 0px) * 0.8)) !important;
}

.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__submit--has-text,
.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right button.cuvys-ec-header-search__submit--has-text,
.cuvys-ec-header-search.cuvys-ec-header-search--style-button-right .cuvys-ec-header-search__field-wrap--has-categories .cuvys-ec-header-search__submit--has-text {
	box-sizing: border-box !important;
	align-self: center !important;
	flex: 0 0 auto !important;
	flex-shrink: 0 !important;
	width: max-content !important;
	min-width: max-content !important;
	max-width: none !important;
	height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	min-height: calc(var(--cuvys-ec-hs-height, 42px) - (2 * var(--cuvys-ec-hs-button-pad, 0px))) !important;
	margin: var(--cuvys-ec-hs-button-pad, 0px) !important;
	padding: 0 var(--cuvys-ec-hs-button-inner-pad, 14px) !important;
	gap: var(--cuvys-ec-hs-button-icon-gap, 6px) !important;
	white-space: nowrap !important;
	overflow: visible !important;
}

.cuvys-ec-header-search--has-button-text .cuvys-ec-header-search__field-wrap--has-categories {
	grid-template-columns: minmax(0, 1fr) var(--cuvys-ec-hs-cat-width) auto;
}

.cuvys-ec-header-search--has-button-text .cuvys-ec-header-search__field-wrap--has-categories.cuvys-ec-header-search__field-wrap--icon-left {
	grid-template-columns: auto minmax(0, 1fr) var(--cuvys-ec-hs-cat-width) auto;
}

.cuvys-ec-header-search--shape-default {
	--cuvys-ec-hs-radius: 0;
}

.cuvys-ec-header-search--shape-round {
	--cuvys-ec-hs-radius: 999px;
}

.cuvys-ec-header-search--shape-rounded {
	--cuvys-ec-hs-radius: 8px;
}

/* Dropdown display */
.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	width: min(420px, calc(100vw - 2rem));
	min-width: min(420px, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	z-index: 99990;
	padding-top: 8px;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__panel-inner {
	background: #fff;
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__panel-inner,
.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__form,
.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__field-wrap {
	width: 100%;
}

.cuvys-ec-header-search--display-dropdown.is-open .cuvys-ec-header-search__panel {
	display: block;
}

@media (min-width: 993px) {
	.cuvys-ec-header-search--display-dropdown:hover .cuvys-ec-header-search__panel,
	.cuvys-ec-header-search--display-dropdown.is-open .cuvys-ec-header-search__panel {
		display: block !important;
	}
}

/* Fullscreen displays — target portaled panel on body, not a descendant of the widget. */
.cuvys-ec-header-search__panel--fullscreen,
.cuvys-ec-header-search__panel--fullscreen-2 {
	--cuvys-ec-hs-height: 42px;
	position: fixed !important;
	inset: 0 !important;
	z-index: 1000002 !important;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
	box-sizing: border-box;
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100vh !important;
	min-height: 100vh !important;
	visibility: hidden;
	pointer-events: none;
}

.cuvys-ec-header-search__panel--fullscreen:not([hidden]),
.cuvys-ec-header-search__panel--fullscreen.is-open,
.cuvys-ec-header-search__panel--fullscreen-2:not([hidden]),
.cuvys-ec-header-search__panel--fullscreen-2.is-open {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
}

.cuvys-ec-header-search__panel--fullscreen {
	background: #fff;
}

.cuvys-ec-header-search__panel--fullscreen-2 {
	background: rgba(255, 255, 255, 0.97);
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__panel-inner {
	width: min(820px, 100%);
	max-width: 100%;
	text-align: center;
}

.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-ec-header-search__panel-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
	gap: 2.5rem;
	width: min(1100px, 100%);
	max-width: 100%;
	align-items: start;
}

.cuvys-ec-header-search__panel--fullscreen-2.is-searched .cuvys-ec-header-search__panel-inner {
	grid-template-columns: minmax(0, 1fr);
	width: min(1120px, 100%);
	align-self: stretch;
	flex: 1 1 auto;
}

.cuvys-ec-header-search__col-main,
.cuvys-ec-header-search__col-aside {
	min-width: 0;
}

.cuvys-ec-header-search__panel--fullscreen-2.is-searched .cuvys-ec-header-search__col-aside {
	display: none;
}

.cuvys-ec-header-search__panel--fullscreen.is-searched .cuvys-ec-header-search__popular,
.cuvys-ec-header-search__panel--fullscreen.is-searched .cuvys-ec-header-search__history,
.cuvys-ec-header-search__panel--fullscreen.is-searched .cuvys-ec-header-search__extra {
	display: none;
}

.cuvys-ec-header-search__close {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	right: 1rem;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: #111;
	z-index: 2;
}

.cuvys-ec-header-search__backdrop {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	background: var(--cuvys-ec-hs-backdrop, rgba(0, 0, 0, 0.45));
}

.cuvys-ec-header-search__backdrop.is-open:not([hidden]) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.cuvys-ec-header-search__backdrop[hidden] {
	display: none !important;
}

.cuvys-ec-header-search.is-open .cuvys-ec-header-search__backdrop:not([hidden]),
.cuvys-ec-header-search__backdrop.is-open:not([hidden]) {
	display: block;
}

/* Fullscreen 1 — WoodMart hero input */
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__form {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	padding-bottom: 0.35rem;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__field-wrap {
	justify-content: center;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0;
	height: auto;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__input {
	font-size: clamp(1.5rem, 4.2vw, 3rem) !important;
	line-height: 1.2 !important;
	text-align: center !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0.4rem 0 !important;
	background: transparent !important;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__submit,
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__icon,
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__categories {
	display: none !important;
}

/* Fullscreen 2 — normal form bar after portal (root descendant input rules no longer match). */
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-ec-header-search__form,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-ec-header-search__field-wrap {
	width: 100%;
}

.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-ec-header-search__input {
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	height: var(--cuvys-ec-hs-height, 42px) !important;
	width: auto !important;
	max-width: none !important;
	flex: 1 1 auto;
	background: transparent !important;
	color: var(--cuvys-ec-hs-text-color, #1a1a1a) !important;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__popular,
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__history,
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__extra {
	text-align: center;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__popular-list,
.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__history-list {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Fullscreen ajax results — cards / grid (form list styles stay on .cuvys-ec-header-search) */
.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-results,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-results {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin-top: 1.25rem !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	background: transparent;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-suggestions,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-suggestions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	overflow: visible !important;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-suggestions > .autocomplete-suggestion,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-suggestions > .autocomplete-suggestion {
	flex: 0 1 180px;
	max-width: 220px;
	border: 0 !important;
	background: transparent !important;
}

.cuvys-ec-header-search__panel--fullscreen .autocomplete-suggestion a,
.cuvys-ec-header-search__panel--fullscreen-2 .autocomplete-suggestion a {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0.5rem;
	gap: 0.5rem;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-product-image,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-product-image,
.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-post-image,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-post-image {
	max-width: 100%;
	width: 100%;
	justify-content: center;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-product-image img,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-product-image img {
	width: 100%;
	height: auto;
	padding: 0;
	object-fit: contain;
}

.cuvys-ec-header-search__panel--fullscreen .cuvys-essential-commerce-ajs-product-desc,
.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-essential-commerce-ajs-product-desc {
	align-items: center;
	padding: 0;
}

.cuvys-ec-header-search__panel--fullscreen-2.is-searched .cuvys-essential-commerce-ajs-results {
	max-height: calc(100vh - 10rem) !important;
	overflow: auto !important;
}

.cuvys-ec-header-search__panel--fullscreen-2.is-searched .cuvys-essential-commerce-ajs-suggestions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	justify-content: stretch;
	gap: 1.25rem 1.5rem;
}

.cuvys-ec-header-search__panel--fullscreen-2.is-searched .cuvys-essential-commerce-ajs-suggestions > .autocomplete-suggestion {
	flex: none;
	max-width: none;
}

/* Popular + history */
.cuvys-ec-header-search__popular,
.cuvys-ec-header-search__history {
	margin-top: 0.85rem;
}

.cuvys-ec-header-search__popular-label,
.cuvys-ec-header-search__history-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #666;
}

.cuvys-ec-header-search__popular-list,
.cuvys-ec-header-search__history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cuvys-ec-header-search__popular-item,
.cuvys-ec-header-search__history-item {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	color: #333;
	cursor: pointer;
}

.cuvys-ec-header-search__extra {
	margin-top: 1rem;
	max-width: 100%;
	overflow: hidden;
}

/* Keep the open results above the header menu (that widget is z-index 50). */
.elementor-location-header .elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-essential-commerce-ajs-results),
.elementor-edit-area-active .elementor-widget-cuvys-essential-commerce-header-search:has(.cuvys-essential-commerce-ajs-results) {
	position: relative !important;
	z-index: 80 !important;
}

/* AJAX results inside header search */
.cuvys-ec-header-search .cuvys-essential-commerce-ajs-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: auto;
	margin-top: 4px;
	z-index: 999998;
	min-height: 0;
	overflow: visible;
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-suggestions {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-suggestions > .autocomplete-suggestion {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-suggestions > .autocomplete-suggestion:last-child {
	border-bottom: 0;
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-product-image img {
	border-radius: 4px;
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-view-all-holder {
	width: 100%;
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-view-all-holder > a {
	display: block;
	height: auto;
	line-height: 1.4;
	padding: 0.85rem 1rem;
	background: #fff;
	color: #333;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cuvys-ec-header-search .cuvys-essential-commerce-ajs-view-all-holder > a:hover {
	color: #111;
	background: #fafafa;
}

.cuvys-ec-header-search--has-categories .cuvys-ec-header-search__form {
	overflow: visible;
}

.cuvys-ec-header-search--display-dropdown .cuvys-essential-commerce-ajs-results {
	position: relative;
	top: auto;
	margin-top: 0.5rem;
}

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

@media (max-width: 767px) {
	.cuvys-ec-header-search--display-form {
		width: 100%;
	}

	.cuvys-ec-header-search--display-dropdown .cuvys-ec-header-search__panel {
		left: 0;
		right: 0;
		min-width: 0;
		width: calc(100vw - 2rem);
		max-width: calc(100vw - 2rem);
	}

	.cuvys-ec-header-search__panel--fullscreen-2 .cuvys-ec-header-search__panel-inner {
		grid-template-columns: 1fr;
	}

	.cuvys-ec-header-search__panel--fullscreen .cuvys-ec-header-search__input {
		font-size: clamp(1.25rem, 8vw, 2rem) !important;
	}

	.cuvys-ec-header-search__categories {
		width: var(--cuvys-ec-hs-cat-width);
	}

	.cuvys-ec-header-search__cat-trigger {
		padding-right: 1.75rem;
		padding-left: 0.75rem;
	}

	.cuvys-ec-header-search__cat-panel {
		min-width: 220px;
	}

	.cuvys-ec-header-search__field-wrap--has-categories {
		min-width: min(100%, 320px);
	}
}
