/*
 * Site-wide announcement bar.
 * Bootstrap 4.0.0 has no .text-black, so it's defined here (scoped).
 * Assumes .bg-main is already defined by the theme.
 */

.announcement-bar {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    position: relative;
    z-index: 1500;
}

.announcement-bar.text-black,
.announcement-bar .text-black {
    color: #000 !important;
}

/* The WYSIWYG wraps its content in <p>; keep the bar compact. */
.announcement-bar__text p {
    margin: 0;
}

@media screen and (max-width: 767.98px) {
    .holiday-toast__btn {
        font-size: 12px !important;
    }
}

.announcement-bar__text > :last-child {
    margin-bottom: 0;
}

/*
 * Linked portion vs. plain text:
 * plain text stays regular weight (editor can still bold/italicise it),
 * the link is bold + underlined so it reads as the call to action.
 */
.announcement-bar a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.announcement-bar a:hover,
.announcement-bar a:focus {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .announcement-bar {
        font-size: 0.875rem;
    }
}