
footer:has(.scroll-arrow) {
    position: relative;
}

footer .scroll-arrow {
    border-radius: 9999px;
    background-color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 5px;
    z-index: 10;
    position: fixed;
    right: 5vw;
    bottom: 5vw;
    filter: drop-shadow(2px 3px 7px rgba(36, 36, 36, 0.20));
    display: none;
}

footer .scroll-arrow::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 2px));
    width: 25px;
    height: 25px;
    mask-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 890.95 795.1'%3E%3Cdefs%3E%3Cstyle%3E .b %7B fill: %238a7ef6; %7D %3C/style%3E%3C/defs%3E%3Cpath class='b' d='M369.13,44.1L11.93,662.8c-33.9,58.8,8.5,132.3,76.4,132.3h714.3c67.9,0,110.3-73.6,76.4-132.4L521.83,44.1c-33.9-58.8-118.8-58.8-152.8,0h.1Z'/%3E%3C/svg%3E");    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--wp--preset--color--purple);

    transition: background-color 0.3s ease;
}
footer .scroll-arrow:hover::after {
    background-color: var(--wp--preset--color--mid-purple);
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        scale: 0.8;
    }
    to {
        transform: translateY(0);
        scale: 1;
    }
}

.scroll-arrow-visible {
    animation: slideIn 0.3s ease;
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        scale: 1;
    }
    to {
        transform: translateY(-30px);
        scale: 0.8;
    }
}

.scroll-arrow-hidden {
    animation: slideOut 0.3s ease;
}