/* Narrow scope: additional-files dialog only. Do not restyle Cart/RFQ/Messaging. */
.m3dreader__additional-files--file-preview.z3dqa-support-files {
  display:flex; flex-direction:column; gap:8px; width:100%; min-width:0;
  margin:10px 0;
}
.z3dqa-support-row {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 12px; border:1px solid #e2e8f0; border-radius:9px; background:#f8fafc;
  max-width:100%; min-width:0;
}
.z3dqa-support-row__file {flex:1 1 180px; min-width:0; overflow-wrap:anywhere; color:#203049; font-size:13px;}
.z3dqa-support-row__remove {flex:0 0 auto; font-size:12px; cursor:pointer; background:#fff; border:1px solid #ffd5e0; color:#cb0040; border-radius:7px; padding:5px 10px;}
.z3dqa-support-row__remove:disabled {opacity:.55;cursor:wait;}
.z3dqa-quote-support-feedback {font-size:13px;margin:12px 0;padding:10px 12px;border-radius:8px;background:#eff6ff;color:#244165;white-space:normal;overflow-wrap:anywhere;}
.z3dqa-quote-support-feedback:empty {display:none;}
.z3dqa-quote-support-feedback.is-error {background:#fff1f2;color:#9f1239;}
.z3dqa-quote-support-feedback.is-success {background:#f0fdf4;color:#166534;}
/* v35.14.24: clear per-model files and preview feedback. */
.m3dreader .z3dqa-support-files {display:flex!important;flex-direction:column!important;gap:8px;width:100%;min-width:0;max-width:100%;margin:12px 0;visibility:visible!important;opacity:1!important;}
.m3dreader .z3dqa-support-row {display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;}
.m3dreader .z3dqa-support-thumbnail {display:block;width:48px;height:48px;max-width:48px;flex:0 0 48px;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb;background:white;}
.m3dreader .z3dqa-support-row__file {flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.35;}
.m3dreader .z3dqa-support-row__file strong {font-size:13px;display:inline;font-weight:600;}
.m3dreader .z3dqa-support-row__status {font-size:12px;color:#64748b;}
.m3dreader .z3dqa-support-empty {border:1px dashed #cbd5e1;border-radius:7px;background:#f8fafc;color:#667085;font-size:12px;padding:9px 11px;}
.m3dreader .z3dqa-support-row__remove {margin-left:auto;min-height:30px;}
@media(max-width:480px){.m3dreader .z3dqa-support-row{gap:7px;}.m3dreader .z3dqa-support-thumbnail{width:38px;height:38px;max-width:38px;flex-basis:38px;}}

/* v35.14.26: show which attachment handler is actually active. */
#z3dqa-secure-quote-off{margin:14px auto;padding:12px 16px;max-width:1100px;border:2px solid #e11d48;background:#fff1f2;color:#991b1b;border-radius:9px;font-size:14px;font-weight:700;}
/* Only the secure supporting-files popup is restyled. Shared Reader popups stay unchanged. */
.popup-render-init .popup-render.z3dqa-quote-attachment-modal { padding:14px !important; }
.popup-render-init .popup-render.z3dqa-quote-attachment-modal .popup-render__content {
  box-sizing:border-box; width:min(650px,100%) !important; max-width:650px !important;
  max-height:calc(100dvh - 28px); padding:20px 22px 16px !important;
  border-radius:16px; overflow:hidden; box-shadow:0 18px 56px rgba(15,23,42,.22);
}
.popup-render-init .popup-render.z3dqa-quote-attachment-modal .popup-render__main {
  display:flex !important; flex-direction:column !important; gap:0 !important;
  max-height:calc(100dvh - 64px) !important; height:auto !important;
  min-height:0; overflow:hidden !important;
}
.popup-render.z3dqa-quote-attachment-modal .popup-render__header {
  flex:0 0 auto; padding:0 40px 12px 0; border-bottom:1px solid #edf1f5;
}
.popup-render.z3dqa-quote-attachment-modal .popup-render__title {
  margin:0 !important; font-size:clamp(19px,2.4vw,23px) !important; line-height:1.3 !important;
  font-weight:750 !important; color:#1c293d !important;
}
.popup-render.z3dqa-quote-attachment-modal .popup-render__body {
  flex:1 1 auto; min-height:0; overflow-y:auto !important; overscroll-behavior:contain;
  padding:15px 4px 12px 0 !important; scrollbar-gutter:stable;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--section {
  margin:0 !important; padding:0 !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--section--note {
  margin-top:15px !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--section-title {
  margin:0 !important; font-size:14px !important; line-height:1.3 !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--filename {
  font-size:12px !important; color:#65748a !important; line-height:1.35 !important;
  overflow-wrap:anywhere;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--description {
  margin:7px 0 12px !important; color:#65748a !important;
  line-height:1.45 !important; font-size:12px !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--upload {
  box-sizing:border-box; min-width:0 !important; height:36px !important;
  padding:0 12px !important; font-size:12px !important; border-radius:9px !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-support-files {
  box-sizing:border-box; gap:6px !important; max-height:190px; overflow-y:auto;
  padding:0 3px 0 0 !important; margin:10px 0 0 !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-support-row {
  box-sizing:border-box; display:flex !important; flex-wrap:nowrap !important;
  align-items:center !important; padding:7px 9px !important; gap:8px !important;
  min-height:48px !important; border-radius:9px !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-support-thumbnail {
  box-sizing:border-box; width:38px !important; height:38px !important; max-width:38px !important;
  flex:0 0 38px !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-support-row__remove {
  box-sizing:border-box; display:inline-flex !important; align-items:center; justify-content:center;
  flex:0 0 auto !important; width:auto !important; min-width:0 !important;
  max-width:none !important; min-height:30px !important; height:30px !important;
  margin:0 0 0 auto !important; padding:5px 10px !important;
  border:1px solid #f4c4d1 !important; border-radius:7px !important;
  background:#fff !important; color:#ca0a43 !important;
  font:650 11px/1 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  box-shadow:none !important; text-transform:none !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-support-row__remove:hover {
  background:#fff1f4 !important; border-color:#e40c44 !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--textarea-wrap {
  margin-top:7px !important;
}
.popup-render.z3dqa-quote-attachment-modal #m3dreader__model-additional-note {
  box-sizing:border-box; display:block; min-height:78px !important; height:94px !important;
  max-height:160px !important; padding:10px 12px 22px !important; resize:vertical;
  font-size:13px !important; line-height:1.5 !important;
}
.popup-render.z3dqa-quote-attachment-modal .m3dreader__additional-files--counter {
  font-size:11px !important; right:6px !important; bottom:5px !important;
}
.popup-render.z3dqa-quote-attachment-modal .z3dqa-quote-support-feedback {
  flex:0 0 auto; box-sizing:border-box; margin:4px 0 !important;
  padding:7px 10px !important; font-size:12px !important; line-height:1.4 !important;
}
.popup-render-init .popup-render.z3dqa-quote-attachment-modal .popup-render__footer {
  flex:0 0 auto; display:flex !important; align-items:center !important;
  justify-content:flex-end !important; flex-wrap:nowrap !important; gap:8px !important;
  min-height:0 !important; margin:0 !important; padding:12px 0 0 !important;
  border-top:1px solid #e7edf4;
  background:#fff;
}
.popup-render.z3dqa-quote-attachment-modal .popup-render__footer .m3dreader__btn {
  box-sizing:border-box; display:inline-flex !important; justify-content:center; align-items:center;
  flex:0 0 auto !important; width:auto !important; min-width:88px !important;
  max-width:140px !important; min-height:36px !important; height:36px !important;
  margin:0 !important; padding:8px 14px !important;
  border-radius:9px !important; font:700 12px/1 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  text-transform:none !important; box-shadow:none !important;
}
.popup-render.z3dqa-quote-attachment-modal .popup-render__close {
  width:32px !important; height:32px !important; top:12px !important; right:12px !important;
}
@media(max-width:600px){
  .popup-render-init .popup-render.z3dqa-quote-attachment-modal {padding:8px !important;}
  .popup-render-init .popup-render.z3dqa-quote-attachment-modal .popup-render__content {
    width:100% !important; padding:15px 13px 12px !important; border-radius:12px;
    max-height:calc(100dvh - 16px);
  }
  .popup-render-init .popup-render.z3dqa-quote-attachment-modal .popup-render__main {
    max-height:calc(100dvh - 46px) !important;
  }
  .popup-render.z3dqa-quote-attachment-modal .popup-render__body{padding-right:1px !important;scrollbar-gutter:auto;}
  .popup-render.z3dqa-quote-attachment-modal .z3dqa-support-files{max-height:152px;}
  .popup-render.z3dqa-quote-attachment-modal .z3dqa-support-row__remove{padding:5px 8px !important;}
  .popup-render.z3dqa-quote-attachment-modal #m3dreader__model-additional-note{height:82px !important;}
}

