/**
 * Checkout certificado — aislar el Brick de Mercado Pago del CSS del panel alumno.
 * No usar height/min-height en el iframe: MP lo define en style="height: …px".
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cert-mp-field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #667085;
}

.cert-mp-charge-amount {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.45;
}

.cert-mp-charge-discount {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #166534;
  line-height: 1.45;
}

body.cert-mp-checkout-active .main,
body.cert-mp-checkout-active #cert-step-2,
body.cert-mp-checkout-active .cert-wrap.cert-checkout-step-2-active {
  text-align: left !important;
}

body.cert-mp-checkout-active #cert_checkout_root,
body.cert-mp-checkout-active #cert_checkout_root .cert-card,
body.cert-mp-checkout-active #cert-step-2 {
  overflow: visible;
  contain: none;
  filter: none;
  transform: none;
}

#cert_payment_brick {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: normal;
  font-size: 16px;
  min-height: 0;
  height: auto;
  overflow: visible;
}

#cert_payment_brick iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  vertical-align: top;
}

.cert-holder-doc-wrap {
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

#cert-step-2 .cert-mp-field-host {
  min-height: 0;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

#cert-step-2 .cert-mp-field-host iframe {
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}

#cert-step-2 .cert-mp-field {
  padding: 8px 12px;
  font-size: 0.95rem;
  border-radius: 10px;
}

#cert-step-2 .cert-mp-form-grid {
  max-width: 420px;
}

.cert-mp-3ds-wrap {
  max-width: 520px;
  margin: 16px 0;
}

.cert-checkout-notice-info {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cert-mp-3ds-title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.cert-mp-3ds-frame {
  width: 100%;
  min-height: 440px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
}

@media only screen and (min-width: 981px) {
  .cert-mp-3ds-frame {
    min-height: 520px;
  }
}
