/* BackToTop UI component */

.ws-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;

    width: 44px;
    height: 44px;
    padding: 0;

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

    border: 0;
    border-radius: 6px;

    background: #a90000;
    color: #fff;

    font-size: 22px;
    line-height: 1;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease,
        background-color .15s ease;
}

.ws-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ws-back-to-top:hover {
    background: #8f0000;
}

.ws-back-to-top:focus-visible {
    outline: 2px solid #a90000;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .ws-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
