/* GENERAL FOR FIXED POP BUTTONS */
.pop-btn-wrapper {
    position: fixed;
    bottom: var(--_bottom);
    right: 1rem;
    z-index: 20;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease-in-out;
}
.pop-btn-wrapper[visible] {
    opacity: 1;
    transform: scale(1);
}
.pop-btn-wrapper a {
    display: flex;
    justify-content: center;
    align-items: center; 
    opacity: 1;
    padding: clamp(0.938rem, 0.061rem + 0.97vw, 1.4rem);
    border-radius: 100px;
    color: var(--color-base-1);
    background-color: var(--color-accent-1);
    filter: drop-shadow(0 0 5px rgb(255, 255, 255, 0.3));
    transition: opacity 0.2s ease-in-out;
}

/* SCROLL TO TOP BTN SPECIFIC */
#scroll-to-top-btn {
    --_bottom: 1rem;
    margin-bottom: -100px;
    --_icon-width: clamp(1rem, 0.053rem + 1.05vw, 1.5rem);
}
#scroll-to-top-btn[visible] {
    margin-bottom: 0;
}

/* RESPONSIVE */
@media only screen and (max-width: 767px) { /* mobile */
    .pop-btn-wrapper[data-is-within-footer] {
        bottom: calc(var(--_bottom) + 1.5rem);
    }
}
@media only screen and (min-width: 768px) { /* desktop */
    .pop-btn-wrapper a:hover {
        opacity: 0.7;
    }
}
