/*
 * IE-1006 (DEFERRED-ISSUES D16): styles for the in-page error notice (Scripts/app/notice.js).
 *
 * Own file for the same reason as confirm-bar.css: Content/css/style.css has a parallel
 * Content/scss/ tree and looks generated, so a hand-edit there could be regenerated away.
 *
 * Sits at the top of the viewport like the confirmation bar, but one layer below it (2040 vs 2050).
 * If an AJAX error ever lands while a delete confirmation is open, the confirmation stays on top,
 * because that is the one with a decision attached to it.
 */

.notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2040;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 24px;
    background-color: #8a1c24; /* darker than the confirm bar, so the two are not mistaken */
    border-bottom: 3px solid #5e1118;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.4;

    transform: translateY(-100%);
    transition: transform 0.25s ease-out;
}

.notice-bar.is-open {
    transform: translateY(0);
}

.notice-bar-message {
    flex: 1 1 auto;
    font-weight: 600;
    word-break: break-word;
}

/*
 * Not .btn on purpose: style.css sets ".btn i { color: #FFFFFF }" globally and carries other
 * button rules, and this control needs to stay legible regardless of those.
 */
.notice-bar-dismiss {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 7px 18px;

    background-color: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 3px;

    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.notice-bar-dismiss:hover,
.notice-bar-dismiss:focus {
    background-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.notice-bar-dismiss:focus {
    outline: 3px solid #ffd54a;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .notice-bar {
        padding: 12px 14px;
        font-size: 14px;
    }

    .notice-bar-dismiss {
        width: 100%;
        margin-top: 8px;
    }
}
