.product-document-row{min-width:0;margin:14px 0;padding:14px;border:1px solid #cbd5e1;border-radius:8px}.document-row-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-bottom:12px}.compact-choice-list{max-height:320px;overflow:auto;overscroll-behavior-y:auto;padding:8px;border:1px solid #dbe2ea;border-radius:8px}.document-choice{display:flex!important;gap:10px;align-items:flex-start;padding:10px;border-bottom:1px solid #e2e8f0}.document-choice input{width:auto!important;flex-shrink:0}.document-choice small{display:block;color:#64748b;margin-top:5px}.choice-filter-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.choice-filter-tools>input{flex:1;min-width:160px}.choice-filter-tools label{display:flex;gap:5px;align-items:center}.choice-filter-tools label input{width:auto}.product-document-row [hidden],.compact-choice-list [hidden]{display:none!important}.persistent-save-actions{position:fixed!important;bottom:12px;box-sizing:border-box;z-index:80;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px!important;margin:0!important;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 4px 22px #0f172a26;max-height:38vh;overflow:auto}.save-dock-outside{visibility:hidden}.save-dock-notice{font-size:12px;color:#334155;flex-basis:100%;overflow-wrap:anywhere}.save-dock-notice:empty{display:none}.product-document-card{padding:20px;display:flex;flex-direction:column;gap:10px}.product-document-card h3,.product-document-card p{margin:0}.product-document-card dl{font-size:13px;margin:0}.product-document-card dl>div{display:flex;gap:10px}.product-document-card dt{color:#64748b;flex-shrink:0}.product-document-card dd{margin:0;overflow-wrap:anywhere}.product-document-card .download-link{margin-top:auto}.product-document-preview{width:100%;height:180px;object-fit:contain}.product-document-card .muted{color:#64748b}@media(max-width:700px){.persistent-save-actions{bottom:6px;padding:8px!important}.persistent-save-actions .button,.persistent-save-actions button{padding:8px 10px}.compact-choice-list{max-height:260px}}

#contentForm[data-module="products"] [data-tab-panel="images"] .gallery-list{height:560px;min-height:220px;max-height:none;resize:vertical;overflow:auto;overscroll-behavior-y:auto;align-content:start;box-sizing:border-box;padding:0 6px 16px 0}#contentForm[data-module="products"] .gallery-row{flex-wrap:wrap}#contentForm[data-module="products"] .gallery-row label{flex-basis:100%;overflow-wrap:anywhere}@media(max-width:700px){.product-document-row .form-grid{grid-template-columns:1fr}}

/* Keep long product specifications inside their own list; open option lists stay in the scroll flow. */
#contentForm[data-module="products"] .product-parameter-fields{grid-template-columns:1fr;max-height:min(52vh,480px);overflow:auto;overscroll-behavior-y:auto;scrollbar-gutter:stable;padding:12px;border:1px solid #dbe2ea;border-radius:8px;margin-top:12px;align-content:start}#contentForm[data-module="products"] .product-parameter-fields>label{min-width:0;margin:0;padding:10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff}#contentForm[data-module="products"] .product-parameter-fields .parameter-options{position:static!important;max-height:220px!important;margin-top:6px;width:100%;box-sizing:border-box}@media(max-width:700px){#contentForm[data-module="products"] .product-parameter-fields{max-height:45vh;padding:8px}}
