/* /sertifikat — inline checkout (ref. original_mobile_inline.png) */

/* Hero spacing comes from .mclass-hero (same badge offset as class pages). */

.page-sertifikat-oplata .cert-benefits {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 20px 0 36px;
  background: var(--page-bg, #f7f4ef);
}
.page-sertifikat-oplata .cert-benefits__grid {
  margin-top: 0;
}

.page-sertifikat-oplata .cert-values.cert-oplata {
  padding: 12px 0 32px;
}
.page-sertifikat-oplata .cert-section-head {
  margin-bottom: 20px;
}
.page-sertifikat-oplata .cert-section-head h2 {
  letter-spacing: 0.02em;
}

.cert-oplata-nominals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  align-items: stretch;
}
.cert-oplata-nominals__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  border: 1px solid rgba(52, 74, 51, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #1e241d;
  font: 600 15px/1.2 var(--sans, "Inter", sans-serif);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cert-oplata-nominals__btn.is-active {
  border-color: var(--c-green, #354a32);
  background: rgba(53, 74, 50, 0.1);
  box-shadow: inset 0 0 0 1px rgba(53, 74, 50, 0.32);
}

.cert-oplata-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cert-oplata-panel__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1d241c;
}
.cert-oplata-panel__title--buyer {
  margin-top: 28px;
}

.cert-oplata-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
  padding: 16px 0 18px;
  border-bottom: 1px solid rgba(52, 74, 51, 0.12);
  font-size: 14px;
  line-height: 1.45;
  color: #252a24;
}
.cert-oplata-product__qty {
  color: #73786f;
  font-size: 13px;
  font-weight: 500;
  padding-top: 2px;
}
.cert-oplata-product__name {
  font-size: 15px;
  font-weight: 600;
  color: #1d241c;
  line-height: 1.4;
  min-width: 0;
}
.cert-oplata-product__price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}

.cert-oplata-buyer {
  display: grid;
  gap: 14px;
}
.cert-oplata-field {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3a4038;
}
.cert-oplata-field input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(52, 74, 51, 0.22);
  border-radius: 8px;
  background: #fff;
  font: 400 15px/1.35 var(--sans, "Inter", sans-serif);
  color: #1d241c;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cert-oplata-field input::placeholder {
  color: #9aa095;
}
.cert-oplata-field input:focus {
  outline: none;
  border-color: var(--c-green, #354a32);
  box-shadow: 0 0 0 3px rgba(53, 74, 50, 0.12);
}
.cert-oplata-field.is-invalid input {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}
.cert-oplata-field__error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.cert-oplata-consent {
  margin-top: 18px;
}
.cert-oplata-consent.is-invalid .cert-oplata-consent__label {
  color: #8a1c12;
}
.cert-oplata-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #5f655d;
  cursor: pointer;
}
.cert-oplata-consent__label input {
  margin-top: 3px;
  flex-shrink: 0;
}
.cert-oplata-consent__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.cert-oplata-consent__links a {
  color: var(--c-green, #354a32);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cert-oplata-consent__error {
  margin-top: 10px;
}

.cert-oplata-pay-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-bottom: 4px;
}
.cert-oplata-pay {
  width: min(100%, 300px);
  min-width: 240px;
  min-height: 44px;
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.cert-oplata-forms {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .page-sertifikat-oplata .cert-benefits {
    padding: 16px 0 28px;
  }
  .page-sertifikat-oplata .shell-wide {
    width: min(100% - 24px, var(--c-shell));
  }
  .cert-oplata-nominals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cert-oplata-pay-wrap {
    justify-content: center;
  }
  .cert-oplata-pay {
    width: min(100%, 320px);
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-sertifikat-oplata .cert-benefits__grid {
    padding: 18px 16px;
  }
  .page-sertifikat-oplata .cert-benefit {
    padding: 8px 4px;
  }
}

@media (min-width: 768px) {
  .cert-oplata-panel {
    padding: 24px 26px 26px;
    border-radius: 14px;
    background: #f3f1ec;
    border: 1px solid rgba(52, 74, 51, 0.1);
  }
  .cert-oplata-product {
    padding: 16px 16px 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    border-bottom: 0;
    margin-bottom: 4px;
  }
}

@media (max-width: 359px) {
  .cert-oplata-nominals__btn {
    font-size: 14px;
    min-height: 48px;
  }
  .cert-oplata-product__name,
  .cert-oplata-product__price {
    font-size: 14px;
  }
}
