/*--------------------------------------------------------------
    Totop
--------------------------------------------------------------*/

    #back-to-top {
        position: fixed;
        display: none;
        text-decoration: none;
        bottom: 20px;
        right: 20px;
        overflow: hidden;
        width: 80px;
        height: 80px;
        border: none;
        text-indent: 100%;
        z-index: 9;
        text-indent: -9999px;
        border-radius: var(--wdtRadius_Full);
        -webkit-border-radius: var(--wdtRadius_Full);
        transition: var(--wdtAltTransition);
        -webkit-transition: var(--wdtAltTransition);
    }

    .back-to-top-icon {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: 50%;
        transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        color: var(--wdtAccentTxtColor);
        -webkit-transition: all .3s linear;
        -moz-transition: all .3s linear;
        -o-transition: all .3s linear;
        -ms-transition: all .3s linear;
        transition: all .3s linear;
        text-indent: 0;
        text-align: center;
        font-size: 20px;
        line-height: 1;
    }

    .back-to-top-icon i:before {
        margin: 0;
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 80px;
        height: 80px;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 65' style='enable-background:new 0 0 50 65;' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M50,43.2L25.1,21.4L0.2,43.2L25.1,65L50,43.2z'/%3E%3Cpath d='M24.8,15.2l-16.1,14L0,21.6L24.8,0l24.7,21.6l-8.7,7.6L24.8,15.2z'/%3E%3C/g%3E%3C/svg%3E");
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 28px;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 65' style='enable-background:new 0 0 50 65;' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M50,43.2L25.1,21.4L0.2,43.2L25.1,65L50,43.2z'/%3E%3Cpath d='M24.8,15.2l-16.1,14L0,21.6L24.8,0l24.7,21.6l-8.7,7.6L24.8,15.2z'/%3E%3C/g%3E%3C/svg%3E");
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: 28px;
        background: var(--wdtHeadAltColor);
}

    /* #back-to-top:hover .back-to-top-icon {
        margin-top: -4px;
    } */

    #back-to-top:after {
        background-color: var(--wdtAccentTxtColor);
        content: "";
        display: block;
        height: 15px;
        margin: 0 auto;
        opacity: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        text-align: center;
        text-indent: 0;
        width: 0;
        -webkit-transform: translate(-50%, 50%);
        transform: translate(-50%, 50%);
        -webkit-transition: all .3s linear;
        transition: all .3s linear;
    }

    #back-to-top:hover:after {
        margin-top: 2px;
        opacity: 1;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    #back-to-top:active,
    #back-to-top:focus {
        outline: none;
    }


/*--------------------------------------------------------------
    Accents
--------------------------------------------------------------*/


    /* Primary */
    #back-to-top { background: linear-gradient(109deg, var(--wdtPrimaryColor), var(--wdtTertiaryColor)); }
    #back-to-top:hover {
        transform: translate(0, -3px);
        box-shadow: 3px -3px 7px 0 var(--wdtTertiaryColor), -3px 3px 7px 0 var(--wdtPrimaryColor);
    }

/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

    @media screen and (min-width: 1541px){
        #back-to-top{
            display: none !important;
        }
    }

    @media only screen and (max-width: 1280px) {

        .nav-is-visible #back-to-top {
            opacity: 0;
        }
    }
    @media screen and (max-width: 479px){
        .back-to-top-icon i:before,
        #back-to-top{
            width: 65px;
            height: 65px;
        }
        .back-to-top-icon i:before{
            -webkit-mask-size: 24px;
            mask-size: 24px;
        }
    }