/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Path: wp-content/plugins/enroma-coupons-notice-bar/public/css/enroma-coupon-notice-bar-public.css */

body.enroma-coupon-notice-bar-active {
    margin-top: 46px;
}

#enroma-coupon-notice-bar {
    background-color: var(--e-global-color-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    /* line-height: 2.46153846; */
    height: 0px;
    position: absolute;
    padding: 0;
    text-align: center;
    top: 0;
    width: 100%;
    left: 0;
    overflow: hidden;
    z-index: 99999;
    transition: height 0.3s ease-in-out;
}

#enroma-coupon-notice-bar.active {
    height: 46px;
}

body.admin-bar #enroma-coupon-notice-bar {
    top: 32px;
}

/* content */
.enroma-coupon-notice-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    column-gap: 15px;
}

.enroma-coupon-notice-bar-inner .message b {
    font-weight: 600;
    border: 1px dashed #fff;
    background-color: var(--e-global-color-primary);
    padding: 4px 9px;
    margin: 0 5px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.enroma-coupon-notice-bar-inner .message a {
    color: #fff;
    text-decoration: underline;
}

.enroma-coupon-notice-bar-inner .message a:hover {
    color: #fff;
    text-decoration: none;
}

.enroma-coupon-notice-bar-inner .timer {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 5px;
}

.enroma-coupon-notice-bar-inner .timer .time {
    background-color: #fff;
    background: linear-gradient(180deg, #fff 0%, #dddddd 100%);
    padding: 2px 9px;
    color: var(--e-global-color-secondary);
    border-radius: 4px;
}

.enroma-coupon-notice-bar-inner .timer .time em {
    font-size: 80%;
    font-style: normal;
}


.enroma-coupon-notice-bar-inner .timer.red .time {
    color: var(--e-global-color-primary);
}

.enroma-coupon-notice-bar-inner .timer.black .time,
.enroma-coupon-notice-bar-inner .timer.red.black .time {
    color: var(--e-global-color-primary) !important;
    background: var(--e-global-color-secondary) !important;
}

/* hide timer if more tha a day left */
.enroma-coupon-notice-bar-inner .timer {
    display: none;
}

.enroma-coupon-notice-bar-inner .timer.black,
.enroma-coupon-notice-bar-inner .timer.red {
    display: flex;
}

/* no br in desktop */
@media screen and (min-width: 783px) {
    .enroma-coupon-notice-bar-inner .message br {
        display: none;
    }
}

/* mobile */
@media screen and (max-width: 782px) {

    #enroma-coupon-notice-bar {
        height: 0;
        min-width: 240px;
        font-size: 15px;
    }

    #enroma-coupon-notice-bar.active {
        height: 64px;
    }

    body.admin-bar #enroma-coupon-notice-bar {
        top: 46px;
    }

    body.enroma-coupon-notice-bar-active {
        margin-top: 61px;
    }

    #enroma-coupon-notice-bar .enroma-coupon-notice-bar-inner {
        padding: 5px 15px 3px 15px;
        justify-content: space-around;
        text-align: left;
    }

    .enroma-coupon-notice-bar-inner .timer .time {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 10px 7px 10px;
    }

    .enroma-coupon-notice-bar-inner .timer .time b {
        line-height: 20px;
        font-size: 18px;
    }

    .enroma-coupon-notice-bar-inner .timer .time em {
        line-height: 10px;
    }

}