.back-to-top,
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #2f4156;
    border-radius: 50%;
    background: #ffffff;
    color: #2f4156;
    box-shadow: 4px 4px 0 rgba(47, 65, 86, 0.14);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    text-decoration: none;
}

.back-to-top svg,
#back-to-top svg {
    width: 18px;
    height: 18px;
    display: block;
}

.back-to-top.is-visible,
#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
#back-to-top:hover {
    background: #2f4156;
    color: #ffffff;
    border-color: #2f4156;
    box-shadow: 4px 4px 0 rgba(86, 124, 141, 0.25);
}

.back-to-top:focus-visible,
#back-to-top:focus-visible {
    outline: 2px solid #567c8d;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .back-to-top,
    #back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .back-to-top svg,
    #back-to-top svg {
        width: 16px;
        height: 16px;
    }
}
