Sie könnten das folgende CSS hinzufügen, um das gewünschte Verhalten zu erzielen (Quelle: stack-overflow):
@media screen and (max-width: 500px) {
.d-modal__footer {
flex-direction: column;
button {
width: 100%;
}
}
}