/* CSS, live.css, cabinet extras and the public payment widget. */
.live-stats{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.live-stats .stat-value{font-size:22px;overflow-wrap:anywhere}
.status.confirming{background:#eef2ff;color:#4b55a5}.status.underpaid,.status.late_payment,.status.review{background:#fff0e4;color:#9a4a19}.status.overpaid{background:#ecf8d9;color:#50751b}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.shop-icon{font-size:65px;color:#8bb739;margin:30px 0}.shop-wrap{max-width:1000px;margin:auto;padding:36px 24px}.shop-orders{margin-top:28px}.shop-wrap header{display:flex;justify-content:space-between;align-items:center}.shop-orders article{border-top:1px solid var(--line);padding:18px 0}.shop-orders .btn{margin:10px 8px 0 0}

body.gate-page{background:#e7e9ee;min-height:100vh}
.gate{min-height:100vh;display:grid;place-items:center;padding:24px}
.gate-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:36px 32px 28px;box-shadow:0 18px 40px #11131814}
.gate-card h1{font-size:28px;margin:22px 0 8px}
.gate-card .btn{width:100%;margin-top:8px}
.gate-card .fp-logo-img{height:42px}
.fp-logo-img{height:36px;width:auto;display:block}
td .pay-coin-logo{width:18px;height:18px;vertical-align:-4px;margin-right:6px}
.stat-label .pay-coin-logo{width:16px;height:16px;vertical-align:-3px;margin-right:6px}
.pay-head .fp-logo-img{height:48px}
.sidebar .fp-logo-img{height:34px}
.login-story .fp-logo-img{height:46px;background:#fff;padding:8px 12px;border-radius:14px}
.pay-powered .fp-logo-img{height:18px}
body.docs-page{background:var(--cloud)}
.docs{max-width:840px;margin:0 auto;padding:36px 22px 80px}
.docs h1{font-size:34px;margin-top:22px}
.docs h2{margin:34px 0 10px;font-size:22px}
.docs h3{margin:22px 0 8px;font-size:16px}
.docs p,.docs li{font-size:15px;line-height:1.65}
.docs ul,.docs ol{padding-left:1.2em}
.docs li+li{margin-top:6px}
.docs table{white-space:normal}
.docs td,.docs th{white-space:normal;vertical-align:top}
.docs a{text-decoration:underline}
.docs code{background:#eef1e4;padding:1px 5px;border-radius:4px}
.docs pre{white-space:pre-wrap}
.docs pre code{background:transparent;padding:0;color:inherit}
.docs .btn{margin-top:12px;text-decoration:none}

body.pay-page{min-height:100vh;margin:0;background:#e7e9ee;display:flex;align-items:center;justify-content:center}
body.pay-page #app{width:100%}
.pay-stage{width:min(680px,calc(100% - 28px));margin:28px auto;animation:pay-rise .4s cubic-bezier(.2,.8,.2,1)}
@keyframes pay-rise{from{transform:translateY(12px)}to{transform:none}}
.pay-frame{display:flex;align-items:stretch;filter:drop-shadow(0 22px 40px #11131814)}
.pay-rail{width:36px;flex:none;display:flex;align-items:center;justify-content:center;color:#9aa1ab;font-size:10px;font-weight:700;letter-spacing:1.6px;writing-mode:vertical-rl;transform:rotate(180deg)}
.pay-card{flex:1;background:#f6f7fb;border-radius:22px;padding:26px 28px 22px;position:relative;overflow:hidden}
.pay-card.is-success{animation:pay-glow 1.1s ease}
@keyframes pay-glow{0%{box-shadow:inset 0 0 0 0 #C6F135}40%{box-shadow:inset 0 0 0 2px #C6F135}100%{box-shadow:inset 0 0 0 0 #C6F13500}}
.pay-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pay-merchant{margin:14px 0 0;font-size:13px;color:#8b919c}
.pay-order{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:11px;font-weight:700;letter-spacing:1.1px;color:#9aa1ab}
.pay-order b{letter-spacing:.4px;color:#1c1f24;font-weight:700}
.pay-title{margin:18px 0 18px;font-size:28px;font-weight:600;letter-spacing:-.8px}
.pay-grid{display:grid;grid-template-columns:168px 1fr;gap:22px;align-items:center}
.pay-qr{width:168px;height:168px;display:block;border-radius:12px;background:#fff;padding:8px}
.pay-fields{display:grid;gap:14px}
.pay-label{font-size:10px;font-weight:700;letter-spacing:1.15px;color:#8b919c;margin-bottom:7px}
.pay-label em{font-style:normal;color:#1c1f24}
.pay-box{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 8px 8px 12px;background:#fff;border:1px solid #e6e8ee;border-radius:12px}
.pay-box .value{flex:1;font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pay-coin-logo{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:none;display:block;background:#fff}
.pay-copy{width:34px;height:34px;border-radius:9px;border:0;background:transparent;color:#8b919c;display:grid;place-items:center;flex:none}
.pay-copy:hover{background:#f3f4f7;color:#111318}
.pay-copy svg{width:16px;height:16px}
.pay-note{margin:16px 0 0;text-align:center;font-size:12px;line-height:1.5;color:#8b919c}
.pay-status{margin-top:16px;min-height:52px;padding:10px 16px;border-radius:14px;background:#fff;border:1px solid #e6e8ee;display:flex;align-items:center;justify-content:space-between;gap:12px}
.pay-status-left{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#3a3f48}
.pay-timer{display:inline-flex;align-items:center;font-variant-numeric:tabular-nums;font-weight:700;color:#3c9a22;font-size:16px;min-width:7.2em;justify-content:flex-end}
.pay-timer b{display:inline-block;min-width:.62em;text-align:center}
.pay-timer .sep{opacity:.45;padding:0 1px}
.pay-timer.tick b:nth-last-of-type(-n+2){animation:pay-digit .32s ease}
@keyframes pay-digit{from{transform:translateY(-6px);opacity:.15}to{transform:none;opacity:1}}
.pay-spin{width:18px;height:18px;border-radius:50%;border:2px solid #d5dbe3;border-top-color:#5b6472;animation:pay-spin .8s linear infinite;flex:none}
@keyframes pay-spin{to{transform:rotate(360deg)}}
.pay-status.is-success{background:#f3fbe4;border-color:#d7eead}
.pay-status.is-warn{background:#fff6ee;border-color:#f0d7c4}
.pay-check{width:22px;height:22px;border-radius:50%;background:#C6F135;display:grid;place-items:center;flex:none;animation:pay-pop .4s cubic-bezier(.2,1.4,.3,1)}
.pay-check svg{width:13px;height:13px;stroke:#111318;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20;animation:pay-draw .45s .12s ease forwards}
@keyframes pay-pop{from{transform:scale(.2);opacity:0}to{transform:none;opacity:1}}
@keyframes pay-draw{to{stroke-dashoffset:0}}
.pay-burst{position:absolute;left:50%;top:72%;width:0;height:0;pointer-events:none}
.pay-burst i{position:absolute;width:8px;height:8px;border-radius:50%;background:#C6F135;animation:pay-burst .9s ease-out forwards}
.pay-burst i:nth-child(2){background:#111318;animation-delay:.04s}
.pay-burst i:nth-child(3){animation-delay:.08s}
.pay-burst i:nth-child(4){background:#8fd14a;animation-delay:.02s}
.pay-burst i:nth-child(5){animation-delay:.1s}
.pay-burst i:nth-child(6){background:#111318;animation-delay:.06s}
.pay-burst i:nth-child(7){animation-delay:.12s}
.pay-burst i:nth-child(8){background:#8fd14a}
@keyframes pay-burst{to{transform:translate(var(--x),var(--y)) scale(.2);opacity:0}}
.pay-back{display:block;text-align:center;margin-top:14px;font-size:12px;font-weight:600;color:#3c9a22}
.pay-powered{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px;color:#9aa1ab;font-size:12px}
.pay-powered .fp-mark{width:18px;height:18px}
.pay-powered .fp-word{font-size:14px}
.pay-error{text-align:center;padding:12px 0 4px;color:#3a3f48}
@media(max-width:700px){
  .shop-grid{grid-template-columns:1fr}.live-stats{grid-template-columns:1fr 1fr}
  .pay-rail{display:none}
  .pay-card{padding:22px 16px 18px}
  .pay-grid{grid-template-columns:1fr}
  .pay-qr{width:min(200px,70vw);height:auto;margin:0 auto}
  .pay-title{font-size:24px}
  .fp-word{font-size:22px}
}
