/* PondLife 7.87 — approved Trading Post refinements only. */
/* Wallet lives below How Trading Works, in the left column beside Trade Values. */
body:has(#trading-post) .sp-combined-puddles-how{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important}
body:has(#trading-post) .sp-combined-puddles-how .pl784-wallet{width:100%!important;max-width:100%!important;margin:18px 0 0!important;box-sizing:border-box!important;padding:14px 18px!important}
body:has(#trading-post) .sp-combined-puddles-how .pl784-wallet-inner>img{width:44px!important;height:44px!important;object-fit:contain!important}
/* The rarity emblem is an underlay, not a foreground sticker. */
body:has(#trading-post) #trading-duplicates .sp-trading-image-wrap,
body:has(#trading-post) #trading-missing .sp-trading-image-wrap{position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;justify-content:center!important}
body:has(#trading-post) #trading-duplicates .sp-trading-image-wrap img.pl784-rarity-icon,
body:has(#trading-post) #trading-missing .sp-trading-image-wrap img.pl784-rarity-icon{position:absolute!important;top:3px!important;left:3px!important;width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;z-index:0!important;object-fit:contain!important;margin:0!important;pointer-events:auto!important}
body:has(#trading-post) #trading-duplicates .sp-trading-image-wrap>img:not(.pl784-rarity-icon),
body:has(#trading-post) #trading-missing .sp-trading-image-wrap>img:not(.pl784-rarity-icon){position:relative!important;z-index:1!important;display:block!important;margin:auto!important;pointer-events:none!important;object-fit:contain!important}
/* Today's Selection: same underlay and centered duck, with compact icon + number pricing. */
body:has(#trading-post) #puddles-stock-grid .pl783-stock-image{position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:112px!important;max-height:112px!important}
body:has(#trading-post) #puddles-stock-grid .pl783-stock-image img.pl784-rarity-icon{position:absolute!important;top:3px!important;left:5px!important;width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;z-index:0!important;object-fit:contain!important;pointer-events:auto!important;margin:0!important}
body:has(#trading-post) #puddles-stock-grid .pl783-stock-image>img:not(.pl784-rarity-icon){position:relative!important;z-index:1!important;display:block!important;width:100%!important;height:108px!important;max-width:100%!important;max-height:108px!important;object-fit:contain!important;margin:auto!important;pointer-events:none!important}
body:has(#trading-post) #puddles-stock-grid .sp-puddles-price-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-weight:800!important;color:#351750!important;background:transparent!important;border:0!important;padding:0!important;white-space:nowrap!important}
body:has(#trading-post) #puddles-stock-grid .sp-puddles-price-pill img.pl784-inline-coin{display:inline-block!important;flex:0 0 19px!important;width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;object-fit:contain!important;margin:0!important}
/* Center the duplicate card's cost and Max in one row, with quantity controls below. */
body:has(#trading-post) #trading-duplicates .sp-trading-duck-card{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}
body:has(#trading-post) #trading-duplicates .sp-trading-meta{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;margin:2px auto!important;min-width:0!important}
body:has(#trading-post) #trading-duplicates .sp-trading-meta .sp-trading-qty-label{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;margin:0!important;white-space:nowrap!important}
body:has(#trading-post) #trading-duplicates .sp-trading-qty-control{align-self:center!important;margin:6px auto 4px!important}
body:has(#trading-post) #trading-duplicates .sp-trading-meta-points{display:inline-flex!important;align-items:center!important;justify-content:center!important}
/* One compact Coin icon plus amount in the wallet, selection bar, and history. */
body:has(#trading-post) #trading-selection-points .pl784-coin-amount,
body:has(#trading-post) #trading-history-list .pl784-coin-amount{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;white-space:nowrap!important}
body:has(#trading-post) #trading-selection-points .pl784-coin-amount img,
body:has(#trading-post) #trading-history-list .pl784-coin-amount img{display:inline-block!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain!important}
/* Second decorative divider immediately above Recent Trades / Helpful Links. */
body:has(#trading-post) .pl787-footer-divider{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;margin:30px 0 24px!important;clear:both!important}
@media(max-width:750px){body:has(#trading-post) #puddles-stock-grid .pl783-stock-image img.pl784-rarity-icon{width:32px!important;height:32px!important}}
/* Remove only the decorative duck from the trade selection bar. */
body:has(#trading-post) #trading-selection-bar::before{content:none!important;display:none!important}
