.catalog-buy-tab{display:none!important}
@media(max-width:720px){.catalog-buy-tab{display:grid!important}}
.sell-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.sell-actions button[hidden]{display:none!important}
.sell-actions button svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:720px){.sell-actions button svg{display:none}}
/* Inline catalog purchase controls: quantity and confirmation stay on the item card. */
.store-card .store-buy-controls{display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:26px 24px;align-items:stretch;min-width:0;max-width:100%;width:100%;gap:4px;margin-top:auto;overflow:hidden}
.store-card .store-quantity{display:flex;grid-column:1 / -1;align-items:center;justify-content:center;gap:3px;min-width:0;max-width:100%;width:100%;height:26px;padding:3px;overflow:hidden;border:1px solid #5c3b7d;border-radius:7px;background:#171021}
.store-card .store-quantity button{display:grid;width:22px;height:22px;margin:0;padding:0;border:1px solid #5c3b7d;border-radius:5px;color:#e5cfff;background:#241536;line-height:0;place-items:center}
.store-card .store-quantity button svg{display:block;width:12px;height:12px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.store-card .store-quantity button:hover{border-color:#a339ff;color:#f7f1ff;background:#7134a2}
.store-card .store-quantity input{width:100%;min-width:0;max-width:100%;height:22px;padding:0;border:1px solid #5c3b7d;border-radius:4px;outline:0;color:#f6efff;background:#241536;text-align:center;font-size:10px;font-weight:800}
.store-card .store-quantity input:focus-visible{outline:1px solid #d8b4fe;outline-offset:1px}
.store-card .store-quantity input::-webkit-inner-spin-button,.store-card .store-quantity input::-webkit-outer-spin-button{opacity:0}
.store-card .store-buy-controls>[data-buy-store]{grid-column:1;min-width:0;width:100%;height:28px;margin:0!important;border-color:#a339ff!important;color:#170d21;background:linear-gradient(135deg,#e0c4ff,#a339ff)!important;font-size:8px;letter-spacing:.15px}
.store-card .store-buy-controls:not(:has(.store-buy-cancel))>[data-buy-store]{grid-column:1 / -1}
.store-card .store-buy-controls>[data-buy-store]:disabled{border-color:#5c5662!important;color:#b7aebe;background:#312c35!important}
.store-card .store-buy-cancel{display:grid;grid-column:2;width:26px;height:28px;margin:0;padding:0;border:1px solid #69437e;border-radius:6px;color:#e3cfff;background:#271630;font-size:16px;line-height:1;place-items:center}
.store-card .store-buy-cancel:hover{border-color:#d8b4fe;color:#f7f1ff;background:#4c2770}
@media(max-width:520px){.store-card .store-buy-controls{grid-template-columns:minmax(0,1fr) 26px}.store-card .store-buy-controls>[data-buy-store]{grid-column:1}.store-card .store-buy-cancel{grid-column:2}}

/* The catalog has legacy .store-card button rules for the main buy button.
   Keep those rules from resizing the inline quantity controls. */
.store-card .store-buy-controls,
.store-card .store-buy-controls .store-quantity,
.store-card .store-buy-controls .store-quantity *{box-sizing:border-box}
.store-card .store-buy-controls{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden}
.store-card .store-buy-controls .store-quantity{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden}
.store-card .store-buy-controls .store-quantity button{width:19px!important;min-width:19px!important;max-width:19px!important;height:19px!important;min-height:19px!important;max-height:19px!important;margin:0!important;padding:0!important;flex:none!important}
.store-card .store-buy-controls .store-quantity-value{display:grid;place-items:center;flex:0 0 24px;width:24px!important;min-width:24px!important;max-width:24px!important;height:19px!important;min-height:19px!important;max-height:19px!important;margin:0!important;padding:0!important;color:#fff;font-size:12px;font-weight:900;line-height:19px;text-align:center!important;text-indent:0; font-variant-numeric:tabular-nums}
.store-card .store-buy-controls>[data-buy-store]{width:100%!important;min-width:0!important;max-width:100%!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important}
.store-card .store-buy-controls>.store-buy-cancel{width:26px!important;min-width:26px!important;max-width:26px!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:0!important}

/* Compact purchase control: clear quantity first, then one strong action. */
.store-card .store-buy-controls{gap:4px;margin-top:5px;padding:0 1px}
.store-card .store-buy-controls .store-quantity{height:26px!important;padding:3px!important;border-color:rgba(180,111,255,.42);border-radius:8px;background:linear-gradient(180deg,rgba(40,24,57,.96),rgba(22,15,31,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 11px rgba(7,3,12,.22)}
.store-card .store-buy-controls .store-quantity button{border-color:rgba(191,133,255,.44);border-radius:6px;color:#eadbff;background:rgba(102,53,145,.38);transition:background .16s ease,border-color .16s ease,transform .16s ease}
.store-card .store-buy-controls .store-quantity button:hover{border-color:#d6a9ff;background:#8c42bd;transform:translateY(-1px)}
.store-card .store-buy-controls .store-quantity button:active{transform:translateY(0) scale(.94)}
.store-card .store-buy-controls .store-quantity button:disabled{cursor:default;opacity:.38;transform:none}
.store-card .store-buy-controls .store-quantity input{border-color:transparent;border-radius:5px;color:#fff;background:transparent;font-size:12px;font-variant-numeric:tabular-nums}
.store-card .store-buy-controls>[data-buy-store]{border:1px solid rgba(231,204,255,.5)!important;border-radius:8px!important;box-shadow:0 6px 16px rgba(116,42,186,.25),inset 0 1px 0 rgba(255,255,255,.45);font-size:9px;font-weight:900;letter-spacing:.35px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:filter .16s ease,transform .16s ease,box-shadow .16s ease}
.store-card .store-buy-controls>[data-buy-store]:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 8px 20px rgba(116,42,186,.34),inset 0 1px 0 rgba(255,255,255,.55)}
.store-card .store-buy-controls>[data-buy-store]:active:not(:disabled){transform:translateY(0) scale(.985)}
.store-card .store-buy-controls>.store-buy-cancel{border-color:rgba(191,133,255,.44);border-radius:8px;color:#e8d9f7;background:rgba(91,48,124,.48);font-size:17px;line-height:1;transition:background .16s ease,border-color .16s ease}
.store-card .store-buy-controls>.store-buy-cancel:hover{border-color:#d6a9ff;background:#7441a0}
@media(max-width:520px){.store-card .store-buy-controls{gap:4px;margin-top:5px;padding:0}.store-card .store-buy-controls .store-quantity{height:26px!important}.store-card .store-buy-controls>[data-buy-store]{font-size:8px;letter-spacing:.2px}}
