button.site-back-to-top {
    display: inline-flex;
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1000;
    min-height: 48px;
    margin: 0;
    padding: 10px 18px;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #3f7d18;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
    color: #fff;
    cursor: pointer;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    text-transform: none;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
    visibility: hidden;
}

button.site-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

button.site-back-to-top:hover,
button.site-back-to-top:focus {
    border-color: #fff;
    background: #2f5f12;
    color: #fff;
}

button.site-back-to-top:focus-visible {
    outline: 3px solid #1f2a44;
    outline-offset: 3px;
}

@media screen and (max-width: 640px) {
    button.site-back-to-top {
        right: 14px;
        bottom: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        min-height: 46px;
        padding: 9px 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    button.site-back-to-top {
        transition: none;
    }
}
