/* ============================================================
   RAEES IMPORT & EXPORT
   BACK TO TOP - FINAL
   Path: /public_html/assets/css/components/back-to-top.css
   ============================================================ */


/* ============================================================
   BUTTON
   ============================================================ */

#backToTop,
.back-to-top {
    position: fixed !important;

    /* LEFT SIDE */
    left: 24px !important;
    right: auto !important;

    bottom: 24px !important;
    top: auto !important;

    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(201, 150, 74, 0.55) !important;
    border-radius: 50% !important;

    background: #d9a13d !important;
    color: #171410 !important;

    cursor: pointer !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    z-index: 999999 !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20),
        0 4px 12px rgba(201, 150, 74, 0.18) !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    overflow: hidden !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}


/* ============================================================
   ARROW
   ============================================================ */

#backToTop span,
.back-to-top span {
    position: static !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 0 2px 0 !important;

    color: inherit !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    text-align: center !important;

    transform: none !important;

    pointer-events: none !important;
}


/* Remove old pseudo arrows */

#backToTop::before,
#backToTop::after,
.back-to-top::before,
.back-to-top::after {
    content: none !important;
    display: none !important;
}


/* ============================================================
   HOVER
   ============================================================ */

#backToTop:hover,
.back-to-top:hover {
    background: #171410 !important;
    color: #d9a13d !important;

    border-color: #d9a13d !important;

    transform: translateY(-3px) !important;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.26),
        0 5px 15px rgba(201, 150, 74, 0.22) !important;
}


/* ============================================================
   ACTIVE
   ============================================================ */

#backToTop:active,
.back-to-top:active {
    transform: translateY(-1px) scale(0.96) !important;
}


/* ============================================================
   FOCUS
   ============================================================ */

#backToTop:focus,
.back-to-top:focus {
    outline: none !important;
}

#backToTop:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid rgba(217, 161, 61, 0.30) !important;
    outline-offset: 4px !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    #backToTop,
    .back-to-top {
        left: 20px !important;
        right: auto !important;
        bottom: 20px !important;

        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    #backToTop span,
    .back-to-top span {
        font-size: 21px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    #backToTop,
    .back-to-top {
        left: 16px !important;
        right: auto !important;
        bottom: 18px !important;

        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    #backToTop span,
    .back-to-top span {
        font-size: 20px !important;
        padding-bottom: 2px !important;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    #backToTop,
    .back-to-top {
        left: 14px !important;
        right: auto !important;
        bottom: 15px !important;

        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

}


/* ============================================================
   SAFE AREA
   ============================================================ */

@supports (bottom: env(safe-area-inset-bottom)) {

    #backToTop,
    .back-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }

    @media (max-width: 767px) {

        #backToTop,
        .back-to-top {
            bottom: calc(18px + env(safe-area-inset-bottom)) !important;
        }

    }

}