/**
 * Popup de búsqueda móvil Conduvent / Impreza
 */
@media screen and (max-width: 1280px) {
	/* En móvil/tablet se mantiene visible solo la lupa del header; el input nativo no se muestra. */
	.l-header .w-search.buscar,
	.l-header .w-search.buscador,
	.l-header .w-search.ush_search_1 {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: auto !important;
		min-width: 44px !important;
		height: 44px !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.l-header .w-search.buscar > .w-search-open,
	.l-header .w-search.buscador > .w-search-open,
	.l-header .w-search.ush_search_1 > .w-search-open {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		line-height: 44px !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		position: relative !important;
		z-index: 5 !important;
	}

	.l-header .w-search.buscar .w-search-form,
	.l-header .w-search.buscador .w-search-form,
	.l-header .w-search.ush_search_1 .w-search-form {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
		opacity: 0 !important;
		height: 0 !important;
		max-height: 0 !important;
		overflow: hidden !important;
	}

	/* Mientras el popup está abierto, el formulario nativo de Impreza queda oculto para evitar foco perdido y botones fantasma. */
	html.fpbm-search-active .l-header .w-search.active .w-search-form,
	html.fpbm-search-active .l-header .w-search.fpbm-opened .w-search-form,
	html.fpbm-search-active .l-header .w-search.buscar .w-search-form,
	html.fpbm-search-active .l-header .w-search.buscador .w-search-form {
		visibility: hidden !important;
		pointer-events: none !important;
		opacity: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}

	.fpbm-overlay {
		position: fixed;
		inset: 0;
		z-index: 10000050;
		display: none;
		pointer-events: none;
	}

	.fpbm-overlay.is-open {
		display: block;
		pointer-events: auto;
	}

	.fpbm-overlay__backdrop {
		position: absolute;
		inset: 0;
		z-index: 0;
		background: rgba(0, 0, 0, 0.5);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.fpbm-overlay__panel {
		position: relative;
		z-index: 2;
		width: 100%;
		background: var(--color-header-middle-bg, #fff);
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
		padding-top: env(safe-area-inset-top, 0);
		pointer-events: auto;
	}

	.fpbm-overlay__form {
		display: flex;
		align-items: center;
		margin: 0;
		padding: 0.75rem;
		gap: 0.5rem;
		min-height: 3.75rem;
	}

	.fpbm-overlay__input {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0.75rem 0.9rem;
		font-size: 16px !important;
		line-height: 1.35;
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: 4px;
		background: #fff;
		color: #000;
		-webkit-appearance: none;
		appearance: none;
		pointer-events: auto;
	}

	.fpbm-overlay__submit,
	.fpbm-overlay__close {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3rem;
		height: 3rem;
		margin: 0;
		padding: 0;
		border: none;
		border-radius: 4px;
		cursor: pointer;
		pointer-events: auto;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}

	.fpbm-overlay__submit {
		background: var(--color-content-primary, #1e73be) !important;
		color: #fff !important;
	}

	.fpbm-overlay__submit i {
		font-size: 1.15rem;
		pointer-events: none;
	}

	.fpbm-overlay__close {
		background: transparent;
		color: #333;
		font-size: 1.75rem;
		line-height: 1;
	}

	.fpbm-overlay__close span {
		pointer-events: none;
	}

	html.fpbm-search-active,
	html.fpbm-search-active body {
		overflow: hidden;
	}
}

@media screen and (min-width: 1281px) {
	.fpbm-overlay {
		display: none !important;
	}
}
