/* Patakay: contenedor visible para el formulario incrustado de Izipay/Lyra. */
html.izipay-payment-open,
html.izipay-payment-open body {
  overflow: hidden !important;
}

.izipay-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.izipay-modal.is-open {
  display: flex;
}

.izipay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 24, 0.82);
  backdrop-filter: blur(5px);
}

.izipay-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #ffffff;
  color: #082f34;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.izipay-modal__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e4ecee;
  background: rgba(255,255,255,.98);
}

.izipay-modal__header small {
  display: block;
  margin-bottom: .2rem;
  color: #4b6b70;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.izipay-modal__header h2 {
  margin: 0;
  color: #063538;
  font-size: 1.25rem;
}

.izipay-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #edf3f4;
  color: #063538;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.izipay-modal__body {
  padding: 1rem 1.1rem 1.2rem;
  background: #fff;
}

.izipay-form-loader,
.izipay-form-error {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 12px;
  background: #f4f8f8;
  color: #36565b;
  text-align: center;
  line-height: 1.5;
}

.izipay-form-error {
  background: #fff2f2;
  color: #9d2424;
}

#izipayPaymentMount {
  width: 100%;
  min-height: 360px;
}

#izipayPaymentMount .kr-smart-form {
  width: 100% !important;
  min-height: 340px !important;
  display: block !important;
}

#izipayPaymentMount iframe {
  width: 100% !important;
  min-height: 330px !important;
  border: 0 !important;
}

.izipay-modal__note {
  margin: .9rem 0 0;
  color: #587076;
  font-size: .78rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .izipay-modal {
    padding: .45rem;
    align-items: flex-end;
  }
  .izipay-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 8px 8px;
  }
  .izipay-modal__body {
    padding: .8rem;
  }
  #izipayPaymentMount {
    min-height: 390px;
  }
}
