/* Order-first phone layout; desktop/tablet keep their established split view. */
.phone-cash-menu,.phone-order-context{display:none}
body.cash-phone-list{height:var(--cash-viewport-height,100vh);overflow:hidden!important;margin:0;padding:0}
body.cash-phone-list>.topbar{position:fixed!important;top:0!important;left:0;right:0;display:flex;flex-wrap:nowrap!important;min-height:48px;gap:6px;padding:5px 8px;z-index:70}
body.cash-phone-register .topbar .brand>span{display:none}
body.cash-phone-register .topbar .brand img{width:30px;height:34px}
body.cash-phone-register .topbar .brand{flex:0 0 30px;margin:0}
body.cash-phone-register .topbar .cash-header-avatar{width:32px;height:32px;flex-basis:32px}
body.cash-phone-register .topbar .top-status{flex:1 1 auto;min-width:0;flex-basis:auto;gap:4px;flex-wrap:wrap}
body.cash-phone-register .topbar .cash-clock,body.cash-phone-register .topbar #cash-quick-open,body.cash-phone-register .topbar #install,body.cash-phone-register .topbar #lock-till{display:none!important}
body.cash-phone-register .topbar #station-label{font-size:11px;max-width:85px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cash-phone-register .topbar #network{font-size:9px;padding:3px}
body.cash-phone-register .topbar .cash-register-control{font-size:10px;min-width:0;max-width:120px}
body.cash-phone-register .topbar .cash-register-control button{padding:5px 8px;min-height:36px;font-size:11px}
body.cash-phone-register #install-help{width:32px;min-width:32px;min-height:34px;padding:5px}
body.cash-phone-list #cash-quick-nav{position:fixed!important;top:var(--cash-header-height,55px);left:0;right:0;z-index:69;display:flex;flex-wrap:nowrap!important;justify-content:space-between;gap:4px;min-height:48px;margin:0;padding:4px 8px;overflow:visible}
body.cash-phone-register #cash-quick-nav .lz-symbol-tab{min-width:40px;width:40px;min-height:40px;height:40px;flex:0 1 44px;padding:8px}
body.cash-phone-register #cash-quick-nav #cash-dashboard-back{display:inline-flex!important}
body.cash-phone-list #app-nav,body.cash-phone-list .shop,body.cash-phone-list>footer,body.cash-phone-list .lz-touch-bar{display:none!important}
body.cash-phone-list #app-main{padding:0;margin:0}
body.cash-phone-list .basket{position:fixed!important;left:0;right:0;top:var(--cash-top-height,103px)!important;bottom:auto;width:100%;height:calc(var(--cash-viewport-height,100vh) - var(--cash-top-height,103px))!important;max-height:none!important;min-height:0;display:flex!important;flex-direction:column;overflow:hidden!important;margin:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:6px;border-radius:0;z-index:60;background:#fff}
body.cash-phone-list .basket>.phone-order-context{display:flex;justify-content:space-between;gap:8px;align-items:center;flex:0 0 auto;color:#655575;border-bottom:1px solid #e1d7eb;padding:0 0 5px;min-height:24px;font-size:11px}
.phone-order-context time{font-variant-numeric:tabular-nums;font-weight:800;color:#35136f;font-size:15px;flex-shrink:0}
.phone-order-context span{text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cash-phone-list .basket-top{display:flex;flex-wrap:wrap;flex:0 0 auto;gap:6px;margin:0;padding:0}
body.cash-phone-list .basket-top h2{font-size:17px;line-height:1.2;margin:0;flex:1 1 auto;min-width:0}
body.cash-phone-list #round-back{display:inline-flex!important;width:34px;min-width:34px;min-height:36px;height:36px;padding:7px;order:0}
body.cash-phone-list #round-fullscreen{display:block!important;min-width:36px;width:36px;min-height:36px;height:36px;padding:4px;font-size:23px;order:2}
body.cash-phone-list #clear-cart{order:3;font-size:12px;min-height:36px;padding:5px}
body.cash-phone-list #round-add{display:block!important;order:4;flex:1 1 100%;width:100%;min-height:44px;padding:9px;background:#35136f;color:white;font-weight:800;font-size:15px}
body.cash-phone-list .basket>.cart-lines{height:0!important;flex:1 1 0%!important;min-height:0!important;max-height:none!important;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 0 8px;margin:0;overscroll-behavior-y:contain}
body.cash-phone-list .cart-line{padding:7px 0;gap:6px}
body.cash-phone-list .cart-line>div{min-width:0}
body.cash-phone-list .cart-line .line-name{font-size:13px}
body.cash-phone-list .basket>.cash-payment-fields{flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:0;margin:0}
body.cash-phone-list .cash-payment-fields>.total{font-size:12px;padding:2px 0;margin:0;display:block}
body.cash-phone-list #cart-total{font-size:25px;line-height:1.1}
body.cash-phone-list #payment-toggle{width:100px;min-height:40px;padding:4px 7px;margin:0;font-size:13px}
body.cash-phone-list #cash-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:3px 8px}
body.cash-phone-list #cash-fields>label{font-size:11px;margin:0;grid-column:1}
body.cash-phone-list #tender{grid-column:1;grid-row:2;padding:6px 9px;min-height:40px;height:40px;font-size:20px;margin:0}
body.cash-phone-list .quick-money{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:3px 0 0}
body.cash-phone-list .quick-money button{min-height:38px;padding:5px;font-size:12px}
body.cash-phone-list .change{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;margin:0;padding:3px;font-size:12px}
body.cash-phone-list .change b{font-size:22px}
body.cash-phone-list #card-fields{grid-column:1/-1;padding:6px;margin:0;font-size:11px}
body.cash-phone-list #card-fields .check{font-size:12px;gap:6px;margin:6px 0 0}
body.cash-phone-list #checkout{position:static!important;flex:0 0 auto;min-height:45px;padding:9px 12px;font-size:16px;line-height:1.2;margin:0}
body.cash-phone-list #donate-change{flex:0 0 auto;padding:6px;min-height:36px;margin:0;font-size:12px}
body.cash-phone-list .basket>p.subtext{display:none}
body.cash-phone-list #cash-open-error:not(.hidden){flex:0 0 auto;margin:0;padding:6px;font-size:11px}
body.cash-phone-list #cash-sync-banner{font-size:10px;max-width:calc(100vw - 24px);bottom:5px;pointer-events:none}
body.cash-phone-menu .workspace{display:none!important}
body.cash-phone-menu .phone-cash-menu{display:block;padding:15px 10px 24px}
.phone-cash-menu h2{font-size:22px;margin:0 0 7px}.phone-cash-menu>p{color:#75617e;font-size:13px;margin:0 0 18px}
.phone-cash-menu-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.phone-cash-menu-tile{min-width:0;min-height:112px;border-radius:14px;border:1px solid var(--tile-border);background:var(--tile-paper);color:var(--tile-ink);padding:14px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:10px}
.phone-cash-menu-tile>span{font-size:28px}.phone-cash-menu-tile strong{font-size:14px;overflow-wrap:anywhere}
[data-phone-tone=green]{--tile-border:#bad4c1;--tile-paper:#edf8ef;--tile-ink:#215e37}
[data-phone-tone=slate]{--tile-border:#c6ced8;--tile-paper:#f0f3f8;--tile-ink:#425268}
[data-phone-tone=amber]{--tile-border:#e6ce96;--tile-paper:#fff7df;--tile-ink:#815607}
[data-phone-tone=blue]{--tile-border:#b9d1e9;--tile-paper:#eef5fe;--tile-ink:#235c99}
[data-phone-tone=purple]{--tile-border:#d7c1e8;--tile-paper:#f4edfb;--tile-ink:#704298}
[data-phone-tone=red]{--tile-border:#e7c1c7;--tile-paper:#fff0f2;--tile-ink:#a1273e}
@media(max-width:700px){
 #round-products{position:fixed!important;top:6px!important;left:6px!important;right:6px!important;bottom:auto!important;transform:none!important;margin:0!important;width:calc(100vw - 12px)!important;max-width:none;height:calc(var(--cash-viewport-height,100vh) - 12px)!important;max-height:none;padding:10px}
 #round-products>.dialog-head{min-width:0;gap:6px}
 #round-products-title{font-size:15px}
 #round-products-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 #round-products-categories button{min-width:0;min-height:36px;padding:5px;font-size:11px;white-space:normal}
 #round-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px 2px 12px 0}
 #round-products-grid>.article-tile{grid-column:span 1}
 #round-products-grid .hot-drink-layout,#round-products-grid .hot-fixed-layout{grid-template-columns:minmax(0,1fr)}
 #round-products-grid .hot-fixed-layout>.hot-drink-group{grid-column:auto;grid-row:auto}
 #round-products-grid .hot-drink-group>.article-tile{min-height:90px}
 #round-products-grid .hot-drink-extras .article-tile{min-height:58px}
 #round-products-grid .product-name{font-size:13px}
 #round-products-grid .donation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #round-products-done{min-height:44px;margin-top:6px}
 .cash-phone-register .register-settings-layout{grid-template-columns:minmax(0,1fr)!important}
 .cash-phone-register .register-settings-sidebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:static;gap:6px}
 .cash-phone-register .register-settings-sidebar>*{min-width:0;width:100%!important}
 .cash-phone-register #settings-view,.cash-phone-register #journal-view{padding:10px;min-width:0}
 .cash-phone-register .catalog-row{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
}
@media(max-width:700px) and (max-height:670px){
 body.cash-phone-list .basket{gap:3px;padding-top:4px;padding-bottom:4px}
 body.cash-phone-list .phone-order-context{min-height:20px;padding-bottom:2px}
 body.cash-phone-list #round-add{min-height:38px;padding:6px}
 body.cash-phone-list #checkout{min-height:40px;font-size:14px;padding:7px}
 body.cash-phone-list .quick-money button{min-height:32px}
 body.cash-phone-list #tender{min-height:36px;height:36px}
 body.cash-phone-list #cart-total{font-size:22px}
 body.cash-phone-list #donate-change{min-height:30px;padding:4px}
}
body.cash-phone-list #cash-quick-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:center}
body.cash-phone-register #cash-quick-nav>.lz-symbol-tab{width:100%;min-width:0;max-width:none}
body.cash-phone-register #cash-quick-nav>details{width:100%;min-width:0}
body.cash-phone-register #cash-quick-nav>details>summary{width:100%;min-width:0;min-height:40px;height:40px;padding:8px}
body.cash-phone-register #cash-quick-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:center}
body.cash-phone-register #cash-quick-nav>.cash-refresh-control{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
body.cash-phone-register #cash-quick-nav .cash-refresh-control small{font-size:9px;line-height:1.1}
body.cash-phone-register #cash-quick-nav .cash-refresh-control button{width:100%;min-width:0;min-height:36px;height:36px}
body.cash-phone-list>.topbar{padding-top:calc(5px + env(safe-area-inset-top));padding-left:calc(8px + env(safe-area-inset-left));padding-right:calc(8px + env(safe-area-inset-right))}
