/* SGE — Product search (header icon expands left + inline) */
.sge-search {
	--sge-search-accent: var(--e-global-color-vamtam_accent_1, #f2e90d);
	--sge-search-text: #ffffff;
	--sge-search-muted: rgba(255, 255, 255, 0.72);
	--sge-search-surface: #1a1a1a;
	--sge-search-border: rgba(255, 255, 255, 0.22);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	font-family: "DM Sans", sans-serif;
	z-index: 5;
	max-width: 100%;
}

.sge-search__toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	min-width: 2.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	color: #ffffff !important;
	font: inherit !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 0.2s ease, opacity 0.2s ease;
	flex: 0 0 auto;
}

.sge-search__toggle:hover,
.sge-search__toggle:focus,
.sge-search__toggle:focus-visible,
.sge-search.is-open .sge-search__toggle {
	color: var(--sge-search-accent) !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	opacity: 1 !important;
	outline: none;
	box-shadow: none !important;
}

.sge-search__toggle-icon {
	display: flex !important;
	width: 1.2rem !important;
	height: 1.2rem !important;
	color: inherit !important;
}

.sge-search__toggle-icon svg {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	fill: currentColor !important;
	color: inherit !important;
}

/*
 * Icon layout: expand the search box to the LEFT of the icon
 * inside the header (avoids sticky overflow:hidden clipping).
 */
.sge-search--icon .sge-search__panel {
	position: static;
	z-index: 1;
	width: min(22rem, calc(100vw - 6.5rem));
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.sge-search--icon .sge-search__panel[hidden] {
	display: none !important;
}

.sge-search--icon.is-open .sge-search__panel {
	display: block !important;
}

.sge-search__form {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
	margin: 0;
	padding: 0.2rem;
	border: 1px solid var(--sge-search-border);
	background: var(--sge-search-surface);
}

.sge-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.35rem;
	margin: 0;
	padding: 0 0.85rem;
	border: 1px solid transparent;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	caret-color: #ffffff;
	font-family: "DM Sans", sans-serif;
	font-size: 0.9375rem;
	line-height: 1.4;
	appearance: none;
	box-shadow: none;
}

.sge-search__input::placeholder {
	color: rgba(255, 255, 255, 0.72) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
	opacity: 1 !important;
}

.sge-search__input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.72) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
	opacity: 1 !important;
}

.sge-search__input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.72) !important;
	opacity: 1 !important;
}

.sge-search__input:focus {
	outline: none;
	border-color: var(--sge-search-accent);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Beat theme/Elementor form input color overrides in the header */
.elementor-99 .sge-search__input,
.elementor-99 .sge-search__input:focus,
.elementor-99 .sge-search input[type="search"],
.elementor-99 .sge-search input[type="search"]:focus {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	caret-color: #ffffff !important;
}

.elementor-99 .sge-search__input::placeholder,
.elementor-99 .sge-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.72) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
	opacity: 1 !important;
}

.sge-search__submit,
.sge-search__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	height: 2.35rem !important;
	min-height: 2.35rem !important;
	margin: 0 !important;
	border: 1px solid var(--sge-search-border) !important;
	border-radius: 0 !important;
	background: rgba(255, 255, 255, 0.1) !important;
	background-image: none !important;
	color: var(--sge-search-text) !important;
	font-family: "DM Sans", sans-serif !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	text-shadow: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sge-search__submit {
	width: auto !important;
	min-width: 4.75rem !important;
	padding: 0 0.85rem !important;
	background: var(--sge-search-accent) !important;
	border-color: var(--sge-search-accent) !important;
	color: #1a1a1a !important;
}

.sge-search__close {
	width: 2.35rem !important;
	min-width: 2.35rem !important;
	padding: 0 !important;
	text-transform: none !important;
	font-weight: 400 !important;
}

.sge-search__submit:hover,
.sge-search__submit:focus,
.sge-search__submit:focus-visible,
.sge-search__close:hover,
.sge-search__close:focus,
.sge-search__close:focus-visible {
	color: #1a1a1a !important;
	background: var(--sge-search-accent) !important;
	border-color: var(--sge-search-accent) !important;
	outline: none;
	opacity: 1 !important;
	box-shadow: none !important;
}

.sge-search__submit-label {
	display: inline-block;
	white-space: nowrap;
}

.sge-search__close span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	font-size: 1.45rem;
	line-height: 1;
	font-weight: 400;
	text-transform: none;
}

/* Inline layout (pages / content) */
.sge-search--inline {
	display: block;
	width: 100%;
	max-width: 28rem;
}

.sge-search--inline .sge-search__form {
	padding: 0.35rem;
	border: 1px solid rgba(26, 26, 26, 0.14);
	background: #ffffff;
}

.sge-search--inline .sge-search__input {
	border: 0;
	background: transparent;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	caret-color: #1a1a1a;
}

.sge-search--inline .sge-search__input::placeholder {
	color: rgba(26, 26, 26, 0.55) !important;
	-webkit-text-fill-color: rgba(26, 26, 26, 0.55) !important;
}

.sge-search--inline .sge-search__submit {
	border-color: rgba(26, 26, 26, 0.14) !important;
	background: #1a1a1a !important;
	color: #ffffff !important;
}

.sge-search--inline .sge-search__submit:hover,
.sge-search--inline .sge-search__submit:focus-visible {
	background: var(--sge-search-accent) !important;
	border-color: var(--sge-search-accent) !important;
	color: #1a1a1a !important;
}

/* Header chrome — beat theme global `button { background: accent }` */
.elementor-99 .sge-search__toggle,
.elementor-99 .sge-search__toggle:hover,
.elementor-99 .sge-search__toggle:focus,
.elementor-99 .sge-search__toggle:focus-visible,
.elementor-99 .sge-search.is-open .sge-search__toggle {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.elementor-99 .sge-search__toggle,
.elementor-99 .sge-search__toggle-icon,
.elementor-99 .sge-search__toggle-icon svg,
.elementor-99 .sge-search__toggle-icon svg path {
	color: #ffffff !important;
	fill: #ffffff !important;
}

.elementor-99 .sge-search__toggle:hover,
.elementor-99 .sge-search__toggle:focus-visible,
.elementor-99 .sge-search.is-open .sge-search__toggle,
.elementor-99 .sge-search__toggle:hover .sge-search__toggle-icon,
.elementor-99 .sge-search__toggle:hover .sge-search__toggle-icon svg,
.elementor-99 .sge-search__toggle:hover .sge-search__toggle-icon svg path,
.elementor-99 .sge-search.is-open .sge-search__toggle-icon,
.elementor-99 .sge-search.is-open .sge-search__toggle-icon svg,
.elementor-99 .sge-search.is-open .sge-search__toggle-icon svg path {
	color: var(--sge-search-accent, #f2e90d) !important;
	fill: var(--sge-search-accent, #f2e90d) !important;
}

.elementor-99 .elementor-element-5acfe3e .elementor-widget-container,
.elementor-99 .elementor-element-c9ca6a5 .elementor-widget-container,
.elementor-99 .elementor-widget-sge_search .elementor-widget-container,
.elementor-99 .elementor-widget-fibosearch .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

.elementor-99 .elementor-element-c9ca6a5 .sge-search,
.elementor-99 .elementor-element-5acfe3e .sge-search,
.elementor-99 .elementor-element-11c033b .sge-search {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* When search is open, stop sticky headers from clipping the field */
html.sge-search-open body:not(.elementor-editor-active) .elementor-99 .elementor-element.elementor-element-6c9c502.vamtam-sticky-header:not(.vamtam-sticky-header--spacer),
html.sge-search-open body:not(.elementor-editor-active) .elementor-99 .elementor-element.elementor-element-6c9c502.vamtam-sticky-header--spacer,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-50474d8,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-c1d5ea2,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-83e44de,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-300c7d8,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-12b7709,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-12b7709 > .e-con-inner {
	overflow: visible !important;
	max-height: none !important;
}

html.sge-search-open .elementor-99 .elementor-element.elementor-element-c1d5ea2,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-83e44de,
html.sge-search-open .elementor-99 .elementor-element.elementor-element-5acfe3e {
	max-width: none !important;
	pointer-events: auto !important;
}

/* Mobile — same UX as desktop: icon opens search field + Search button */
@media (max-width: 1024px) {
	.elementor-99 .elementor-element.elementor-element-83e44de,
	.elementor-99 .elementor-element.elementor-element-5acfe3e,
	.elementor-99 .elementor-element.elementor-element-5acfe3e .elementor-widget-container,
	.elementor-99 .elementor-element.elementor-element-5acfe3e .sge-search,
	.elementor-99 .elementor-element.elementor-element-5acfe3e .sge-search__toggle {
		pointer-events: auto !important;
		touch-action: manipulation !important;
		z-index: 30 !important;
	}

	.elementor-99 .elementor-element.elementor-element-83e44de {
		z-index: 30 !important;
	}

	/* Keep logo from covering the search tap target */
	.elementor-99 .elementor-element.elementor-element-0f6fc29 {
		right: calc(3.75rem + env(safe-area-inset-right, 0px)) !important;
		z-index: 1 !important;
	}

	.sge-search--icon.is-open {
		position: relative;
		transform: none;
		width: auto;
		z-index: 30;
	}

	body > .sge-search__panel[data-sge-owner] {
		display: block !important;
		box-sizing: border-box;
		margin: 0;
	}

	body > .sge-search__panel[data-sge-owner][hidden] {
		display: none !important;
	}

	body > .sge-search__panel[data-sge-owner] .sge-search__form {
		padding: 0.35rem;
		border: 1px solid rgba(255, 255, 255, 0.22);
		background: #1a1a1a;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
	}

	.sge-search__input {
		font-size: 16px; /* avoid iOS zoom */
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
		caret-color: #ffffff !important;
	}

	.sge-search__input::placeholder {
		color: rgba(255, 255, 255, 0.72) !important;
		-webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
	}

	.sge-search__submit {
		min-width: 4.5rem !important;
		padding: 0 0.75rem !important;
	}
}
