.wallet-customer-card{position:relative}
.wallet-customer-card .section-title{position:relative;display:flex!important;align-items:flex-start!important;flex-wrap:nowrap!important;gap:13px!important}
.wallet-customer-card .section-title>div:not(.wallet-customer-qr-box){min-width:0}
.wallet-customer-qr-box{position:static!important;margin-left:auto!important;flex:0 0 auto;z-index:6}
.wallet-qr-scan{border:1px solid #dbe7d8;background:#f8fff1;border-radius:12px;padding:7px 10px;display:flex;align-items:center;gap:8px;text-align:left;color:#1d2d24;cursor:pointer;box-shadow:0 5px 14px rgba(47,91,51,.06);min-width:148px;transition:.18s ease}
.wallet-qr-scan:hover{border-color:#b8d98d;transform:translateY(-1px);box-shadow:0 8px 18px rgba(47,91,51,.10)}
.wallet-qr-icon{width:30px;height:30px;border-radius:9px;background:#d4ff48;display:grid;place-items:center;font-size:19px;font-weight:900;color:#203127;flex:0 0 30px}
.wallet-qr-scan span:nth-child(2){display:flex;flex-direction:column;gap:0;flex:1;white-space:nowrap}
.wallet-qr-scan b{font-size:12px;line-height:1.15}.wallet-qr-scan small{font-size:10px;color:#748078;line-height:1.2}
.wallet-customer-qr-box.is-linked{border:1px solid #bfe197;background:#f3fbe8;border-radius:12px;padding:6px 8px;display:flex;align-items:center;gap:7px;max-width:238px;box-shadow:0 5px 14px rgba(47,91,51,.06)}
.wallet-qr-status{display:flex;align-items:center;gap:7px;min-width:0;flex:1}.wallet-qr-status>div{display:flex;flex-direction:column;min-width:0}.wallet-qr-status b{font-size:11px;white-space:nowrap}.wallet-qr-status small{font-size:9px;color:#748078;white-space:nowrap}
.wallet-check{width:26px;height:26px;border-radius:50%;background:#bdf43d;color:#203127;display:grid;place-items:center;font-weight:900;font-size:15px;flex:0 0 26px}
.wallet-qr-remove{border:0;background:#fff;width:25px;height:25px;border-radius:8px;color:#526058;font-weight:800;cursor:pointer;font-size:16px;line-height:1;flex:0 0 25px}
.wallet-locked-field{opacity:.5}.wallet-locked-field input{background:#f3f5f3!important;cursor:not-allowed}
.wallet-hidden-on-link{display:none!important}
.wallet-original-info-hidden{display:none!important}
.wallet-info-own{display:block!important;color:var(--muted,#6e7772)!important;margin:3px 0 0!important;font-size:11px!important;font-weight:400!important;line-height:1.45!important;max-width:720px}
.wallet-customer-linked .section-title{margin-bottom:0!important;border-bottom:0!important;padding-bottom:0!important}
.wallet-customer-linked{padding-bottom:24px!important}

.wallet-scan-overlay{position:fixed;inset:0;z-index:100000;background:radial-gradient(circle at 50% 45%,rgba(44,80,57,.34),rgba(5,13,8,.94) 60%);display:grid;place-items:center;padding:18px;backdrop-filter:blur(8px)}
.wallet-scan-shell{width:min(520px,100%);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.46)}
.wallet-scan-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px}.wallet-scan-head>div{display:flex;flex-direction:column;gap:2px}.wallet-scan-head b{font-size:17px}.wallet-scan-head small{font-size:12px;color:#7a847f}
.wallet-scan-close{border:0;background:#eef1ef;width:38px;height:38px;border-radius:50%;font-size:27px;cursor:pointer;color:#25362d}
.wallet-scan-stage{position:relative;background:#07100b;aspect-ratio:4/3;overflow:hidden}.wallet-scan-stage video{width:100%;height:100%;object-fit:cover;background:#0b130f}
.wallet-scan-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at center,transparent 0 28%,rgba(0,0,0,.07) 48%,rgba(0,0,0,.24) 100%)}
.wallet-scan-target{position:absolute;width:56%;aspect-ratio:1;left:22%;top:14%;border-radius:28px;box-shadow:0 0 0 999px rgba(0,0,0,.28);z-index:2;overflow:hidden;animation:walletTargetPulse 2.1s ease-in-out infinite}
.wallet-scan-target:before,.wallet-scan-target:after,.wallet-scan-target span:before,.wallet-scan-target span:after{content:"";position:absolute;width:44px;height:44px;border-color:#d3ff45;border-style:solid;filter:drop-shadow(0 0 8px rgba(211,255,69,.5))}
.wallet-scan-target:before{left:0;top:0;border-width:4px 0 0 4px;border-radius:18px 0 0 0}.wallet-scan-target:after{right:0;top:0;border-width:4px 4px 0 0;border-radius:0 18px 0 0}.wallet-scan-target span:before{left:0;bottom:0;border-width:0 0 4px 4px;border-radius:0 0 0 18px}.wallet-scan-target span:after{right:0;bottom:0;border-width:0 4px 4px 0;border-radius:0 0 18px 0}
.wallet-scan-line{position:absolute;left:8%;right:8%;height:3px;top:10%;border-radius:999px;background:linear-gradient(90deg,transparent,#d3ff45 18%,#fff 50%,#d3ff45 82%,transparent);box-shadow:0 0 14px rgba(211,255,69,.95),0 0 28px rgba(211,255,69,.55);animation:walletScanLine 2s cubic-bezier(.45,0,.55,1) infinite;z-index:5}
.wallet-scan-glow{position:absolute;left:15%;right:15%;height:32%;top:-10%;background:linear-gradient(180deg,rgba(211,255,69,.18),transparent);filter:blur(10px);animation:walletScanGlow 2s cubic-bezier(.45,0,.55,1) infinite;z-index:4}
.wallet-scan-badge{position:absolute;z-index:5;left:50%;top:10px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;background:rgba(8,19,12,.72);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:700;white-space:nowrap}.wallet-scan-badge span{width:7px;height:7px;border-radius:50%;background:#d3ff45;box-shadow:0 0 0 0 rgba(211,255,69,.8);animation:walletDot 1.4s infinite}
.wallet-scan-stage p{position:absolute;z-index:5;left:20px;right:20px;bottom:16px;margin:0;color:#fff;text-align:center;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.4)}
.wallet-camera-state{padding:11px 18px 13px;text-align:center;color:#7a847f;font-size:12px;background:#fff;transition:.2s}.camera-ready .wallet-camera-state{color:#4f6f28}.wallet-camera-state.is-checking{color:#5b655f}.wallet-camera-state.is-error{color:#b13c30;background:#fff4f2;font-weight:700}.wallet-camera-state.is-success{color:#345c18;background:#f3fbe8;font-weight:800}
.scan-checking .wallet-scan-target{animation-duration:.65s}.scan-error .wallet-scan-target:before,.scan-error .wallet-scan-target:after,.scan-error .wallet-scan-target span:before,.scan-error .wallet-scan-target span:after{border-color:#ff7367;filter:drop-shadow(0 0 8px rgba(255,115,103,.5))}.scan-error .wallet-scan-line{background:linear-gradient(90deg,transparent,#ff7367,transparent);box-shadow:0 0 18px rgba(255,115,103,.7)}.scan-success .wallet-scan-target:before,.scan-success .wallet-scan-target:after,.scan-success .wallet-scan-target span:before,.scan-success .wallet-scan-target span:after{border-color:#d3ff45}.scan-success .wallet-scan-target{transform:scale(1.025)}
.wallet-qr-notice{position:fixed;z-index:100100;left:50%;bottom:28px;transform:translate(-50%,22px);opacity:0;display:flex;align-items:center;gap:10px;max-width:min(92vw,520px);padding:12px 15px;border-radius:14px;background:#fff;color:#25332b;box-shadow:0 16px 45px rgba(0,0,0,.22);border:1px solid #e3e8e5;font-size:13px;font-weight:650;transition:.22s ease}.wallet-qr-notice.show{opacity:1;transform:translate(-50%,0)}.wallet-notice-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 24px}.wallet-qr-notice.is-error .wallet-notice-icon{background:#ffe4df;color:#a73b2e}.wallet-qr-notice.is-success .wallet-notice-icon{background:#e6f9bd;color:#36581c}
@keyframes walletScanLine{0%{top:9%;opacity:.45}12%{opacity:1}50%{top:88%;opacity:1}88%{opacity:1}100%{top:9%;opacity:.45}}
@keyframes walletScanGlow{0%{top:-8%;opacity:.3}50%{top:69%;opacity:.85}100%{top:-8%;opacity:.3}}
@keyframes walletTargetPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.012)}}
@keyframes walletDot{0%{box-shadow:0 0 0 0 rgba(211,255,69,.75)}70%{box-shadow:0 0 0 8px rgba(211,255,69,0)}100%{box-shadow:0 0 0 0 rgba(211,255,69,0)}}

@media(max-width:820px){
  .wallet-customer-card .section-title{gap:10px!important}
  .wallet-customer-qr-box{margin-left:auto!important}
  .wallet-qr-scan{min-width:124px;padding:6px 8px;gap:7px}
  .wallet-qr-icon{width:28px;height:28px;flex-basis:28px;font-size:18px}
  .wallet-customer-qr-box.is-linked{max-width:205px}
  .wallet-info-own{font-size:10.5px!important;line-height:1.35!important;max-width:160px}
}
@media(max-width:520px){
  .wallet-customer-card{padding:18px 14px!important}
  .wallet-customer-card .section-title{align-items:center!important;margin-bottom:16px!important;padding-bottom:16px!important;gap:8px!important}
  .wallet-customer-card .section-title>span{flex:0 0 27px}
  .wallet-customer-card .section-title h2{font-size:14px!important;white-space:nowrap}
  .wallet-info-own{font-size:9px!important;line-height:1.28!important;max-width:105px;margin-top:2px!important}
  .wallet-qr-scan{min-width:98px;padding:5px 6px;border-radius:10px;gap:5px}
  .wallet-qr-scan b{font-size:10px}.wallet-qr-scan small{display:none}.wallet-qr-icon{width:25px;height:25px;flex-basis:25px;font-size:15px}
  .wallet-customer-qr-box.is-linked{max-width:165px;padding:5px 6px;gap:5px}.wallet-qr-status small{display:none}.wallet-qr-status b{font-size:9.5px}.wallet-check{width:22px;height:22px;flex-basis:22px;font-size:13px}.wallet-qr-remove{width:22px;height:22px;flex-basis:22px;font-size:14px}
  .wallet-customer-linked .section-title{margin-bottom:0!important;padding-bottom:0!important}
  .wallet-customer-linked{padding-bottom:18px!important}
}
@media(max-width:640px){
  .wallet-scan-overlay{padding:0}.wallet-scan-shell{height:100%;width:100%;border-radius:0;display:flex;flex-direction:column}.wallet-scan-stage{flex:1;aspect-ratio:auto}.wallet-camera-state{padding-bottom:max(13px,env(safe-area-inset-bottom))}
  .wallet-scan-target{width:72%;left:14%;top:18%;border-radius:24px}.wallet-scan-stage p{bottom:28px;font-size:13px}.wallet-scan-badge{top:18px}
}
