Hi guys 
I know there must a simple way with jQuery to position a #cart-modal-element's .x-modal-close at just inside the top-right of the modal itself (.x-modal-bg) rather than the top-right of the entire screen. Using CSS to position: absolute the .x-modal-close doesn’t work unfortunately, because the cart itself changes size as items are added/removed, so that anywhere you place it initially will look bad once the modal is in use. Unfortunately if I do leave it at the top-right of the screen, users I’ve tested my store on are clicking the x's of products to try and close the cart modal
but of course are removing their products instead.
From googling I can see that the solution must be something simple like the below code, but as I know next to nothing about jQuery I’m getting caught up in trial and error and the x hasn’t moved as yet, unfortunately.
Any ideas would be appreciated…!
$( "#position1" ).position({
my: "center",
at: "center",
of: "#targetElement"
});