.back-to-top {
    position: fixed;
    z-index: 1040;
    inset-inline-end: 1.25rem;
    bottom: 3.5rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #003366;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease, bottom .2s ease;
}

.back-to-top.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top.is-on.back-to-top-modal {
    z-index: 1070;
}

.back-to-top i {
    font-size: 1.25rem;
    line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #f4f7fb;
    color: #0d6efd;
    outline: none;
}

@media (max-width: 576px) {
    .back-to-top {
        inset-inline-end: .85rem;
        width: 40px;
        height: 40px;
    }
}

@media print {
    .back-to-top { display: none !important; }
}
