.wp-footer-widgets {
    padding-top: var(--wp--custom--spacing--block-footer-gap);
    padding-bottom: var(--wp--custom--spacing--block-footer-gap);

    .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
        position: relative;
        padding: 3px 0;
    }
}

.wp-block-footer.wp-block-site-generator {
    font-size: var(--wp--preset--font-size--extra-small);
    margin-top: 0;
    padding-top: var(--wp--custom--spacing--block-footer-gap);
    position: relative;

    &:before {
        content: "";
        background: var(--wp--preset--color--dark-color);
        height: 1px;
        left: 0;
        opacity: 0.1;
        position: absolute;
        top: 0;
        width: 100%;
    }
}

.wp-block-footer.wp-block-site-generator a {
    text-decoration: none;

    &:hover,
    &:focus {
        color: var(--wp--preset--color--link-color);
    }
}

.wp-block-footer .wp-block-widget:not(:last-child),
.wp-block-footer .wp-block-widget>*:not(:last-child),
.wp-block-footer .wp-block-latest-posts__list>li:not(:last-child) {
    margin-bottom: var(--wp--custom--spacing--extra-small);
}

.wp-block-widget-area .wp-block-widget figure {
    line-height: 0;
    margin-bottom: 0;
}

.wp-footer-widgets .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: var(--wp--preset--color--title);
}

.wp-footer-widgets .wp-block-navigation.is-vertical {
    gap: 0.45rem;
}

.wp-footer-widgets .wp-block-navigation.is-horizontal {
    gap: 2.45rem;
}

.wp-block-buttons.back-to-top {
    position: absolute;
    right: 0;
    top: -60px;
    margin: 0;
}

/** top scroll button **/
.back-to-top {
    .wp-element-button {
        border: none;
        border-radius: 5px;
        font-weight: 500;
        margin: 0;

        padding: 10px 22px 10px 45px;

        &::before {
            content: '';
            background: url(assets/images/arrow-top.svg) no-repeat center;
            background-size: contain;
            width: 20px;
            height: 20px;
            position: absolute;
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
            /* stays centered */
            opacity: 1;
            left: 18px;
            pointer-events: none;
        }
    }
}

/* Animation */
@keyframes floatUpSmooth {
    0% {
        transform: translateY(-50%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.wp-block-footer:not(.bottom-footer).wp-block-site-generator>div {
    gap: 0.25rem 0.5rem;
}

/* Trigger the animation on hover */
.back-to-top .wp-element-button:hover::before {
    animation: floatUpSmooth 1.2s ease-in-out infinite;

}

.wp-block-footer-phone,
.wp-block-footer-location {
    display: flex;

    svg {
        width: 38px;
        flex-shrink: 0;
        margin-right: 21px !important;
        height: 38px;
        fill: var(--wp--preset--color--soft-terracotta);
    }

    .wp-text-group {
        flex: 1;
        margin: 0;
    }
}

.wp-block-footer-phone svg {
    position: relative;
    top: -4px
}