.toast{
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: fit-content;
    width: min(calc(100% - 2rem), 400px);
    height: fit-content;
    min-height: 40px;
    background: var(--tooltip);
    color: var(--text-color);
    font-weight: 400;
    border-radius: 6px;
    z-index: 999;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s all ease;
}
.toast.active{
    top: 1rem;
    opacity: 1;
    visibility: visible;
}
.toast::before{
    position: absolute;
    content: '';
    bottom: 0;
    width: 100%;
    height: calc(var(--border-size) + 1px);
    background: var(--text-color);
    opacity: 0;
}
.toast.active::before{
    opacity: 1;
    animation: t-load 4s linear;
}

@keyframes t-load {
    to{
        transform: translateX(-100%);
    }
}