.toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 48px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: 0 12px 32px rgba(33, 22, 23, 0.12);
    pointer-events: auto;
    animation: toast-in 0.2s ease;
}

.toast.is-leaving {
    animation: toast-out 0.2s ease forwards;
}

.toast__message {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--font-size-m);
    line-height: 1.4;
    color: var(--color-text-strong);
}

.toast--success {
    border-left: 3px solid #3d8f5f;
}

.toast--error {
    border-left: 3px solid #c45c5c;
}

.toast--info {
    border-left: 3px solid var(--color-brand-brown);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}
