/* reset */
button {
    all: unset;
}

.ToastViewport {
    --viewport-padding: var(--size-300);
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 10px;
    width: 440px;
    max-width: 100vw;
    margin: 0;
    list-style: none;
    z-index: 2147483647;
    outline: none;
    &.Toast {
        &-small {
            width: 280px;
        }
    }
    &.simple {
        width: fit-content;
        left: 0;
        margin: auto;
    }
}

.ToastRoot {
    border: 1px solid var(--black-200);
    background-color: var(--background-neutral-inverted);
    border-radius: 4px;
    padding: var(--size-150) var(--size-200) var(--size-200) var(--size-200);
    display: flex;
    overflow: hidden;
    flex-direction: row;
    gap: var(--size-200);
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    position: relative;
    * :not(button) {
        color: var(--foreground-neutral-inverted);
    }
    .ProgressRoot {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }
    .button {
        width: max-content;
    }
    // &.simple {
    //     // padding: var(--size-50) var(--size-100);
    // }
}
.ToastRoot[data-state="open"] {
    animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ToastRoot[data-state="closed"] {
    animation: hide 100ms ease-in;
}
.ToastRoot[data-swipe="move"] {
    transform: translateX(var(--radix-toast-swipe-move-x));
}
.ToastRoot[data-swipe="cancel"] {
    transform: translateX(0);
    transition: transform 200ms ease-out;
}
.ToastRoot[data-swipe="end"] {
    animation: swipeOut 100ms ease-out;
}

@keyframes hide {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(calc(100% + var(--viewport-padding)));
    }
    to {
        transform: translateX(0);
    }
}

@keyframes swipeOut {
    from {
        transform: translateX(var(--radix-toast-swipe-end-x));
    }
    to {
        transform: translateX(calc(100% + var(--viewport-padding)));
    }
}

.ToastTitle {
    margin: 0;
}

.ToastDescription {
    margin: 0;
}
