/**
 * Overlay búsqueda móvil Ferrepuerto
 */
@media screen and (max-width: 901px) {
	/* Ocultar el formulario del tema mientras el overlay está abierto (evita botones “fantasma”) */
	html.fpbm-search-active .l-header .w-search.active .w-search-form {
		visibility: hidden !important;
		pointer-events: none !important;
		opacity: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}

	.header_hor .w-search.layout_simple.elm_in_header.active .w-search-form,
	.header_hor .w-search.layout_modern.elm_in_header.active .w-search-form {
		height: 100% !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !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.2);
	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.5rem;
}

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

.fpbm-overlay__submit {
	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;
	background: var(--color-content-primary, #1e73be) !important;
	color: #fff !important;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

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

.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;
	background: transparent;
	color: #333;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	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;
}
