/*
 * electropastyx.ru — mobile product search, release 2026-08-28-v3.
 * The mobile interface is isolated from the desktop header and is enabled
 * only at widths up to 767px.
 */

#electropastyx-mobile-search-source,
.mobile-search-toggle,
.mobile-search-panel {
	display: none;
}

@media screen and (max-width: 767px) {
	/* Bootstrap's .visible-xs-block forces display:block!important here. */
	.h_menu2 .menu_header {
		position: relative;
		display: flex !important;
		align-items: stretch;
		width: 100%;
	}

	.h_menu2 .menu_header::before,
	.h_menu2 .menu_header::after {
		display: none !important;
		content: none !important;
	}

	.h_menu2 .menu_toggle {
		display: flex !important;
		align-items: center;
		flex: 1 1 auto;
		min-width: 0;
		width: auto !important;
	}

	.h_menu2 .mobile-search-toggle {
		position: relative;
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 52px;
		align-self: stretch;
		min-width: 52px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: #fff;
		line-height: 1;
		text-align: center;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
		-webkit-tap-highlight-color: transparent;
	}

	.h_menu2 .mobile-search-toggle:hover,
	.h_menu2 .mobile-search-toggle:focus,
	.h_menu2 .mobile-search-toggle[aria-expanded="true"] {
		background: rgba(0, 0, 0, 0.12);
		color: #fff;
		outline: 0;
	}

	.h_menu2 .mobile-search-toggle:focus-visible {
		box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
	}

	.mobile-search-toggle__icon,
	.mobile-search-fallback__icon {
		position: relative;
		display: inline-block;
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
		vertical-align: middle;
	}

	.mobile-search-toggle__icon::before,
	.mobile-search-fallback__icon::before {
		position: absolute;
		left: 1px;
		top: 1px;
		width: 11px;
		height: 11px;
		border: 2px solid currentColor;
		border-radius: 50%;
		content: "";
	}

	.mobile-search-toggle__icon::after,
	.mobile-search-fallback__icon::after {
		position: absolute;
		right: 1px;
		bottom: 1px;
		width: 8px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		content: "";
		transform: rotate(45deg);
		transform-origin: center;
	}

	.mobile-search-toggle[aria-expanded="true"] .mobile-search-toggle__icon::before,
	.mobile-search-toggle[aria-expanded="true"] .mobile-search-toggle__icon::after {
		left: 0;
		top: 8px;
		right: auto;
		bottom: auto;
		width: 18px;
		height: 2px;
		border: 0;
		border-radius: 2px;
		background: currentColor;
	}

	.mobile-search-toggle[aria-expanded="true"] .mobile-search-toggle__icon::before {
		transform: rotate(45deg);
	}

	.mobile-search-toggle[aria-expanded="true"] .mobile-search-toggle__icon::after {
		transform: rotate(-45deg);
	}

	.h_menu2 .mobile-search-panel {
		position: relative;
		display: none;
		z-index: 120;
		clear: both;
		width: 100%;
		padding: 10px 12px 12px;
		border-bottom: 1px solid #e8e8e8;
		background: #fff;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		box-sizing: border-box;
		overflow: visible;
	}

	.h_menu2 .mobile-search-panel[hidden] {
		display: none !important;
	}

	.h_menu2 .mobile-search-panel.is-open:not([hidden]) {
		display: block !important;
	}

	.h_menu2 .mobile-search-content,
	.h_menu2 .mobile-search-panel .js-searchpro__field-wrapper,
	.h_menu2 .mobile-search-panel .searchpro__field-wrapper,
	.h_menu2 .mobile-search-panel .js-searchpro__field,
	.h_menu2 .mobile-search-panel .searchpro__field {
		position: relative;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		text-align: left;
	}

	.h_menu2 .mobile-search-panel .searchpro__field,
	.h_menu2 .mobile-search-panel .searchpro__field * {
		box-sizing: border-box;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-container {
		display: flex;
		align-items: stretch;
		width: 100%;
		min-height: 42px;
		border: 1px solid #cfd4da;
		border-radius: 6px;
		background: #fff;
		box-shadow: none;
		overflow: visible;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-container.js-searchpro__field-container--focus {
		border-color: #f2994a;
		box-shadow: 0 0 0 2px rgba(242, 153, 74, 0.18);
	}

	.h_menu2 .mobile-search-panel .searchpro__field-input-container {
		position: relative;
		display: block;
		flex: 1 1 auto;
		min-width: 0;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-input {
		display: block;
		min-width: 0;
		width: 100% !important;
		height: 42px !important;
		padding: 0 42px 0 13px !important;
		border: 0 !important;
		background: transparent;
		box-shadow: none !important;
		color: #333;
		font-size: 16px !important;
		line-height: 42px !important;
		-webkit-appearance: none;
		appearance: none;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-categories-container {
		display: none !important;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-button-container {
		display: block !important;
		flex: 0 0 42px;
		width: 42px;
		height: 42px;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-button {
		position: relative;
		display: block !important;
		width: 42px;
		height: 42px;
		padding: 0 !important;
		border-radius: 0 5px 5px 0;
		background: #f2994a !important;
		color: #fff !important;
		font-size: 0 !important;
		text-indent: -9999px;
		cursor: pointer;
		overflow: hidden;
	}

	.h_menu2 .mobile-search-panel .searchpro__field-button::before {
		position: absolute;
		left: 12px;
		top: 11px;
		width: 11px;
		height: 11px;
		border: 2px solid currentColor;
		border-radius: 50%;
		content: "";
	}

	.h_menu2 .mobile-search-panel .searchpro__field-button::after {
		position: absolute;
		left: 24px;
		top: 24px;
		width: 7px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		content: "";
		transform: rotate(45deg);
	}

	.h_menu2 .mobile-search-panel .searchpro__field-clear-button {
		right: 0;
		width: 40px;
	}

	.h_menu2 .mobile-search-panel .js-searchpro__helper,
	.h_menu2 .mobile-search-panel .js-searchpro__dropdown,
	.h_menu2 .mobile-search-panel .searchpro__dropdown {
		left: 0 !important;
		right: 0 !important;
		z-index: 10020 !important;
		width: 100% !important;
		max-width: 100% !important;
		text-align: left;
	}

	.h_menu2 .mobile-search-panel .searchpro__dropdown {
		max-height: 60vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.h_menu2 .mobile-search-fallback {
		position: relative;
		display: flex;
		width: 100%;
		margin: 0;
	}

	.h_menu2 .mobile-search-fallback input[type="search"] {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
		height: 42px;
		padding: 0 12px;
		border: 1px solid #cfd4da;
		border-right: 0;
		border-radius: 6px 0 0 6px;
		background: #fff;
		box-shadow: none;
		color: #333;
		font-size: 16px;
		line-height: 42px;
		-webkit-appearance: none;
		appearance: none;
	}

	.h_menu2 .mobile-search-fallback input[type="search"]:focus {
		position: relative;
		z-index: 1;
		border-color: #f2994a;
		box-shadow: 0 0 0 2px rgba(242, 153, 74, 0.18);
		outline: 0;
	}

	.h_menu2 .mobile-search-fallback button {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 42px;
		width: 42px;
		height: 42px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0 6px 6px 0;
		background: #f2994a;
		color: #fff;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.h_menu2 .mobile-search-fallback button:hover,
	.h_menu2 .mobile-search-fallback button:focus {
		filter: brightness(0.95);
		outline: 0;
	}
}
