#kd-market-v5.cashier-r2 .shop-money-toggle{min-width:70px;min-height:28px;padding:3px 8px;align-self:flex-end;border:1px solid #8d74a2;border-radius:9px;background:#f3eafa;color:#4a3264;font:650 11px/1.1 system-ui}
#kd-market-v5.cashier-r2 .shop-money-toggle[hidden],#kd-market-v5.cashier-r2 .shop-money-tray[hidden],#kd-market-v5.cashier-r2 .market-keypad.shop-keypad-hidden{display:none!important}
#kd-market-v5.cashier-r2 .shop-money-tray{min-height:0;flex:1;display:flex;flex-direction:column;gap:5px}
#kd-market-v5.cashier-r2 .shop-money-facts{display:flex;justify-content:space-between;gap:5px;color:#3e3151;font:650 11px/1.25 system-ui;flex-wrap:wrap}
#kd-market-v5.cashier-r2 .shop-money-selected{display:block;min-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff4cf;border:1px solid #d3b96d;padding:3px 5px;border-radius:7px;color:#594426;font:650 11px/1.2 system-ui}
#kd-market-v5.cashier-r2 .shop-money-choices{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(24px,1fr));grid-template-rows:repeat(3,minmax(32px,1fr));gap:5px;padding:3px;background:#8b729a;border:3px solid #76627f;border-radius:12px;box-shadow:inset 0 3px 8px #36214045}
#kd-market-v5.cashier-r2 .shop-money-piece{position:relative;display:flex;align-items:center;justify-content:center;padding:2px;min-width:24px;min-height:32px;color:#49351c;border:2px solid #a68b4b;background:linear-gradient(135deg,#fff2af,#d9b54b);box-shadow:0 2px 0 #544064;font:750 clamp(10px,1.2vw,15px)/1 system-ui;touch-action:manipulation;cursor:pointer}
#kd-market-v5.cashier-r2 .shop-money-piece.coin{border-radius:50%;outline:1px dashed #9b783650;outline-offset:-5px;aspect-ratio:1;width:min(100%,64px);height:auto;align-self:center;justify-self:center;min-height:24px;font-size:12px}
#kd-market-v5.cashier-r2 .shop-money-piece.banknote{height:38px;align-self:center;font-size:12px}
#kd-market-v5.cashier-r2 .shop-money-piece[hidden]{display:none}
#kd-market-v5.cashier-r2 .shop-money-tray[data-whole-money=true] .shop-money-choices{grid-template-columns:repeat(3,minmax(32px,1fr));grid-template-rows:repeat(3,minmax(32px,1fr))}
#kd-market-v5.cashier-r2 .shop-money-facts[hidden]{display:none}
#kd-market-v5.cashier-r2 .shop-money-tray[data-purpose=price] .shop-money-choices{grid-template-rows:repeat(2,minmax(32px,1fr))}
#kd-market-v5.cashier-r2 .shop-money-piece.coin-gr{background:linear-gradient(135deg,#f9e2b4,#b8754b);border-color:#9c6947}
#kd-market-v5.cashier-r2 .shop-money-piece.banknote{border-radius:6px;background:linear-gradient(125deg,#e6f3d9,#99ba86);border-color:#688761;outline:1px solid #dce6cd;outline-offset:-5px;color:#2e5431}
#kd-market-v5.cashier-r2 .shop-money-piece.banknote[data-money-value="2000"]{background:linear-gradient(125deg,#fbe5f0,#d9a4ba);border-color:#ab7d99;color:#633d54}
#kd-market-v5.cashier-r2 .shop-money-piece.banknote[data-money-value="1000"]{background:linear-gradient(125deg,#faebd0,#c7a385);border-color:#947460;color:#573a28}
#kd-market-v5.cashier-r2 .shop-money-piece.word{border-radius:7px;background:#ece2f4;border-color:#baa7cd;color:#4c3664;font-size:10px;height:44px;max-height:100%;align-self:center}
#kd-market-v5.cashier-r2 .shop-money-piece:active{transform:translateY(2px);box-shadow:none}
#kd-market-v5.cashier-r2 .shop-money-piece:disabled{opacity:.5;cursor:default}
#kd-market-v5.cashier-r2 .shop-money-flying{position:fixed;z-index:2147481000;pointer-events:none;aspect-ratio:auto;margin:0;opacity:.95}
#kd-market-v5.cashier-r2 .shop-money-piece:is(.coin,.banknote){flex-direction:column;gap:1px}
#kd-market-v5.cashier-r2 .shop-money-piece strong{font:750 16px/1 system-ui}
#kd-market-v5.cashier-r2 .shop-money-piece small{font:650 8px/1 system-ui}
#kd-market-v5.cashier-r2 .shop-money-tray[data-whole-money=true] .coin strong{font-size:22px}
#kd-market-v5.cashier-r2 .shop-money-tray[data-whole-money=true] .coin small{font-size:10px}
@media(max-width:340px){#kd-market-v5.cashier-r2 .shop-money-tray:not([data-whole-money=true]) .shop-money-piece strong{font-size:13px}#kd-market-v5.cashier-r2 .shop-money-tray:not([data-whole-money=true]) .shop-money-piece small{font-size:7px}}
#kd-market-v5.cashier-r2 .shop-money-piece:focus-visible,#kd-market-v5.cashier-r2 .shop-money-toggle:focus-visible{outline:3px solid #67449b;outline-offset:2px}
#kd-market-v5.cashier-r2[data-money-tray=true] .market-register-label{display:none}
#kd-market-v5.cashier-r2[data-money-tray=true] .market-register-seal{display:none}
#kd-market-v5.cashier-r2[data-cash-task=true] .market-register{transform:none}
#kd-market-v5.cashier-r2[data-money-tray=true] .market-count-dots{display:none}
@media(max-width:680px) and (min-height:441px){
 #kd-market-v5.cashier-r2[data-money-purpose=change][data-money-tray=true] [data-game]{grid-template-rows:28px 65px 0px minmax(0,1fr)}
 #kd-market-v5.cashier-r2[data-money-purpose=change][data-money-tray=true] [data-belt]{display:none}
 #kd-market-v5.cashier-r2[data-money-purpose=price][data-money-tray=true] [data-game]{grid-template-rows:28px 48px 84px minmax(0,1fr)}
 #kd-market-v5.cashier-r2[data-money-tray=true] .market-desk{grid-column:1;grid-row:4}
 #kd-market-v5.cashier-r2[data-money-tray=true] .market-register{gap:3px}
 #kd-market-v5.cashier-r2[data-money-tray=true] .shop-money-choices{min-height:108px}
 #kd-market-v5.cashier-r2[data-money-purpose=price][data-money-tray=true] .shop-money-choices{min-height:64px}
}
@media(max-width:680px) and (min-height:441px) and (max-height:520px){#kd-market-v5.cashier-r2[data-money-purpose=price][data-money-tray=true] [data-game]{grid-template-rows:28px 38px 84px minmax(0,1fr)}#kd-market-v5.cashier-r2[data-money-purpose=price] .shop-money-tray{gap:2px}}
@media(min-width:500px) and (max-height:440px){
 #kd-market-v5.cashier-r2[data-money-tray=true] .market-register{grid-template-rows:28px 40px minmax(32px,1fr) 10px}
 #kd-market-v5.cashier-r2[data-money-tray=true] .shop-money-toggle{grid-column:1;grid-row:1;align-self:stretch}
 #kd-market-v5.cashier-r2[data-money-tray=true] .shop-money-tray{grid-column:2;grid-row:1/5}
 #kd-market-v5.cashier-r2[data-money-tray=true] .shop-money-choices{min-height:0;gap:3px}
 #kd-market-v5.cashier-r2[data-money-tray=true] .shop-money-piece{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#kd-market-v5.cashier-r2 .shop-money-piece:active{transform:none}}

#kd-market-v5.cashier-r2[data-practice=true] .market-brand{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
#kd-market-v5.cashier-r2 .shop-practice-tag{font:650 9px/10px system-ui;color:#655078}
#kd-market-v5.cashier-r2 .shop-all-games{display:block;min-height:24px;padding:10px;border:1px solid #cab8d7;background:#f3edf7;color:#58416f;border-radius:8px;text-align:center;text-decoration:none}

/* Let children see the reactions as well as the till. Preserve compact low screens. */
@media(max-width:680px) and (min-height:641px){#kd-market-v5.cashier-r2[data-money-purpose=price][data-money-tray=true] [data-game]{grid-template-rows:28px 108px 88px minmax(0,1fr)}#kd-market-v5.cashier-r2[data-money-purpose=change][data-money-tray=true] [data-game]{grid-template-rows:28px 108px 0px minmax(0,1fr)}}
@media(max-width:680px) and (min-height:521px) and (max-height:640px){#kd-market-v5.cashier-r2[data-money-purpose=price][data-money-tray=true] [data-game]{grid-template-rows:28px 68px 84px minmax(0,1fr)}}

/* A round coin must fit its grid track, without covering Undo/Clear below. */
@media(max-width:680px) and (min-height:441px) and (max-height:640px){
 #kd-market-v5.cashier-r2 .shop-money-tray[data-purpose=price] .shop-money-piece.coin{width:auto;height:100%;max-width:100%;max-height:64px;min-height:24px;padding:0}
 #kd-market-v5.cashier-r2 .shop-money-tray[data-purpose=price] .coin strong{font-size:16px}
 #kd-market-v5.cashier-r2 .shop-money-tray[data-purpose=price] .coin small{font-size:8px}
}
