:root {
	/* Scroll button appearance */
	--scroll-page-bg-color: rgba(68, 106, 103, 0.45);
	--scroll-page-bg-hover-color: #344544;
	--scroll-page-arrow-color: #fefbf5;
	--scroll-page-border-radius: 3px;
	--scroll-page-z-index: 9999;

	/* Scroll button arrow icons */
	--scroll-page-arrow-up: "\f106";
	--scroll-page-arrow-down: "\f107";

	/* Positioning */
	--scroll-page-position-x: 25px;
	--scroll-page-position-y: 25px;

	/* Size and spacing */
	--scroll-page-font-size: 20px;
	--scroll-page-icon-width: 20px;
	--scroll-page-icon-height: 20px;
	--scroll-page-icon-padding: 10px;
}

.scroll-page {
	font-size: var(--scroll-page-font-size);
	color: var(--scroll-page-arrow-color);
	background-color: transparent !important; /* overrides leftover .scroll-page rule in the main style's own stylesheet.css */
	opacity: 0;
	position: fixed;
	z-index: var(--scroll-page-z-index);
	right: var(--scroll-page-position-x);
	bottom: var(--scroll-page-position-y);
	visibility: hidden;
	cursor: pointer;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-page.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-page i {
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, sans-serif;
	font-size: inherit;
	font-weight: 900;
	font-style: normal;
	background-color: var(--scroll-page-bg-color);
	border-radius: var(--scroll-page-border-radius);
	color: var(--scroll-page-arrow-color);
	display: flex;
	justify-content: center;
	align-items: center;
	width: var(--scroll-page-icon-width);
	height: var(--scroll-page-icon-height);
	padding: var(--scroll-page-icon-padding);
}

.scroll-page i:before {
	padding: 0 !important; /* override style icon padding */
}

.scroll-page .scroll-up {
	margin-bottom: 5px;
}

.scroll-page .scroll-down {
	margin-top: 5px;
}

.scroll-page .scroll-up:before {
	content: var(--scroll-page-arrow-up);
}

.scroll-page .scroll-down:before {
	content: var(--scroll-page-arrow-down);
}

.scroll-page i.scroll-up:hover,
.scroll-page i.scroll-down:hover {
	background-color: var(--scroll-page-bg-hover-color);
}

.rtl .scroll-page {
	right: auto;
	left: var(--scroll-page-position-x);
}

.rtl .scroll-page i {
	padding-inline: var(--scroll-page-icon-padding) !important;
}

@media only screen and (max-width: 800px), only screen and (max-device-width: 800px) {
	.scroll-page {
		display: none !important; /* force to not display on small/mobile */
	}
}
