/* Smooth Back To Top Button */

#sbtt-button {
	position: fixed;
	bottom: var(--sbtt-bottom, 24px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sbtt-size, 48px);
	height: var(--sbtt-size, 48px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sbtt-bg, #FB9905);
	color: var(--sbtt-icon, #ffffff);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, filter 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

#sbtt-button.sbtt-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Keep the colours the admin chose, even if the theme restyles buttons. */
#sbtt-button:hover,
#sbtt-button:focus,
#sbtt-button:active {
	background: var(--sbtt-bg, #FB9905);
	color: var(--sbtt-icon, #ffffff);
}

#sbtt-button.sbtt-visible:hover {
	filter: brightness(0.92);
	transform: translateY(-3px);
}

#sbtt-button:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

#sbtt-button svg {
	display: block;
	pointer-events: none;
}

@media (max-width: 767px) {
	#sbtt-button.sbtt-hide-mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#sbtt-button {
		transition: none;
	}
}
