.cm-modal-backdrop {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.cm-modal-backdrop.show {
  visibility: visible;
  opacity: 1;
}

.cm-modal-card {
  width: min(100%, 900px);
  max-height: min(88vh, 920px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: auto;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.cm-modal-card.cm--wide {
  width: min(100%, 1080px);
}

.cm-modal-backdrop.show .cm-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cm-modal-head {
  padding: 22px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef2f7;
}

.cm-modal-title {
  margin: 0;
  color: #18212f;
  font-size: 22px;
  font-weight: 700;
}

.cm-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cm-modal-close:hover {
  background: #e2e8f0;
  color: #18212f;
}

.cm-modal-close i {
  width: 18px;
  height: 18px;
}

.cm-modal-body {
  padding: 22px 24px 24px;
}

.cm-modal-foot {
  padding: 18px 24px 24px;
  border-top: 1px solid #eef2f7;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.modal-open {
  overflow: hidden;
}

.swal2-container {
  z-index: 20000 !important;
}

@media (max-width: 720px) {
  .cm-modal-backdrop {
    padding: 14px;
  }

  .cm-modal-head,
  .cm-modal-body,
  .cm-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cm-modal-title {
    font-size: 18px;
  }
}
