.latepoint-tranzila-modal-open {
  overflow: hidden;
}

.latepoint-tranzila-modal {
  align-items: center;
  background: rgba(17, 24, 39, 0.66);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999999;
}

.latepoint-tranzila-modal__panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
  max-width: 520px;
  overflow: hidden;
  width: min(100%, 520px);
}

.latepoint-tranzila-modal__header {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  min-height: 48px;
  padding: 0 12px 0 18px;
}

.latepoint-tranzila-modal__title {
  color: #111827;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.latepoint-tranzila-modal__close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.latepoint-tranzila-modal__close:hover {
  color: #111827;
}

.latepoint-tranzila-modal__body {
  background: #f9fafb;
  height: min(650px, calc(100vh - 98px));
  min-height: 520px;
  position: relative;
}

.latepoint-tranzila-modal__iframe {
  background: #fff;
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.latepoint-tranzila-modal__loading {
  color: #374151;
  font-size: 14px;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 40%;
}

.latepoint-tranzila-settings-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.latepoint-tranzila-settings-note {
  color: #6b7280;
  font-size: 12px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .latepoint-tranzila-modal {
    align-items: stretch;
    padding: 0;
  }

  .latepoint-tranzila-modal__panel {
    border-radius: 0;
    max-height: 100vh;
    max-width: none;
    width: 100%;
  }

  .latepoint-tranzila-modal__body {
    height: calc(100vh - 48px);
    min-height: 0;
  }
}
