.toast__list {
    --viewport-padding: 16px;
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: var(--viewport-padding);
    gap: 8px;
    width: 400px;
    max-width: 100vw;
    margin: 0;
    list-style: none;
    z-index: 9999;
    outline: none;
}

.toast {
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.toast[data-opened] {
    animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast[data-closed] {
    animation: hide 100ms ease-in;
}

.toast[data-swipe="move"] {
    transform: translateX(var(--kb-toast-swipe-move-x));
}

.toast[data-swipe="cancel"] {
    transform: translateX(0);
    transition: transform 200ms ease-out;
}

.toast[data-swipe="end"] {
    animation: swipeOut 100ms ease-out;
}

.toast__progress-fill {
    width: var(--kb-toast-progress-fill-width);
    transition: width 250ms linear;
}

@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(--kb-toast-swipe-end-x));
    }
    to {
        transform: translateX(calc(100% + var(--viewport-padding)));
    }
}
