/* Customer-facing flash notifications only. Admin has its own layout and does not load this file. */
#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1090;
    width: min(calc(100vw - 40px), 480px);
    max-width: 480px;
    margin: 0;
    pointer-events: none;
}

#notification .alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 15px 48px 15px 15px;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    overflow-wrap: anywhere;
    pointer-events: auto;
}

#notification .alert + .alert {
    margin-top: 11px;
}

#notification .alert:not(.show) {
    display: none;
}

/* The existing controller adds these legacy class names. The bundled Animate CSS
   exposes the same keyframes with the animate__ prefix. */
#notification .fadeInDown {
    animation-name: fadeInDown;
}

#notification .fadeOutUp {
    animation-name: fadeOutUp;
}

#notification .lb-toast-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
}

#notification .lb-toast-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding-top: 1px;
}

#notification .lb-toast-title {
    color: #172033;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
}

#notification .lb-toast-message {
    min-width: 0;
    color: #394454;
    font-size: .86rem;
    line-height: 1.45;
}

#notification .lb-toast-message p:last-child {
    margin-bottom: 0;
}

#notification .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9px;
    opacity: .68;
}

#notification .btn-close:hover,
#notification .btn-close:focus-visible {
    opacity: 1;
    background-color: rgba(15, 23, 42, .08);
}

#notification .alert-success {
    border-color: #c8ead2;
    background: #f1fbf3;
}

#notification .alert-success .lb-toast-icon {
    color: #198754;
    background: #d9f3df;
}

#notification .alert-danger {
    border-color: #f1c7cd;
    background: #fff5f6;
}

#notification .alert-danger .lb-toast-icon {
    color: #c0394b;
    background: #fbdfe3;
}

#notification .alert-warning {
    border-color: #f4dfad;
    background: #fffaf0;
}

#notification .alert-warning .lb-toast-icon {
    color: #b7791f;
    background: #ffedbd;
}

#notification .alert-info {
    border-color: #cbddea;
    background: #f4f9fd;
}

#notification .alert-info .lb-toast-icon {
    color: #28749a;
    background: #dceef8;
}

@media (max-width: 575.98px) {
    #notification {
        top: 12px;
        right: 12px;
        left: 12px;
        transform: none;
        width: auto;
        max-width: none;
    }

    #notification .alert {
        padding: 14px 46px 14px 14px;
        border-radius: 15px;
    }
}
