.elementor-20724 .elementor-element.elementor-element-3acc64e{--display:flex;--background-transition:0.3s;}#elementor-popup-modal-20724 .dialog-message{width:640px;height:auto;}#elementor-popup-modal-20724{justify-content:center;align-items:center;pointer-events:all;background-color:rgba(0,0,0,.8);}#elementor-popup-modal-20724 .dialog-close-button{display:flex;}#elementor-popup-modal-20724 .dialog-widget-content{box-shadow:2px 8px 23px 3px rgba(0,0,0,0.2);}/* Start custom CSS for shortcode, class: .elementor-element-58899fb *//* -------------------------------
   Elementor Popup — 限制高度并内部滚动（通用版）
   把 #YOUR_POPUP_ID 替换为实际弹窗 ID（推荐），
   或直接使用下面的通用选择器（会影响所有 Elementor 弹窗）。
   -------------------------------*/

/* ===== 推荐：作用于指定弹窗（更安全） ===== */
#YOUR_POPUP_ID .dialog-widget-content,
#YOUR_POPUP_ID .elementor-popup__container,
#YOUR_POPUP_ID .elementor-widget-wrap {
  max-height: calc(100vh - 120px);  /* 距离上下各留 60px，可按需调整 */
  overflow-y: auto;                 /* 内容超出时内部滚动 */
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
  box-sizing: border-box;
  padding-right: 10px;              /* 给滚动条留空避免遮挡内容 */
}

/* 针对弹窗内长表单字段（比如很多 radio/checkbox 选项）单独滚动 */
#YOUR_POPUP_ID .forminator-field .forminator-radio-list,
#YOUR_POPUP_ID .forminator-field .forminator-checkbox-list,
#YOUR_POPUP_ID .elementor-widget-wrap .choices,
#YOUR_POPUP_ID .elementor-widget-wrap .options {
  max-height: 260px;                /* 单个长选项区域最大高度，调整范围 180~360px */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 8px;
  border-radius: 6px;
}

/* 移动端适配：窄屏时减少留白，提升可见区域 */
@media (max-width: 768px) {
  #YOUR_POPUP_ID .dialog-widget-content,
  #YOUR_POPUP_ID .elementor-popup__container {
    max-height: calc(100vh - 40px); /* 手机上上下各留 20px */
    padding: 10px;
  }
  #YOUR_POPUP_ID .forminator-field .forminator-radio-list,
  #YOUR_POPUP_ID .forminator-field .forminator-checkbox-list {
    max-height: 180px;
  }
}

/* ===== 通用选择器（如果你希望全站所有弹窗都默认应用，取消注释使用） ===== */
/*
.elementor-popup-modal .dialog-widget-content,
.elementor-popup-modal .elementor-popup__container,
.elementor-popup-modal .elementor-widget-wrap {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
*//* End custom CSS */