/* ================================================================
   FLASH TOASTS — fixed, stacked, top-right; white surface, soft
   shadow, thin left accent + colored icon. Token-driven with hard
   fallbacks so it also works on logged-out public pages where the
   --n-* tokens are not loaded. Loaded LAST so it out-orders the
   bordered Bootstrap / gll-corporate alert styling.
   ================================================================ */

.flash-toast.alert {
    position: fixed !important;
    top: 20px;
    right: 20px;
    z-index: 1080;
    width: auto;
    max-width: 380px;
    min-width: 280px;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: var(--n-bg, #ffffff) !important;
    color: var(--n-text, rgba(0,0,0,0.92)) !important;
    border: 1px solid var(--n-border, rgba(0,0,0,0.10)) !important;
    border-left-width: 3px !important;
    border-radius: var(--n-radius, 8px) !important;
    box-shadow: var(--n-shadow, rgba(0,0,0,0.04) 0 4px 18px, rgba(0,0,0,0.027) 0 2px 8px, rgba(0,0,0,0.02) 0 0.8px 3px) !important;
    font-family: var(--n-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
    font-size: 14px !important;
    line-height: 1.5;
    gap: 12px;
    align-items: flex-start !important;
    animation: flash-toast-in 0.22s ease-out both;
}

/* Stack multiple toasts on the same page */
.flash-toast.alert:nth-of-type(2) { top: 84px; }
.flash-toast.alert:nth-of-type(3) { top: 148px; }
.flash-toast.alert:nth-of-type(4) { top: 212px; }

/* Left accent per type (override Bootstrap + gll-corporate) */
.flash-toast-success.alert { border-left-color: var(--n-success, #2a9d99) !important; background: var(--n-bg, #fff) !important; color: var(--n-text, rgba(0,0,0,0.92)) !important; }
.flash-toast-danger.alert  { border-left-color: var(--n-danger,  #eb5757) !important; background: var(--n-bg, #fff) !important; color: var(--n-text, rgba(0,0,0,0.92)) !important; }
.flash-toast-primary.alert,
.flash-toast-warning.alert { border-left-color: var(--n-warning, #dd5b00) !important; background: var(--n-bg, #fff) !important; color: var(--n-text, rgba(0,0,0,0.92)) !important; }

/* Icon: soft tinted disc, no heavy circle border */
.flash-toast .alert-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    margin: 1px 0 0 0 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
}
.flash-toast-success .alert-icon { background: rgba(42,157,153,0.12) !important;  color: var(--n-success, #2a9d99) !important; }
.flash-toast-danger  .alert-icon { background: rgba(235,87,87,0.12) !important;   color: var(--n-danger,  #eb5757) !important; }
.flash-toast-primary .alert-icon,
.flash-toast-warning .alert-icon { background: rgba(221,91,0,0.12) !important;    color: var(--n-warning, #dd5b00) !important; }

/* Body text + close button */
.flash-toast .display-10 { color: var(--n-text, rgba(0,0,0,0.92)) !important; font-size: 14px; }
.flash-toast .close {
    color: var(--n-text-secondary, #615d59) !important;
    opacity: 0.55;
    font-weight: 400;
    margin-left: 8px;
    text-shadow: none;
    background: transparent;
    border: none;
    line-height: 1;
}
.flash-toast .close:hover { opacity: 1; }

@keyframes flash-toast-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Mobile: full-width strip at top */
@media (max-width: 575.98px) {
    .flash-toast.alert { left: 12px; right: 12px; top: 12px; max-width: none; min-width: 0; }
    .flash-toast.alert:nth-of-type(2) { top: 84px; }
    .flash-toast.alert:nth-of-type(3) { top: 148px; }
}
