/* ZELEN Pay PB3B — embedded camera only in pre-Binding mobile Pay. */
@media (max-width:640px){
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage .pg-instore-stage-shell{
    display:flex!important;flex-direction:column!important;align-items:center!important;
  }
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage .pg-instore-scan-button{
    display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;
    min-height:40px;padding:8px 18px;margin:12px auto 0;
    border-radius:16px;border:1px solid rgba(var(--zp-merchant-brand-rgb,0,229,194),.46);
    background:linear-gradient(180deg,rgba(var(--zp-merchant-brand-rgb,0,229,194),.16),rgba(var(--zp-merchant-brand-rgb,0,229,194),.065));
    color:#fff;font-family:inherit;font-weight:650;font-size:13px;line-height:1.2;cursor:pointer;
    box-shadow:0 0 19px rgba(var(--zp-merchant-brand-rgb,0,229,194),.10);
    -webkit-tap-highlight-color:transparent;
  }
  #crypto-gateway-demo-root.pg-instore-prebind .pg-instore-scan-button svg{height:20px;width:20px;stroke:rgb(var(--zp-merchant-brand-rgb,0,229,194));}
  #crypto-gateway-demo-root.pg-instore-prebind .pg-instore-camera{display:none;width:100%;align-items:center;flex-direction:column;gap:10px;flex:0 0 auto;}
  #crypto-gateway-demo-root.pg-instore-prebind.pg-instore-scanning #pg-instore-stage .pg-instore-stage-link,
  #crypto-gateway-demo-root.pg-instore-prebind.pg-instore-scanning #pg-instore-stage .pg-instore-qr-instruction,
  #crypto-gateway-demo-root.pg-instore-prebind.pg-instore-scanning #pg-instore-stage .pg-instore-qr-status,
  #crypto-gateway-demo-root.pg-instore-prebind.pg-instore-scanning #pg-instore-stage .pg-instore-qr-refresh{display:none!important;}
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage.pg-instore-scanning .pg-instore-stage-link,
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage.pg-instore-scanning .pg-instore-qr-instruction,
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage.pg-instore-scanning .pg-instore-qr-status,
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage.pg-instore-scanning .pg-instore-qr-refresh{display:none!important;}
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage.pg-instore-scanning .pg-instore-camera{display:flex!important;}
  #pg-instore-stage .pg-instore-camera-frame{
    width:min(260px,calc(100vw - 80px));aspect-ratio:1;position:relative;overflow:hidden;
    border-radius:18px;background:#090d12;box-sizing:border-box;
    border:1px solid rgba(var(--zp-merchant-brand-rgb,0,229,194),.56);
    box-shadow:0 0 26px rgba(var(--zp-merchant-brand-rgb,0,229,194),.13);
  }
  #pg-instore-stage #pg-instore-camera-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#090d12;}
  #pg-instore-stage .pg-instore-camera-corners{pointer-events:none;position:absolute;inset:14px;}
  #pg-instore-stage .pg-instore-camera-corners i{position:absolute;width:24px;height:24px;border-color:rgb(var(--zp-merchant-brand-rgb,0,229,194));border-style:solid;}
  #pg-instore-stage .pg-instore-camera-corners i:nth-child(1){top:0;left:0;border-width:3px 0 0 3px;border-radius:9px 0 0 0;}
  #pg-instore-stage .pg-instore-camera-corners i:nth-child(2){top:0;right:0;border-width:3px 3px 0 0;border-radius:0 9px 0 0;}
  #pg-instore-stage .pg-instore-camera-corners i:nth-child(3){bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 9px;}
  #pg-instore-stage .pg-instore-camera-corners i:nth-child(4){bottom:0;right:0;border-width:0 3px 3px 0;border-radius:0 0 9px 0;}
  #pg-instore-camera-status{max-width:310px;min-height:30px;text-align:center;color:rgba(255,255,255,.76);font-size:12px;line-height:1.35;margin:2px 0 0;}
}
@media (max-width:640px) and (max-height:600px){
  #crypto-gateway-demo-root.pg-instore-prebind #pg-instore-stage .pg-instore-scan-button{min-height:34px;padding:6px 14px;margin-top:6px;font-size:12px;}
  #pg-instore-stage .pg-instore-camera-frame{width:min(190px,calc(100vw - 80px));}
}
@media (prefers-reduced-motion:reduce){#pg-instore-stage .pg-instore-camera-corners{animation:none!important;}}

/* PB3B: Inactive-browser and camera permission messages stay below the CTA. */
@media (max-width:640px){
  #crypto-gateway-demo-root.pg-instore-prebind .pg-instore-scan-feedback{
    max-width:320px;margin:7px auto 0;text-align:center;color:rgba(255,255,255,.75);
    font:500 12px/1.4 system-ui,-apple-system,sans-serif;
  }
  #crypto-gateway-demo-root.pg-instore-prebind .pg-instore-scan-feedback[hidden]{display:none!important;}
  #pg-instore-scan-button:disabled{opacity:.75;cursor:wait;}
}

/* The existing authenticated mobile #/b/ join authority is limited to <=520px. */
@media (min-width:521px){#pg-instore-scan-button,#pg-instore-camera,#pg-instore-scan-feedback{display:none!important;}}
