/**
 * Notification Bar Stylesheet
 */

.wp-notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Push page content down so notification bar does not overlap site title/header */
body.has-notification-bar {
    padding-top: 44px;
}

@media screen and (min-width: 783px) {
    body.has-notification-bar.admin-bar {
        padding-top: 76px;
    }
}

@media screen and (max-width: 782px) {
    body.has-notification-bar.admin-bar {
        padding-top: 90px;
    }
}

.wp-notification-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px 10px 20px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-notification-bar-content {
    text-align: center;
    flex-grow: 1;
    word-break: break-word;
}

.wp-notification-bar-content a {
    text-decoration: underline;
}

.wp-notification-bar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.wp-notification-bar-close:hover,
.wp-notification-bar-close:focus {
    opacity: 1;
    outline: none;
}

