.back-to-top {
    bottom: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.fixed {
    position: fixed;
}


.back-to-top.right {
    right: 20px;
}

.back-to-top.left {
    left: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-to-top-button:hover {
    background-color: #555;
}

.back-to-top-button svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: currentColor;
}

.back-to-top-button span {
    line-height: 1;
}

.back-to-top:not(.fixed) {
    position: relative;
    display: inline-block;
    right: unset !important;
    bottom: unset;
    margin-left: 0;
}

.back-to-top:not(.fixed) > .back-to-top-button {
    background: transparent;
    padding: 5px 0;
}