/**
 * WeMake: кнопка «Вверх» (как на fasadpanel.kz)
 */
.top-button {
	position: fixed;
	z-index: 1020;
	right: 5%;
	bottom: 30px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1s;
}

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

.top-button > .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 9px 24px;
	border: 0;
	border-radius: 0.25rem;
	background-color: #6c6eed;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-button > .btn:hover,
.top-button > .btn:focus {
	background-color: #5a5cd9;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.top-button > .btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.top-button > .btn svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

#to-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

@media (max-width: 767px) {
	.top-button {
		right: 16px;
		bottom: 20px;
	}

	.top-button > .btn {
		padding: 10px 18px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.top-button {
		right: 24px;
		bottom: 24px;
	}
}

/* Админ-бар WordPress */
@media (max-width: 782px) {
	body.admin-bar .top-button {
		bottom: 56px;
	}
}

@media (min-width: 783px) {
	body.admin-bar .top-button {
		bottom: 46px;
	}
}
