@import '~@equitysim/react-uikit/dist/styles/styleguide';

.c-app-banner {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    width: 100%;
    animation-name: pickup;
    animation-duration: $animation-duration;
    animation-fill-mode: forwards;
    transform: translateY(100%);

    @keyframes dropdown {
        from {
            opacity: 0;
            height: 0;

            &__inner {
                opacity: 0;
            }
        }

        to {
            opacity: 1;
            height: $header-height;

            &__inner {
                opacity: 1;
            }
        }
    }

    @keyframes pickup {
        from {
            opacity: 1;
            height: $header-height;

            &__inner {
                opacity: 1;
            }
        }

        to {
            opacity: 0;
            height: v-space(0);

            &__inner {
                opacity: 0;
            }
        }
    }

    &--showing {
        animation-name: dropdown;
    }

    &--hiding {
        animation-name: pickup;
    }

    @media screen and (max-width: $screen-medium) {
        width: 100vw;
        transform: translate3d(-$nav-bar-width, 100%, 0);
    }

    &__inner {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;

        height: 100%;
        width: 100%;
        max-width: $container-max-width;
        padding: v-space(1) var(--container-padding-h);
    }

    &__close {
        position: absolute;
        top: 0;
        right: 0;
        color: $white;
        height: 100%;
        width: initial;
        padding-right: v-space(3);
    }
}
