.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 550px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0px 2px 2px #0000001c;
  padding: 30px;
}

.title {
  margin: 0 0 8px;
  font-size: var(--font-title-mobile);
  margin-bottom: 20px;
}

.body {
  margin: 30px 0;
  color: #444;
  line-height: 1.45;
}

.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

.confirm_button,
.cancel_button {
  width: auto;
  flex: 0 0 auto;
}

@media only screen and (max-width: 650px) {
  .modal {
    width: 90%;
    padding: 24px 18px;
  }

  .buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .confirm_button,
  .cancel_button {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .confirm_button > :global(div),
  .cancel_button > :global(div) {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
