/* ============================================================
   Toast notifications (Save/Update/Delete result messages).
   Shared by the public + admin layouts. Industrial Steel & Amber:
   squared corners, hairline border, slide-in from the right,
   auto-dismiss, click-to-close, stackable.
   ============================================================ */
.mfp-toasts {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}
.mfp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    background: #fff;
    color: #14171C;
    border: 1px solid #D7DBDF;
    border-left: 4px solid #5B636E;
    border-radius: 0; /* hard 90deg industrial corners */
    box-shadow: 0 12px 30px rgba(20, 23, 28, .16);
    padding: .85rem 1rem;
    font-size: .92rem;
    line-height: 1.4;
    /* enter state: off-screen right + faded */
    opacity: 0;
    transform: translateX(120%);
    transition: transform .42s cubic-bezier(.2,.6,.2,1), opacity .42s ease;
}
.mfp-toast.show { opacity: 1; transform: translateX(0); }
.mfp-toast.hide { opacity: 0; transform: translateX(120%); }
.mfp-toast > i { font-size: 1.15rem; line-height: 1.3; flex: 0 0 auto; }
.mfp-toast__msg { flex: 1 1 auto; padding-top: 1px; word-break: break-word; }
.mfp-toast__close {
    flex: 0 0 auto; border: 0; background: transparent; color: #8A929C;
    font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0 0 .25rem;
}
.mfp-toast__close:hover { color: #14171C; }

/* Variants */
.mfp-toast--success { border-left-color: #2E7D52; }
.mfp-toast--success > i { color: #2E7D52; }
.mfp-toast--error   { border-left-color: #C0392B; }
.mfp-toast--error   > i { color: #C0392B; }
.mfp-toast--warning { border-left-color: #9A6200; }
.mfp-toast--warning > i { color: #9A6200; }
.mfp-toast--info    { border-left-color: #1F2933; }
.mfp-toast--info    > i { color: #1F2933; }

/* Dark mode (public site supports data-theme=dark) */
[data-theme="dark"] .mfp-toast { background: #1C2128; color: #E6E9ED; border-color: #2C333C; }
[data-theme="dark"] .mfp-toast__close { color: #79828D; }
[data-theme="dark"] .mfp-toast__close:hover { color: #fff; }

@media (max-width: 480px) {
    .mfp-toasts { top: auto; bottom: 1rem; right: .75rem; left: .75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mfp-toast { transition: opacity .2s ease; transform: none; }
    .mfp-toast.show { transform: none; }
    .mfp-toast.hide { transform: none; }
}
