/* ==========================================================================
   Back to top  ·  custom-back-to-top
   Mirrors .to-top from cp-all-designer/css/app.css:2781-2788.
   ========================================================================== */

.custom-back-to-top {
	position: fixed;
	right: 26px;
	bottom: 26px;
	z-index: 900;
	display: grid;
	place-items: center;
	border: 0;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(206, 41, 41, 0.36); /* app.css:2784 */
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            opacity          300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform        300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow       300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Shown once JS adds this class — app.css:2787 */
.custom-back-to-top__is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.custom-back-to-top:hover {
	transform: translateY(-3px); /* app.css:2788 */
}

/* In the Elementor editor the button is always visible so it can be styled. */
.elementor-editor-active .custom-back-to-top {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}
