/* The shop of coins (dist/shop-ui.js, .work/coins-2026-11-08/KONTRAKT.md section 4): the Shop tab of Mammon's Vault, the menu's Shop button, the link of the
   Cosmetics tab. Rows, buttons, labels and the check are the game's own (.ware, .btn, .label, .vault-filters, .seg and .switch of the Vault and the Options);
   what is new is only what they have no class for. Loaded before touch.css, so the phone's rules of that sheet still have the last word. */

/* the Shop button of the menu's bar: hidden until the server says the shop is open (the [hidden] of the menu-link's own display:flex) */
#menu .menu-link[hidden]{display:none}

/* the head of the tab: the balance and the currency */
#vaultSide .shop-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin:.2rem 0 .7rem}
#vaultSide .shop-balance{display:inline-flex;align-items:center;gap:.2rem;font-size:1.05rem;color:var(--bright)}
#vaultSide .shop-balance small{font-size:1.05rem;color:var(--bright)}
#vaultSide .shop-balance b{font-size:1.35rem;color:var(--yellow,#e6c35a)}
#vaultSide .shop-coin{width:1.8em;height:1.8em;margin-right:.35em;vertical-align:middle}
#vaultSide .shop-currency{display:inline-flex;width:auto}#vaultSide .shop-currency .btn{min-width:3rem;padding:.2rem .7rem}

/* the top-up: packs, the amount of one's own */
#vaultSide .shop-packs{display:flex;flex-wrap:wrap;align-items:stretch;gap:.4rem;margin:.25rem 0 .5rem}
#vaultSide .shop-pack{display:flex;flex-direction:column;align-items:center;gap:.1rem;min-width:6.2rem;padding:.35rem .7rem}
#vaultSide .shop-pack span{font-size:1rem;color:var(--bright)}#vaultSide .shop-pack small{font-size:.85rem;color:var(--muted)}
#vaultSide .shop-custom{display:inline-flex;align-items:center;gap:.35rem;margin-left:.3rem}
#vaultSide .shop-custom input{width:6.4rem;box-sizing:border-box;padding:.4rem .5rem;font:inherit;font-size:1rem;color:var(--bright);background:#000000a0;border:1px solid var(--line2,#6d6553);border-radius:0}
#vaultSide .shop-custom input:focus{outline:1px solid var(--select-line,#9bb4d9)}
#vaultSide .shop-month{margin-top:0}

/* My payments */
#vaultSide .shop-toggle{margin:.2rem 0 .6rem}
#vaultSide .shop-pays{margin:0 0 .8rem;padding:.5rem .6rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}
#vaultSide .shop-pay{display:grid;grid-template-columns:5.5rem 1fr 1fr auto;gap:.2rem .6rem;align-items:baseline;padding:.25rem 0;border-bottom:1px solid #ffffff14;font-size:.92rem}
#vaultSide .shop-pay:last-of-type{border-bottom:0}
#vaultSide .shop-pay .when{color:var(--muted)}#vaultSide .shop-pay .what{color:var(--bright)}
#vaultSide .shop-pay em{font-style:normal;text-align:right;color:var(--muted)}
#vaultSide .shop-pay.st-paid em{color:#8fd08a}#vaultSide .shop-pay.st-rejected em,#vaultSide .shop-pay.st-disputed em{color:#e0675a}#vaultSide .shop-pay.st-pending em{color:#e6c35a}
#vaultSide .shop-pay small{grid-column:1 / -1}

/* the cards (the Vault's .ware rows) */
#vaultSide .shop-card .shop-price{display:block;color:var(--yellow,#e6c35a)}
#vaultSide .shop-card small{display:block}
#vaultSide .shop-card.owned{opacity:.7}
#vaultSide .shop-card.focus{outline:2px solid var(--select-line,#9bb4d9);outline-offset:1px;box-shadow:0 0 .8rem #4471b28c}
#vaultSide .shop-pieces{display:flex;gap:.25rem}
#vaultSide .shop-piece{display:inline-flex;padding:0;background:none;border:1px solid var(--line);border-radius:0;cursor:pointer}
#vaultSide .shop-piece.own{opacity:.55}
#vaultSide .shop-piece:hover{border-color:var(--select-line,#9bb4d9)}
#vaultSide .shop-set .ware-actions{flex-wrap:wrap;justify-content:flex-end}

/* the confirmation */
#vaultSide .shop-confirm{display:flex;flex-direction:column;gap:.25rem;margin:.6rem 0;max-width:34rem}
#vaultSide .shop-row{display:flex;justify-content:space-between;gap:1rem;padding:.4rem .7rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}
#vaultSide .shop-row span:first-child{color:var(--muted)}#vaultSide .shop-row span:last-child{color:var(--bright);text-align:right}
#vaultSide .shop-row.pay span:last-child{color:var(--yellow,#e6c35a);font-weight:700}
#vaultSide .shop-check{display:flex;align-items:center;gap:.6rem;margin:.4rem 0}
#vaultSide .shop-check span{color:var(--bright)}/* (the link sits in a span, so that it takes the size the window's font rules give the sentence's span: an a of its own got 16 px beside a 26 px sentence) */
#vaultSide .shop-check a{margin-left:.1rem;font-size:inherit;color:#e6c35a;text-decoration:underline dotted}#vaultSide .shop-check a:hover{color:#fff}
/* the check as the Options window has it (the client's check box) */
#vaultSide .shop-check .switch{flex:none;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:0;background:url(./assets/ui/check.png) 0 0/100% 100% no-repeat;box-shadow:none;cursor:pointer}
#vaultSide .shop-check .switch.on{background-image:url(./assets/ui/check-on.png)}#vaultSide .shop-check .switch i{display:none}
#vaultSide .shop-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.6rem}
#vaultSide .shop-buttons>.hint,#vaultSide .shop-buttons>.shop-check,#vaultSide .shop-buttons>.shop-note{flex:1 0 100%;margin:.1rem 0}
/* the list shows its looks a page at a time: what is shown, and Show more */
#vaultSide .shop-more{display:flex;align-items:center;justify-content:center;gap:.8rem;margin:.6rem 0 .3rem}
#vaultSide .shop-note{margin:.5rem 0;padding:.4rem .7rem;border:1px solid var(--line);border-left:3px solid #e6c35a;border-radius:0;background:var(--inset);color:var(--bright)}
#vaultSide .shop-note.ok{border-left-color:#8fd08a}#vaultSide .shop-note.error{border-left-color:#e0675a}

/* the small link of the Cosmetics tab (shop-ui.js linkHtml): no price, a word in the line of the look that is tried on */
.shop-link{margin-left:.5rem;color:#e6c35a;font-size:.85rem;text-decoration:underline dotted;cursor:pointer}.shop-link:hover{color:#fff}

/* a phone: the rows and buttons a finger can hit, one column where the row is narrow (touch.css decides the rest of the Vault) */
@media (pointer:coarse),(max-width:860px){
 #vaultSide .shop-pack{min-width:5.2rem;min-height:2.8rem}
 #vaultSide .shop-custom{margin-left:0;flex:1 0 100%}#vaultSide .shop-custom input{flex:1;min-height:2.6rem}
 #vaultSide .shop-pay{grid-template-columns:4.6rem 1fr auto}#vaultSide .shop-pay .what{grid-column:1 / 3}
 #vaultSide .shop-card .ware-actions{flex-wrap:wrap;justify-content:flex-end}
 #vaultSide .shop-check .switch{width:2.2rem;height:2.2rem}
 #vaultSide .shop-buttons .btn,#vaultSide .shop-card .btn,#vaultSide .shop-more .btn{min-height:2.6rem}
 .shop-link{display:inline-block;padding:.35rem .2rem}
 #vaultSide .shop-filters .btn,#vaultSide .shop-toggle,#vaultSide .shop-currency .btn,#vaultSide .shop-custom .btn,#vaultSide .shop-pays .btn{min-height:2.4rem}
 #vaultSide .shop-piece{min-width:2.4rem;min-height:2.4rem;justify-content:center;align-items:center}
 #vaultSide .shop-check a{padding:.4rem 0}
 /* the Vault's four tabs in a bar of a phone's width: the fourth (Shop) wraps under, no longer cut off */
 #vaultModal .vault-head .tabs{flex-wrap:wrap;row-gap:.25rem}
}

/* a set card on a phone (1a 22. 11. 2026): the pieces, the text and the buy part stay in one row while they fit, as the grid of .ware has
   them; only when a longer language (ru, pt-BR) would push the buy button past the card's edge and over the text, it goes under the text */
@media (pointer:coarse){
 #vaultSide .ware.shop-set{display:flex;flex-wrap:wrap;column-gap:.6rem;row-gap:.3rem}
 #vaultSide .shop-set>.shop-pieces,#vaultSide .shop-set>.ware-actions{flex:none}
 #vaultSide .shop-set>span:not(.shop-pieces){flex:1 1 0}
 #vaultSide .shop-set>.ware-actions{margin-left:auto}
}
