.kpbs-donation-form {
  padding: 20px 20px;
  background: #f1f5fd;
  color: rgb(0, 0, 0);
  display: block;
  border-radius: 6px;
}

.kpbs-donation-form.active {
  transform: translateY(0);
}

.kpbs-donation-form-text p {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.kpbs-donation-form h4 {
  font-size: 1.4em;
  margin-bottom: 0.65em;
}

.kpbs-donation-form-container {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 16px;
}

.kpbs-donation-form-text-highlight {
  background-color: #fff5dd;
  color: #000;
  font-weight: 700;
  display: inline;
}
.kpbs-donation-form-checkout {
  width: 100%;
}

.kpbs-donation-form-checkout-fields-interval,
.kpbs-donation-form-checkout-fields-amount {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.kpbs-donation-form-checkout-fields-interval {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.kpbs-donation-form-checkout-fields-frequency label {
  white-space: nowrap;
}

.kpbs-donation-form-checkout-fields input[type='radio'] {
  display: none;
}

.kpbs-donation-form-checkout-fields label {
  background-color: #ffffff;
  color: #707070;
  border: 1px solid #0077b6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
}

.kpbs-donation-form-checkout-fields label span {
  white-space: nowrap;
}

.kpbs-donation-form-checkout-fields label:has(input[type='radio']:checked) {
  background-color: #e3f6ff;
  color: #052962;
  border: 1px solid #707070;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-align: center;
  padding: 10px 20px;
}

.kpbs-donation-form-checkout-fields-btn a {
  background-color: #006cb4;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  padding: 10px 20px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
}

.kpbs-donation-form-checkout-fields-btn a:hover,
.kpbs-donation-form-checkout-fields-btn a:focus {
  background-color: #005493;
  color: #ffffff;
  text-decoration: none;
}

.kpbs-donation-form-checkout-fields-btn a:active {
  background-color: #004070;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.kpbs-donation-form-checkout-fields-btn a:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

.kpbs-donation-form-checkout-fields-btn span {
  display: block;
  pointer-events: none;
}

.kpbs-donation-form-checkout-btn-card-container {
  display: flex;
  gap: 20px;
  justify-content: start;
  align-content: start;
  flex-direction: column;
}

.kpbs-donation-form-checkout-fields-credit-card {
  display: flex;
  justify-content: start;
  align-content: center;
  flex-wrap: wrap;
}

@media screen and (min-width: 740px) {
  .kpbs-donation-form h4 {
    font-size: 1.4em;
  }

  .kpbs-donation-form-container {
    display: flex;
    justify-content: center;
    flex-direction: container;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
    margin: 0px auto;
  }
}

@media screen and (max-width: 739px) {
  .kpbs-donation-form-text {
    padding-top: 50px;
    padding-bottom: 20px;
  }

  .kpbs-donation-form {
    padding: 20px 20px 50px;
  }

  .kpbs-donation-form-checkout-fields-credit-card {
    order: -1;
  }

  .kpbs-donation-form-checkout-fields-btn {
    width: 100%;
  }

  .kpbs-donation-form-checkout-fields-btn a {
    width: 100%;
  }

  .kpbs-donation-form-checkout-btn-card-container {
    gap: 10px;
  }
}
