/* A checkout machine, conveyor and paper printer built from the existing game. */
body{background:radial-gradient(ellipse at top,#b7e4da,#eff5e5 65%);padding:6px 6px 52px!important}
#kd-market-v5.cashier-r2{--m-purple:#69449c;--m-deep:#39244f;--m-paper:#f9f5e9;--m-white:#fffef8;--m-ink:#30243d;--m-muted:#72637b;--m-line:#cbbbd7;--m-soft:#ece3f3;max-width:1250px;border:0;box-shadow:0 12px 45px #284a3a29}
#kd-market-v5.cashier-r2 .market-top{background:#f9f5e9;color:#39244f;border-bottom:1px solid #d8d1bf;min-height:52px;gap:5px;padding:4px 10px;justify-content:space-between}
#kd-market-v5.cashier-r2 .market-top-actions{margin-left:auto;flex-wrap:nowrap}
#kd-market-v5.cashier-r2 .market-icon-button{background:#f6f1fc;border:1px solid #cdbbd9;color:#563779;box-shadow:0 2px 0 #c8b7d0;font-weight:700}
#kd-market-v5.cashier-r2 .market-top>.active-time{order:1;font-size:11px!important;max-width:45%;overflow:hidden;text-overflow:ellipsis}
#kd-market-v5.cashier-r2 .market-top-actions{order:2}
#kd-market-v5.cashier-r2 .market-instruction{background:#f8f4df;border:0;font-size:15px;min-height:32px;padding:5px 10px;display:grid;place-content:center;color:#40334f}
#kd-market-v5.cashier-r2 [data-game]{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:auto minmax(0,1fr) 125px;gap:10px;padding:8px;min-height:0;overflow:hidden}
#kd-market-v5.cashier-r2 .market-instruction{grid-column:1/-1;grid-row:1}
#kd-market-v5.cashier-r2 .market-scene{display:block;grid-column:1;grid-row:2;min-height:0;border-radius:20px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 2px #fff8}
#kd-market-v5.cashier-r2 .market-foreground{opacity:.38}
#kd-market-v5.cashier-r2 .market-register-hit,#kd-market-v5.cashier-r2 .market-lcd{display:none}
#kd-market-v5.cashier-r2 .market-belt{display:block!important;grid-column:1;grid-row:3;min-height:0;padding:5px 6px 14px;border:5px solid #8e9697;border-top:4px solid #c4ccca;border-radius:14px;background:repeating-linear-gradient(90deg,#303b3c 0 15px,#3c4849 16px 18px);box-shadow:0 6px 0 #616d6e,inset 0 5px 9px #0005;position:relative;overflow:hidden}
#kd-market-v5.cashier-r2 .market-belt-title{display:flex;align-items:center;color:#fffde9;gap:6px;font-size:11px;height:24px;margin:0 0 3px;font-weight:650}
#kd-market-v5.cashier-r2 .market-belt-title [data-register-camera]{min-width:44px;min-height:44px;margin-left:auto;position:absolute;right:4px;top:3px;z-index:3;background:#f5df88;border-color:#a3852c;color:#3a341e;font-size:11px}
#kd-market-v5.cashier-r2 .market-items{grid-template-columns:repeat(4,minmax(0,1fr));padding-right:46px;gap:5px;height:calc(100% - 24px)}
#kd-market-v5.cashier-r2 .market-item{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(24px,1fr) 16px 16px;padding:2px;background:#f9f7eb;border:1px solid #dbdab9;border-radius:8px;min-height:44px;align-items:center;position:relative;box-shadow:0 3px 0 #1118}
#kd-market-v5.cashier-r2 .market-item img{height:100%;max-height:48px;width:100%;object-fit:contain;grid-column:1;grid-row:1}
#kd-market-v5.cashier-r2 .market-item-price{font-size:11px;grid-row:3;line-height:1.15;color:#42364d;white-space:nowrap}
#kd-market-v5.cashier-r2 .market-item-name{font-size:10px;line-height:1.1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;grid-row:2}
#kd-market-v5.cashier-r2 .market-item-qty{position:absolute;right:1px;top:0;font-size:10px;min-width:16px;padding:1px;background:#f7e99e;color:#40331a;line-height:1}
#kd-market-v5.cashier-r2 .market-item.is-done{opacity:.55;transform:translateX(3px)}
#kd-market-v5.cashier-r2 .market-item-check{right:1px;bottom:0;font-size:13px}
#kd-market-v5.cashier-r2 .market-piece-row{display:none}
#kd-market-v5.cashier-r2 .market-desk{display:grid;grid-column:2;grid-row:2/4;grid-template-columns:minmax(85px,.65fr) minmax(170px,1.35fr);grid-template-rows:minmax(0,1fr);gap:10px;align-items:stretch;padding:18px 12px 24px;background:linear-gradient(130deg,#c9bfe0,#9687b4 70%);border:2px solid #827198;border-top:6px solid #e8e0f0;border-radius:28px 28px 17px 17px;box-shadow:inset 4px 0 0 #fff5,inset -7px -8px 0 #0002,0 8px 0 #76658c;position:relative;min-height:0}
#kd-market-v5.cashier-r2 .market-desk::after{content:'';position:absolute;left:12%;right:12%;bottom:6px;height:11px;border-radius:4px;background:linear-gradient(#8b7ba1,#6b5b7e);border:1px solid #5e526b;box-shadow:inset 0 3px 3px #0004}
#kd-market-v5.cashier-r2[data-phase="done"] .market-desk::after{animation:cash-drawer .8s ease both}
#kd-market-v5.cashier-r2 .market-register{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0;background:none;border:0;box-shadow:none;transform:perspective(900px) rotateX(3deg);transform-origin:bottom}
#kd-market-v5.cashier-r2 .market-register-seal{font:700 10px/1 system-ui;letter-spacing:2px;color:#4c3a68;text-align:right}
#kd-market-v5.cashier-r2 .market-register-label{font-size:12px;font-weight:700;margin:0;color:#352445;line-height:1.2;min-height:14px}
#kd-market-v5.cashier-r2 .market-entry-wrap{background:#283c39;border:4px solid #726b81;box-shadow:inset 0 2px 7px #0008,0 2px 0 #fff5;border-radius:11px;min-height:52px;display:flex;align-items:center;margin:0;padding:2px 6px}
#kd-market-v5.cashier-r2 .market-entry{width:100%;min-width:0;background:transparent;border:0;box-shadow:none;color:#d4f5a7;font:700 29px/1 ui-monospace,SFMono-Regular,monospace;min-height:44px;height:44px;text-align:right;padding:0}
#kd-market-v5.cashier-r2 .market-entry::placeholder{color:#b4d389a0}
#kd-market-v5.cashier-r2 .market-entry-wrap>span{color:#b9d4ac;font-size:11px}
#kd-market-v5.cashier-r2 .market-keypad{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));grid-auto-rows:minmax(44px,1fr);gap:5px;margin:4px 0 2px;flex:1;min-height:230px}
#kd-market-v5.cashier-r2 .market-key{min-height:44px;max-height:66px;border:1px solid #a59aae;border-top:2px solid #fff;border-bottom:5px solid #8e829a;box-shadow:0 2px 2px #3b2d4840;background:linear-gradient(#fffefb,#dfdbe1);border-radius:9px;color:#30213f;font-weight:750;font-size:23px;padding:3px;transform:none}
#kd-market-v5.cashier-r2 .market-key:active{transform:translateY(3px);border-bottom-width:2px;box-shadow:none}
#kd-market-v5.cashier-r2 .market-key.word{background:linear-gradient(#ffce9f,#f0ac78);font-size:11px;border-bottom-color:#b47648}
#kd-market-v5.cashier-r2 .market-key.times{grid-column:2/4;font-size:14px;background:linear-gradient(#cbe8f1,#99c7d9);border-bottom-color:#6496a8}
#kd-market-v5.cashier-r2 .market-main{width:100%;flex:none;min-height:44px;border:1px solid #326b60;border-bottom:5px solid #326b60;box-shadow:0 2px 2px #251e3430;background:linear-gradient(#a4d9ab,#6fbf9d);color:#183e34;border-radius:10px;font-size:13px;font-weight:750;line-height:1.15;margin:0;padding:5px}
#kd-market-v5.cashier-r2 .market-printer-slot{position:absolute;left:4%;top:12px;width:28%;height:9px;background:#302b38;border-radius:7px;box-shadow:0 2px 0 #fff7,inset 0 3px 3px #0008;z-index:2}
#kd-market-v5.cashier-r2 .market-receipt{grid-column:1;grid-row:1;align-self:start;max-height:100%;min-width:0;overflow:auto;padding:12px 8px 18px;background:linear-gradient(90deg,#e7e2d4,#fffef4 8%,#fefcf2 88%,#e5dfd0);border:0;border-radius:0;box-shadow:0 3px 10px #332a3b38;clip-path:polygon(0 0,100% 0,100% 97%,94% 100%,88% 97%,82% 100%,76% 97%,70% 100%,64% 97%,58% 100%,52% 97%,46% 100%,40% 97%,34% 100%,28% 97%,22% 100%,16% 97%,10% 100%,4% 97%,0 100%);font-family:ui-monospace,monospace}
#kd-market-v5.cashier-r2 .market-receipt-title{font-size:11px;text-align:center;border-bottom:1px dashed #aaa18f;margin:0 0 6px;padding-bottom:5px}
#kd-market-v5.cashier-r2 .market-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px;font-size:10px;line-height:1.25;padding:5px 0;border-bottom:1px dashed #c6bfaf;min-height:0}
#kd-market-v5.cashier-r2 .market-receipt-row img{display:none}
#kd-market-v5.cashier-r2 .market-receipt-row .line-price{grid-column:2;font-size:11px;align-self:end;white-space:nowrap}
#kd-market-v5.cashier-r2 .market-receipt-product{display:block;font-weight:700}
#kd-market-v5.cashier-r2 .market-receipt-separator{display:none}
#kd-market-v5.cashier-r2 .market-receipt-calculation{font-size:9px}
#kd-market-v5.cashier-r2 .market-receipt-total{font-size:12px;display:flex;gap:3px;justify-content:space-between;padding-top:6px;flex-wrap:wrap}
#kd-market-v5.cashier-r2 .market-receipt-empty,#kd-market-v5.cashier-r2 .market-receipt-recheck{font-size:10px;line-height:1.3}
#kd-market-v5.cashier-r2 .market-pending-pieces{display:none}
#kd-market-v5.cashier-r2 .market-receipt-adjustment{grid-template-columns:1fr;font-size:9px}
#kd-market-v5.cashier-r2 .market-receipt-adjustment strong{text-align:right}
#kd-market-v5.cashier-r2 .paper-feed{animation:paper-feed .65s cubic-bezier(.18,.65,.3,1)}
#kd-market-v5.cashier-r2 .market-multiply-expression{font-size:11px;min-height:0;margin:0}
#kd-market-v5.cashier-r2 .market-count-dots{display:none}
#kd-market-v5.cashier-r2 .market-feedback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:-1px;padding:0;min-height:0}
#kd-market-v5.cashier-r2[data-feedback-error="true"] .market-feedback{position:static;grid-column:1/-1;grid-row:4;width:auto;height:auto;clip-path:none;margin:0;padding:4px 8px;background:#fff0d7;color:#6c3715;font-size:12px}
#kd-market-v5.cashier-r2 .market-suspicion-notice{display:none}
#kd-market-v5.cashier-r2 .market-time-result{font-size:13px!important;margin:7px 0;font-weight:700}
#kd-market-v5.cashier-r2 .market-pay,#kd-market-v5.cashier-r2 .market-reward,#kd-market-v5.cashier-r2 .market-review-prompt{padding:4px;min-height:0;grid-column:auto;grid-row:auto;flex-direction:column;align-items:center;justify-content:center}
#kd-market-v5.cashier-r2:is([data-phase="pay"],[data-phase="done"],[data-phase="review"]) .market-register>:is(.market-register-label,.market-entry-wrap,.market-keypad,.market-main,.market-multiply-expression){display:none}
#kd-market-v5.cashier-r2 .market-bank-card{max-width:100%;width:190px;min-height:100px}
#kd-market-v5.cashier-r2 .market-pay-inner{flex-direction:column;gap:8px}
#kd-market-v5.cashier-r2 .market-pay-title{font-size:17px;line-height:1.25;margin:8px 0;text-align:center}
#kd-market-v5.cashier-r2[data-cash="true"] .market-bank-card{background:linear-gradient(135deg,#d7e9af,#a3c78e);color:#31523a;border:3px double #577d47;box-shadow:0 5px 0 #748d5e}
#kd-market-v5.cashier-r2 .market-terminal{width:110px;max-height:90px;padding:5px}
#kd-market-v5.cashier-r2 .market-terminal-dots{font-size:10px;line-height:1}
#kd-market-v5.cashier-r2 .market-reward{text-align:center}
#kd-market-v5.cashier-r2 .market-reward-title{font-size:21px}
#kd-market-v5.cashier-r2 .market-reward-text{font-size:13px;line-height:1.4}
#kd-market-v5.cashier-r2 .market-reward .market-medal{font-size:38px}
#kd-market-v5.cashier-r2 .market-camera-feed{background-size:cover;border:3px solid #667371;border-radius:16px;isolation:isolate}
#kd-market-v5.cashier-r2 .market-camera-actor{transition:left .9s cubic-bezier(.4,0,.2,1),transform .8s ease;transform-origin:center bottom}
#kd-market-v5.cashier-r2 .market-camera-item{transition:all .8s cubic-bezier(.2,.7,.3,1);filter:drop-shadow(0 3px 3px #0005)}
#kd-market-v5.cashier-r2 [data-frame="1"] .market-camera-actor,#kd-market-v5.cashier-r2 [data-frame="3"] .market-camera-actor{animation:customer-glance .9s ease}
#kd-market-v5.cashier-r2 [data-frame="4"] .market-camera-actor{transform:translateX(10px) rotate(-2deg)}
#kd-market-v5.cashier-r2 .karolek-intervenes .market-camera-bear{animation:karolek-stop 1.1s cubic-bezier(.18,.8,.2,1) both}
#kd-market-v5.cashier-r2 .karolek-intervenes .market-camera-actor{left:54%!important;transform:translateX(-20px) rotate(2deg);filter:drop-shadow(0 5px 4px #36231544)}
#kd-market-v5.cashier-r2 .karolek-intervenes::after{content:'STOP';position:absolute;right:6%;top:12%;z-index:7;border:4px solid #fff;background:#ca5546;color:white;padding:10px;border-radius:50%;font:800 17px system-ui;animation:stop-sign .5s ease both}
#kd-market-v5.cashier-r2 .market-camera-controls{display:flex;flex-wrap:wrap}
#kd-market-v5.cashier-r2 .market-camera-controls button{min-width:36px;min-height:36px}
#kd-market-v5.cashier-r2 .market-camera-bear{max-width:44%;height:76%;object-fit:contain;object-position:bottom}
#kd-market-v5.cashier-r2 .market-camera-repair-text{left:3%;right:3%;bottom:2%;font-size:13px;line-height:1.3;padding:7px;background:#fffdf0ee;max-height:38%;overflow:auto}
@keyframes paper-feed{from{transform:translateY(-22px);clip-path:inset(0 0 16px 0)}to{transform:translateY(0)}}
@keyframes cash-drawer{50%{transform:translateY(5px) scaleX(1.04);box-shadow:0 6px 4px #0004}}
@keyframes customer-glance{50%{transform:rotate(-3deg) translateY(-2px)}}
@keyframes karolek-stop{from{transform:translateX(-100%) rotate(-5deg);opacity:.2}60%{transform:translateX(3%) rotate(1deg)}to{transform:none;opacity:1}}
@keyframes stop-sign{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:680px) and (min-height:461px){
 #kd-market-v5.cashier-r2 .market-top{padding:3px 6px;min-height:48px}
 #kd-market-v5.cashier-r2 .market-top>div:first-child{display:block}
 #kd-market-v5.cashier-r2 .market-brand .kd-logo{width:80px;max-height:27px}
 #kd-market-v5.cashier-r2 [data-game]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 84px minmax(0,1fr);gap:6px;padding:5px}
 #kd-market-v5.cashier-r2 .market-instruction{grid-column:1;grid-row:1;font-size:13px;min-height:30px;padding:3px 6px;line-height:1.25}
 #kd-market-v5.cashier-r2 .market-scene{display:none}
 #kd-market-v5.cashier-r2 .market-belt{grid-column:1;grid-row:2;padding:1px 4px 5px;border-width:3px;box-shadow:0 3px 0 #616d6e}
 #kd-market-v5.cashier-r2 .market-belt-title{font-size:10px;height:16px;gap:4px}
 #kd-market-v5.cashier-r2 .market-items{padding-right:45px;height:calc(100% - 16px);gap:3px}
 #kd-market-v5.cashier-r2 .market-item{grid-template-rows:minmax(18px,1fr) 12px 13px;padding:1px}
 #kd-market-v5.cashier-r2 .market-item img{max-height:26px}
 #kd-market-v5.cashier-r2 .market-item-name{font-size:9px}
 #kd-market-v5.cashier-r2 .market-item-price{font-size:10px}
 #kd-market-v5.cashier-r2 .market-desk{grid-column:1;grid-row:3;grid-template-columns:minmax(74px,.55fr) minmax(165px,1.45fr);padding:13px 8px 18px;border-radius:19px;gap:7px;min-height:0}
 #kd-market-v5.cashier-r2 .market-register{gap:3px;transform:none}
 #kd-market-v5.cashier-r2 .market-register-seal{font-size:8px}
 #kd-market-v5.cashier-r2 .market-register-label{font-size:11px;min-height:12px}
 #kd-market-v5.cashier-r2 .market-entry-wrap{min-height:46px;border-width:3px}
 #kd-market-v5.cashier-r2 .market-entry{min-height:40px;height:40px;font-size:26px}
 #kd-market-v5.cashier-r2 .market-keypad{gap:4px;grid-auto-rows:44px;min-height:236px;flex:0 1 auto;margin:0}
 #kd-market-v5.cashier-r2 .market-key{font-size:23px;border-radius:8px}
 #kd-market-v5.cashier-r2 .market-receipt{padding:10px 5px 15px}
 #kd-market-v5.cashier-r2 .market-receipt-row{padding:4px 0;font-size:10px;grid-template-columns:1fr}
 #kd-market-v5.cashier-r2 .market-receipt-row .line-price{grid-column:1;font-size:11px;text-align:right}
 #kd-market-v5.cashier-r2 .market-printer-slot{top:7px;width:26%}
 #kd-market-v5.cashier-r2 .market-main{font-size:12px}
 #kd-market-v5.cashier-r2 .market-multiply-expression{font-size:10px;line-height:1.1}
 #kd-market-v5.cashier-r2 .market-pay-inner{flex-direction:column}
}
@media(min-width:500px) and (max-height:460px){
 #kd-market-v5.cashier-r2 .market-top{min-height:44px;padding:1px 7px}
 #kd-market-v5.cashier-r2 [data-game]{grid-template-columns:minmax(110px,.7fr) minmax(330px,1.7fr);grid-template-rows:32px minmax(0,1fr);gap:5px;padding:4px}
 #kd-market-v5.cashier-r2 .market-scene{display:none}
 #kd-market-v5.cashier-r2 .market-belt{grid-row:2;grid-column:1;height:100%;padding:3px;border-width:3px}
 #kd-market-v5.cashier-r2 .market-items{padding:0;grid-template-columns:repeat(2,minmax(0,1fr));height:calc(100% - 50px);gap:4px}
 #kd-market-v5.cashier-r2 .market-belt-title{font-size:9px;height:46px;align-items:start}
 #kd-market-v5.cashier-r2 .market-belt-title>span:first-child{display:none}
 #kd-market-v5.cashier-r2 .market-belt-title [data-register-camera]{top:2px;right:2px}
 #kd-market-v5.cashier-r2 .market-item img{max-height:35px}
 #kd-market-v5.cashier-r2 .market-desk{grid-column:2;grid-row:2;padding:10px 7px 16px;grid-template-columns:minmax(70px,.55fr) minmax(240px,1.7fr);gap:6px;min-height:0}
 #kd-market-v5.cashier-r2 .market-register{display:grid;grid-template-columns:95px minmax(135px,1fr);grid-template-rows:12px 44px minmax(44px,1fr) 12px;gap:4px;transform:none}
 #kd-market-v5.cashier-r2 .market-register-seal{display:none}
 #kd-market-v5.cashier-r2 .market-register-label{grid-column:1;grid-row:1;font-size:9px}
 #kd-market-v5.cashier-r2 .market-entry-wrap{grid-column:1;grid-row:2;min-height:44px;padding:0 3px;border-width:2px}
 #kd-market-v5.cashier-r2 .market-entry{height:40px;min-height:40px;font-size:23px}
 #kd-market-v5.cashier-r2 .market-keypad{grid-column:2;grid-row:1/5;grid-template-columns:repeat(3,minmax(32px,1fr));grid-auto-rows:minmax(28px,1fr);min-height:0;height:100%;gap:3px;margin:0}
 #kd-market-v5.cashier-r2 .market-key{min-height:28px;border-bottom-width:3px;font-size:18px;padding:0}
 #kd-market-v5.cashier-r2 .market-key.word{font-size:8px}
 #kd-market-v5.cashier-r2 .market-key.times{font-size:11px}
 #kd-market-v5.cashier-r2 .market-register>.market-main{grid-column:1;grid-row:3;align-self:center;font-size:10px}
 #kd-market-v5.cashier-r2 .market-multiply-expression{grid-column:1;grid-row:4;font-size:8px;line-height:1}
 #kd-market-v5.cashier-r2 .market-receipt{padding:8px 4px 13px;max-height:100%;align-self:start}
 #kd-market-v5.cashier-r2 .market-receipt-product{display:block;font-size:9px}
 #kd-market-v5.cashier-r2 .market-receipt-row{grid-template-columns:1fr;line-height:1.1;padding:3px 0}
 #kd-market-v5.cashier-r2 .market-receipt-row .line-price{grid-column:1;text-align:right;font-size:10px}
 #kd-market-v5.cashier-r2:is([data-phase="pay"],[data-phase="done"],[data-phase="review"]) .market-register{display:flex}
 #kd-market-v5.cashier-r2 .market-pay-inner{flex-direction:row;gap:6px}
 #kd-market-v5.cashier-r2 .market-bank-card{width:120px;min-height:65px;padding:5px}
 #kd-market-v5.cashier-r2 .market-pay-title{font-size:13px;margin:2px 0}
 #kd-market-v5.cashier-r2 .market-card-title,#kd-market-v5.cashier-r2 .market-card-small{font-size:10px}
 #kd-market-v5.cashier-r2 .market-card-chip{height:10px;margin:4px 0}
 #kd-market-v5.cashier-r2 .market-reward-title{font-size:16px;margin:2px}
 #kd-market-v5.cashier-r2 .market-reward-text{font-size:11px}
 #kd-market-v5.cashier-r2 .market-reward .market-medal{font-size:20px}
}
#kd-market-v5.cashier-r2:has([data-camera-overlay]:not([hidden]),[data-story-overlay]:not([hidden])) [data-game]{display:block;padding:0}
#kd-market-v5.cashier-r2:has([data-camera-overlay]:not([hidden]),[data-story-overlay]:not([hidden])) .market-scene{display:block!important;height:100%;width:100%;border-radius:0}
#kd-market-v5.cashier-r2:has([data-camera-overlay]:not([hidden]),[data-story-overlay]:not([hidden])) .market-belt{display:none!important}
#kd-market-v5.cashier-r2:has([data-camera-overlay]:not([hidden]),[data-story-overlay]:not([hidden])) .market-top{display:none}
@media(prefers-reduced-motion:reduce){#kd-market-v5.cashier-r2 *,#kd-market-v5.cashier-r2 *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:680px) and (max-height:720px) and (min-height:461px){
 #kd-market-v5.cashier-r2 .market-register-seal{display:none}
 #kd-market-v5.cashier-r2 .market-keypad{grid-template-columns:repeat(4,minmax(32px,1fr));grid-auto-rows:40px;min-height:0;gap:4px}
 #kd-market-v5.cashier-r2 .market-key{min-height:40px;font-size:21px}
 #kd-market-v5.cashier-r2 .market-key.times{grid-column:auto/span 2;font-size:12px}
 #kd-market-v5.cashier-r2 .market-register{gap:2px}
 #kd-market-v5.cashier-r2 .market-entry-wrap{min-height:44px}
 #kd-market-v5.cashier-r2 .market-entry{height:38px;min-height:38px}
}
#kd-market-v5.cashier-r2 .market-belt-title>span:nth-child(2){margin-left:auto;margin-right:48px;white-space:nowrap}
@media(max-width:680px) and (min-height:721px){
 #kd-market-v5.cashier-r2 [data-game]{grid-template-rows:auto 114px minmax(0,1fr)}
 #kd-market-v5.cashier-r2 .market-keypad{grid-auto-rows:minmax(44px,1fr);flex:1;min-height:236px;max-height:390px}
 #kd-market-v5.cashier-r2 .market-item img{max-height:46px}
 #kd-market-v5.cashier-r2 .market-items{gap:4px}
}
#kd-market-v5.cashier-r2[data-cash="true"] .market-card-chip,#kd-market-v5.cashier-r2[data-cash="true"] .market-terminal{display:none}
#kd-market-v5.cashier-r2 .market-camera-repair-text{top:auto;left:3%;right:3%;bottom:2%;width:auto;max-height:30%;font-size:12px}
#kd-market-v5.cashier-r2 .market-camera-bear{left:3%;bottom:0}
#kd-market-v5.cashier-r2 .market-camera-bear{width:50%;max-width:none;height:82%}
#kd-market-v5.cashier-r2 .market-camera-actor{width:38%}
#kd-market-v5.cashier-r2 .market-camera-feed[data-actor="right"] .market-camera-actor{left:60%}
#kd-market-v5.cashier-r2 .market-register{align-self:stretch}
#kd-market-v5.cashier-r2 .market-top-actions{width:auto;justify-content:flex-end;flex:none}
#kd-market-v5.cashier-r2 .market-top>.active-time{flex:1;min-width:0;max-width:42%}
@media(max-width:680px) and (min-height:721px){#kd-market-v5.cashier-r2 .market-key{max-height:90px}}

/* Keep the whole payment terminal above the till drawer on short portrait screens. */
@media(max-width:680px) and (min-height:441px) and (max-height:640px){
 #kd-market-v5.cashier-r2 .market-pay-inner{flex-direction:row;align-items:center;gap:7px;width:100%;min-height:0}
 #kd-market-v5.cashier-r2 .market-bank-card{flex:1;min-width:0;width:auto;max-width:none;min-height:88px;padding:7px}
 #kd-market-v5.cashier-r2 .market-card-title{font-size:13px;line-height:1.15;overflow-wrap:anywhere}
 #kd-market-v5.cashier-r2 .market-card-small{font-size:10px;line-height:1.2}
 #kd-market-v5.cashier-r2 .market-card-chip{width:24px;height:17px;margin:7px 0 5px}
 #kd-market-v5.cashier-r2 .market-terminal{flex:0 0 64px;box-sizing:border-box;width:64px;max-height:none;padding:5px;transform:none;border-radius:12px}
 #kd-market-v5.cashier-r2 .market-terminal-screen{font-size:13px;padding:8px 1px;white-space:nowrap}
 #kd-market-v5.cashier-r2 .market-terminal-dots{font-size:10px;line-height:1;padding-top:5px}
}
