

#toast-container {
    position: fixed;

    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 19891040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 92vw;
    pointer-events: none;
}

#toast-container.toast-top-right,
#toast-container.toast-bottom-right {
    left: auto;
    right: 20px;
    transform: none;
    align-items: flex-end;
}

#toast-container.toast-top-left,
#toast-container.toast-bottom-left {
    left: 20px;
    right: auto;
    transform: none;
    align-items: flex-start;
}

#toast-container.toast-bottom-center,
#toast-container.toast-bottom-right,
#toast-container.toast-bottom-left {
    top: auto;
    bottom: 24px;
}

#toast-container > .toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 20px 11px 18px;
    box-sizing: border-box;

    background: var(--main-bg-color, #fff);
    color: var(--main-color, #4e5358);
    border: 1px solid var(--main-border-color, rgba(50, 50, 50, .06));
    border-radius: calc(var(--main-radius, 8px) + 6px);
    box-shadow: 0 8px 30px -6px var(--main-shadow, rgba(116, 116, 116, .08)),
                0 2px 8px -2px var(--main-shadow, rgba(116, 116, 116, .08));

    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    animation: navToastIn .28s cubic-bezier(.22, 1, .36, 1);
}

@keyframes navToastIn {
    from {
        transform: translateY(-14px) scale(.96);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

#toast-container.toast-bottom-center > .toast,
#toast-container.toast-bottom-right > .toast,
#toast-container.toast-bottom-left > .toast {
    animation-name: navToastInUp;
}

@keyframes navToastInUp {
    from {
        transform: translateY(14px) scale(.96);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

#toast-container > .toast:hover {
    box-shadow: 0 12px 36px -6px var(--main-shadow, rgba(116, 116, 116, .12)),
                0 3px 10px -2px var(--main-shadow, rgba(116, 116, 116, .1));
}

#toast-container > .toast::before {
    flex: none;
    font-family: 'remixicon';
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
    line-height: 1;
    content: "\ee58";
    color: var(--theme-color, #6e56f8);
}

#toast-container > .toast-success::before {
    content: "\eb80";
    color: #23b26d;
}

#toast-container > .toast-error::before {
    content: "\eb96";
    color: #ec5b56;
}

#toast-container > .toast-warning::before {
    content: "\eca0";
    color: #f0a13c;
}

#toast-container > .toast .toast-title {
    margin: 0 0 2px;
    font-weight: 600;
    color: var(--key-color, #333);
}

#toast-container > .toast .toast-message {
    margin: 0;
    word-break: break-word;
}

.nav-toast__action {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--focus-color-opacity1, rgba(110, 86, 248, .1));
    color: var(--theme-color, #6e56f8);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.nav-toast__action:hover,
.nav-toast__action:focus {
    background: var(--theme-color, #6e56f8);
    color: #fff;
    text-decoration: none;
}

#toast-container > .toast > .toast-close-button {
    display: none;
}

#toast-container > .toast > .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: var(--theme-color, #6e56f8);
    opacity: .5;
}

body.dark-theme #toast-container > .toast {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 34px -6px rgba(0, 0, 0, .5),
                0 2px 8px -2px rgba(0, 0, 0, .4);
}

body.dark-theme #toast-container > .toast:hover {
    box-shadow: 0 14px 40px -6px rgba(0, 0, 0, .58),
                0 3px 10px -2px rgba(0, 0, 0, .45);
}

@media (max-width: 767px) {
    #toast-container {
        left: 12px;
        right: 12px;

        top: 62px;
        transform: none;
        max-width: none;
        align-items: stretch;
    }

    #toast-container.toast-bottom-center,
    #toast-container.toast-bottom-right,
    #toast-container.toast-bottom-left {
        top: auto;
        bottom: 12px;
    }

    #toast-container.toast-top-right,
    #toast-container.toast-top-left,
    #toast-container.toast-bottom-right,
    #toast-container.toast-bottom-left {
        left: 12px;
        right: 12px;
        align-items: stretch;
    }

    #toast-container > .toast {
        width: 100%;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #toast-container > .toast {
        animation: none;
    }
}
