.form-item-custom-amount {
  display: none;
}

.campaign-donation-form-updated .step-2 #donation-amount:has(input[type="radio"][value="0"]:checked) {
  & ~ .form-item-custom-amount {
    display: block;
  }
}

.wp-block-patron-basic-payment {
  div:has( > button > .icon-close) {
    display: none;
  }
  p {
    .step-2 & {
      order: 10;
    }
    align-self: center;
  }
  #donation-recurrent {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: absolute;
    top: -2rem;
    order: -5;
    width: calc(100% - 3.5rem);
    @media (min-width: 768px) {
      position: relative;
      top: auto;
      width: 100%;
    }
    p {
      display: none;
    }
  }
  .form-element-radio-recurrent {
    display: flex;
    flex-basis: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    input {
      display: none;
    }

    label {
      width: 100%;
      color: rgb(30 69 109);
      line-height: 1;
      padding: 1rem;
      font-family: BC Alphapipe TSB Bold;
      border: 1px solid rgb(30 69 109);
      background-color: #fff;
      cursor: pointer;
      text-align: center;
    }

    &:first-of-type label {
      border-bottom-left-radius: 9999px;
      border-top-left-radius: 9999px;
    }

    &:last-of-type label {
      border-bottom-right-radius: 9999px;
      border-top-right-radius: 9999px;
    }

    &:has(input:checked) label {
      color: #fff;
      background-color: rgb(30 69 109);
    }

    .peer-checked + label {
      color: #fff;
      background-color: rgb(30 69 109);
    }
  }
  .step-3 > div {
    @media (min-width: 768px) {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1rem;
      & > div {
        flex-basis: calc(50% - 0.5rem);
      }
    }
  }
}

.step-3 > div {
  flex-wrap: nowrap;
  flex-direction: column;
}

.path-fundraising {  /* Campaign page */
  form.campaign-donation-form-updated > div {
    padding: 1.75rem;
    @media (min-width: 768px) {
      background-color: rgba(30, 69, 109, .1);
      padding: 1.25rem;
      border-radius: .375rem;
    }

  }
  #donation-recurrent {
    display: flex;
    flex-direction: column;
    gap: 0.625rem; /* 2.5 * 0.25rem */
    margin-bottom: 1.25rem; /* 5 * 0.25rem */
  }

  .form-element-radio-recurrent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem; /* 2 * 0.25rem */
  }
}

a {
  cursor: pointer;
}

#donation-form-state {
  display: none;
}
