.dpc-back-top {
    --dpc-btt-side-offset: 24px;
    position: fixed;
    right: var(--dpc-btt-side-offset);
    bottom: 24px;
    z-index: 9999;
    width: auto;
    height: auto;
    line-height: 0;
    pointer-events: none;
}

.dpc-back-top,
.dpc-back-top * {
    box-sizing: border-box;
}

.dpc-back-top .dpc-back-top-button {
    --dpc-btt-bg: #101010;
    --dpc-btt-glow: #ffffff12;
    --dpc-btt-color: #bfff00;
    --dpc-btt-hover-bg: #95B802;
    --dpc-btt-hover-color: #101010;
    --dpc-btt-transition: 380ms;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(var(--dpc-btt-glow), #00000042), var(--dpc-btt-bg) !important;
    color: var(--dpc-btt-color) !important;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(0, 0, 0, 0.18);
    transition:
        background var(--dpc-btt-transition) ease,
        color var(--dpc-btt-transition) ease,
        box-shadow var(--dpc-btt-transition) ease,
        opacity 260ms ease,
        transform 260ms ease;
}

.dpc-back-top .dpc-back-top-button:hover,
.dpc-back-top .dpc-back-top-button:focus-visible {
    background: linear-gradient(#ffffff24, #00000018), var(--dpc-btt-hover-bg) !important;
    color: var(--dpc-btt-hover-color) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 26px rgba(149, 184, 2, 0.28);
}

.dpc-back-top .dpc-back-top-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--dpc-btt-hover-bg) 70%, #ffffff);
    outline-offset: 3px;
}

.dpc-back-top .dpc-back-top-button:active {
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.dpc-back-top .dpc-back-top-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 17px;
    line-height: 1;
    color: currentColor;
}

.dpc-back-top .dpc-back-top-icon svg,
.dpc-back-top .dpc-back-top-icon i {
    display: block;
    width: 1em;
    height: 1em;
    color: currentColor;
    fill: currentColor;
}

.dpc-back-top .dpc-back-top-icon svg path {
    fill: currentColor;
    stroke: currentColor;
}

.dpc-back-top-hidden {
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
}

.dpc-back-top-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .dpc-back-top {
        --dpc-btt-side-offset: 18px;
        bottom: 18px;
    }

    .dpc-back-top .dpc-back-top-button {
        width: 44px;
        height: 44px;
    }

    .dpc-back-top .dpc-back-top-icon {
        font-size: 16px;
    }
}
