/* XMG Document Request Builder live patch 20260812 */
.xmg-pf-document-live-section { background: #fff; }
.xmg-pf-document-builder { margin-top: 4px; }
.xmg-pf-document-guidance { max-width: 740px; margin: 0 0 20px; color: var(--xmg-muted, #45677c); font-size: 13px; line-height: 1.65; }
.xmg-pf-document-guidance strong { color: var(--xmg-navy-deep, #051d36); }
.xmg-pf-document-grid { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.xmg-pf-document-grid legend { width: 100%; margin-bottom: 13px; color: var(--xmg-navy, #0b3158); font-size: 12px; font-weight: 820; }
.xmg-pf-document-grid label { position: relative; min-width: 0; min-height: 72px; padding: 14px 13px; border: 1px solid var(--xmg-line, #d5e4ea); border-radius: var(--xmg-radius-md, 14px); display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; background: #fff; box-shadow: 0 0 0 rgba(6,45,75,0); transition: color .22s ease-out, border-color .22s ease-out, background .22s ease-out, box-shadow .22s ease-out, transform .22s ease-out; }
.xmg-pf-document-grid label:hover { border-color: var(--xmg-line-strong, #9fc4d2); box-shadow: 0 10px 24px rgba(6,45,75,.07); transform: translateY(-2px); }
.xmg-pf-document-grid label:focus-within { border-color: var(--xmg-focus, #31add0); outline: 3px solid rgba(49,173,208,.22); outline-offset: 2px; }
.xmg-pf-document-grid label.is-selected { border-color: var(--xmg-blue, #0b789f); background: #edf7fa; box-shadow: 0 14px 30px rgba(6,78,111,.1); transform: translateY(-3px); }
.xmg-pf-document-grid input { width: 18px; height: 18px; margin: 0; accent-color: var(--xmg-blue, #0b789f); }
.xmg-pf-document-grid input:focus-visible { outline: 0; }
.xmg-pf-document-name { min-width: 0; color: var(--xmg-navy-deep, #051d36); font-size: 12px; font-weight: 760; line-height: 1.4; overflow-wrap: anywhere; }
.xmg-pf-document-added { position: absolute; top: 7px; right: 8px; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--xmg-blue, #0b789f); font-size: 8px; font-weight: 850; letter-spacing: .35px; text-transform: uppercase; opacity: 0; transform: translateY(3px); transition: opacity .18s ease-out, transform .18s ease-out; }
.xmg-pf-document-grid label.is-selected .xmg-pf-document-added { opacity: 1; transform: translateY(0); }
.xmg-pf-document-summary { margin-top: 18px; padding: 24px 26px 25px; overflow: hidden; border: 1px solid #b9d9e4; border-radius: var(--xmg-radius-lg, 18px); background: linear-gradient(135deg, #f4fafc 0%, #eaf5f8 100%); box-shadow: 0 12px 30px rgba(6,45,75,.07); transform-origin: top center; }
.xmg-pf-document-summary[hidden], .xmg-pf-document-completion[hidden], .xmg-pf-inquiry-documents[hidden] { display: none !important; }
.xmg-pf-document-summary.is-revealing { animation: xmg-document-summary-in .3s ease-out both; }
@keyframes xmg-document-summary-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.xmg-pf-document-summary-head { display: flex; align-items: start; justify-content: space-between; gap: 22px; }
.xmg-pf-document-summary-head > div { display: grid; gap: 6px; }
.xmg-pf-document-summary-head span, .xmg-pf-document-summary-head small { color: var(--xmg-blue, #0b789f); font-size: 10px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.xmg-pf-document-summary-head strong { color: var(--xmg-navy-deep, #051d36); font-size: 18px; line-height: 1.3; }
.xmg-pf-document-summary ul, .xmg-pf-inquiry-documents ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.xmg-pf-document-summary li, .xmg-pf-inquiry-documents li { padding: 7px 10px; border: 1px solid #c6e0e9; border-radius: 999px; color: var(--xmg-navy, #0b3158); background: #fff; font-size: 10px; font-weight: 760; line-height: 1.35; }
.xmg-pf-document-summary > p { max-width: 850px; margin: 17px 0 0; color: var(--xmg-muted, #45677c); font-size: 11px; line-height: 1.62; }
.xmg-pf-document-actions { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.xmg-pf-document-actions button { min-height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 820; transition: color .2s ease-out, border-color .2s ease-out, background .2s ease-out, transform .2s ease-out; }
.xmg-pf-document-continue { border: 1px solid var(--xmg-blue, #0b789f); color: #fff; background: var(--xmg-blue, #0b789f); }
.xmg-pf-document-continue:hover { background: #086789; transform: translateY(-2px); }
.xmg-pf-document-clear { border: 1px solid #bfd6df; color: var(--xmg-navy, #0b3158); background: #fff; }
.xmg-pf-document-clear:hover:not(:disabled) { border-color: var(--xmg-blue, #0b789f); color: var(--xmg-blue, #0b789f); }
.xmg-pf-document-clear:disabled { opacity: .48; cursor: default; }
.xmg-pf-document-completion { position: relative; margin-top: 20px; padding: 17px 18px 15px; border-top: 2px solid #79ad63; display: flex; align-items: flex-start; gap: 12px; color: #355b49; background: rgba(255,255,255,.6); }
.xmg-pf-document-completion::before { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--xmg-green, #66a941); transform-origin: left center; }
.xmg-pf-document-completion.is-celebrating::before { animation: xmg-document-complete-line .58s ease-out both; }
@keyframes xmg-document-complete-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.xmg-pf-document-completion > span { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--xmg-green, #66a941); font-size: 13px; font-weight: 850; }
.xmg-pf-document-completion strong { color: #294f3e; font-size: 13px; }
.xmg-pf-document-completion p { margin: 4px 0 0; color: #557066; font-size: 11px; line-height: 1.5; }
.xmg-pf-document-status { min-height: 18px; margin: 8px 0 0; color: var(--xmg-blue, #0b789f); font-size: 10px; }
.xmg-pf-current-selection.xmg-pf-current-selection--documents { margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--xmg-green, #66a941); border-radius: 0 14px 14px 0; background: rgba(234,246,249,.96); }
.xmg-pf-current-selection--documents > span, .xmg-pf-inquiry-documents > span { color: var(--xmg-blue, #0b789f); font-size: 9px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.xmg-pf-current-selection--documents p { margin: 7px 0 0 !important; color: var(--xmg-navy-deep, #051d36) !important; font-size: 12px !important; font-weight: 720; line-height: 1.55; }
.xmg-pf-inquiry-documents { margin-top: 14px; padding: 18px 20px; border: 1px solid #c6e0e9; border-radius: 14px; background: #f3f9fb; transition: border-color .2s ease-out, background .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out; }
.xmg-pf-inquiry-documents:focus-visible { outline: 3px solid rgba(49,173,208,.32); outline-offset: 3px; }
.xmg-pf-inquiry-documents.is-highlighted { border-color: var(--xmg-green, #66a941); background: #f3faf5; box-shadow: 0 16px 32px rgba(69,119,53,.12); transform: translateY(-2px); }
.xmg-global-inquiry-copy .xmg-pf-inquiry-documents ul { margin: 11px 0 0; padding: 0; list-style: none; }
.xmg-pf-inquiry-documents p { margin: 12px 0 0 !important; color: var(--xmg-muted, #45677c) !important; font-size: 10px !important; line-height: 1.55; }
@media (max-width: 1023px) { .xmg-pf-document-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .xmg-pf-document-grid { grid-template-columns: 1fr; }
  .xmg-pf-document-guidance, .xmg-pf-document-name { font-size: 14px; }
  .xmg-pf-document-grid label { min-height: 66px; padding: 14px; }
  .xmg-pf-document-summary { padding: 21px 18px 22px; }
  .xmg-pf-document-summary-head { display: grid; gap: 9px; }
  .xmg-pf-document-summary-head strong { font-size: 17px; }
  .xmg-pf-document-actions { align-items: stretch; flex-direction: column; }
  .xmg-pf-document-actions button { width: 100%; min-height: 48px; }
  .xmg-pf-document-summary li, .xmg-pf-inquiry-documents li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .xmg-pf-document-grid label, .xmg-pf-document-added, .xmg-pf-document-actions button, .xmg-pf-inquiry-documents { transition: none; }
  .xmg-pf-document-grid label:hover, .xmg-pf-document-grid label.is-selected, .xmg-pf-document-continue:hover, .xmg-pf-inquiry-documents.is-highlighted { transform: none; }
  .xmg-pf-document-summary.is-revealing, .xmg-pf-document-completion.is-celebrating::before { animation: none; }
}