#toast-container,
.toast-stack {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    right: 1rem;
    left: 1rem;

    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

.toast {
    background: var(--color-neutral-0);

    border: 1px solid var(--color-neutral-15);
    box-shadow: 0 2px 4px var(--color-neutral-10);

    padding: 1rem;
    border-radius: 8px;

    display: flex;
    align-items: center;
    gap: 1rem;

    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.toast-body {
    flex: 1;
}

.toast-body * {
    font-size: 1rem;
}

.toast[data-visible="true"] {
    opacity: 1;
    transform: translateX(0);
}


.toast img {
    width: 1.5rem;
    height: auto;
    background: unset;
}

.toast-close-icon {
    margin-left: auto;

    aspect-ratio: 1;
    flex-shrink: 0;
    width: fit-content;
    border-radius: 4px;
    padding: 0.2rem;
}

.toast-close-icon img {
    width: 1.4rem;
}

.toast-close-icon:hover {
    background: var(--color-neutral-10);
}

@media (min-width: 800px) {
    #toast-container,
    .toast-stack {
        left: inherit;
        width: 400px;
    }
}
