.xlml-consult-modal[hidden]{display:none!important}.xlml-consult-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(7,18,30,.58)}.xlml-consult-dialog{width:min(460px,100%);border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.28);overflow:hidden;font-family:Arial,"Microsoft YaHei",sans-serif}.xlml-consult-head{display:flex;justify-content:space-between;padding:24px 24px 16px;background:linear-gradient(135deg,#2269c7,#3b82d8);color:#fff}.xlml-consult-head h2{margin:0;font-size:22px}.xlml-consult-head p{margin:6px 0 0;font-size:13px;opacity:.86}.xlml-consult-close{border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}.xlml-consult-body{padding:22px 24px 24px}.xlml-consult-field{margin-bottom:15px}.xlml-consult-field label{display:block;margin-bottom:7px;color:#26364a;font-size:14px;font-weight:700}.xlml-consult-field input,.xlml-consult-field textarea{display:block;width:100%;border:1px solid #d7e0ea;border-radius:8px;padding:11px 12px;color:#24364a;font:inherit;outline:0}.xlml-consult-field input:focus,.xlml-consult-field textarea:focus{border-color:#2f77d8;box-shadow:0 0 0 3px rgba(47,119,216,.12)}.xlml-consult-field textarea{min-height:110px;resize:vertical}.xlml-consult-actions{display:flex;gap:12px;margin-top:18px}.xlml-consult-submit{border:0;border-radius:8px;background:#2f77d8;color:#fff;padding:11px 22px;font-weight:700;cursor:pointer}.xlml-consult-submit:disabled{opacity:.6;cursor:wait}.xlml-consult-cancel{border:0;background:transparent;color:#64748b;cursor:pointer}.xlml-consult-status{min-height:20px;margin-top:13px;font-size:13px;color:#64748b}.xlml-consult-status.error{color:#c2410c}.xlml-consult-status.success{color:#15803d}.xlml-consult-consent{display:flex;gap:8px;color:#64748b;font-size:12px;line-height:1.5}.xlml-consult-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}@media(max-width:520px){.xlml-consult-modal{align-items:flex-end;padding:0}.xlml-consult-dialog{border-radius:16px 16px 0 0}.xlml-consult-body{padding:18px 20px 22px}} /* 防止边框和内边距撑大弹窗及输入框 */
.xlml-consult-modal,
.xlml-consult-modal *,
.xlml-consult-modal *::before,
.xlml-consult-modal *::after {
  box-sizing: border-box;
}

.xlml-consult-field input,
.xlml-consult-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* XLML_ACTIVE_FIELD_VISIBILITY_V1: keep the consultation form usable when a phone keyboard reduces the viewport. */
@media (max-width:850px) {
  .xlml-consult-modal .xlml-consult-dialog {
    display:flex;
    flex-direction:column;
    max-height:calc(100vh - 16px);
    max-height:calc(100dvh - 16px);
    font-size:16px;
    line-height:1.4;
  }
  .xlml-consult-modal .xlml-consult-head {
    flex-shrink:0;
    gap:12px;
  }
  .xlml-consult-modal .xlml-consult-body {
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
  }
  .xlml-consult-modal .xlml-consult-done {
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
  }
  .xlml-consult-modal .xlml-consult-field input,
  .xlml-consult-modal .xlml-consult-field textarea {
    min-height:44px;
    padding:10px 12px;
    font-size:16px;
    line-height:1.5;
  }
  .xlml-consult-modal .xlml-consult-field textarea { min-height:110px; }
  .xlml-consult-modal .xlml-consult-submit,
  .xlml-consult-modal .xlml-consult-cancel {
    min-height:44px;
    padding:10px 18px;
    font-size:16px;
    line-height:1.4;
  }
  .xlml-consult-modal .xlml-consult-close {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    padding:0;
    line-height:1;
    align-self:flex-start;
  }
  .xlml-consult-modal .xlml-consult-consent {
    min-height:44px;
    align-items:center;
    font-size:14px;
  }
  .xlml-consult-modal .xlml-consult-consent input {
    flex:0 0 18px;
    width:18px;
    height:18px;
    margin:0;
  }
}
