/* Компактная кнопка «наверх», на одной линии с куратором (bottom: 20px) */

body .scroll-up.tmk-scroll-up {
	position: fixed;
	z-index: 999;
	right: 20px;
	bottom: 20px;
	left: auto;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #23838b !important;
	color: #fff;
	line-height: 0;
	box-shadow: 0 4px 14px rgba(16, 58, 62, 0.22);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

body .scroll-up.tmk-scroll-up .tmk-scroll-up__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body .scroll-up.tmk-scroll-up svg {
	display: block;
}

body .scroll-up.tmk-scroll-up:hover,
body .scroll-up.tmk-scroll-up:focus {
	background: #1a6b72 !important;
	color: #fff;
	transform: scale(1.06);
}

body .scroll-up.tmk-scroll-up:focus {
	outline: none;
}

body .scroll-up.tmk-scroll-up:focus-visible {
	outline: 2px solid #134b52;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	body .scroll-up.tmk-scroll-up {
		right: 16px;
		bottom: calc(22px + env(safe-area-inset-bottom));
		width: 48px;
		height: 48px;
	}

	.ays-assistant-chatbox .ays-assistant-chatbox-closed-view {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .scroll-up.tmk-scroll-up,
	body .scroll-up.tmk-scroll-up:hover,
	body .scroll-up.tmk-scroll-up:focus {
	transition: none;
		transform: none;
	}

}