.toast-container {
    position: fixed !important;

    top: 20px !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    right: auto !important;
    bottom: auto !important;

    z-index: 99999 !important;

    display: flex;
    flex-direction: column;
    align-items: center;

    pointer-events: none;
}

.toast-container .toast-wrapper {
    padding: 4px !important;
}

/* ОСНОВНАЯ КАРТОЧКА */

.toast {
    position: relative;

    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;

    width: 340px;

    min-height: 60px;

    padding: 14px 16px !important;

    border-radius: 16px !important;

    background: #141720 !important;

    border: 1px solid rgba(255,255,255,.07) !important;

    color: #f1f3f6 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    overflow: hidden;

    box-shadow:
        0 16px 48px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,255,255,.03) inset;

    pointer-events: auto;

    animation: toastEnter .25s cubic-bezier(.16,1,.3,1);
}

/* Световая полоска сверху */

.toast::after {
    content: "";

    position: absolute;

    top: 0;
    left: 20px;
    right: 20px;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.12),
        transparent
    );
}

/* ИКОНКА-БЛОК */

.toast::before {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 18px;
    font-weight: 700;
}

/* SUCCESS */

.toast--success {
    border-color: rgba(34,197,94,.14) !important;
}

.toast--success::before {
    content: "✓";

    background: #0d2016;
    border: 1px solid rgba(34,197,94,.2);

    color: #22c55e;
}

.toast-progressbar--success {
    background: #22c55e !important;
}

/* ERROR */

.toast--error {
    border-color: rgba(239,68,68,.14) !important;
}

.toast--error::before {
    content: "✕";

    background: #1f0d0d;
    border: 1px solid rgba(239,68,68,.2);

    color: #ef4444;
}

.toast-progressbar--error {
    background: #ef4444 !important;
}

/* WARNING */

.toast--warning {
    border-color: rgba(245,158,11,.14) !important;
}

.toast--warning::before {
    content: "!";

    background: #1e1600;
    border: 1px solid rgba(245,158,11,.2);

    color: #f59e0b;
}

.toast-progressbar--warning {
    background: #f59e0b !important;
}

/* INFO */

.toast--info {
    border-color: rgba(129,140,248,.14) !important;
}

.toast--info::before {
    content: "i";

    background: #0e1020;
    border: 1px solid rgba(129,140,248,.2);

    color: #818cf8;
}

.toast-progressbar--info {
    background: #818cf8 !important;
}

/* ПРОГРЕСС */

.toast-progressbar {
    height: 2px !important;
    opacity: 1 !important;
    border-radius: 999px !important;
}

/* СТЕК */

.toast + .toast {
    margin-top: -6px !important;
    transform: scale(.97);
    opacity: .85;
}

/* АНИМАЦИЯ */

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* МОБИЛКИ */

@media (max-width: 575px) {
    .toast-container {
        width: calc(100vw - 24px);
    }

    .toast {
        width: 100%;
    }
}