/*
 * Erica R. Buteau — Kit Newsletter v1.1.0
 * Keep every selector inside this plugin's own wrapper. The custom website
 * should remain independent from Kit's template CSS and the active theme.
 */
.erica-kit-newsletter-slot {
  width: 100%;
  box-sizing: border-box;
  background: #f7f1ed;
  padding: clamp(30px, 4vw, 56px) clamp(16px, 3vw, 36px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erica-kit-newsletter-slot .erica-kit-newsletter {
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.erica-kit-newsletter--article,
.erica-kit-newsletter--shortcode {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 34px auto 18px;
  padding: clamp(12px, 2.4vw, 20px);
  border: 1px solid #e7dbd2;
  border-radius: 14px;
  background: #f8f3ef;
}

/*
 * Kit inserts the real form after its async script runs. Center that form,
 * not only its WordPress wrapper. !important is needed because Kit emits
 * high-specificity, form-specific styling at runtime.
 */
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"],
.erica-kit-newsletter .formkit-form {
  box-sizing: border-box !important;
  display: block;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 9px !important;
  overflow: hidden;
}

/*
 * Pine is designed as a lead-magnet form with an image. The image cannot
 * be deleted in Kit's editor, but it can be safely hidden on this site.
 * That removes the unnecessary third block/vertical space without altering
 * the form's fields or the image stored in Kit.
 */
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-image,
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-image-container {
  display: none !important;
}

/* Collapse Pine's generously spaced left narrative and right input columns. */
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] [data-style="full"],
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] [data-style="clean"] {
  min-height: 0 !important;
  height: auto !important;
  align-items: stretch !important;
}

.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-column {
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(22px, 3vw, 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 12px !important;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-column > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-header {
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-subheader {
  margin: 0 0 8px !important;
  line-height: 1.5 !important;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-field,
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-fields {
  min-width: 0;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-input,
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-submit {
  max-width: 100% !important;
}
.erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-guarantee {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Preserve a readable mobile stack; do not shrink text with transform/zoom. */
@media (max-width: 700px) {
  .erica-kit-newsletter-slot { padding: 26px 14px; }
  .erica-kit-newsletter--article,
  .erica-kit-newsletter--shortcode {
    padding: 12px;
    margin-top: 26px;
  }
  .erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] [data-style="full"] {
    display: block !important;
  }
  .erica-kit-newsletter .formkit-form[data-uid="9f60910f61"] .formkit-column {
    padding: 24px 20px !important;
  }
}
