
:root {
    --toolbar-notification-height: 45px;
}

#toolbarMessage {
    position: sticky;
    top: calc(var(--header-height) + var(--search-sticky-bar-height, 0px));
    z-index: 1;
    margin-bottom: 1.25rem;
    transition: top .2s ease-in-out;
}

    /* apply margin-top on all pages when logged out */
    #toolbarMessage[data-logged-in="False"] {
        margin-top: .75rem;
    }

    /* the public homepage renders the message right below the hero banner, which needs a bit of breathing room (logged in) */
    /*.hero-banner-wrapper ~ #toolbarMessage[data-logged-in="True"] {
        margin-top: .75rem;
    }*/

    .toolbarMessageContent {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        background-color: rgb(var(--color-orange));
        border-radius: 5px;
        padding: 12px;
        text-align: center;
    }

    .toolbarMessageContent p {
        flex: 1 0 0;
        min-width: 0;
        margin-bottom: 0;
        font-family: var(--font-brand);
        font-size: .875rem;
        color: rgb(var(--color-graphite));
        word-break: break-word;
    }

        .toolbarMessageContent p a {
            color: rgb(var(--color-graphite));
            text-decoration: underline;
        }

    .toolbarMessageContent__close-button {
        display: block;
        flex-shrink: 0;
        height: 24px;
        width: 24px;
        cursor: pointer;
        background-color: rgb(var(--color-graphite));
        mask-image: url('/img/cross-close.svg');
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 18px;
    }

