/* Evita scroll de fondo cuando el modal está abierto */
.cqrmd-no-scroll {
  overflow: hidden;
}

.cqrmd-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
}

.cqrmd-overlay.is-open {
  display: flex;
}

.cqrmd-dialog {
  width: min(1100px, 94vw);
  height: min(85vh, 900px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

.cqrmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cqrmd-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

.cqrmd-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.cqrmd-close:hover {
  background: rgba(0,0,0,0.06);
}

.cqrmd-body {
  flex: 1;
  min-height: 0;
}

.cqrmd-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
