.kc-back-to-top {
	--kc-btt-size: 52px;
	--kc-btt-offset: 24px;
	--kc-btt-bg: #c41e3a;
	--kc-btt-bg-hover: #a81831;
	--kc-btt-shadow: 0 10px 28px rgba(196, 30, 58, 0.28);

	position: fixed;
	right: var(--kc-btt-offset);
	bottom: var(--kc-btt-offset);
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--kc-btt-size);
	height: var(--kc-btt-size);
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--kc-btt-bg);
	color: #fff;
	box-shadow: var(--kc-btt-shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(16px) scale(0.92);
	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

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

.kc-back-to-top:hover,
.kc-back-to-top:focus-visible {
	background: var(--kc-btt-bg-hover);
	box-shadow: 0 14px 32px rgba(196, 30, 58, 0.34);
	outline: none;
}

.kc-back-to-top:focus-visible {
	box-shadow:
		0 0 0 3px #fff,
		0 0 0 6px rgba(196, 30, 58, 0.45),
		var(--kc-btt-shadow);
}

.kc-back-to-top__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.kc-back-to-top.is-scrolling {
	pointer-events: none;
}

@media (max-width: 767px) {
	.kc-back-to-top {
		--kc-btt-size: 46px;
		--kc-btt-offset: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kc-back-to-top {
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}
}
