/* Isolated existing-product append dialog; no importer or catalog style changes. */
#productForm .instagram-append-open{min-height:44px;margin-top:12px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#instagramProductPhotosDialog{width:min(780px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:22px;border:1px solid var(--line);border-radius:16px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);color:var(--ink)}
#instagramProductPhotosDialog::backdrop{background:rgba(20,20,20,.45)}
#instagramProductPhotosDialog .instagram-append-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}
#instagramProductPhotosDialog h3{font:25px/1.3 Georgia,serif;margin:4px 0 8px;overflow-wrap:anywhere}
#instagramProductPhotosDialog p{line-height:1.6;overflow-wrap:anywhere}
#instagramProductPhotosDialog .instagram-append-product{font-weight:600}
#instagramProductPhotosDialog .instagram-append-note{font-size:13px;color:var(--muted)}
#instagramProductPhotosDialog button{min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);max-width:100%;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#instagramProductPhotosDialog button:disabled{opacity:.5;cursor:default}
#instagramProductPhotosDialog button:focus-visible,#instagramProductPhotosDialog input:focus-visible{outline:2px solid var(--olive);outline-offset:3px}
#instagramProductPhotosDialog #instagramPhotosSave,#instagramProductPhotosDialog #instagramPhotosPreview{background:var(--ink);color:var(--bg)}
#instagramProductPhotosDialog .instagram-append-posts,#instagramProductPhotosDialog .instagram-append-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0;min-width:0;max-width:100%}
#instagramProductPhotosDialog .instagram-append-posts article{display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px}
#instagramProductPhotosDialog .instagram-append-posts button{margin-top:auto}
#instagramProductPhotosDialog img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:#f4edef;border-radius:6px;min-width:0}
#instagramProductPhotosDialog .instagram-append-caption{white-space:pre-wrap;max-height:120px;overflow:auto;font-size:14px}
#instagramProductPhotosDialog .instagram-append-choice{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;min-width:0;border:1px solid var(--line);border-radius:9px;padding:8px;cursor:pointer;font-size:14px}
#instagramProductPhotosDialog .instagram-append-choice img{grid-column:1/-1}
#instagramProductPhotosDialog .instagram-append-choice:has(input:checked){border-color:var(--olive);outline:1px solid var(--olive)}
#instagramProductPhotosDialog input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--olive);margin:0}
#instagramProductPhotosDialog figure{margin:0;min-width:0}
#instagramProductPhotosDialog figcaption{text-align:center;font-size:13px;padding:6px}
#instagramProductPhotosDialog #instagramPhotosStatus{margin:18px 0}
#instagramProductPhotosDialog #instagramPhotosResume{margin:8px 0}
@media(max-width:600px){#instagramProductPhotosDialog{padding:16px}#instagramProductPhotosDialog .instagram-append-posts,#instagramProductPhotosDialog .instagram-append-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#instagramProductPhotosDialog h3{font-size:21px}#instagramProductPhotosDialog .instagram-append-posts article{padding:8px}}
