.cms-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background-color: var(--site-primary, #8b0000);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.cms-back-to-top:hover,
.cms-back-to-top:focus {
    background-color: #b63a32;
    color: #ffffff;
}

.cms-back-to-top:focus {
    outline: 3px solid rgba(139, 0, 0, 0.25);
    outline-offset: 3px;
}

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

.cms-back-to-top .fa-solid {
    line-height: 1;
}

@media (min-width: 992px) {
    .cms-back-to-top {
        right: 24px;
        bottom: 24px;
        width: 48px;
        height: 48px;
    }
}

@media print {
    .cms-back-to-top {
        display: none !important;
    }
}
