#pmt-top-cart{display:inline-block;padding:9px 12px;background:#222;color:white!important;border-radius:4px;font:600 14px Arial,sans-serif}#pmt-cart-panel{max-width:1100px;margin:25px auto;padding:20px;background:#fff;border:1px solid #ddd;font:15px Arial,sans-serif}#pmt-cart-panel h2{text-align:center}.pmt-cart-row{display:flex;justify-content:space-between;gap:15px;padding:12px;border-bottom:1px solid #ddd}.pmt-cart-row button,#pmt-send-order,.pmt-gallery-quote,#pmt-picture-modal button{background:#222;color:white;border:0;border-radius:3px;padding:9px 12px;cursor:pointer}.pmt-note{font-size:12px;color:#555}.pmt-gallery-quote{font-size:13px}#pmt-picture-modal[hidden]{display:none!important}#pmt-picture-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center}.pmt-modal-shade{position:absolute;inset:0;background:rgba(0,0,0,.84)}.pmt-modal-dialog{position:relative;background:#fff;max-width:min(94vw,1000px);max-height:95vh;overflow:auto;text-align:center;padding:14px 22px 22px;box-sizing:border-box}.pmt-modal-dialog img{display:block;max-width:100%;max-height:68vh;width:auto;height:auto;object-fit:contain;margin:12px auto}.pmt-modal-dialog h2{margin:8px}.pmt-modal-dialog button{margin:5px}#pmt-cart-status:not(:empty){position:fixed;z-index:999999;bottom:20px;right:20px;background:#222;color:white;padding:12px 18px}

/* Black background for shopping cart in navigation. */
#p7AMM_1 #pmt-top-cart, #pmt-top-cart { background:#000 !important; color:#fff !important; }
#p7AMM_1 #pmt-top-cart:hover, #p7AMM_1 #pmt-top-cart:focus { background:#000 !important; color:#fff !important; }

/* Checkout form alignment: override legacy gallery form styles without affecting other pages. */
#pmt-checkout, #pmt-checkout * { box-sizing: border-box; }
#pmt-checkout { width: min(100%, 850px); margin: 24px auto; padding: clamp(16px,3vw,28px); text-align: left; }
#pmt-checkout-form { display: block; width: 100%; margin: 0; padding: 0; }
#pmt-checkout .pmt-checkout-fields { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 20px !important; width: 100%; margin: 22px 0 !important; align-items: start; }
#pmt-checkout .pmt-checkout-fields > label { display: flex !important; flex-direction: column !important; float: none !important; clear: none !important; position: static !important; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; text-align: left !important; font-size: 15px; line-height: 1.5; font-weight: 600; }
#pmt-checkout .pmt-checkout-fields > label.pmt-wide { grid-column: 1 / -1 !important; }
#pmt-checkout .pmt-checkout-fields input, #pmt-checkout .pmt-checkout-fields textarea { display: block !important; position: static !important; float: none !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: auto !important; margin: 6px 0 0 !important; padding: 11px 12px !important; border: 1px solid #aaa !important; border-radius: 4px !important; background: #fff !important; color: #222 !important; font: 16px/1.4 Arial, sans-serif !important; text-align: left !important; box-shadow: none !important; }
#pmt-checkout .pmt-checkout-fields textarea { min-height: 110px !important; resize: vertical; }
#pmt-checkout .pmt-checkout-fields input:focus, #pmt-checkout .pmt-checkout-fields textarea:focus { outline: 2px solid #6b39a3; outline-offset: 1px; }
#pmt-checkout-items .pmt-checkout-item { min-width: 0; }
#pmt-checkout-items .pmt-checkout-item > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 650px) { #pmt-checkout .pmt-checkout-fields { grid-template-columns: minmax(0, 1fr) !important; } #pmt-checkout .pmt-checkout-fields > label.pmt-wide { grid-column: auto !important; } }

/* Cart and checkout artwork images: prevent original high-resolution files from expanding the page. */
#pmt-cart-panel, #pmt-cart-contents, #pmt-selected-pictures, #pmt-checkout, #pmt-checkout-items {box-sizing:border-box; max-width:100%; min-width:0;}
#pmt-selected-pictures .pmt-cart-picture {display:flex; align-items:flex-start; gap:14px; flex-wrap:wrap; max-width:100%; min-width:0; margin:12px 0; padding:10px; box-sizing:border-box;}
#pmt-selected-pictures .pmt-cart-picture > img {display:block!important; width:120px!important; height:120px!important; max-width:120px!important; max-height:120px!important; min-width:0!important; object-fit:contain!important; flex:0 0 120px!important; margin:0!important;}
#pmt-selected-pictures .pmt-cart-picture > div {flex:1 1 160px; min-width:0; overflow-wrap:anywhere;}
#pmt-checkout-items .pmt-checkout-item {display:flex; align-items:flex-start; gap:12px; max-width:100%; min-width:0;}
#pmt-checkout-items .pmt-checkout-item > img {display:block!important; width:90px!important; height:90px!important; max-width:90px!important; max-height:90px!important; object-fit:contain!important; flex:0 0 90px!important; margin:0!important;}
@media(max-width:480px){#pmt-selected-pictures .pmt-cart-picture > img{width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important;flex-basis:96px!important;}}
