.back-to-top.active {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 0;
    bottom: 20px;
    width: 65px;
    height: 55px;
    border-radius: 55px 0 0 55px;
    padding: 6px 5px 4px 5px;
    text-align: left;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    -webkit-transform: translateX(130%);
    -ms-transform: translateX(130%);
    transform: translateX(130%);
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    background-color: var(--ygency-primary-color);
}

@media only screen and (max-width: 767px) {
    .back-to-top:not(.show-on-mobile) {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .back-to-top:not(.show-on-mobile) {
        display: none;
    }
}

.back-to-top i {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    border-radius: 45px;
    color: var(--ygency-dark-color);
    background-color: var(--ygency-secondary-color);
    z-index: 1;
}

body.ygency-light-scheme .back-to-top i {
    color: var(--ygency-headline-color);
    background-color: var(--ygency-white-color);
}


.back-to-top.active {
    /* slide back in + fade in */
    transform: translateX(0);
    opacity: 1;

    /* now it can be clicked */
    pointer-events: auto;
}

