.scroll-to-top {
    position: fixed;
    right: 10px;
    bottom: 20px;
    z-index: 1200;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #6a11cf;
    border-radius: 50%;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        background-color 0.5s ease,
        color 0.5s ease,
        border-color 0.5s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.scroll-to-top--visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top__icon {
    display: block;
    width: 24px;
    height: 24px;
    color: #6a11cf;
    stroke: #6a11cf;
    transition: color 0.5s ease, stroke 0.5s ease;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background-color: #6a11cf;
    border-color: #6a11cf;
}

.scroll-to-top:hover .scroll-to-top__icon,
.scroll-to-top:focus-visible .scroll-to-top__icon {
    color: #fff;
    stroke: #fff;
}

.scroll-to-top:focus-visible {
    outline: none;
}

@media (max-width: 991.98px) {
    .scroll-to-top {
        right: 10px !important;
    }
}
