.scroll-progress-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.95);
    transition:
        opacity .3s ease,
        transform .3s ease,
        visibility .3s ease;
}

.scroll-progress-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-progress-btn {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.scroll-progress-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #111;
    stroke-width: 2.5;
    transition: transform .25s ease;
}

.scroll-progress-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 32px rgba(0,0,0,.18);
    border-color: #bbb;
}

.scroll-progress-btn:hover svg {
    transform: translateY(-2px);
}

.scroll-progress-svg {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-progress-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 4;
}

.scroll-progress-bar {
    fill: none;
    stroke: var(--primary, #d85b63);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset .12s linear;
}

@media (max-width: 768px) {
    .scroll-progress-wrap {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .scroll-progress-btn {
        width: 50px;
        height: 50px;
    }

    .scroll-progress-svg {
        width: 50px;
        height: 50px;
    }
}
