.c-notification {
    position: relative;
    z-index: 5;
    width: 100%;
    background-color: #00cc00;
    color: color(white);
    margin-bottom: -100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: transform 0.5s;
    text-align: center;

    @include mq($from: 840px) {
        height: 100px;
        line-height: 100px;
    }

    &.is-anchored {
        position: fixed;
        top: 0;
    }

    &.is-dismissed {
        position: fixed;
        transform: translateY(-300px);
    }
}

.c-notification--warning {
    background-color: color(error);
}

.c-notification__close {
    vertical-align: middle;
    position: absolute;
    right: 20px;
    top: 10px;
    padding-top: 10px;

    i {
        color: color(white);
        font-size: 18px;
    }

    @include mq($from: 840px) {
        top: 30px;
    }
}

.c-notification__close-text {
    display: inline;
    color: color(white);
    margin-right: 10px;

    @include mq($from: 840px) {
        display: none;
    }
}
