/* Shared by the simple commerce dialogs only. */
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal{padding:16px;box-sizing:border-box;background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal:not([hidden]){display:grid;place-items:center}
:is(#shopModal,#withdrawModal).commerce-modal .oz-modal-backdrop{background:transparent;backdrop-filter:none}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-card,
dialog.auction-share-dialog.commerce-modal-card{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:0;padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:linear-gradient(180deg,rgba(7,14,28,.97),rgba(4,9,20,.97));box-shadow:0 20px 70px rgba(0,0,0,.62);color:#edf3ff;font:17px "Patrick Hand",cursive;overflow:auto;cursor:default}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-card{display:flex;flex-direction:column;width:min(560px,calc(100vw - 32px))}
dialog.auction-share-dialog.commerce-modal-card{margin:auto}
dialog.auction-share-dialog.commerce-modal-card::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-header,
.commerce-modal-card .commerce-modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0;padding:0;margin:0 0 16px;border:0}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-title,
.commerce-modal-card .commerce-modal-title{margin:0;padding:0;color:#fff;font:600 22px/1.25 "Patrick Hand",cursive;letter-spacing:0}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal button.commerce-modal-close,
.commerce-modal-card button.commerce-modal-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:6px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#c5d1e1;font:inherit;cursor:pointer;opacity:1}
.commerce-modal-card button.commerce-modal-close svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.commerce-modal-card button.commerce-modal-close:hover{background:rgba(255,255,255,.06);color:#fff}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-body{padding:0;min-width:0}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal .commerce-modal-actions,
.commerce-modal-card .commerce-modal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0 0;padding:0;border:0}
:is(#shopModal,#withdrawModal).commerce-modal .shop-purchase-details{display:flex;flex:1 1 180px;flex-direction:column;gap:4px;min-width:0;color:#9aa6b2;font-size:16px;font-weight:400}
:is(#shopModal,#withdrawModal).commerce-modal :is(#shopModalInfo,#withdrawModalInfo){margin:0;padding:0;line-height:1.4;font-size:16px;font-weight:400;color:#9aa6b2}
#shopModal.commerce-modal .purchase-summary{line-height:1.4}
:is(#shopModal,#withdrawModal).commerce-modal :is(#shopModalHint,#withdrawModalHint):empty{display:none}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid){max-width:100%;margin-top:0!important;overflow:auto;grid-template-columns:repeat(10,44px);gap:8px;padding:3px;box-sizing:border-box}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid) .slot{box-sizing:border-box;flex-shrink:0;width:44px;height:44px;border:2px solid #3ba1ff;border-radius:8px;background:linear-gradient(180deg,#0c3d8f,#0a2f72);box-shadow:0 2px 8px rgba(0,0,0,.25),inset 0 0 0 1px rgba(255,255,255,.1)}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid) .slot.empty{background:linear-gradient(180deg,#0b2e6a,#0a2555);border-color:#1f6fd1}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid) .slot.sel{outline:3px solid rgba(59,161,255,.65);box-shadow:0 0 0 3px rgba(59,161,255,.18)}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid) img.incoming-preview{pointer-events:none;max-width:75%;max-height:75%;opacity:.92;border:0;background:none;box-shadow:none}
:is(#shopModal,#sellModal,#withdrawModal).commerce-modal :is(#modalInvGrid,#sellInvGrid,#withdrawInvGrid) .incoming-qty{position:absolute;right:2px;bottom:2px;font-size:10px;line-height:1;background:rgba(0,0,0,.62);color:#fff;padding:2px 4px;border-radius:6px;border:1px solid rgba(255,255,255,.12)}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal button.commerce-modal-primary,
.commerce-modal-card button.commerce-modal-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;margin:0;padding:9px 14px;border:1px solid #4387af;border-radius:10px;background:#15324b;box-shadow:none;color:#fff;font:600 17px/1.25 "Patrick Hand",cursive;white-space:normal;cursor:pointer}
.commerce-modal-card button.commerce-modal-primary:hover:not(:disabled){background:#204665;border-color:#61a7ce}
.commerce-modal-card button.commerce-modal-primary:disabled{opacity:.5;cursor:not-allowed}
.commerce-modal-card button.commerce-modal-primary img{display:block;flex-shrink:0;width:18px;height:18px;margin:0;object-fit:contain}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal button.commerce-modal-secondary,
.commerce-modal-card button.commerce-modal-secondary{padding:9px 12px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#c5d1e1;font:400 17px/1.25 "Patrick Hand",cursive;cursor:pointer}
.commerce-modal-card button.commerce-modal-secondary:hover{background:rgba(255,255,255,.06);color:#fff}
.commerce-modal-card button:focus-visible{outline:2px solid #8fc7ff;outline-offset:3px}
:is(#shopModal,#titleBuyModal,#freezeBuyModal,#profileStyleBuyModal,#sellModal,#withdrawModal).commerce-modal button,
.commerce-modal-card button{letter-spacing:0}
.commerce-modal-card #shopModalConfirmPrice{font-variant-numeric:tabular-nums}
#shopModal.commerce-modal #shopModalConfirm .purchase-price{display:inline-flex;align-items:center;gap:0;white-space:nowrap}
#profileStyleBuyModal.commerce-modal .commerce-modal-card{gap:0}
#profileStyleBuyModal.commerce-modal #profileStyleBuyPreview{padding:0 3px 16px;margin:0}
#profileStyleBuyModal.commerce-modal .commerce-modal-header{margin-bottom:16px}
#profileStyleBuyModal.commerce-modal p{margin:8px 0;color:#b5c2d4}
#profileStyleBuyModal.commerce-modal .commerce-modal-actions{margin-top:16px}
.commerce-modal-card .auction-share-input{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #40516a;border-radius:8px;background:#0c1320;color:#edf3ff;font:inherit}
.commerce-modal-card label[for="auctionShareLink"]{display:block;margin-bottom:6px;color:#b5c2d4}
.commerce-modal-card [data-auction-share-copy]{font:inherit}
.auction-share-dialog.commerce-modal-card [role="status"]{margin:10px 0 0;min-height:1.3em;color:#b3e7c3;font-size:14px}

#sellModal.commerce-modal .sell-listing-limit{margin:0 0 16px;color:#9aa6b2;font-size:16px;line-height:1.4}
#sellModal.commerce-modal #sellModalInfo{margin:12px 0 0;color:#9aa6b2;font-size:16px;line-height:1.4}
#sellModal.commerce-modal #sellModalInfo:empty{display:none}
#sellModal.commerce-modal .sell-listing-fields{flex:1 1 280px;min-width:0;gap:8px}
#sellModal.commerce-modal .sell-listing-input{background:#0c1320;border:1px solid #40516a;color:#edf3ff;font:inherit}
#sellModal.commerce-modal .sell-listing-input:focus-visible{outline:2px solid #8fc7ff;outline-offset:3px}

#withdrawModal.commerce-modal{position:fixed;inset:0;z-index:100100}
#withdrawModal .commerce-modal-card{position:relative}
#withdrawInvGrid{display:grid}
#withdrawInvGrid .slot{padding:0;font:inherit;color:#fff;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
#withdrawInvGrid .slot:disabled{opacity:.45;cursor:not-allowed}
#withdrawInvGrid .slot img{max-width:90%;max-height:90%;image-rendering:pixelated;display:block}
#withdrawInvGrid .qty{position:absolute;right:2px;bottom:2px;font-size:10px;line-height:1;background:rgba(0,0,0,.45);padding:2px 4px;border-radius:6px;color:#fff}
#withdrawModal .withdraw-error{color:#ff8d8d;font-size:16px;line-height:1.4;margin-top:4px}
