body.page-template-template-certificate-buy,
body.page-template-template-certificate-buy-php {
  background-color: #eee;
}

.certificate-buy-wrap {
  padding: 7.5rem 1.25rem 4rem;
  background-color: #eee;
}

@media screen and (max-width: 767px) {
  .certificate-buy-wrap {
    padding-top: 140px;
  }
}

@media screen and (min-width: 768px) {
  .certificate-buy-wrap {
    padding-top: 8.75rem;
  }
}

.certificate-buy {
  max-width: 640px;
  margin: 0 auto;
}

.certificate-buy__intro {
  margin-bottom: 2rem;
  text-align: left;
}

.certificate-buy__intro .aprt-single__name-text {
  margin: 0 0 0.67em;
  color: #000;
  text-transform: uppercase;
}

.certificate-buy__intro .aprt-single__under-title {
  margin: 0;
  color: #000;
}

.certificate-buy__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
}

.certificate-buy__card--thanks {
  padding: 1.75rem;
}

.certificate-buy__form fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.certificate-buy__section-title {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  font-weight: 700;
}

.certificate-buy__presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.certificate-buy__preset {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.certificate-buy__preset input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.certificate-buy__preset-label {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 0.5rem;
  border: 1px solid #000;
  font-size: 0.85rem;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: #000;
  background: #fff;
  transition: background 0.15s, color 0.15s;
  word-break: break-word;
}

@media screen and (min-width: 768px) {
  .certificate-buy__presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .certificate-buy__preset-label {
    padding: 0.55rem 0.65rem;
  }
}

@media screen and (max-width: 767px) {
  .certificate-buy__card {
    padding: 1.25rem 1rem;
    overflow-x: hidden;
  }

  .certificate-buy__amount {
    min-width: 0;
    overflow: hidden;
  }
}

.certificate-buy__preset input:checked + .certificate-buy__preset-label,
.certificate-buy__preset input:focus-visible + .certificate-buy__preset-label {
  background: #000;
  color: #fff;
}

.certificate-buy__custom-amount {
  margin-top: 0.5rem;
}

.certificate-buy__custom-amount input {
  width: 100%;
}

.certificate-buy__block label,
.certificate-buy__amount > label:not(.certificate-buy__preset) {
  display: block;
  margin-top: 0.75rem;
  text-transform: lowercase;
  font-size: 1rem;
  padding-left: 1rem;
  letter-spacing: 0.25rem;
}

.certificate-buy__form input[type="text"],
.certificate-buy__form input[type="email"],
.certificate-buy__form input[type="tel"],
.certificate-buy__form input[type="number"],
.certificate-buy__form .text-area {
  width: 100%;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  border: #939597 solid 1px;
  border-radius: 0;
  text-transform: none;
}

.certificate-buy__field-error,
.certificate-buy__form-error {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.75rem;
  color: #b42318;
  letter-spacing: normal;
  text-transform: none;
}

.certificate-buy__form-error {
  margin-bottom: 1rem;
}

.certificate-buy__cta {
  margin-top: 1.5rem;
  text-align: left;
}

.certificate-buy__cta .cta-button__action {
  height: auto;
  border: 0;
  cursor: pointer;
  background-color: #0e0e98;
  color: #fff;
  font-weight: normal;
  width: 100%;
  max-width: 320px;
}

.certificate-buy__thanks-line {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  letter-spacing: normal;
  text-transform: none;
}

.certificate-buy__thanks-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-style: italic;
  color: #1a1a1a;
  letter-spacing: normal;
  text-transform: none;
}

/* Thanks page (redirect after purchase) */
.certificate-buy__intro--thanks {
  margin-bottom: 1.5rem;
}

.certificate-buy__thanks-title {
  margin: 0 0 0.5rem;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1.3;
}

.certificate-buy__thanks-lead {
  margin: 0;
  color: #000;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.45;
}

.certificate-buy__card--thanks {
  padding: 1.5rem 1.25rem 1.25rem;
}

.certificate-buy__card--thanks .certificate-buy__thanks-line {
  margin: 0 0 0.65rem;
  padding: 0;
  letter-spacing: normal;
  text-transform: none;
}

.certificate-buy__card--thanks .certificate-buy__thanks-line strong {
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.certificate-buy__card--thanks .certificate-buy__thanks-note {
  margin: 1rem 0 0;
  padding: 0;
}

.certificate-buy__card--thanks .certificate-buy__cta {
  margin-top: 1.25rem;
  text-align: left;
}

.certificate-buy__card--thanks .cta-button {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.certificate-buy__card--thanks .cta-button__action {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  box-sizing: border-box;
}
