.alert {
    padding: 0;
    margin: 0;
}

.alert_wrapper:before {
    content: '';
    /* text-shadow: 2px 2px 5px black; */
    color: black;
    transform: rotate(-20deg);
    display: block;
    width: 1em;
    height: 1em;
    line-height: 40px;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/bell.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/bell.svg') no-repeat center / contain;
}

.red.alert_wrapper:before {

    color: white;
}

.alert_wrapper {
    display: flex;
    padding: 0.3em 1em;
    /* position: absolute; */
    bottom: 0;
    /* max-width: 100vw; */
    width: 100%;
    background: #ffffff;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: inset 0 -5px 20px #0000001c;
    transition: .3s all ease;
}

a.alert_item {
    color: black;
    margin-left: 0.7em;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: calc(100% - 2rem);
}

.red a.alert_item {
    color: white
}

a.alert_item:hover {
    color: black;
}

.red a.alert_item:hover {
    color: white;
}

.alert_wrapper.yellow {
    background: var(--mr-color-yellow);
}

.alert_wrapper.green {
    background: #5ca16a;
}

.alert_wrapper.red {
    background: var(--mr-color-red);
}

a.alert_item p {
    margin: 0;
}

a.alert_item .alert_description {
    font-weight: 400;
    margin-left: 0.4rem;
    line-height: 1.1;
    text-decoration: none !important;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
}

a.alert_item .alert_title {
    font-size: 1.1em;
    margin: 0;
}

span.alert_readmore::after {
    content: '';
    font-size: 1rem;
    margin-left: 0.5rem;
    color: var(--mr-color-black);
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/arrow-right.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/arrow-right.svg') no-repeat center / contain;
}

.red span.alert_readmore::after {

    color: #ffffff;
}

span.alert_readmore {
    color: var(--mr-color-black);
}

.red span.alert_readmore {
    color: #ffffff;
}

a.alert_item .alert_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
    flex-grow: 1;
}
.alert_date {
    background: var(--mr-color-accent);
    color: var(--mr-color-light);
    text-decoration: none;
    padding: 0.2em 0.6em;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgb(0 0 0 / 20%);
    white-space: nowrap;
    /* margin-bottom: 1em; */
    display: inline-block;
    color: #ffffff;
}

.alert_date:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.3em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/calendar-days.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/calendar-days.svg') no-repeat center / contain;
}
.alert_details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.alert_details > div {
    margin-right: 1rem;
}

.alert_current {
    padding: 2rem;
    background: whitesmoke;
    border-radius: 1rem;
    box-shadow: 0 10px 20px #00000026;
    margin-bottom: 2rem;
}

.alert_previous {
    padding: 0 2rem 1rem;
}span.alert_type_color {
    padding: 0.3rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #333;
}
@media (max-width:991px) {
    .alert_wrapper {
        position: relative;
        top: 58px;
        z-index: -1;
        transform: translate(0, 0)
    }

    header.is_stuck .alert_wrapper {
        transform: translate(0, -101%);
    }

    body.has_alert .page {
        margin-top: 110px;
    }
}
