.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #b8d035;
    color: #4d5152;
    font-size: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    color: #4d5152;
    filter: brightness(1.1);
}

.scroll-to-top:active {
    filter: brightness(0.95);
}

.scroll-to-top:focus-visible {
    outline: 2px solid #4d5152;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .scroll-to-top {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 34px;
        height: 34px;
    }
}

/* Keep the button clickable when the Symfony profiler toolbar is shown. */
body:has([id^="sfToolbarMainContent"]) .scroll-to-top {
    bottom: 60px;
}