*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Arial,Helvetica,sans-serif;color:#2f2f33;background:#fff}button,input{font:inherit}.hidden{display:none!important}
:root{--blue:#10358b;--line:#dadce2;--soft:#f7f7f9;--selected:#dbe7ff}
.wizard{min-height:100%;display:grid;place-items:center;background:#f4f5f8;padding:24px}.wizard-card{width:min(840px,100%);background:#fff;border:1px solid #d7d9e0}.wizard-top{height:64px;display:flex;align-items:center;border-bottom:1px solid var(--line);font-size:20px}.brand-block{width:72px;height:64px;background:var(--blue);margin-right:24px}.step{display:none;padding:34px 42px 24px;min-height:430px}.step.active{display:block}.step-no{color:var(--blue);font-weight:bold;font-size:14px}.step h1{font-size:22px;margin:8px 0 26px}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice,.check-option{border:1px solid var(--line);background:#fff;padding:18px;text-align:left;cursor:pointer}.choice.selected,.check-option.selected{background:var(--selected);border-color:#97addc}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-select-group{margin-bottom:24px}.product-select-group h3{font-size:14px;color:#18315f}.product-option{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.product-option img{width:64px;height:48px;object-fit:cover}.product-option label{flex:1}.wizard-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:18px 42px}.wizard-actions button{min-width:150px;padding:14px;border:1px solid var(--blue)}.primary{background:var(--blue);color:#fff}.secondary{background:#fff;color:var(--blue)}
.pos-app{height:100%;display:grid;grid-template-columns:18.2% 48.5% 33.3%;overflow:hidden;background:#fff}.category-pane,.product-pane,.cart-pane{min-width:0;position:relative;border-right:1px solid var(--line)}.menu-top{height:50px;background:var(--blue);color:#fff;display:flex;align-items:center;padding-left:18px;font-size:28px}.hamburger{font-size:27px;line-height:1}.cat{display:block;width:100%;height:50px;text-align:left;padding:0 7px;border:0;border-bottom:1px solid #d5d5d8;background:#fff;color:#34373c}.cat.active{color:#173a7f;background:#f4f7ff}.page-label{position:absolute;bottom:0;left:0;right:0;height:50px;display:grid;place-items:center;border-top:1px solid var(--line);color:#777}.search-bar{height:50px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 14px;gap:14px}.search-icon{font-size:27px;color:#777}.search-bar input{border:0;outline:0;font-size:18px;flex:1;min-width:0}.top-icon{font-size:25px;color:#777}.product-grid{padding:6px;display:grid;grid-template-columns:repeat(4,1fr);gap:9px;overflow:auto;height:calc(100% - 100px);align-content:start}.product-card{aspect-ratio:1.27/1;position:relative;border:1px solid #bbb;cursor:pointer;background:#333;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:cover;display:block}.product-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48%;background:linear-gradient(transparent,rgba(0,0,0,.75))}.price{position:absolute;z-index:2;top:3px;left:4px;color:#fff;text-shadow:0 1px 2px #000;font-size:13px}.info-dot{position:absolute;z-index:2;right:4px;top:4px;color:#fff;border:1px solid #fff;border-radius:50%;width:17px;height:17px;text-align:center;font-size:12px}.product-name{position:absolute;z-index:2;left:5px;right:5px;bottom:8px;text-align:center;color:#fff;font-size:14px;line-height:1.1}.grid-footer{height:50px;border-top:1px solid var(--line);display:grid;place-items:center;font-size:28px;color:var(--blue)}.cart-pane{display:flex;flex-direction:column}.cart-top{height:50px;display:flex;align-items:center;justify-content:flex-end;padding:0 20px;border-bottom:1px solid var(--line);gap:22px}.order-count{border:1px solid #888;padding:4px 10px;color:#666}.dots{font-size:24px}.order-type{height:55px;padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.cart-items{padding:12px 20px;overflow:auto;flex:1}.cart-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 0;font-size:15px}.cart-row small{display:block;color:#858585;margin-top:6px}.totals{border-top:1px solid var(--line)}.totals>div{height:61px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line)}.total-line{font-weight:bold}.bottom-actions{height:73px;display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:0 8px 8px}.bottom-actions button{border:0;background:var(--blue);color:#fff;font-weight:bold;font-size:17px}.item-panel{position:absolute;z-index:20;left:15.5%;right:15.5%;top:3px;bottom:3px;background:#fff;border:1px solid var(--line)}.item-header{height:60px;display:grid;grid-template-columns:60px 1fr 72px;align-items:center;border-bottom:1px solid var(--line);text-align:center}.item-header button{height:100%;border:0;background:#fff;color:#15346f}.item-header #closeItem{font-size:30px;color:#888}.item-body{padding:28px 25px;overflow:auto;height:calc(100% - 60px)}.item-label{color:#18315f;margin:0 0 18px}.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.option-row{border:1px solid var(--line);padding:18px 15px;display:flex;justify-content:space-between;cursor:pointer}.option-row.selected{background:var(--selected);border-color:#9dafd4}.quantity-block,.unit-block,.discount-block{margin-top:34px}.qty-row{display:grid;grid-template-columns:60px 1fr 60px;align-items:center;gap:12px}.qty-row button{height:62px;border:0;background:#f7f7f9;font-size:26px}.qty-center{text-align:center;border-bottom:1px solid #c9c9c9;padding:17px}.hint{text-align:center;color:#27416d;font-size:13px}.unit-price{border-bottom:1px solid #ccc;text-align:center;padding:30px 0 10px}.discount-row{display:grid;grid-template-columns:60px 1fr 60px;gap:12px;align-items:center}.discount-row button{height:62px;border:0;background:#f7f7f9;font-size:29px}.discount-value{text-align:center;border-bottom:1px solid #ccc;padding:20px}.checkout{position:absolute;z-index:50;inset:0;background:#fff;display:grid;grid-template-columns:33% 67%}.checkout-left{border-right:1px solid var(--line);display:flex;flex-direction:column}.checkout-title,.checkout-type{height:53px;border-bottom:1px solid var(--line);padding:16px 20px;display:flex;justify-content:space-between}.checkout-title{color:#aaa}.checkout-items{padding:15px;overflow:auto;flex:1}.checkout-totals>div{height:62px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 22px}.checkout-right,.receipt-right{position:relative}.blue-header{height:51px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.blue-header button{border:0;background:transparent;color:#fff;font-size:31px}.big-total{text-align:center;padding:25px}.big-total strong{display:block;font-size:37px}.big-total small,.receipt-summary small{display:block;color:#aaa;margin-top:5px;font-size:17px}.cash-label{margin:14px 28px;color:#173467;font-weight:bold}.cash-row{display:grid;grid-template-columns:25px 1fr 190px;gap:10px;align-items:center;margin:0 28px}.cash-row input{border:0;border-bottom:1px solid #ccc;padding:12px 0;font-size:18px}.cash-row button{height:57px;background:#fff;border:1px solid #19335e;color:#173467;font-size:17px}.quick-cash{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:26px 28px 76px}.quick-cash button{height:58px;border:1px solid #c2c5cd;background:#fafafa}.pay-method{display:block;width:calc(100% - 56px);margin:0 28px 55px;height:58px;background:#fff;border:1px solid #19335e;color:#19335e;font-size:17px}.receipt-head{justify-content:flex-end}.receipt-summary{display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;text-align:center;margin:50px 70px 120px}.receipt-summary strong{font-size:36px}.divider{height:72px;background:#999}.email-row{margin:0 26px;border-bottom:1px solid #ccc;padding:14px 7px;color:#777}.email-row button{float:right;border:0;background:#fff;color:#173467}.print-btn{display:block;width:calc(100% - 52px);margin:48px 26px;height:58px;background:#fff;border:1px solid #173467;color:#173467}.new-sale{position:absolute;left:26px;right:26px;bottom:14px;height:58px;border:0;background:var(--blue);color:#fff;font-size:17px}
@media(max-width:900px){.pos-app{grid-template-columns:22% 48% 30%}.product-grid{grid-template-columns:repeat(3,1fr)}.top-icon{display:none}.cart-row{font-size:12px}.item-panel{left:10%;right:10%}}
@media(max-width:640px){.wizard{padding:0}.wizard-card{min-height:100vh}.choice-grid,.check-list{grid-template-columns:1fr}.step{padding:28px 20px}.wizard-actions{padding:15px 20px}.pos-app{min-width:1024px}.checkout{min-width:1024px}.item-panel{min-width:780px;left:160px;right:auto;width:700px}}

/* Mobile fullscreen / landscape experience */
.mobile-launch{position:absolute;z-index:100;inset:0;background:#fff;display:grid;place-items:center;padding:24px}
.mobile-launch-box{width:min(420px,100%);text-align:center;border:1px solid var(--line);padding:34px 24px}
.mobile-launch-box .rotate-icon{font-size:52px;color:var(--blue);margin-bottom:12px}
.mobile-launch-box strong{display:block;font-size:20px;margin-bottom:10px}
.mobile-launch-box span,.mobile-launch-box small{display:block;color:#777;margin-bottom:20px}
.mobile-launch-box button{width:100%;height:56px;border:0;background:var(--blue);color:#fff;font-weight:bold}
.mobile-launch-box small{margin:14px 0 0;font-size:12px}

@media (orientation:portrait) and (max-width:900px){
  body.pos-running{overflow:hidden}
  body.pos-running .mobile-launch{display:grid!important}
  body.pos-running .category-pane,
  body.pos-running .product-pane,
  body.pos-running .cart-pane{visibility:hidden}
}
@media (orientation:landscape) and (max-width:1000px){
  html,body{height:100%;overflow:hidden}
  body.pos-running .mobile-launch{display:none!important}
  .pos-app{min-width:0!important;width:100%;height:100%;grid-template-columns:22% 48% 30%;font-size:12px}
  .menu-top,.search-bar,.cart-top{height:42px}
  .order-type{height:43px;padding:12px 14px}
  .cat{height:38px;font-size:11px;padding:0 7px}
  .page-label{height:35px;font-size:12px}
  .product-grid{height:calc(100% - 77px);grid-template-columns:repeat(4,1fr);gap:5px;padding:4px}
  .product-card{aspect-ratio:1.25/1}
  .product-name{font-size:10px;bottom:5px}
  .price{font-size:10px}
  .info-dot{width:14px;height:14px;font-size:9px}
  .grid-footer{height:35px;font-size:20px}
  .search-bar{padding:0 8px;gap:8px}
  .search-bar input{font-size:13px}
  .search-icon{font-size:19px}
  .cart-items{padding:6px 10px}
  .cart-row{padding:7px 0;font-size:10px;gap:5px}
  .cart-row small{font-size:9px;margin-top:3px}
  .totals>div{height:38px;padding:0 10px;font-size:11px}
  .bottom-actions{height:48px;padding:0 4px 4px}
  .bottom-actions button{font-size:11px}
  .item-panel{left:15%!important;right:15%!important;top:2px;bottom:2px;min-width:0!important;width:auto!important}
  .item-header{height:43px;grid-template-columns:44px 1fr 56px}
  .item-header #closeItem{font-size:22px}
  .item-body{padding:14px 16px;height:calc(100% - 43px)}
  .item-label{margin:0 0 8px;font-size:11px}
  .option-grid{gap:6px}
  .option-row{padding:9px 10px;font-size:10px}
  .quantity-block,.unit-block,.discount-block{margin-top:15px}
  .qty-row{grid-template-columns:42px 1fr 42px;gap:6px}
  .qty-row button{height:40px;font-size:18px}
  .qty-center{padding:10px}
  .hint{font-size:8px}
  .unit-price{padding:12px 0 6px}
  .discount-row{grid-template-columns:42px 1fr 42px;gap:6px}
  .discount-row button{height:40px;font-size:19px}
  .discount-value{padding:10px}
  .checkout{min-width:0!important;grid-template-columns:33% 67%}
  .checkout-title,.checkout-type{height:38px;padding:10px 12px;font-size:10px}
  .checkout-items{padding:8px}
  .checkout-totals>div{height:38px;padding:0 12px;font-size:10px}
  .blue-header{height:40px}
  .big-total{padding:12px}
  .big-total strong{font-size:25px}
  .big-total small,.receipt-summary small{font-size:11px}
  .cash-label{margin:6px 16px;font-size:10px}
  .cash-row{grid-template-columns:20px 1fr 120px;margin:0 16px}
  .cash-row input{padding:7px 0;font-size:12px}
  .cash-row button{height:38px;font-size:11px}
  .quick-cash{gap:8px;margin:12px 16px 18px}
  .quick-cash button{height:38px;font-size:10px}
  .pay-method{width:calc(100% - 32px);margin:0 16px 13px;height:40px;font-size:11px}
  .receipt-summary{margin:22px 35px 42px}
  .receipt-summary strong{font-size:24px}
  .divider{height:48px}
  .email-row{margin:0 16px;padding:9px 5px;font-size:10px}
  .print-btn{width:calc(100% - 32px);margin:18px 16px;height:40px;font-size:11px}
  .new-sale{left:16px;right:16px;bottom:8px;height:40px;font-size:11px}
}

.screen-mode-btn{margin-left:auto;margin-right:10px;border:1px solid rgba(255,255,255,.75);background:transparent;color:#fff;width:32px;height:28px;font-size:17px;line-height:1}
.mobile-launch.screen-ready .rotate-icon{display:none}
.mobile-launch.screen-ready #rotateMessage{content:"Tap below to open the POS demo."}
@media (orientation:landscape) and (max-width:1000px){
  body.pos-running.launch-pending .mobile-launch{display:grid!important}
  body.pos-running.launch-pending .category-pane,
  body.pos-running.launch-pending .product-pane,
  body.pos-running.launch-pending .cart-pane{visibility:hidden}
}

/* PWA / Home Screen final mobile fitting */
html,body{width:100%;height:100%;overscroll-behavior:none}
body.pos-running{position:fixed;inset:0;width:100%;height:100%;overflow:hidden}
.pos-app{height:100dvh;max-height:100dvh;padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}
.checkout{height:100%;max-height:100%;overflow:hidden}
.checkout-left,.checkout-right,.receipt-right{min-height:0;overflow:hidden}
.checkout-items{min-height:0}
.screen-mode-btn{display:none!important}

/* Never show the POS sideways in portrait. */
@media (orientation:portrait) and (max-width:1000px){
  body.pos-running .mobile-launch{display:grid!important}
  body.pos-running .category-pane,
  body.pos-running .product-pane,
  body.pos-running .cart-pane,
  body.pos-running .checkout{visibility:hidden}
}

/* iPhone Home Screen landscape: preserve Halloo POS proportions while fitting one page. */
@media (display-mode:standalone) and (orientation:landscape),
       (orientation:landscape) and (max-height:500px) and (max-width:1000px){
  .pos-app{grid-template-columns:21.5% 48.5% 30%;font-size:11px}
  .menu-top,.search-bar,.cart-top{height:38px}
  .order-type{height:39px;padding:11px 12px}
  .cat{height:34px;font-size:10px}
  .page-label{height:31px;font-size:10px}
  .product-grid{height:calc(100% - 69px);grid-template-columns:repeat(4,1fr);gap:4px;padding:4px}
  .product-name{font-size:9px;bottom:4px}
  .price{font-size:9px}
  .grid-footer{height:31px;font-size:17px}
  .cart-items{padding:5px 9px}
  .cart-row{padding:5px 0;font-size:9px}
  .cart-row small{font-size:8px}
  .totals>div{height:34px;font-size:10px}
  .bottom-actions{height:43px}
  .bottom-actions button{font-size:10px}

  .checkout-title,.checkout-type{height:34px;padding:8px 10px;font-size:9px}
  .checkout-items{padding:6px}
  .checkout-totals>div{height:34px;font-size:9px}
  .blue-header{height:36px}
  .big-total{padding:8px}
  .big-total strong{font-size:22px}
  .big-total small,.receipt-summary small{font-size:9px}
  .cash-label{margin:4px 14px;font-size:9px}
  .cash-row{grid-template-columns:18px 1fr 108px;margin:0 14px}
  .cash-row input{padding:5px 0;font-size:10px}
  .cash-row button{height:34px;font-size:9px}
  .quick-cash{gap:7px;margin:8px 14px 11px}
  .quick-cash button{height:34px;font-size:9px}
  .pay-method{width:calc(100% - 28px);margin:0 14px 8px;height:34px;font-size:9px}

  .receipt-summary{margin:14px 25px 24px}
  .receipt-summary strong{font-size:21px}
  .divider{height:42px}
  .email-row{margin:0 14px;padding:7px 4px;font-size:9px}
  .print-btn{width:calc(100% - 28px);margin:12px 14px;height:34px;font-size:9px}
  .new-sale{left:14px;right:14px;bottom:6px;height:35px;font-size:9px}
}

/* Standalone mode should enter the demo directly without a fake fullscreen prompt. */
@media (display-mode:standalone){
  body.pos-running:not(.portrait-warning) .mobile-launch{display:none!important}
}


/* FIX 4 — Match the real Halloo POS scale more closely on iPhone Home Screen */
@media (display-mode: standalone) and (orientation: landscape),
       (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
  .pos-app{grid-template-columns:18.2% 48.5% 33.3% !important;font-size:10px !important}
  .menu-top,.search-bar,.cart-top{height:34px !important}
  .menu-top{padding-left:12px !important}
  .hamburger{font-size:18px !important}
  .search-bar{padding:0 7px !important;gap:6px !important}
  .search-icon{font-size:16px !important}
  .search-bar input{font-size:11px !important}
  .order-count{padding:2px 7px !important;font-size:9px !important}
  .dots{font-size:16px !important}
  .cat{height:29px !important;padding:0 5px !important;font-size:9px !important;line-height:1.15 !important}
  .page-label{height:28px !important;font-size:9px !important}
  .order-type{height:34px !important;padding:10px 12px !important;font-size:9px !important}
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;height:calc(100% - 62px) !important;gap:4px !important;padding:4px !important}
  .product-card{aspect-ratio:1.28/1 !important}
  .price{font-size:8px !important;top:2px !important;left:3px !important}
  .info-dot{width:12px !important;height:12px !important;font-size:8px !important;line-height:11px !important}
  .product-name{font-size:8px !important;line-height:1.02 !important;bottom:4px !important}
  .grid-footer{height:28px !important;font-size:15px !important}
  .cart-items{padding:4px 9px !important}
  .cart-row{padding:5px 0 !important;font-size:8px !important;line-height:1.15 !important}
  .cart-row small{margin-top:2px !important;font-size:7px !important}
  .totals>div{height:31px !important;padding:0 9px !important;font-size:9px !important}
  .bottom-actions{height:39px !important;padding:0 4px 4px !important}
  .bottom-actions button{font-size:9px !important;line-height:1.05 !important}
  .item-panel{left:18.2% !important;right:0 !important;width:auto !important}
  .item-header{height:34px !important;grid-template-columns:36px 1fr 48px !important;font-size:9px !important}
  .item-body{height:calc(100% - 34px) !important;padding:10px 12px !important}
  .option-grid{gap:5px !important}
  .option-row{padding:7px 8px !important;font-size:8px !important}
  .quantity-block,.unit-block,.discount-block{margin-top:10px !important}
  .qty-row{grid-template-columns:34px 1fr 34px !important}
  .qty-row button,.discount-row button{height:32px !important}
  .qty-center,.discount-value{padding:7px !important}
  .checkout{grid-template-columns:33% 67% !important}
  .checkout-title,.checkout-type{height:31px !important;padding:8px 10px !important;font-size:8px !important}
  .checkout-totals>div{height:31px !important;font-size:8px !important}
  .blue-header{height:32px !important}
  .big-total{padding:6px !important}
  .big-total strong{font-size:19px !important}
  .cash-label{margin:3px 12px !important;font-size:8px !important}
  .cash-row{grid-template-columns:16px 1fr 95px !important;margin:0 12px !important}
  .cash-row button{height:30px !important;font-size:8px !important}
  .quick-cash{gap:6px !important;margin:6px 12px 8px !important}
  .quick-cash button{height:30px !important;font-size:8px !important}
  .pay-method{width:calc(100% - 24px) !important;margin:0 12px 6px !important;height:30px !important;font-size:8px !important}
  .receipt-summary{margin:10px 20px 18px !important}
  .receipt-summary strong{font-size:18px !important}
  .email-row{margin:0 12px !important;padding:6px 4px !important;font-size:8px !important}
  .print-btn{width:calc(100% - 24px) !important;margin:8px 12px !important;height:30px !important;font-size:8px !important}
  .new-sale{left:12px !important;right:12px !important;bottom:5px !important;height:31px !important;font-size:8px !important}
}


/* FIX 5 — Virtual desktop canvas.
   This guarantees the whole Halloo POS page is fitted into one phone landscape screen. */
body.virtual-pos-mode{
  background:#fff;
  overflow:hidden!important;
}
body.virtual-pos-mode #posApp{
  position:absolute!important;
  left:0;
  top:0;
  width:1280px!important;
  height:var(--virtual-height,590px)!important;
  max-height:none!important;
  min-width:1280px!important;
  transform-origin:top left;
  padding:0!important;
  grid-template-columns:18.2% 48.5% 33.3%!important;
  font-size:14px!important;
}
body.virtual-pos-mode .menu-top,
body.virtual-pos-mode .search-bar,
body.virtual-pos-mode .cart-top{height:50px!important}
body.virtual-pos-mode .cat{height:50px!important;font-size:14px!important}
body.virtual-pos-mode .page-label{height:50px!important;font-size:14px!important}
body.virtual-pos-mode .order-type{height:55px!important;padding:18px 22px!important;font-size:14px!important}
body.virtual-pos-mode .product-grid{
  height:calc(100% - 100px)!important;
  grid-template-columns:repeat(4,1fr)!important;
  gap:9px!important;
  padding:6px!important;
}
body.virtual-pos-mode .product-name{font-size:14px!important;line-height:1.1!important;bottom:8px!important}
body.virtual-pos-mode .price{font-size:13px!important}
body.virtual-pos-mode .info-dot{width:17px!important;height:17px!important;font-size:12px!important;line-height:normal!important}
body.virtual-pos-mode .grid-footer{height:50px!important;font-size:28px!important}
body.virtual-pos-mode .cart-items{padding:12px 20px!important}
body.virtual-pos-mode .cart-row{padding:12px 0!important;font-size:15px!important}
body.virtual-pos-mode .cart-row small{font-size:12px!important}
body.virtual-pos-mode .totals>div{height:61px!important;padding:0 20px!important;font-size:15px!important}
body.virtual-pos-mode .bottom-actions{height:73px!important}
body.virtual-pos-mode .bottom-actions button{font-size:17px!important}
body.virtual-pos-mode .checkout{
  width:1280px!important;
  height:var(--virtual-height,590px)!important;
  min-width:1280px!important;
}
body.virtual-pos-mode .item-panel{
  left:15.5%!important;
  right:15.5%!important;
  top:3px!important;
  bottom:3px!important;
  width:auto!important;
  min-width:0!important;
}


/* FIX 6 — Restore Halloo POS original sizing for variant/modifier/checkout/receipt
   while keeping full-screen virtual canvas.
   Only the ADD button is made larger for easier tapping. */
body.virtual-pos-mode .item-panel{
  left:15.5%!important;
  right:15.5%!important;
  top:3px!important;
  bottom:3px!important;
  width:auto!important;
  min-width:0!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
}
body.virtual-pos-mode .item-header{
  height:60px!important;
  display:grid!important;
  grid-template-columns:60px 1fr 94px!important;
  align-items:center!important;
  border-bottom:1px solid var(--line)!important;
  text-align:center!important;
  font-size:17px!important;
}
body.virtual-pos-mode .item-header button{
  height:100%!important;
  border:0!important;
  background:#fff!important;
  color:#15346f!important;
}
body.virtual-pos-mode .item-header #closeItem{
  font-size:30px!important;
  color:#888!important;
}
body.virtual-pos-mode .item-header #addItem{
  font-size:18px!important;
  font-weight:bold!important;
  letter-spacing:.3px!important;
}
body.virtual-pos-mode .item-body{
  padding:28px 25px!important;
  overflow:auto!important;
  height:calc(100% - 60px)!important;
}
body.virtual-pos-mode .item-label{
  color:#18315f!important;
  margin:0 0 18px!important;
  font-size:17px!important;
}
body.virtual-pos-mode .option-list{
  display:grid!important;
  gap:12px!important;
}
body.virtual-pos-mode .option-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
}
body.virtual-pos-mode .option-row{
  border:1px solid var(--line)!important;
  padding:18px 15px!important;
  display:flex!important;
  justify-content:space-between!important;
  cursor:pointer!important;
  font-size:16px!important;
}
body.virtual-pos-mode .quantity-block,
body.virtual-pos-mode .unit-block,
body.virtual-pos-mode .discount-block{
  margin-top:34px!important;
}
body.virtual-pos-mode .qty-row{
  display:grid!important;
  grid-template-columns:60px 1fr 60px!important;
  align-items:center!important;
  gap:12px!important;
}
body.virtual-pos-mode .qty-row button{
  height:62px!important;
  border:0!important;
  background:#f7f7f9!important;
  font-size:26px!important;
}
body.virtual-pos-mode .qty-center{
  text-align:center!important;
  border-bottom:1px solid #c9c9c9!important;
  padding:17px!important;
  font-size:18px!important;
}
body.virtual-pos-mode .hint{
  text-align:center!important;
  color:#27416d!important;
  font-size:13px!important;
}
body.virtual-pos-mode .unit-price{
  border-bottom:1px solid #ccc!important;
  text-align:center!important;
  padding:30px 0 10px!important;
  font-size:18px!important;
}
body.virtual-pos-mode .discount-row{
  display:grid!important;
  grid-template-columns:60px 1fr 60px!important;
  gap:12px!important;
  align-items:center!important;
}
body.virtual-pos-mode .discount-row button{
  height:62px!important;
  border:0!important;
  background:#f7f7f9!important;
  font-size:29px!important;
}
body.virtual-pos-mode .discount-value{
  text-align:center!important;
  border-bottom:1px solid #ccc!important;
  padding:20px!important;
  font-size:18px!important;
}

body.virtual-pos-mode .checkout{
  position:absolute!important;
  inset:0!important;
  z-index:50!important;
  width:1280px!important;
  height:var(--virtual-height,590px)!important;
  min-width:1280px!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:33% 67%!important;
  overflow:hidden!important;
}
body.virtual-pos-mode .checkout-left{
  border-right:1px solid var(--line)!important;
  display:flex!important;
  flex-direction:column!important;
}
body.virtual-pos-mode .checkout-title,
body.virtual-pos-mode .checkout-type{
  height:53px!important;
  border-bottom:1px solid var(--line)!important;
  padding:16px 20px!important;
  display:flex!important;
  justify-content:space-between!important;
  font-size:17px!important;
}
body.virtual-pos-mode .checkout-title{
  color:#aaa!important;
}
body.virtual-pos-mode .checkout-items{
  padding:15px!important;
  overflow:auto!important;
  flex:1!important;
}
body.virtual-pos-mode .checkout-items .cart-row{
  font-size:15px!important;
  padding:12px 0!important;
}
body.virtual-pos-mode .checkout-items .cart-row small{
  font-size:12px!important;
}
body.virtual-pos-mode .checkout-totals>div{
  height:62px!important;
  border-top:1px solid var(--line)!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  padding:0 22px!important;
  font-size:15px!important;
}
body.virtual-pos-mode .checkout-right,
body.virtual-pos-mode .receipt-right{
  position:relative!important;
}
body.virtual-pos-mode .blue-header{
  height:51px!important;
  background:var(--blue)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 16px!important;
}
body.virtual-pos-mode .blue-header button{
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  font-size:31px!important;
}
body.virtual-pos-mode .big-total{
  text-align:center!important;
  padding:25px!important;
}
body.virtual-pos-mode .big-total strong{
  display:block!important;
  font-size:37px!important;
}
body.virtual-pos-mode .big-total small,
body.virtual-pos-mode .receipt-summary small{
  display:block!important;
  color:#aaa!important;
  margin-top:5px!important;
  font-size:17px!important;
}
body.virtual-pos-mode .cash-label{
  margin:14px 28px!important;
  color:#173467!important;
  font-weight:bold!important;
  font-size:17px!important;
}
body.virtual-pos-mode .cash-row{
  display:grid!important;
  grid-template-columns:25px 1fr 190px!important;
  gap:10px!important;
  align-items:center!important;
  margin:0 28px!important;
}
body.virtual-pos-mode .cash-row input{
  border:0!important;
  border-bottom:1px solid #ccc!important;
  padding:12px 0!important;
  font-size:18px!important;
}
body.virtual-pos-mode .cash-row button{
  height:57px!important;
  background:#fff!important;
  border:1px solid #19335e!important;
  color:#173467!important;
  font-size:17px!important;
}
body.virtual-pos-mode .quick-cash{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:20px!important;
  margin:26px 28px 46px!important;
}
body.virtual-pos-mode .quick-cash button{
  height:58px!important;
  border:1px solid #c2c5cd!important;
  background:#fafafa!important;
  font-size:17px!important;
}
body.virtual-pos-mode .pay-method{
  display:block!important;
  width:calc(100% - 56px)!important;
  margin:0 28px 26px!important;
  height:58px!important;
  background:#fff!important;
  border:1px solid #19335e!important;
  color:#19335e!important;
  font-size:17px!important;
}
body.virtual-pos-mode .receipt-head{
  justify-content:flex-end!important;
}
body.virtual-pos-mode .receipt-summary{
  display:grid!important;
  grid-template-columns:1fr 1px 1fr!important;
  align-items:center!important;
  text-align:center!important;
  margin:50px 70px 86px!important;
}
body.virtual-pos-mode .receipt-summary strong{
  font-size:36px!important;
}
body.virtual-pos-mode .divider{
  height:72px!important;
  background:#999!important;
}
body.virtual-pos-mode .email-row{
  margin:0 26px!important;
  border-bottom:1px solid #ccc!important;
  padding:14px 7px!important;
  color:#777!important;
  font-size:17px!important;
}
body.virtual-pos-mode .email-row button{
  float:right!important;
  border:0!important;
  background:#fff!important;
  color:#173467!important;
  font-size:17px!important;
}
body.virtual-pos-mode .print-btn{
  display:block!important;
  width:calc(100% - 52px)!important;
  margin:48px 26px!important;
  height:58px!important;
  background:#fff!important;
  border:1px solid #173467!important;
  color:#173467!important;
  font-size:17px!important;
}
body.virtual-pos-mode .new-sale{
  position:absolute!important;
  left:26px!important;
  right:26px!important;
  bottom:14px!important;
  height:58px!important;
  border:0!important;
  background:var(--blue)!important;
  color:#fff!important;
  font-size:17px!important;
}


/* FIX 7 — Critical overlay visibility fix
   In FIX 6, the virtual canvas forced .checkout to display:grid!important,
   which overrode .hidden and caused the receipt screen to appear all the time.
   These rules restore proper show/hide behavior. */
body.virtual-pos-mode .checkout.hidden,
body.virtual-pos-mode .item-panel.hidden,
body.virtual-pos-mode #mobileLaunch.hidden{
  display:none !important;
}
body.virtual-pos-mode .checkout:not(.hidden){
  display:grid !important;
}
body.virtual-pos-mode .item-panel:not(.hidden){
  display:block !important;
}


/* FIX 8 — HallooHQ-style custom demo wizard */
.wizard{
  min-height:100%;
  display:block;
  background:#f3f6fb;
  padding:
    calc(env(safe-area-inset-top) + 18px)
    16px
    calc(env(safe-area-inset-bottom) + 28px);
  overflow:auto;
}
.wizard-shell{width:min(720px,100%);margin:0 auto}
.wizard-brand{
  display:flex;align-items:center;gap:12px;
  padding:8px 4px 18px;color:#20242d;
}
.wizard-brand img{width:52px;height:52px;border-radius:13px}
.wizard-brand strong{display:block;font-size:20px;color:#20242d}
.wizard-brand small{display:block;margin-top:3px;color:#707887;font-size:13px}
.wizard-card{
  width:100%;background:#fff;border:1px solid #dfe3ea;border-radius:24px;
  overflow:hidden;box-shadow:0 1px 2px rgba(20,35,70,.03);
}
.wizard-step-meta{padding:22px 24px 0}
.wizard-step-meta strong{display:block;color:#68758a;font-size:14px}
.progress-track{height:7px;background:#e5e8ee;border-radius:999px;margin-top:12px;overflow:hidden}
.progress-track span{display:block;height:100%;width:20%;background:var(--blue);border-radius:999px;transition:width .2s ease}
.step{display:none;padding:24px;min-height:0}
.step.active{display:block}
.step h1{font-size:28px;margin:0;color:#20242d;letter-spacing:-.3px}
.step-help{margin:8px 0 22px;color:#717987;font-size:15px}
.choice-grid,.check-list{display:grid;grid-template-columns:1fr;gap:10px}
.choice,.check-option{
  min-height:56px;border:1px solid #dfe3ea;border-radius:15px;background:#fff;
  padding:0 17px;text-align:left;color:#2c313a;font-size:16px;font-weight:600;
}
.choice.selected,.check-option.selected{
  background:#f1f5ff;border-color:#9eb1dd;color:#1b3575;
}
.product-select-group{margin-bottom:22px}
.product-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.product-select-group h3{margin:0;color:#303742;font-size:16px}
.select-all-btn{
  border:1px solid #c8d3ea;background:#f4f7ff;color:#173a7f;
  border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700;
}
.select-all-btn.clear{background:#fff;color:#656d79;border-color:#d9dde4}
.product-option{
  display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;
  border:1px solid #e4e7ed;border-radius:14px;padding:10px 12px;margin-bottom:8px;
}
.product-option img{width:54px;height:44px;border-radius:8px;object-fit:cover}
.product-option label{display:flex;align-items:center;gap:10px;font-size:14px;color:#2f343d}
.product-option input{width:19px;height:19px}
.product-option>span{font-size:14px;color:#333943}
.empty-category{display:block;color:#858c98;padding:8px 2px 14px}
.receipt-form{display:grid;gap:10px}
.receipt-form label{margin-top:4px;color:#343b47;font-weight:700;font-size:14px}
.receipt-form label span{color:#b42318}
.receipt-form label small{color:#818896;font-weight:400}
.receipt-form>input{
  width:100%;height:54px;border:1px solid #dfe3ea;border-radius:15px;
  padding:0 16px;font-size:16px;color:#20242d;background:#fff;outline:none;
}
.receipt-form>input:focus{border-color:#829ad0;box-shadow:0 0 0 3px rgba(16,53,139,.08)}
.upload-row{display:grid;gap:10px}
.upload-row input{
  width:100%;border:1px dashed #cbd1dc;border-radius:15px;padding:14px;background:#fafbfc;
}
.logo-preview{
  min-height:58px;border:1px solid #e2e5eb;border-radius:15px;display:flex;
  align-items:center;justify-content:center;color:#858c98;background:#fff;overflow:hidden;
}
.logo-preview img{max-height:70px;max-width:180px;object-fit:contain;padding:8px}
.wizard-actions{
  display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5e8ee;padding:18px 24px 24px;
}
.wizard-actions button{
  min-width:128px;height:52px;padding:0 22px;border-radius:15px;font-weight:700;
}
.secondary{background:#fff;color:#173a7f;border:1px solid #d7dce5}
.primary{background:var(--blue);color:#fff;border:1px solid var(--blue)}
@media(max-width:640px){
  .wizard{padding-left:12px;padding-right:12px}
  .wizard-brand{padding-left:2px}
  .wizard-card{border-radius:20px}
  .wizard-step-meta,.step{padding-left:20px;padding-right:20px}
  .wizard-actions{padding-left:20px;padding-right:20px}
  .step h1{font-size:25px}
}

/* Order type dropdown */
.order-type-wrap{position:relative;border-bottom:1px solid var(--line)}
.order-type-wrap .order-type{
  width:100%;height:55px;padding:0 22px;border:0;background:#fff;
  display:flex;align-items:center;justify-content:space-between;text-align:left;color:#2f2f33;
}
.order-type-menu{
  position:absolute;left:12px;right:12px;top:49px;z-index:30;
  border:1px solid #d9dde4;background:#fff;box-shadow:0 8px 25px rgba(20,34,60,.15);
}
.order-type-menu button{
  display:block;width:100%;padding:14px 16px;border:0;border-bottom:1px solid #eceef2;
  background:#fff;text-align:left;color:#2f333b;
}
.order-type-menu button:last-child{border-bottom:0}

/* Receipt preview */
.receipt-preview{
  position:absolute;z-index:80;inset:0;background:#f1f2f4;display:flex;flex-direction:column;
}
.receipt-preview-header{
  height:58px;background:#fff;border-bottom:1px solid #daddE4;
  display:grid;grid-template-columns:60px 1fr 60px;align-items:center;text-align:center;
}
.receipt-preview-header button{height:100%;border:0;background:#fff;font-size:30px;color:#777}
.receipt-tabs{display:flex;justify-content:center;gap:10px;padding:14px;background:#fff;border-bottom:1px solid #dddfe5}
.receipt-tabs button{
  border:1px solid #cfd4dd;background:#fff;color:#4b515b;padding:10px 18px;border-radius:999px;font-weight:700;
}
.receipt-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.receipt-preview-body{flex:1;overflow:auto;padding:22px;display:flex;justify-content:center;align-items:flex-start}
.thermal-receipt,.kitchen-ticket{
  width:360px;background:#fff;border:1px solid #d5d7dc;padding:22px 18px;
  font-family:"Courier New",monospace;color:#111;
}
.receipt-logo{display:block;max-width:100px;max-height:82px;margin:0 auto 10px;object-fit:contain}
.receipt-business{text-align:center;font-weight:bold;font-size:18px;margin-bottom:10px}
.receipt-address{text-align:center;font-size:12px;line-height:1.35;margin-bottom:12px}
.receipt-divider{border-top:1px dashed #333;margin:9px 0}
.receipt-meta{font-size:12px;line-height:1.45}
.receipt-table{width:100%;border-collapse:collapse;font-size:12px}
.receipt-table th,.receipt-table td{padding:4px 0;vertical-align:top}
.receipt-table th{text-align:left}
.receipt-table th:nth-child(2),.receipt-table td:nth-child(2){text-align:center;width:42px}
.receipt-table th:last-child,.receipt-table td:last-child{text-align:right;width:70px}
.receipt-mod{display:block;padding-left:7px}
.receipt-total-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0}
.receipt-grand{font-size:16px;font-weight:bold}
.receipt-footer{text-align:center;font-size:12px;line-height:1.45;margin-top:16px}
.kitchen-preview{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;align-items:flex-start}
.kitchen-station{display:grid;gap:10px}
.kitchen-station h3{text-align:center;margin:0;font-size:20px}
.kitchen-ticket{width:320px}
.kitchen-head{text-align:center;font-weight:bold;font-size:18px}
.kitchen-info{font-size:12px;line-height:1.35}
.kitchen-order-type{text-align:center;font-weight:bold;font-size:17px}
.kitchen-item{font-weight:bold;margin:11px 0 2px}
.kitchen-mod{margin:3px 0;padding-left:8px}
body.virtual-pos-mode .receipt-preview{
  width:1280px!important;height:var(--virtual-height,590px)!important;min-width:1280px!important;
}
body.virtual-pos-mode .receipt-preview.hidden{display:none!important}


/* VERSION 9 — Receipt close button moved to the visible centre area */
.receipt-preview-header{
  height:64px!important;
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
  padding:0 16px!important;
}
.receipt-preview-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  white-space:nowrap;
}
.receipt-preview-title strong{
  font-size:18px;
}
.receipt-preview-title button{
  width:42px!important;
  height:42px!important;
  border:1px solid #d6d9df!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#555!important;
  font-size:28px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
}

.open-price-input{
  width:100%;height:54px;border:0;border-bottom:1px solid #ccc;
  text-align:center;font-size:18px;background:#fff;
}
body.virtual-pos-mode .open-price-input{font-size:18px!important;height:54px!important}


/* V10.2 — Cart footer must always remain visible, including ALL products. */
.cart-pane{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.cart-items{
  min-height:0!important;
  overflow:auto!important;
}
.totals,
.bottom-actions{
  flex:0 0 auto!important;
}
.bottom-actions{
  position:relative!important;
  z-index:8!important;
  background:#fff!important;
}

/* Neutral Halloo-style placeholder for products without supplied images. */
.product-card img{
  background:#c2c2c2!important;
}

/* Keep long category lists scrollable without covering the footer label. */
.category-pane{
  display:flex!important;
  flex-direction:column!important;
}
#categoryList{
  min-height:0!important;
  overflow:auto!important;
  flex:1 1 auto!important;
  padding-bottom:50px!important;
}
.page-label{
  z-index:4!important;
  background:#fff!important;
}


/* V10.3 — Darker, clearer thermal receipt preview text */
.thermal-receipt,
.kitchen-ticket{
  color:#111!important;
}
.receipt-business,
.receipt-address,
.receipt-meta,
.receipt-table,
.receipt-table th,
.receipt-table td,
.receipt-mod,
.receipt-total-row,
.receipt-footer,
.kitchen-ticket *{
  color:#111!important;
  opacity:1!important;
}
.receipt-divider{
  border-top-color:#111!important;
}


/* V10.4 — PIN login screen */
.pin-screen{
  position:absolute; inset:0; z-index:95; background:#f8f8f8; display:flex; align-items:center; justify-content:center;
}
.pin-time-clock{
  position:absolute; top:22px; right:22px; display:flex; align-items:center; gap:10px;
  border:2px solid #536a95; color:#2b4578; background:#fff; height:56px; padding:0 18px; font-weight:700; font-size:14px;
}
.pin-time-clock span{letter-spacing:.02em}
.pin-box{width:min(930px,92vw); text-align:center}
.pin-logo{width:min(360px,36vw); max-width:360px; min-width:220px; display:block; margin:0 auto 12px; object-fit:contain}
.pin-title{font-size:42px; font-weight:500; color:#30353b; margin-bottom:10px}
.pin-note{font-size:16px; color:#6e7580; margin-bottom:18px}
.pin-dots{display:flex; justify-content:center; gap:14px; margin-bottom:26px}
.pin-dots span{width:26px; height:26px; border-radius:50%; border:3px solid var(--blue); background:#fff; display:block}
.pin-dots span.filled{background:var(--blue)}
.pin-pad{display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #d7d8dc; background:#fff}
.pin-pad button{height:98px; border:0; border-right:1px solid #d7d8dc; border-bottom:1px solid #d7d8dc; background:#fff; font-size:26px; color:#4a4f55; cursor:pointer}
.pin-pad button:nth-child(3n){border-right:0}
.pin-pad button:nth-last-child(-n+3){border-bottom:0}
.pin-pad .pin-empty{cursor:default; background:#fff}
.pin-pad .pin-empty:hover{background:#fff}
.pin-pad button:hover{background:#fafbfc}

/* keep receipt logos monochrome and transparent-looking on white */
.receipt-logo{image-rendering:auto; mix-blend-mode:multiply}

@media (max-width: 900px){
  .pin-box{width:min(760px,94vw)}
  .pin-logo{width:min(300px,44vw)}
  .pin-title{font-size:32px}
  .pin-pad button{height:82px; font-size:22px}
}


/* V10.6 FINAL RELEASE — exact Halloo-style product cards */
.product-card{
  position:relative!important;
  overflow:hidden!important;
  background:#d7d9d6!important;
  border:1px solid #aaa!important;
  box-shadow:none!important;
}
.product-card::before,.product-card::after{display:none!important;content:none!important}
.product-card img{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:cover!important;background:#d7d9d6!important;z-index:0!important;
}
.product-card.no-image img{object-fit:cover!important}
.product-price-bar{
  position:absolute!important;z-index:3!important;left:0!important;right:0!important;top:0!important;
  height:27px!important;background:rgba(91,94,91,.88)!important;
}
.product-name-bar{
  position:absolute!important;z-index:3!important;left:0!important;right:0!important;bottom:0!important;
  min-height:46px!important;background:rgba(82,84,81,.90)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;padding:4px 7px!important;
}
.product-card.has-image .product-price-bar,.product-card.has-image .product-name-bar{background:rgba(30,30,30,.56)!important}
.product-card .price{
  position:static!important;display:block!important;padding:4px 5px!important;color:#fff!important;
  font-size:14px!important;line-height:19px!important;text-shadow:0 1px 2px #222!important;
}
.product-card .info-dot{
  position:absolute!important;right:5px!important;top:4px!important;width:18px!important;height:18px!important;
  border:2px solid #fff!important;border-radius:50%!important;color:#fff!important;line-height:15px!important;
  font-size:12px!important;text-align:center!important;font-family:Arial,sans-serif!important;
}
.product-card .product-name{
  position:static!important;color:#fff!important;text-align:center!important;font-size:14px!important;
  line-height:1.05!important;text-shadow:0 1px 1px rgba(0,0,0,.4)!important;
}

/* One category All only */
#categoryList>.cat:first-child{text-transform:none!important}

/* Cart: fixed top/order/list/totals/actions; only list scrolls */
.cart-pane{
  display:grid!important;
  grid-template-rows:50px 55px minmax(0,1fr) 122px 73px!important;
  height:100%!important;min-height:0!important;overflow:hidden!important;
}
.cart-top,.order-type-wrap,.totals,.bottom-actions{min-height:0!important;position:relative!important}
.cart-items{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
.totals{height:122px!important;overflow:hidden!important;background:#fff!important;z-index:20!important}
.bottom-actions{height:73px!important;min-height:73px!important;display:grid!important;z-index:30!important;background:#fff!important}
body.virtual-pos-mode .cart-pane{
  display:grid!important;grid-template-rows:34px 42px minmax(0,1fr) 86px 55px!important;
}
body.virtual-pos-mode .totals{height:86px!important}
body.virtual-pos-mode .bottom-actions{height:55px!important;min-height:55px!important}
body.virtual-pos-mode .bottom-actions button{font-size:13px!important}

/* F&B order type dropdown */
.order-type{pointer-events:auto!important;cursor:pointer!important}
.order-type-menu{z-index:120!important}

/* Receipt text true black */
.thermal-receipt,.thermal-receipt *, .kitchen-ticket,.kitchen-ticket *{
  color:#000!important;opacity:1!important;text-shadow:none!important;
}
.receipt-divider{border-top-color:#000!important}
.receipt-logo{mix-blend-mode:normal!important;background:#fff!important}

/* PIN screen proportions match original Halloo screen and always fit */
.pin-screen{overflow:hidden!important;padding:12px 18px!important}
.pin-box{width:min(925px,82vw)!important;max-height:calc(100% - 18px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.pin-logo{width:145px!important;height:auto!important;min-width:0!important;max-width:145px!important;margin:0 auto 7px!important;background:transparent!important}
.pin-title{font-size:21px!important;margin:0 0 5px!important}
.pin-note{font-size:18px!important;line-height:1.25!important;font-weight:800!important;color:var(--blue)!important;margin:0 0 9px!important}
.pin-dots{gap:12px!important;margin-bottom:13px!important}
.pin-dots span{width:25px!important;height:25px!important;border-width:2px!important}
.pin-pad{flex:0 1 auto!important;width:100%!important}
.pin-pad button{height:68px!important;font-size:22px!important}
.pin-time-clock{top:12px!important;right:14px!important;height:48px!important;padding:0 14px!important}
@media(max-height:560px){
 .pin-logo{width:105px!important;max-width:105px!important}
 .pin-title{font-size:18px!important}.pin-note{font-size:15px!important}
 .pin-dots{margin-bottom:7px!important}.pin-dots span{width:20px!important;height:20px!important}
 .pin-pad button{height:54px!important}
}


/* V10.6.1 — Guaranteed visible cart footer */
.cart-pane{
  position:relative!important;
  display:block!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.cart-top{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:50px!important;
  z-index:20!important;
  background:#fff!important;
}
.order-type-wrap{
  position:absolute!important;
  top:50px!important;
  left:0!important;
  right:0!important;
  height:55px!important;
  z-index:30!important;
  background:#fff!important;
}
.cart-items{
  position:absolute!important;
  top:105px!important;
  bottom:195px!important;
  left:0!important;
  right:0!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.totals{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:73px!important;
  height:122px!important;
  z-index:25!important;
  background:#fff!important;
  overflow:hidden!important;
}
.bottom-actions{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:73px!important;
  min-height:73px!important;
  z-index:40!important;
  display:grid!important;
  background:#fff!important;
}
.order-type-menu{
  position:absolute!important;
  top:55px!important;
  left:0!important;
  right:0!important;
  z-index:200!important;
}

/* Fitted landscape phone canvas */
body.virtual-pos-mode .cart-top{
  height:34px!important;
}
body.virtual-pos-mode .order-type-wrap{
  top:34px!important;
  height:42px!important;
}
body.virtual-pos-mode .cart-items{
  top:76px!important;
  bottom:141px!important;
}
body.virtual-pos-mode .totals{
  bottom:55px!important;
  height:86px!important;
}
body.virtual-pos-mode .bottom-actions{
  height:55px!important;
  min-height:55px!important;
}
body.virtual-pos-mode .order-type-menu{
  top:42px!important;
}

/* Slightly larger PIN content while keeping every keypad row visible */
.pin-logo{
  width:min(235px,23vw)!important;
  max-width:235px!important;
  min-width:190px!important;
  margin-bottom:8px!important;
}
.pin-box{
  transform:scale(1.04);
  transform-origin:center center;
}
.pin-pad button{
  height:92px!important;
}


/* V10.6.2 — Natural full-page receipt preview scrolling */
.receipt-preview{
  display:block!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#f1f2f4!important;
  overscroll-behavior:contain;
}
.receipt-preview.hidden{display:none!important}
.receipt-preview-header,
.receipt-tabs{
  position:static!important;
  top:auto!important;
  flex:none!important;
}
.receipt-preview-body{
  display:flex!important;
  min-height:auto!important;
  height:auto!important;
  overflow:visible!important;
  padding:28px 22px 48px!important;
  align-items:flex-start!important;
}
#customerReceiptPreview,
#kitchenReceiptPreview{
  flex:none!important;
}
.kitchen-preview{
  align-items:flex-start!important;
  overflow:visible!important;
}
body.virtual-pos-mode .receipt-preview{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.virtual-pos-mode .receipt-preview-body{
  height:auto!important;
  min-height:calc(var(--virtual-height,590px) - 120px)!important;
  overflow:visible!important;
}


/* =========================================================
   V10.6.3 RELEASE — FINAL AUTHORITATIVE LAYOUT OVERRIDES
   ========================================================= */

/* Single-tap controls feel immediate on mobile. */
button, [role="button"]{
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent;
}

/* PIN screen: slightly smaller so every keypad row is visible. */
.pin-screen{
  overflow:hidden!important;
  padding:8px 16px!important;
}
.pin-box{
  width:min(880px,78vw)!important;
  max-height:calc(100% - 12px)!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.pin-logo{
  width:170px!important;
  max-width:170px!important;
  min-width:0!important;
  height:auto!important;
  margin:0 auto 5px!important;
  background:transparent!important;
}
.pin-title{font-size:20px!important;margin:0 0 4px!important}
.pin-note{font-size:17px!important;line-height:1.15!important;margin:0 0 7px!important}
.pin-dots{margin-bottom:9px!important;gap:11px!important}
.pin-dots span{width:22px!important;height:22px!important}
.pin-pad{width:100%!important;flex:none!important}
.pin-pad button{height:62px!important;font-size:21px!important}
@media(max-height:560px){
  .pin-logo{width:125px!important;max-width:125px!important}
  .pin-title{font-size:17px!important}
  .pin-note{font-size:14px!important}
  .pin-pad button{height:49px!important}
  .pin-dots{margin-bottom:5px!important}
}

/* Cart panel: SAVE and CHARGE are always pinned inside the visible panel. */
.cart-pane{
  position:relative!important;
  display:block!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.cart-top{
  position:absolute!important;top:0!important;left:0!important;right:0!important;
  height:50px!important;z-index:20!important;background:#fff!important;
}
.order-type-wrap{
  position:absolute!important;top:50px!important;left:0!important;right:0!important;
  height:55px!important;z-index:25!important;background:#fff!important;
}
.cart-items{
  position:absolute!important;top:105px!important;bottom:195px!important;left:0!important;right:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;
}
.totals{
  position:absolute!important;left:0!important;right:0!important;bottom:73px!important;
  height:122px!important;z-index:30!important;background:#fff!important;overflow:hidden!important;
}
.bottom-actions{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;
  height:73px!important;min-height:73px!important;z-index:35!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;background:#fff!important;
}
.bottom-actions button{display:block!important;visibility:visible!important;opacity:1!important}
body.virtual-pos-mode .cart-top{height:34px!important}
body.virtual-pos-mode .order-type-wrap{top:34px!important;height:42px!important}
body.virtual-pos-mode .cart-items{top:76px!important;bottom:141px!important}
body.virtual-pos-mode .totals{bottom:55px!important;height:86px!important}
body.virtual-pos-mode .bottom-actions{height:55px!important;min-height:55px!important}

/* Modifier/variant popup always sits above Dine In and the cart panel. */
.item-panel{
  z-index:600!important;
  pointer-events:auto!important;
  box-shadow:0 0 0 9999px rgba(255,255,255,.01)!important;
}
.item-panel:not(.hidden){display:block!important}
.item-panel.hidden{display:none!important}
.item-header{position:relative!important;z-index:610!important;background:#fff!important}
#closeItem,#addItem{position:relative!important;z-index:620!important;pointer-events:auto!important}
.order-type-wrap,.order-type-menu{z-index:25!important}

/* Receipt preview: same receipt design, better preview navigation. */
.receipt-preview{
  position:absolute!important;
  inset:0!important;
  display:grid!important;
  grid-template-rows:58px minmax(0,1fr)!important;
  overflow:hidden!important;
  background:#f1f2f4!important;
}
.receipt-preview.hidden{display:none!important}
.receipt-preview-header{
  position:relative!important;
  height:58px!important;
  min-height:58px!important;
  z-index:30!important;
  background:#fff!important;
  border-bottom:1px solid #daddE4!important;
}
.receipt-tabs{
  position:absolute!important;
  z-index:35!important;
  top:92px!important;
  left:26px!important;
  width:190px!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  background:transparent!important;
  border:0!important;
}
.receipt-tabs button{
  width:100%!important;
  min-height:50px!important;
  border-radius:12px!important;
  text-align:left!important;
  padding:0 18px!important;
  background:#fff!important;
  border:1px solid #cfd4dd!important;
  color:#30343b!important;
  font-weight:800!important;
}
.receipt-tabs button.active{
  background:var(--blue)!important;
  color:#fff!important;
  border-color:var(--blue)!important;
}
.receipt-preview-body{
  grid-row:2!important;
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:32px 32px 54px 235px!important;
}
body.virtual-pos-mode .receipt-preview{
  width:1280px!important;
  height:var(--virtual-height,590px)!important;
  min-width:1280px!important;
}
body.virtual-pos-mode .receipt-preview-body{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  padding-left:235px!important;
}

/* Halloo POS receipt contrast: pure black and fully opaque. */
.thermal-receipt,.thermal-receipt *,
.kitchen-ticket,.kitchen-ticket *,
.receipt-business,.receipt-address,.receipt-meta,
.receipt-table,.receipt-table th,.receipt-table td,
.receipt-mod,.receipt-total-row,.receipt-footer,
.kitchen-head,.kitchen-info,.kitchen-order-type,.kitchen-item,.kitchen-mod{
  color:#000!important;
  opacity:1!important;
  text-shadow:none!important;
}
.receipt-divider{border-top-color:#000!important;opacity:1!important}


/* V10.6.4 DEFINITIVE STABILITY OVERRIDES */
.pin-screen{padding:6px 16px!important;overflow:hidden!important}
.pin-box{transform:none!important;width:min(900px,88vw)!important}
.pin-logo{width:150px!important;max-width:150px!important;min-width:0!important;margin:0 auto 4px!important}
.pin-title{font-size:20px!important;margin-bottom:3px!important}
.pin-note{font-size:15px!important;line-height:1.15!important;margin-bottom:5px!important}
.pin-dots{margin-bottom:6px!important;gap:10px!important}
.pin-dots span{width:21px!important;height:21px!important;border-width:2px!important}
.pin-pad button{height:58px!important;font-size:20px!important}
@media(max-height:600px){
 .pin-logo{width:125px!important;max-width:125px!important}
 .pin-title{font-size:17px!important}
 .pin-note{font-size:13px!important}
 .pin-pad button{height:48px!important}
}

/* Cart footer cannot leave visible viewport */
.cart-pane{position:relative!important;display:block!important;height:100%!important;overflow:hidden!important}
.cart-top{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:20!important;background:#fff!important}
.order-type-wrap{position:absolute!important;left:0!important;right:0!important;z-index:25!important;background:#fff!important}
.cart-items{position:absolute!important;left:0!important;right:0!important;overflow-y:auto!important;overflow-x:hidden!important}
.totals{position:absolute!important;left:0!important;right:0!important;z-index:30!important;background:#fff!important;overflow:hidden!important}
.bottom-actions{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:50!important;display:grid!important;grid-template-columns:1fr 1fr!important;visibility:visible!important;opacity:1!important;background:#fff!important}
.bottom-actions button{display:block!important;visibility:visible!important;opacity:1!important}

/* Popup owns the entire area to the right of categories */
.item-panel{left:18.2%!important;right:0!important;top:0!important;bottom:0!important;z-index:1000!important;background:#fff!important;box-shadow:none!important}
.item-panel:not(.hidden){display:block!important}
.item-panel.hidden{display:none!important}
.item-header{z-index:1010!important}
#closeItem,#addItem{z-index:1020!important;pointer-events:auto!important;touch-action:manipulation!important}

/* Receipt navigation at fixed left side, receipt content scrolls only */
.receipt-preview{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;grid-template-rows:58px minmax(0,1fr)!important;overflow:hidden!important}
.receipt-preview.hidden{display:none!important}
.receipt-preview-header{grid-column:1/3!important;grid-row:1!important;position:relative!important;height:58px!important}
.receipt-tabs{grid-column:1!important;grid-row:2!important;position:relative!important;top:auto!important;left:auto!important;width:auto!important;padding:28px 14px!important;display:flex!important;flex-direction:column!important;gap:10px!important;background:#fff!important;border-right:1px solid #dddfe5!important;border-bottom:0!important}
.receipt-tabs button{width:100%!important;min-height:48px!important;border-radius:10px!important;text-align:left!important;padding:0 14px!important}
.receipt-preview-body{grid-column:2!important;grid-row:2!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:30px 32px 60px!important;display:flex!important;justify-content:center!important;align-items:flex-start!important}
body.virtual-pos-mode .receipt-preview{grid-template-columns:210px minmax(0,1fr)!important}
body.virtual-pos-mode .receipt-preview-body{padding:24px 26px 50px!important;height:100%!important;min-height:0!important;overflow-y:auto!important}

/* True black receipt contrast */
.thermal-receipt,.thermal-receipt *, .kitchen-ticket,.kitchen-ticket *{color:#000!important;opacity:1!important;text-shadow:none!important}
.receipt-divider{border-top-color:#000!important;opacity:1!important}


/* V10.6.5 — RELEASE: reliable ALL footer, exact left receipt sidebar, balanced PIN size */
html,body,#posApp,.pos-app,.category-pane,.product-pane,.cart-pane{
  min-height:0!important;
}
.pos-app{height:100%!important;overflow:hidden!important}
.product-pane{height:100%!important;min-height:0!important;overflow:hidden!important}
.product-grid{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
}

/* Use CSS grid for the cart. Product count can never move SAVE / CHARGE. */
.cart-pane{
  display:grid!important;
  grid-template-rows:50px 55px minmax(0,1fr) 122px 73px!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  position:relative!important;
}
.cart-top,.order-type-wrap,.cart-items,.totals,.bottom-actions{
  position:relative!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  min-height:0!important;
  width:auto!important;
}
.cart-top{grid-row:1!important;height:auto!important;z-index:12!important;background:#fff!important}
.order-type-wrap{grid-row:2!important;height:auto!important;z-index:18!important;background:#fff!important}
.cart-items{
  grid-row:3!important;
  height:auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  z-index:1!important;
}
.totals{
  grid-row:4!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  z-index:20!important;
  background:#fff!important;
}
.bottom-actions{
  grid-row:5!important;
  height:auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:30!important;
  background:#fff!important;
}
.bottom-actions button{display:block!important;visibility:visible!important;opacity:1!important}
body.virtual-pos-mode .cart-pane{
  grid-template-rows:34px 42px minmax(0,1fr) 86px 55px!important;
}

/* Balanced PIN size matching the user's zoomed reference while still fitting. */
.pin-screen{padding:8px 18px!important;overflow:hidden!important}
.pin-box{width:min(1040px,90vw)!important;transform:none!important}
.pin-logo{width:190px!important;max-width:190px!important;min-width:0!important;margin:0 auto 7px!important}
.pin-title{font-size:27px!important;margin:0 0 5px!important}
.pin-note{font-size:18px!important;line-height:1.15!important;margin:0 0 7px!important;font-weight:800!important;color:var(--blue)!important}
.pin-dots{gap:12px!important;margin-bottom:8px!important}
.pin-dots span{width:25px!important;height:25px!important;border-width:3px!important}
.pin-pad button{height:74px!important;font-size:25px!important}
@media(max-height:600px){
 .pin-logo{width:165px!important;max-width:165px!important}
 .pin-title{font-size:23px!important}
 .pin-note{font-size:16px!important}
 .pin-dots span{width:23px!important;height:23px!important}
 .pin-pad button{height:66px!important;font-size:23px!important}
}

/* Receipt Preview: exact fixed left menu. Only receipt area scrolls / zooms. */
.receipt-preview{
  display:grid!important;
  grid-template-columns:260px minmax(0,1fr)!important;
  grid-template-rows:118px minmax(0,1fr) 170px!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  background:#eef0f3!important;
}
.receipt-preview.hidden{display:none!important}
.receipt-preview-header{
  grid-column:1!important;
  grid-row:1!important;
  height:auto!important;
  padding:28px 22px 14px 46px!important;
  display:block!important;
  background:#fff!important;
  border-right:1px solid #e0e3e8!important;
  border-bottom:0!important;
  z-index:10!important;
}
.receipt-preview-header>span{display:none!important}
.receipt-preview-title{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:15px!important;
  white-space:nowrap!important;
}
.receipt-preview-title strong{font-size:20px!important;color:#30343b!important}
.receipt-preview-title button{
  width:46px!important;height:46px!important;min-width:46px!important;
  border-radius:50%!important;font-size:27px!important;
}
.receipt-tabs{
  grid-column:1!important;
  grid-row:3!important;
  align-self:end!important;
  padding:0 38px 42px 46px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  background:#fff!important;
  border-right:1px solid #e0e3e8!important;
  border-bottom:0!important;
  position:relative!important;
  inset:auto!important;
  width:auto!important;
}
.receipt-tabs button{
  width:100%!important;
  min-height:50px!important;
  border-radius:10px!important;
  text-align:center!important;
  padding:0 10px!important;
  font-size:14px!important;
}
.receipt-preview-body{
  grid-column:2!important;
  grid-row:1/4!important;
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  padding:32px 36px 70px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  touch-action:pan-x pan-y pinch-zoom!important;
  -webkit-overflow-scrolling:touch!important;
  background:#eef0f3!important;
}
body.virtual-pos-mode .receipt-preview{
  grid-template-columns:260px minmax(0,1fr)!important;
  grid-template-rows:110px minmax(0,1fr) 160px!important;
}
body.virtual-pos-mode .receipt-preview-body{
  height:100%!important;
  min-height:0!important;
  padding:30px 34px 64px!important;
  overflow:auto!important;
}

/* Halloo POS receipt contrast */
.thermal-receipt,.thermal-receipt *,
.kitchen-ticket,.kitchen-ticket *{
  color:#000!important;
  opacity:1!important;
  text-shadow:none!important;
}
.receipt-divider{border-top-color:#000!important;opacity:1!important}


/* V10.6.6 — category only mode + full receipt sidebar */
.receipt-preview{position:relative!important;}
.receipt-preview::before{content:"";position:absolute;left:0;top:0;bottom:0;width:260px;background:#fff;border-right:1px solid #e0e3e8;z-index:0;}
.receipt-preview-header,.receipt-tabs{position:relative!important;z-index:2!important;}
.receipt-preview-header{box-sizing:border-box!important;}
.receipt-tabs{box-sizing:border-box!important;}
.receipt-preview-body{position:relative!important;z-index:1!important;}
body.virtual-pos-mode .receipt-preview::before{width:260px!important;}

/* V10.6.7 — Halloo POS cart, discount and payment screen restoration */
.cart-pane{
  display:flex!important;
  flex-direction:column!important;
  grid-template-rows:none!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  position:relative!important;
  background:#fff!important;
}
.cart-top{
  flex:0 0 50px!important;
  height:50px!important;
  min-height:50px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 16px!important;
  border-bottom:1px solid var(--line)!important;
  background:#fff!important;
  z-index:25!important;
}
.cart-tools{display:flex;align-items:center;gap:19px;height:100%}
.cart-tool{width:28px;height:38px;border:0;background:transparent;padding:0;display:grid;place-items:center;color:#777;cursor:pointer;touch-action:manipulation}
.cart-tool:active{background:#f2f3f5}
.tool-icon{display:inline-grid;place-items:center;color:#777;font-size:24px;line-height:1}
.tag-icon::before{content:"◇";font-size:29px;transform:rotate(-12deg)}
.customer-icon::before{content:"♙+";font-size:25px;letter-spacing:-5px}
.service-icon{font-size:22px;filter:grayscale(1)}
.cart-top-right{display:flex;align-items:center;gap:20px}
.order-type-wrap{
  flex:0 0 55px!important;
  height:55px!important;
  min-height:55px!important;
  position:relative!important;
  z-index:22!important;
  background:#fff!important;
}
.order-type{width:100%!important;height:55px!important;min-height:55px!important;padding:0 22px!important;align-items:center!important;background:#fff!important;border:0!important;border-bottom:1px solid var(--line)!important;font-size:17px!important}
.cart-items{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:14px 20px 8px!important;
  background:#fff!important;
  z-index:1!important;
}
.cart-row{grid-template-columns:minmax(0,1fr) auto!important;padding:13px 0!important;gap:14px!important;align-items:start!important;font-size:15px!important;color:#2f3136!important}
.cart-row>div:last-child{text-align:right;white-space:nowrap}
.cart-qty{color:#8a8d94}
.cart-row small{margin-top:4px!important;color:#85888e!important;font-size:12px!important;line-height:1.25!important}
.cart-row .item-discount-note{color:#555!important}
.totals{
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  position:relative!important;
  z-index:20!important;
  background:#fff!important;
  border-top:1px solid var(--line)!important;
  overflow:hidden!important;
}
.totals>div{height:56px!important;min-height:56px!important;padding:0 20px!important;border-bottom:1px solid var(--line)!important;font-size:16px!important}
.totals .total-line{font-weight:700!important}
.discount-total-row{display:flex!important}
.discount-total-row.hidden{display:none!important}
.bottom-actions{
  flex:0 0 73px!important;
  height:73px!important;
  min-height:73px!important;
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:2px!important;
  padding:0 8px 8px!important;
  z-index:30!important;
  background:#fff!important;
}
.bottom-actions button{display:block!important;visibility:visible!important;opacity:1!important;font-size:17px!important}
body.virtual-pos-mode .cart-top{flex-basis:50px!important;height:50px!important;min-height:50px!important}
body.virtual-pos-mode .order-type-wrap{flex-basis:55px!important;height:55px!important;min-height:55px!important}
body.virtual-pos-mode .totals>div{height:56px!important;min-height:56px!important}
body.virtual-pos-mode .bottom-actions{flex-basis:73px!important;height:73px!important;min-height:73px!important}

/* Functional item discount */
.discount-row{grid-template-columns:72px minmax(0,1fr) 72px!important}
.discount-mode{color:#0b78f0!important;cursor:pointer!important;touch-action:manipulation!important}
.discount-mode.selected{background:#eaf2ff!important;box-shadow:inset 0 0 0 1px #8aa9e6!important;font-weight:700!important}
.discount-value-input{width:100%;height:62px;border:0;border-bottom:1px solid #ccc;text-align:center;font-size:23px;outline:0;background:#fff}

/* Payment screen: left fixed, total fixed, options only scroll */
.checkout{height:100%!important;min-height:0!important;overflow:hidden!important}
.checkout-left{height:100%!important;min-height:0!important;overflow:hidden!important}
.checkout-left .checkout-items{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
.checkout-right{
  display:grid!important;
  grid-template-rows:51px 145px minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.checkout-right .blue-header{grid-row:1!important;position:relative!important;z-index:5!important}
.payment-total-fixed{grid-row:2!important;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:1px solid #eceef2;background:#fff;position:relative;z-index:4}
.payment-total-fixed strong{font-size:38px;line-height:1.05;color:#303137}
.payment-total-fixed small{font-size:17px;color:#aaa;margin-top:8px}
.payment-scroll-area{grid-row:3!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:24px 0 45px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;background:#fff!important}
.payment-scroll-area .cash-label{margin-top:0!important}
.payment-scroll-area .quick-cash{margin-bottom:42px!important}
.payment-scroll-area .pay-method{margin-bottom:28px!important}
.pay-method{font-weight:500!important}

/* Total Discount popup */
.pos-modal{position:absolute;inset:0;z-index:1600;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:22px}
.pos-modal.hidden{display:none!important}
.total-discount-card{width:min(590px,72vw);max-height:calc(100% - 20px);background:#fff;border:1px solid #cfd2d9;box-shadow:0 8px 30px rgba(0,0,0,.18);overflow:hidden}
.total-discount-header{height:58px;display:grid;grid-template-columns:58px 1fr 70px;align-items:center;border-bottom:1px solid var(--line)}
.total-discount-header strong{font-size:19px}
.total-discount-header button{height:100%;border:0;background:#fff;color:#19376e;font-weight:700;cursor:pointer;touch-action:manipulation}
.total-discount-header #closeTotalDiscount{font-size:28px;color:#777;font-weight:400}
.discount-type-row{height:64px;display:flex;align-items:center;gap:28px;padding:0 22px;border-bottom:1px solid var(--line)}
.discount-type-row label{display:flex;align-items:center;gap:8px;font-size:15px}
.discount-type-row input{width:20px;height:20px;accent-color:var(--blue)}
.total-discount-display{height:62px;display:flex;align-items:center;justify-content:flex-end;padding:0 24px;border-bottom:1px solid var(--line);font-size:34px;color:#333}
.discount-keypad{display:grid;grid-template-columns:repeat(3,1fr)}
.discount-keypad button{height:101px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;font-size:25px;cursor:pointer;touch-action:manipulation}
.discount-keypad button:nth-child(3n){border-right:0}
.discount-keypad button[data-discount-key="0"]{grid-column:1/2}
.discount-keypad .discount-clear{grid-column:2/4;border-right:0}

/* Customer / service area tool popups */
.simple-tool-card{width:min(520px,66vw);background:#fff;border:1px solid #cfd2d9;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.simple-tool-header{height:58px;display:grid;grid-template-columns:58px 1fr 58px;align-items:center;border-bottom:1px solid var(--line);text-align:center}
.simple-tool-header button{height:100%;border:0;background:#fff;font-size:28px;color:#777;cursor:pointer}
.simple-tool-body{padding:24px}
.simple-choice{width:100%;min-height:54px;border:1px solid #aeb6c7;background:#fff;text-align:left;padding:0 16px}
.simple-choice.active{background:#f3f6fd;border-color:#8fa5d3}
.simple-tool-note{color:#777;font-size:13px;margin:16px 0 0}
