/* Styles that the WordPress JS used to set inline at runtime (popup, menu panel, forms). */

/* popup: Elementor positions the dialog with JS; do it with CSS */
.zh-popup[hidden] { display: none !important; }
.zh-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
}
.zh-popup .dialog-widget-content {
  position: relative;
  max-width: 100%;
  background: #fff;
}
.zh-popup .dialog-message { max-width: 100%; }
.zh-popup .zh-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}
html.zh-popup-open { overflow: hidden; }

/* Fluent Forms: submit state, success message */
.frm-fluent-form.ff_submitting { opacity: .6; pointer-events: none; }
.zh-success { margin-top: 12px; padding: 12px 16px; background: #eaf5ef; color: #306656; border-radius: 4px; }
.zh-success p { margin: 0; }

/* the static replacement of MetForm */
.zh-metform .zh-field { margin-bottom: 12px; }
.zh-metform input[type=text], .zh-metform input[type=tel] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}
.zh-metform button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #306656;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.zh-metform .zh-check label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.zh-metform .ff-el-is-error input { border-color: #e04040; }
.zh-metform .error.text-danger, .frm-fluent-form .error.text-danger { color: #e04040; font-size: 13px; margin-top: 4px; }

/* Elementor hides popup templates until its JS opens them */
.zh-popup [data-elementor-type=popup]:not(.elementor-edit-area) { display: block; }
