/* Back to top — minimal */
.ecim-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(65, 77, 88, 0.14);
	border-radius: 10px;
	cursor: pointer;
	color: #414d58;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease,
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}

.ecim-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.ecim-to-top:hover,
.ecim-to-top:focus-visible {
	color: #1d89e4;
	border-color: rgba(29, 137, 228, 0.35);
	background: #fff;
	outline: none;
}

.ecim-to-top:focus-visible {
	box-shadow: 0 0 0 3px rgba(29, 137, 228, 0.2);
}

.ecim-to-top:active {
	transform: translateY(1px);
}

.ecim-to-top__icon {
	width: 16px;
	height: 16px;
	display: block;
}

@media (max-width: 767px) {
	.ecim-to-top {
		right: 14px;
		bottom: 14px;
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecim-to-top {
		transition: opacity 0.15s ease, visibility 0.15s ease;
		transform: none;
	}

	.ecim-to-top.is-visible,
	.ecim-to-top:active {
		transform: none;
	}
}
