/**
 * Плавающие кнопки: «Вверх» (справа) и WhatsApp (слева).
 * Визуально по образцу fasadpanel.kz.
 */

.top-button {
	position: fixed;
	z-index: 1020;
	right: 5%;
	bottom: 30px;
	opacity: 0;
	pointer-events: none;
	-webkit-transition: opacity 1s;
	-o-transition: opacity 1s;
	transition: opacity 1s;
}

.top-button.visible {
	opacity: 1;
	pointer-events: auto;
}

.top-button > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0.25rem;
	background-color: #ff4148;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.top-button > .btn:hover,
.top-button > .btn:focus {
	background-color: #e6363d;
	color: #fff;
}

.top-button > .btn i {
	font-size: 18px;
	line-height: 1;
}

.whatsup {
	position: fixed;
	left: 100px;
	bottom: 50px;
	display: grid;
	align-items: center;
	justify-content: center;
	width: 55px;
	height: 55px;
	border-radius: 123px;
	background-color: #62bd19;
	animation: pulse-animation 2s infinite;
	z-index: 1020;
	text-decoration: none;
	box-sizing: border-box;
}

.whatsup:hover,
.whatsup:focus {
	background-color: #57a816;
	text-decoration: none;
}

.whatsup svg {
	display: block;
	width: 33px;
	height: 33px;
}

.pulse {
	animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
	}
	100% {
		box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
	}
}

@media (max-width: 600px) {
	.whatsup {
		bottom: 15px;
		left: 15px;
	}

	.top-button {
		right: 15px;
		bottom: 15px;
	}
}

#wemake-to-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}
