Vous pourriez ajouter le CSS suivant pour obtenir le comportement souhaité (source : stack-overflow) :
@media screen and (max-width: 500px) {
.d-modal__footer {
flex-direction: column;
button {
width: 100%;
}
}
}