/* Lock scroll when a popup is open */
html.cn-popup-lock,
html.cn-popup-lock body {
  overflow: hidden;
}

/* Modal wrapper */
.cn-popup-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cn-popup-modal.is-open {
  display: block;
}

.cn-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

/* Dialog */
.cn-popup-dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: 64px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 22px 20px 18px;
}

.cn-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.cn-popup-close:hover {
  opacity: 1;
}

.cn-popup-content {
  margin-top: 8px;
}

.cn-popup-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cn-popup-btn-close {
  border: 1px solid rgba(0,0,0,0.15);
  background: #f6f7f7;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.cn-popup-btn-close:hover {
  background: #fff;
}
