.demo-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  padding: 34px;
  overflow: auto;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 28px;
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(18, 24, 21, 0.24);
}

.demo-dialog::backdrop {
  background: rgba(18, 24, 21, 0.52);
  backdrop-filter: blur(8px);
}

.demo-dialog [hidden] {
  display: none !important;
}

.demo-request-success {
  padding-top: 24px;
  text-align: center;
}

.demo-success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f2eb;
  color: #245638;
  font-size: 2rem;
}

.demo-request-success p {
  margin-bottom: 24px;
}

.demo-request-success button {
  width: 100%;
}

.demo-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.demo-dialog-header h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 6vw, 3.8rem);
}

.demo-dialog-close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
}

.demo-dialog-intro {
  max-width: 500px;
  margin: 18px 0 24px;
  font-size: 1rem;
}

.demo-request-form,
.demo-request-form label {
  display: grid;
  gap: 8px;
}

.demo-request-form {
  gap: 17px;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-request-form label span {
  font-size: 0.86rem;
  font-weight: 700;
}

.demo-request-form input,
.demo-request-form textarea {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.17);
  border-radius: 15px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.demo-request-form input {
  min-height: 50px;
  padding: 0 15px;
}

.demo-request-form textarea {
  min-height: 118px;
  padding: 13px 15px;
  resize: vertical;
}

.demo-request-submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.demo-request-submit:hover {
  background: #343436;
}

.demo-request-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.demo-request-status {
  min-height: 1.35em;
  margin: -2px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.demo-request-status.is-success {
  color: var(--green);
}

.demo-request-status.is-error {
  color: #b42318;
}

.demo-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}


/* Shared demo UI, isolated from each site's existing subscription form. */
.demo-dialog { margin: auto; font-family: Arial, Helvetica, sans-serif; line-height: 1.5; background: #fff; color: #1d1d1f; text-align: left; --line: #d8ded9; --ink: #1d1d1f; --green: #245638; }
.demo-dialog * { box-sizing: border-box; }
.demo-dialog .eyebrow { margin: 0 0 8px; color: #526859; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.demo-dialog-header h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: #1d1d1f; }
.demo-request-form label { margin: 0; font-weight: normal; }
.demo-dialog button:focus-visible, .demo-dialog input:focus-visible, .demo-dialog textarea:focus-visible, .demo-request-trigger:focus-visible { outline: 3px solid #4c9166; outline-offset: 3px; }
button.demo-request-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 1px solid #28543b; border-radius: 999px; background: #fff; color: #234c35; font: 600 15px/1.3 Arial, sans-serif; white-space: nowrap; cursor: pointer; text-transform: none; }
button.demo-request-trigger:hover { background: #edf5ee; color: #153621; }
.form-row:has(.demo-request-trigger) { flex-wrap: wrap; }
.form-row:has(.demo-request-trigger) > input { flex: 1 0 100%; width: 100%; }
.form-row:has(.demo-request-trigger) > button { flex: 1 1 auto; }
.form-row button.demo-request-trigger { background: #fff; color: #234c35; border: 1px solid #28543b; }
.kol-signup-form [data-kol-editor="button"]:has(> .demo-request-trigger) { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; }
.kol-signup-form [data-kol-editor="button"]:has(> .demo-request-trigger) > input[type="submit"] { width: auto !important; min-width: 0; flex: 1 1 auto; margin: 0 !important; }
.kol-signup-form button.demo-request-trigger { flex: 1 1 auto; min-height: 52px; }
@media (max-width: 560px) { .demo-dialog { padding: 24px 20px; width: calc(100% - 24px); max-height: calc(100svh - 24px); border-radius: 22px; } .demo-form-grid { grid-template-columns: 1fr; } .demo-dialog-header { gap: 12px; } }
