.stock-gallery-editor{min-width:0;padding:18px;border:1px solid var(--border,#ead4df);border-radius:16px;background:#fff;grid-column:1/-1}
.stock-gallery-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.stock-gallery-heading h4{font-size:16px;margin:0;color:var(--text,#33242b)}
.stock-gallery-heading>span,.stock-gallery-hint,.stock-gallery-message,.stock-gallery-empty{font-size:13px;color:var(--muted,#806c76);line-height:1.5}
.stock-gallery-hint{margin:9px 0 14px}.stock-gallery-message:empty{display:none}
.stock-gallery-picker{display:grid;gap:8px;font-size:13px;font-weight:600}.stock-gallery-picker input{max-width:100%;min-width:0;font-size:13px}
.stock-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:14px;min-width:0}
.stock-gallery-item{min-width:0;margin:0;padding:8px;border:1px solid #ead4df;border-radius:12px;background:#fff}
.stock-gallery-item img,.stock-gallery-item video,.stock-gallery-placeholder{width:100%;height:150px;object-fit:contain;display:block;border-radius:8px;background:#faf4f7}.stock-gallery-placeholder{display:grid;place-content:center;color:#8a6b79;font-size:13px}
.stock-gallery-item figcaption{font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin:8px 0;color:#65525d}
.stock-gallery-item-actions,.stock-gallery-pending-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stock-gallery-pending-actions{margin-top:14px}
.stock-gallery-item-actions .btn{font-size:11px;padding:6px 8px;min-height:32px}.stock-gallery-badge{display:inline-block;font-size:11px;line-height:1.4;padding:4px 8px;border-radius:20px;background:#f5dde8;color:#8a234b}
.stock-gallery-error{font-size:13px;color:var(--danger,#a82949);line-height:1.5;overflow-wrap:anywhere}.stock-gallery-empty{grid-column:1/-1;margin:0}
@media(max-width:480px){.stock-gallery-editor{padding:12px}.stock-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stock-gallery-item img,.stock-gallery-item video,.stock-gallery-placeholder{height:130px}.stock-gallery-pending-actions .btn{flex:1 1 180px;white-space:normal}}
