/* Unified notifications: alerts + toasts */
:root {
    --notify-radius: 14px;
    --notify-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);

    --notify-success-bg: #123d2a;
    --notify-success-fg: #dffce9;
    --notify-success-border: rgba(34, 197, 94, 0.38);

    --notify-danger-bg: #4a1519;
    --notify-danger-fg: #ffe4e6;
    --notify-danger-border: rgba(248, 113, 113, 0.42);

    --notify-warning-bg: #4a3512;
    --notify-warning-fg: #fef3c7;
    --notify-warning-border: rgba(245, 158, 11, 0.42);

    --notify-info-bg: #123a56;
    --notify-info-fg: #dff3ff;
    --notify-info-border: rgba(56, 189, 248, 0.38);

    --notify-default-bg: #2a3553;
    --notify-default-fg: #e8edf5;
    --notify-default-border: rgba(148, 163, 184, 0.26);
}

.app-flash-stack {
    padding: 1.25rem 2.5rem 0;
}

.app-flash-stack .alert {
    margin-bottom: 0;
}

.alert {
    position: relative;
    border: 1px solid var(--notify-default-border) !important;
    border-radius: var(--notify-radius) !important;
    box-shadow: var(--notify-shadow);
    padding: 14px 48px 14px 16px !important;
    margin-bottom: 1rem;
    line-height: 1.45;
    font-weight: 500;
    font-family: var(--font-sans);
    background-color: var(--notify-default-bg);
    color: var(--notify-default-fg);
}

.alert strong {
    font-weight: 700;
}

.alert i,
.alert svg,
.alert [data-feather] {
    margin-right: 6px;
}

.alert .btn-close,
.alert .close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    margin: 0 !important;
    opacity: 0.75;
}

.alert .btn-close:hover,
.alert .close:hover {
    opacity: 1;
}

.alert .close {
    background: transparent;
    border: 0;
    padding: 0;
    color: currentColor;
    font-size: 1.25rem;
    line-height: 1;
}

.alert .close span {
    color: currentColor;
}

.alert.alert-success {
    background-color: var(--notify-success-bg) !important;
    border-color: var(--notify-success-border) !important;
    color: var(--notify-success-fg) !important;
}

.alert.alert-danger,
.alert.alert-error {
    background-color: var(--notify-danger-bg) !important;
    border-color: var(--notify-danger-border) !important;
    color: var(--notify-danger-fg) !important;
}

.alert.alert-warning {
    background-color: var(--notify-warning-bg) !important;
    border-color: var(--notify-warning-border) !important;
    color: var(--notify-warning-fg) !important;
}

.alert.alert-info {
    background-color: var(--notify-info-bg) !important;
    border-color: var(--notify-info-border) !important;
    color: var(--notify-info-fg) !important;
}

.toast-container {
    z-index: 2300;
}

.toast-container.anottar-toast-container {
    width: min(460px, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
}

.toast {
    border: 1px solid var(--notify-default-border) !important;
    border-radius: var(--notify-radius) !important;
    box-shadow: var(--notify-shadow);
    overflow: hidden;
    opacity: 1 !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background-color: var(--notify-default-bg) !important;
    color: var(--notify-default-fg) !important;
    font-family: var(--font-sans);
    display: block;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.toast .d-flex {
    position: relative;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.toast .anottar-toast-content {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.toast .toast-body {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 48px 14px 16px;
    color: inherit !important;
    line-height: 1.45;
    font-weight: 500;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.toast .anottar-toast-title,
.toast .toast-body strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.2rem;
    font-weight: 700;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.toast .anottar-toast-text {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.toast .btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    transform: none;
    margin: 0 !important;
    opacity: 0.75;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast.bg-success {
    background-color: var(--notify-success-bg) !important;
    border-color: var(--notify-success-border) !important;
    color: var(--notify-success-fg) !important;
}

.toast.bg-danger,
.toast.bg-error {
    background-color: var(--notify-danger-bg) !important;
    border-color: var(--notify-danger-border) !important;
    color: var(--notify-danger-fg) !important;
}

.toast.bg-warning {
    background-color: var(--notify-warning-bg) !important;
    border-color: var(--notify-warning-border) !important;
    color: var(--notify-warning-fg) !important;
}

.toast.bg-info {
    background-color: var(--notify-info-bg) !important;
    border-color: var(--notify-info-border) !important;
    color: var(--notify-info-fg) !important;
}

.toast.text-white,
.toast.text-white .toast-body,
.toast.text-dark,
.toast.text-dark .toast-body {
    color: inherit !important;
}

#toast-container > .toast {
    border-radius: var(--notify-radius) !important;
    box-shadow: var(--notify-shadow) !important;
    opacity: 1 !important;
    background-image: none !important;
    color: var(--notify-default-fg) !important;
    font-family: var(--font-sans);
}

#toast-container > .toast-success {
    background-color: var(--notify-success-bg) !important;
    border-color: var(--notify-success-border) !important;
    color: var(--notify-success-fg) !important;
}

#toast-container > .toast-error,
#toast-container > .toast-danger {
    background-color: var(--notify-danger-bg) !important;
    border-color: var(--notify-danger-border) !important;
    color: var(--notify-danger-fg) !important;
}

#toast-container > .toast-warning {
    background-color: var(--notify-warning-bg) !important;
    border-color: var(--notify-warning-border) !important;
    color: var(--notify-warning-fg) !important;
}

#toast-container > .toast-info {
    background-color: var(--notify-info-bg) !important;
    border-color: var(--notify-info-border) !important;
    color: var(--notify-info-fg) !important;
}

.jq-toast-wrap .jq-toast-single {
    border: none !important;
    border-radius: var(--notify-radius) !important;
    box-shadow: var(--notify-shadow) !important;
    font-family: var(--font-sans);
}

@media (max-width: 576px) {
    .app-flash-stack {
        padding: 1rem 1rem 0;
    }

    .alert {
        padding: 12px 44px 12px 14px !important;
    }

    .toast-container.anottar-toast-container {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
    }

    .toast .toast-body {
        padding: 12px 44px 12px 14px;
    }
}
