/**
 * WooCommerce message
 */

.woocommerce-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: $spacing--xxlarge;
    background: $color-white;
    padding: 15px;
    box-shadow: $shadow--wide;

    @include breakpoint(large) {
        padding: $spacing;
    }

    .button {
        margin: 0;
    }
}

.woocommerce-notice {
    padding: $spacing/2 $spacing;
    color: $white;
    background: $color-gray-85;
    margin-bottom: $spacing;
}
.woocommerce-notice--success {
    color: $white;
    background: $success-color;
}
.woocommerce-notice--error,
.woocommerce-error {
    margin: 0;
    list-style: none;
    padding: $spacing/2 $spacing;
    background: $alert-color;
    color: $white;
    margin-bottom: $spacing;
}

.woocommerce-info {
    padding: $spacing/2 $spacing;
    background: $color-gray-5;
    margin-bottom: $spacing;
}


.woocommerce-info,
.woocommerce-notice,
.woocommerce-error {
    a:not(.button) {
        text-decoration: underline;
    }
    .button {
        margin-bottom: 0;
    }
}

.woocommerce-notice,
.woocommerce-error {
    a:not(.button) {
        color: $white;
        &:hover, &:focus {
            opacity: .9;
        }
    }
}

.vo-woocommerce-message {
    position: fixed;
    z-index: 99;
    width: 100%;
    .woocommerce-message {
        margin: 0;
        justify-content: flex-start;
    }
    .woocommerce-message__inner {
        display: flex;
        justify-content: space-between;
        width: 100%;
        .button {
            margin-right: 16px;
        }
    }
    .woocommerce-message__close {
        position: relative;
        width: 40px;
        height: 40px;
        display: block;
        top: 4px;
        cursor: pointer;
        transition: all $transition;

        span {
            position: absolute;
            top: 20px;
            left: 5px;
            display: block;
            height: 2px;
            width: 30px;
            background: black;
            &:nth-child(1) {
                transform: rotate(45deg);
            }
            &:nth-child(2) {
                transform: rotate(-45deg);
            }
        }

        &:hover {
            opacity: .75;
        }
    }
}