.pay-demo{border:1px solid var(--line);border-radius:20px;background:#f4f8fc;overflow:hidden;margin-top:8px}
.pay-demo [hidden]{display:none}
.demo-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid var(--line);background:#fff}
.demo-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}
.demo-label::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--blue)}
.demo-toggle{border:1px solid #b5cada;background:#fff;color:var(--navy);border-radius:7px;padding:8px 13px;font-size:13px;min-height:40px;cursor:pointer}
.demo-toggle:hover{background:var(--light)}
.demo-layout{display:grid;grid-template-columns:1.15fr 1fr;min-height:390px}
.demo-instructions{padding:34px 36px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.demo-selector{display:flex;gap:8px;margin-bottom:25px}
.demo-selector button{flex:1;padding:9px 6px;border:1px solid #bed0df;background:#fff;color:var(--muted);border-radius:8px;cursor:pointer;font-size:12px;min-height:44px;white-space:nowrap}
.demo-selector button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:white;font-weight:700}
.demo-selector b{margin-right:5px;color:var(--blue)}
.demo-selector button[aria-pressed=true] b{color:var(--yellow)}
.demo-step-kicker{font-size:12px;color:var(--blue);letter-spacing:1px;font-weight:700;margin-bottom:12px}
.demo-instructions h3{font-size:28px;margin-bottom:16px}
.demo-description{color:var(--muted);font-size:15px;margin:0;min-height:100px}
.demo-progress{height:3px;background:#dbe7f0;border-radius:3px;overflow:hidden;margin-top:20px}
.demo-progress span{display:block;height:100%;width:calc(var(--progress,0)*100%);background:var(--blue)}
.demo-scene{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:390px;background:radial-gradient(ellipse at 50% 48%,#d2e9fa 0,#e9f3fb 55%,#f4f8fc 78%)}
.demo-phone{width:185px;height:348px;border:6px solid #16344e;border-radius:25px;background:#f1f2f6;position:relative;overflow:hidden;box-shadow:0 13px 25px #16344e25;font-family:'Open Sans',Arial,sans-serif}
.demo-screen{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .3s ease}
.pay-demo[data-step="0"] .demo-screen-entry,.pay-demo[data-step="1"] .demo-screen-tap,.pay-demo[data-step="2"] .demo-screen-confirm{opacity:1;visibility:visible}
.demo-appbar{background:#3a8bca;color:white;text-align:center;padding:17px 7px 11px;font-size:15px;font-weight:400}
.demo-appbar::before{content:'';position:absolute;top:7px;left:72px;width:30px;height:3px;border-radius:4px;background:#ffffff8c}
.demo-app-content{padding:8px 11px}
.demo-tap-button{background:#008dff;color:#fff;border-radius:8px;padding:9px 4px;text-align:center;font-size:9px;font-weight:700;margin-bottom:10px}
.demo-field-label{display:block;font-size:12px;color:#547dbf;font-weight:700;margin-bottom:5px}
.demo-field{border:1px solid #6f91c7;background:#fff;border-radius:10px;padding:8px 9px;text-align:right;font-size:20px;font-weight:700;margin-bottom:6px;font-variant-numeric:tabular-nums}
.demo-field-muted{height:23px;border:1px solid #a4badd;border-radius:9px;background:white;margin-bottom:7px}
.demo-extra{font-size:10px;color:#547dbf;font-weight:600;margin:7px 0 6px}
.demo-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ccd3da;margin-top:8px;border-radius:4px;overflow:hidden}
.demo-keypad span{background:white;text-align:center;font-size:13px;line-height:1.2;padding:3px}
.demo-screen-tap{background:radial-gradient(circle at top,#17445a,#252a32 52%,#1c2128);color:#fff;text-align:center;padding:24px 10px}
.demo-contact{width:58px;height:58px;border:1px solid #8cd3f3;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;color:white;font-size:29px}
.demo-contact svg{width:31px;height:31px}
.demo-hold{font-size:12px;font-weight:600;margin-bottom:27px}
.demo-merchant{background:#171b22a8;border:1px solid #ffffff15;border-radius:16px;padding:15px 4px}
.demo-shop{margin:0 auto 10px;background:#f5c800;color:#263b48;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}
.demo-shop svg{width:22px;height:22px}
.demo-merchant small{font-size:10px;color:#e9eef5}
.demo-merchant strong{display:block;font-size:30px;margin-top:5px;font-family:Lato,Arial,sans-serif}
.demo-example{position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:9px;color:#bcc9d7;letter-spacing:.6px}
.demo-card{position:absolute;width:118px;height:73px;left:calc(50% + 34px);top:70px;background:linear-gradient(120deg,#f9de42,#e9b90b);border:1px solid #bd9405;border-radius:9px;box-shadow:0 10px 16px #102e4b30;opacity:0;transform:translate(90px,35px) rotate(-12deg);z-index:2;color:#193750;padding:12px;font-family:Lato,Arial,sans-serif}
.pay-demo[data-step="1"] .demo-card{opacity:1;transform:translate(calc(90px*(1 - var(--approach,1))),calc(35px*(1 - var(--approach,1)))) rotate(calc(-12deg*(1 - var(--approach,1))))}
.demo-card .demo-chip{width:19px;height:15px;border:1px solid #b48c26;background:#fff0a1;border-radius:3px;display:block;margin-bottom:7px}
.demo-card small{font-size:9px;letter-spacing:1px}
.demo-card svg{position:absolute;right:12px;top:14px;width:18px;height:18px}
.demo-confirm-totals{background:#233240;color:#fff;font-size:9px;text-align:center;padding:9px 3px}
.demo-confirm-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:14px 9px;opacity:.4}
.demo-confirm-options span{background:white;border-radius:8px;padding:18px 2px;text-align:center;font-size:8px;color:#29557a}
.demo-confirm-overlay{position:absolute;inset:51px 0 0;background:#1b263d30;display:flex;align-items:center;justify-content:center;padding:12px}
.demo-confirm-box{width:100%;border:1px solid #fff;border-radius:18px;background:#fffffff2;padding:16px 12px;box-shadow:0 8px 22px #102e4b15}
.demo-confirm-box strong{font-size:14px;display:block;margin-bottom:10px;color:#192d3e}
.demo-confirm-box p{font-size:11px;line-height:1.5;margin-bottom:14px;color:#364957}
.demo-confirm-box div{border-radius:20px;background:#e1e7ec;text-align:center;font-size:11px;padding:7px;color:#102e4b}
.demo-confirm-box small{display:block;text-align:center;color:#526678;font-size:9px;margin-top:8px}
.demo-announce{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){.demo-topline{padding:12px 15px}.demo-layout{grid-template-columns:1fr}.demo-instructions{padding:22px 20px 8px}.demo-selector{margin-bottom:20px}.demo-instructions h3{font-size:25px}.demo-description{min-height:100px;font-size:14px}.demo-scene{min-height:325px}.demo-phone{transform:scale(.84);margin:-28px 0}.demo-card{top:55px;left:calc(50% + 23px);width:106px;height:66px}.demo-progress{margin-top:12px}.demo-label{font-size:11px}.demo-toggle{font-size:12px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.demo-screen{transition:none}}
