/* The Undo alert after an admin deletes something (issue #1407, part of #1387).

   Views/Shared/_DeletedUndoAlert.cshtml renders it, once, from the layout; deleted-undo.js shows
   it after an in-place delete and closes it after ten seconds. It floats near the top of the
   content area, just below the sticky site header (site.css, --cp-header-h), over the page and
   over an open slide-over or modal (Bootstrap's 1045 and 1055), and under the header (2200).

   A content surface, so it is written against the --surface-* tokens alone and is correct in
   both themes with no dark rule of its own (Styles/README.md; CLAUDE.md section 5). --accent is a
   fill here, the left edge, never text. Plain CSS, loaded from the layout, never named in the
   SCSS bundle. */

.deleted-undo-host {
    position: fixed;
    top: calc(var(--cp-header-h, 70px) + .75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2150;
    width: min(36rem, calc(100vw - 2rem));
    pointer-events: none;   /* the empty host never blocks a click on the page beneath it */
}

.deleted-undo-host .deleted-undo {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    padding: .75rem 3rem .75rem 1rem;
    background: var(--surface-1);
    color: var(--surface-ink);
    border: 1px solid var(--surface-rule);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}

.deleted-undo-host .deleted-undo__icon {
    color: var(--surface-muted);
    flex: none;
}

.deleted-undo-host .deleted-undo__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.deleted-undo-host .deleted-undo__form {
    flex: none;
    margin: 0;
}

/* Bootstrap places the dismissible close button absolutely at the top right; centre it on the
   row instead, so it lines up with Undo. */
.deleted-undo-host .deleted-undo .btn-close {
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
}
