.site-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 101;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: #fff;
    cursor: pointer;
    background: #888;
    border: 0;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}

.site-back-to-top::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #888;
}

.site-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-back-to-top svg {
    position: relative;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-back-to-top:focus-visible {
    outline: 2px solid #5f8318;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .site-back-to-top {
        right: 16px;
        bottom: calc(var(--site-bottom-menu-height, 70px) + 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-back-to-top {
        transition: none;
    }
}
