@use '../utils' as *;

/*----------------------------------------*/
/* Back to top 
/*----------------------------------------*/
.backtotop-wrap {
	position: fixed;
	bottom: 30px;
	right: 30px;
	height: 46px;
	width: 46px;
	cursor: pointer;
	display: block;
	border-radius: 50px;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	-webkit-transition: all 400ms linear;
	-o-transition: all 400ms linear;
	transition: all 400ms linear;
	background: var(--td-primary);
	@media #{$xxs} {
		bottom: 20px;
		right: 20px;
	} 
	&.active-progress {
		opacity: 1;
		visibility: visible;
		transform: translateY(0px);
	}
	&::after {
		position: absolute;
		font-family: var(--td-ff-fontawesome);
		content: "\f062";
		text-align: center;
		line-height: 46px;
		font-size: 16px;
		font-weight: 400;
		color: var(--td-white);
		left: 0;
		top: 0;
		height: 46px;
		width: 46px;
		cursor: pointer;
		display: block;
		z-index: 1;
		-webkit-transition: all 400ms linear;
		-o-transition: all 400ms linear;
		transition: all 400ms linear;
	}
	svg {
		path {
			fill: none;
		}
		&.backtotop-circle {
			path {
				stroke: #ccc;
				stroke-width: 0;
				-webkit-box-sizing: border-box;
				box-sizing: border-box;
				-webkit-transition: all 400ms linear;
				-o-transition: all 400ms linear;
				transition: all 400ms linear;
			}
		}
	}
	&.warning-backtotop {
		background-color: #FF8112;
	}
	&.rock {
		background: linear-gradient(135deg, var(--td-primary) 0%, var(--td-tertiary) 100%);
		box-shadow: inset -4px 4px 10px rgba($white, $alpha: 0.5), inset 4px -4px 10px rgba($white, $alpha: 0.5);
	} 
}