/* Back-to-top floating button. */
.td_scroll_up {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0c7ed9;
    box-shadow: 0 1px 5px 1px rgba(22, 22, 22, .2);
    cursor: pointer;
    outline: none;
    transform: scale(0);
    transition: transform .4s ease;
}

.td_scroll_up img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.td_scroll_up::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    content: "";
    pointer-events: none;
    transform: scale(.6);
    animation: td-scroll-pulse 3s cubic-bezier(.28, 1.84, .55, -.11) infinite;
}

@keyframes td-scroll-pulse {
    50% {
        transform: scale(.95);
    }
}

.td_scroll_up.is-visible,
.td_scroll_up.td_scroll_up_show {
    transform: scale(1);
}

.td_scroll_up:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 1px 5px 1px rgba(22, 22, 22, .2);
}

html.td_nav_open .td_scroll_up,
html.nav-open .td_scroll_up {
    pointer-events: none;
    transform: scale(0);
}
