.bnoise-back-to-top {
    --bnoise-scroll-progress: 0deg;
    position: fixed;
    left: 26px;
    bottom: 26px;
    z-index: 9000;
    width: 50px;
    height: 50px;
    padding: 2px;
    border: 0;
    border-radius: 16px;
    background: conic-gradient(
            var(--color-primary, #fe5e22) var(--bnoise-scroll-progress),
            #e8e9ec var(--bnoise-scroll-progress)
    );
    box-shadow: 0 12px 30px rgba(28, 31, 42, 0.13);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.92);
    transition:
            opacity .24s ease,
            visibility .24s ease,
            transform .24s ease,
            box-shadow .24s ease;
    -webkit-tap-highlight-color: transparent;
}

.bnoise-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bnoise-back-to-top__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(35, 37, 78, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: #23254e;
    backdrop-filter: blur(12px);
    transition:
            background-color .2s ease,
            color .2s ease,
            border-color .2s ease;
}

.bnoise-back-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.bnoise-back-to-top:hover {
    box-shadow: 0 14px 34px rgba(254, 94, 34, .22);
}

.bnoise-back-to-top:hover .bnoise-back-to-top__inner,
.bnoise-back-to-top:focus-visible .bnoise-back-to-top__inner {
    background: var(--color-primary, #fe5e22);
    color: #fff;
    border-color: var(--color-primary, #fe5e22);
}

.bnoise-back-to-top:hover svg {
    transform: translateY(-2px);
}

.bnoise-back-to-top:focus-visible {
    outline: 3px solid rgba(254, 94, 34, .18);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .bnoise-back-to-top {
        left: 14px;
        bottom: 88px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(28, 31, 42, .11);
    }

    .bnoise-back-to-top__inner {
        border-radius: 12px;
    }

    .bnoise-back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .bnoise-back-to-top {
        left: 12px;
        bottom: 86px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bnoise-back-to-top,
    .bnoise-back-to-top__inner,
    .bnoise-back-to-top svg {
        transition: none !important;
    }
}
