/* Back to top */

.bsp-back-to-top {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bsp-btt-size, 48px);
	height: var(--bsp-btt-size, 48px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bsp-btt-bg, #e91e63);
	color: var(--bsp-btt-icon, #ffffff);
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease,
		background-color 0.2s ease;
}

.bsp-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bsp-back-to-top:hover,
.bsp-back-to-top:focus-visible {
	filter: brightness(1.05);
	outline: none;
}

.bsp-back-to-top:focus-visible {
	box-shadow:
		0 8px 24px rgba(17, 24, 39, 0.18),
		0 0 0 3px rgba(233, 30, 99, 0.25);
}

.bsp-back-to-top__icon {
	display: block;
}

@media (max-width: 575px) {
	.bsp-back-to-top {
		right: 16px;
	}
}
