/*
 * Floating "back to top" arrow. Renders site-wide for all visitors, so it is
 * intentionally self-contained (no dependency on the dark .re-mt-modal /
 * .re-frontend palette - it ships its own colours). Yellow per request:
 * mustard #E6AD23 on the dark glassy disc used by the other floating buttons.
 */
.re-totop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #E6AD23 !important;
    background: rgba(6, 18, 31, 0.85) !important;
    color: #E6AD23 !important;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease, border-color .12s ease, background .12s ease;
}
/* On CRM pages the feedback "?" sits at bottom:32px; lift the arrow above it. */
.re-totop--stacked {
    bottom: 90px;
}
.re-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.re-totop svg {
    width: 22px;
    height: 22px;
    display: block;
}
.re-totop:hover {
    transform: scale(1.08);
    border-color: #f0c14b !important;
    background: rgba(6, 18, 31, 0.95) !important;
}
.re-totop:focus-visible {
    outline: 2px solid #E6AD23;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .re-totop {
        bottom: 16px;
        right: 16px;
    }
    .re-totop--stacked {
        bottom: 72px;
    }
}
