.giftAidOptions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.giftAidOptions label {
  margin-left: 0.5em;
}

.giftAidOptions label:nth-child(1) {
  margin-right: 0.5em;
  margin-left: 0;
}

.giftAidOptions [type="radio"] {
  margin-left: 0.5em;
  vertical-align: middle;
}

/*   Open state of the dialog  */
dialog[open] {
  opacity: 1;
  transform: scaleY(1);
}

/*   Closed state of the dialog   */
dialog {
  opacity: 0;
  transform: scaleY(0);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out,
    overlay 0.7s ease-out allow-discrete,
    display 0.7s ease-out allow-discrete;
  /* Equivalent to
  transition: all 0.7s allow-discrete; */
}

.noGiftAidConfirmation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: medium;
  text-align: center;
  max-width: 18rem;;
  line-height: 1.4;
  padding: 1rem;
}

@media screen and (min-width: 768px) {
  .noGiftAidConfirmation {
    font-size: large;
    max-width: 24rem;
  }
}

@media screen and (min-width: 1024px) {
  .noGiftAidConfirmation {
    font-size: x-large;
    max-width: 36rem;
  }

}

.noGiftAidConfirmation .dialogOptions {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  margin-block: 1rem;
  width: 100%;
}

.noGiftAidConfirmation .dialogOptions button {
  font-size: inherit;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid;
}

/*   Before-open state  */
/* Needs to be after the previous dialog[open] rule to take effect,
    as the specificity is the same */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scaleY(0);
  }
}

/* Transition the :backdrop when the dialog modal is promoted to the top layer */
dialog::backdrop {
  background-color: rgb(0 0 0 / 0);
  transition:
    display 0.7s allow-discrete,
    overlay 0.7s allow-discrete,
    background-color 0.7s;
  /* Equivalent to
  transition: all 0.7s allow-discrete; */
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 0.25);
}

/* This starting-style rule cannot be nested inside the above selector
because the nesting selector cannot represent pseudo-elements. */

@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0);
  }
}
