/* Индикатор ожидания (js/preloader.js): полоса вверху экрана и спиннер на нажатой кнопке. */
.mp-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000; /* выше шапки и окон Fancybox */
	height: 3px;
	overflow: hidden;
	pointer-events: none;
	background: rgba(3, 81, 164, 0.15);
	opacity: 0;
	transition: opacity .2s;
}
.mp-progress.is-active {
	opacity: 1;
}
.mp-progress::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: #0351a4;
	animation: mp-progress 1.1s ease-in-out infinite;
}
@keyframes mp-progress {
	from { transform: translateX(-100%); }
	to { transform: translateX(250%); }
}
html.mp-waiting,
html.mp-waiting body {
	cursor: progress;
}

/* Кнопка, по которой ждём ответа: содержимое скрыто, по центру спиннер цвета её текста */
.mp-busy {
	cursor: progress !important;
	pointer-events: none;
	color: transparent !important;
}
.mp-busy--rel {
	position: relative;
}
.mp-busy > :not(.mp-spinner),
.mp-busy::before,
.mp-busy::after {
	visibility: hidden;
}
.mp-busy > .mp-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid var(--mp-spin-color, currentColor);
	border-right-color: transparent;
	border-radius: 50%;
	animation: mp-spin .7s linear infinite;
	visibility: visible;
}
.mp-busy--input {
	color: inherit !important;
	opacity: .6;
}
@keyframes mp-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.mp-progress::before {
		width: 100%;
		animation: mp-pulse 1.4s ease-in-out infinite;
	}
	.mp-busy > .mp-spinner {
		animation-duration: 1.6s;
	}
	@keyframes mp-pulse {
		50% { opacity: .35; }
	}
}
