.demo-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.62);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 2147483002;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal-panel {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  box-sizing: border-box;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  max-height: min(760px, 90vh);
  max-width: 680px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 680px);
}

.demo-modal-panel h2 {
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 42px 12px 0;
}

.demo-modal-panel p,
.demo-modal-panel li {
  color: #374151;
  font-size: 16px;
  line-height: 1.55;
}

.demo-modal-panel p {
  margin: 0 0 12px;
}

.demo-modal-panel ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.demo-modal-close {
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.demo-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.demo-modal-secondary,
.demo-modal-primary {
  border-radius: 8px;
  cursor: pointer;
  font: 700 15px / 1 Arial, Helvetica, sans-serif;
  min-height: 42px;
  padding: 10px 14px;
}

.demo-modal-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.demo-modal-primary {
  background: #0a3c71;
  border: 0;
  color: #ffffff;
}

@media (max-width: 600px) {
  .demo-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-modal-actions button {
    justify-content: center;
    width: 100%;
  }
}
