/* Payment page: the form, the order summary, the states of a payment, the result.
   One layout for every state: a soft page, two white cards side by side in the middle of it — the step on one side, the order
   on the other; inside a card 32 px, between its parts 24 px, between a label and its field 8 px; one pill button as wide as the card. */
body.narrow{background:var(--soft)}
/* the header, the note, the two cards and the footer share one width, so their edges stand on one line */
body.narrow .wrap{max-width:1016px}
.demo-note{background:transparent}
/* the short header keeps the main header's order: the name, then at the far side the other language and one pill — here the way back to the tariffs */
.bar-min .lang{order:1;margin-inline-start:auto}
.back{order:2;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 12px;border-radius:999px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.32)}
.bar .back{color:#fff}
.bar .back:hover{background:rgba(255,255,255,.1)}
.back svg{width:16px;height:16px}
[dir="rtl"] .back{padding:0 12px 0 16px}
[dir="rtl"] .back svg{transform:scaleX(-1)}

.co{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;padding-block:32px 64px;align-items:start}
.co.solo{grid-template-columns:minmax(0,640px);justify-content:center}
.step{display:grid;gap:16px}
.card,.step.state,.step.done{background:var(--bg);border-radius:28px;padding:32px;box-shadow:inset 0 0 0 1.5px var(--line);display:grid;gap:24px}
.step h1{font-weight:600;font-size:28px;line-height:1.15;letter-spacing:-0.02em}
.step h1:focus{outline:none}

.co .form{gap:8px}
.co .form label{margin-top:16px;font-size:14px;font-weight:600}
.co .form label:first-child{margin-top:0}
.co .inp{height:56px;font-size:17px}
.co .hint{font-size:14px}
.co .err{min-height:0;font-size:14px}
.co .err:empty{display:none}
.co .form .btn,.card>.btn,.state>.btn{min-height:56px;border-radius:999px;font-size:17px}
.co .form .btn,.card>.btn{width:100%;justify-self:stretch;margin-top:16px}
.card>.btn{margin-top:0}
.cond{font-size:14px;line-height:1.5;color:var(--muted);padding-inline:8px}
.cond a{white-space:nowrap}
.co .pick{font-size:14px;background:transparent}

.num{background:var(--soft);border-radius:var(--r-lg);padding:16px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;align-items:end}
.num span{grid-column:1/-1;font-size:14px;color:var(--muted)}
.num b{font-family:var(--display);font-weight:500;font-size:28px;letter-spacing:-0.02em;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate;text-align:start}
[dir="rtl"] .num b{text-align:end}
.rows{margin:0;display:grid;gap:0}
.rows div{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--line)}
.rows div:first-child{padding-top:0}
.rows dt{color:var(--muted)}
.rows dd{margin:0;font-weight:600;text-align:end}
.rows .sum{border-bottom:0;padding-bottom:0}
.rows .sum dd{font-family:var(--display);font-weight:600;font-size:24px;letter-spacing:-0.02em}

.step.state{justify-items:start;gap:16px}
.spin{width:32px;height:32px;border-radius:50%;border:3.5px solid var(--line);border-top-color:var(--blue);animation:sp .9s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.state .big{font-family:var(--display);font-size:24px;line-height:1.25;letter-spacing:-0.02em}

.step.done{justify-items:center;text-align:center;gap:16px}
.ok-ico{width:64px;height:64px;border-radius:50%;background:#DCFCE7;color:var(--green);display:grid;place-items:center}
.ok-ico svg{width:32px;height:32px}
.done .sub{color:var(--muted);font-size:18px;margin-top:-8px}
.done .rows{width:100%;text-align:start;margin-top:8px;padding-top:16px;border-top:1px solid var(--line)}
.next{width:100%;background:var(--soft);border-radius:var(--r-lg);padding:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:center;text-align:start;margin-top:8px}
.next h2{font-size:20px;line-height:1.2}
.next p{color:var(--muted);margin-top:8px}
.next .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.next .acts .btn{padding:0 24px;min-height:48px;border-radius:999px;font-size:16px}
.store-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 24px;border-radius:999px;background:var(--night);color:#fff;font-weight:600;font-size:16px;text-decoration:none;white-space:nowrap}
.store-btn svg{width:24px;height:24px;flex:none}
.qr{width:120px;height:120px;border-radius:12px;background:#fff;padding:8px;display:block}
.done .tail{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 32px}
.done .rcpt{font-size:14px;color:var(--muted)}

.side{background:var(--bg);border-radius:28px;padding:32px;display:grid;gap:8px;position:sticky;top:calc(var(--bar) + 32px);box-shadow:inset 0 0 0 1.5px var(--line)}
.side .cap{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.side .name{font-family:var(--display);font-weight:600;font-size:24px;letter-spacing:-0.02em;line-height:1.2}
.side .price{font-family:var(--display);font-weight:600;font-size:32px;letter-spacing:-0.03em;line-height:1.15;margin-top:8px;white-space:nowrap}
.side .price small{font-family:var(--text);font-weight:400;font-size:14px;color:var(--muted);letter-spacing:0}
.side .terms{font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px;padding-top:16px;border-top:1px solid var(--line)}
.side .chg{margin-top:0;justify-self:start}

@media (max-width:980px){
  .co{grid-template-columns:minmax(0,560px);justify-content:center;gap:16px;padding-block:16px 48px}
  .side{order:-1;position:static;padding:24px}
  .side .name{font-size:20px}
  .side .price{font-size:24px;margin-top:0}
  .next{grid-template-columns:minmax(0,1fr)}
  .qr{display:none}
  .next .acts .store-btn,.next .acts .btn{flex:1 1 100%}
}
@media (max-width:760px){
  .card,.step.state,.step.done{padding:24px 16px;border-radius:20px}
  .side{border-radius:20px;padding:16px}
  .state>.btn{width:100%}
  .back{white-space:nowrap;min-width:0}
}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}

/* what the buyer must know before paying: the phone it works on */
.need{display:flex;gap:12px;align-items:flex-start;background:#FEF3C7;color:#78350F;border-radius:var(--r-md);padding:16px;font-weight:600;font-size:15px;line-height:1.4}
.need svg{width:20px;height:20px;flex:none;margin-top:1px}

/* by the minute: the most minutes a day (owner, 28.11.2026) */
.maxpick{border:0;margin:0;padding:0;min-width:0;display:grid;gap:8px}
.maxpick legend{padding:0;margin-bottom:8px;font-weight:600}
.maxpick label{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 16px;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer}
.maxpick label:has(input:checked){box-shadow:inset 0 0 0 2px var(--blue);background:var(--blue-soft)}
.maxpick input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--blue)}
.maxpick .hint{margin-top:4px}
