/* DF_MOBILE_SCROLL_TOP_V1 */

#dfMobileScrollTop {
    position: fixed;
    left: 15px;
    bottom: calc(23px + env(safe-area-inset-bottom, 0px));
    z-index: 950;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 15px;

    background: linear-gradient(135deg,#263d5b,#14243c);
    color: #fff;

    box-shadow: 0 8px 24px rgba(12,27,45,.28);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

#dfMobileScrollTop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#dfMobileScrollTop svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dfMobileScrollTop:hover {
    background: linear-gradient(135deg,#cf3346,#9f2435);
}

@media (min-width: 768px) {
    #dfMobileScrollTop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dfMobileScrollTop {
        transition: none;
    }
}

/* DF_MOBILE_SCROLL_TOP_RIGHT_GOLD_V2 */
@media (max-width: 767px) {

    #dfMobileScrollTop {
        left: auto !important;
        right: 12px !important;

        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;

        width: 47px !important;
        height: 47px !important;

        border-radius: 15px !important;
        border: 1px solid rgba(255,255,255,.4) !important;

        background: linear-gradient(
            135deg,
            #ffb743 0%,
            #ed9026 55%,
            #c96b16 100%
        ) !important;

        color: #ffffff !important;

        box-shadow:
            0 7px 18px rgba(200,111,20,.30),
            inset 0 1px 0 rgba(255,255,255,.28) !important;
    }

    #dfMobileScrollTop:hover {
        background: linear-gradient(
            135deg,
            #ffc865,
            #e98319
        ) !important;
    }

    #dfMobileScrollTop svg {
        width: 23px !important;
        height: 23px !important;
        stroke-width: 2.8 !important;
    }
}
