/* Estilos base */
.scrolltop-button {
    position: fixed;
    width: 42px;
    height: 42px;
    bottom: 16px;
    background: #333;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .3s ease;
}

/* Derecha por defecto */
.scrolltop-button.right {
    right: 15px;
}

/* Izquierda si lo seleccionas */
.scrolltop-button.left {
    left: 15px;
}

.scrolltop-button svg {
    width: 17px;
    height: 17px;
    fill: white;
}

/* Mostrar */
.scrolltop-button.show {
    display: flex;
    opacity: 1;
}

/* ===============================
   MEDIA QUERIES RESPONSIVE SCROLL BUTTON
   =============================== */

/* 1024px */
@media (max-width: 1024px) {
    .scrolltop-button {
        width: 41px;
        height: 41px;
        bottom: 15px;
    }

    .scrolltop-button svg {
        width: 16px;
        height: 16px;
    }
}

/* 1000px */
@media (max-width: 1000px) {
    .scrolltop-button {
        width: 40px;
        height: 40px;
    }

    .scrolltop-button svg {
        width: 16px;
        height: 16px;
    }
}

/* 900px */
@media (max-width: 900px) {
    .scrolltop-button {
        width: 38px;
        height: 38px;
    }

    .scrolltop-button svg {
        width: 15px;
        height: 15px;
    }
}

/* 800px */
@media (max-width: 800px) {
    .scrolltop-button {
        width: 36px;
        height: 36px;
    }

    .scrolltop-button svg {
        width: 14px;
        height: 14px;
    }
}

/* 768px */
@media (max-width: 768px) {
    .scrolltop-button {
        width: 35px;
        height: 35px;
        bottom: 12px;
    }

    .scrolltop-button svg {
        width: 14px;
        height: 14px;
    }

    /* Posición lateral */
    .scrolltop-button.right {
        right: 10px;
    }

    .scrolltop-button.left {
        left: 10px;
    }
}

/* 700px */
@media (max-width: 700px) {
    .scrolltop-button {
        width: 34px;
        height: 34px;
    }

    .scrolltop-button svg {
        width: 13px;
        height: 13px;
    }
}

/* 600px */
@media (max-width: 600px) {
    .scrolltop-button {
        width: 32px;
        height: 32px;
    }

    .scrolltop-button svg {
        width: 13px;
        height: 13px;
    }
}

/* 500px */
@media (max-width: 500px) {
    .scrolltop-button {
        width: 30px;
        height: 30px;
    }

    .scrolltop-button svg {
        width: 12px;
        height: 12px;
    }
}