#payment-attempts{display:none;margin:20px 0 16px}body.history-screen #payment-attempts:not([hidden]){display:block}#payment-attempts h3{font-size:17px;line-height:1.4;margin:18px 0 12px}#payment-attempts-list{display:grid;gap:8px}.payment-attempt-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border:1px solid #e8e2ef;border-radius:14px;background:#fff}.payment-attempt-row time{font-size:14px;color:#756c80;line-height:1.4}.payment-attempt-row strong{white-space:nowrap;color:#492370;font-size:16px}.payment-attempt-state{display:block;margin-top:6px;color:#89621a;font-size:13px;line-height:1.45}.payment-attempt-state[data-status=bank_failed],.payment-attempt-state[data-status=unpaid]{color:#8b6375}#payment-attempts-note{font-size:13px;color:#80758a;line-height:1.5;margin:12px 0}.payment-history-pager{display:flex;gap:10px;flex-wrap:wrap}.payment-history-pager button{min-height:44px;padding:10px 16px;background:#f4edfb;border:1px solid #e4d6f0;border-radius:12px;color:#7136b2;font:inherit;font-size:14px;cursor:pointer}.payment-history-pager button:disabled{opacity:.5;cursor:wait}.payment-history-pager button[hidden]{display:none}.wallet-history-link{font-size:14px;margin:0 0 16px}.wallet-history-link a{color:#7939bd;display:inline-flex;align-items:center;min-height:44px}.wallet-history-link a:focus-visible,.payment-history-pager button:focus-visible{outline:2px solid #873bca;outline-offset:3px}
#payment-attempts,#payment-attempts h3,#payment-attempts-note{text-align:left}#payment-attempts-note{max-width:none}

/* v1.1.0 (2026-10-22): причина отказа банка и пульсация строк в ожидании */
.payment-attempt-reason{display:block;margin-top:6px;padding:6px 10px;border-radius:9px;background:#fdf2f5;border:1px solid #f1d6df;color:#7a3b50;font-size:12.5px;line-height:1.45}
.payment-attempt-row.is-live{border-color:#dccbf3;animation:attempt-breathe 2.4s ease-in-out infinite}
.payment-attempt-row.is-live .payment-attempt-state::before{content:'';display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#8b5cf6;vertical-align:middle;animation:attempt-pulse 1.4s ease-in-out infinite}
@keyframes attempt-pulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
@keyframes attempt-breathe{0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,0)}50%{box-shadow:0 0 0 5px rgba(124,58,237,.09)}}
@media(prefers-reduced-motion:reduce){.payment-attempt-row.is-live,.payment-attempt-row.is-live .payment-attempt-state::before{animation:none}}

/* Task 913: confirmed balance credits */
.payment-attempt-row.is-credited{background:linear-gradient(120deg,#ecfdf5,#f0fdf4);border-color:#a7f3d0;box-shadow:0 2px 8px rgba(22,101,52,.05)}
.payment-attempt-row.is-credited strong{color:#166534}
.payment-attempt-row.is-credited time{color:#527565}
.payment-attempt-row.is-credited .payment-attempt-state{color:#166534;font-weight:600}
.payment-attempt-row.is-credited .payment-attempt-state::before{content:'✓';display:inline-block;margin-right:6px;font-weight:800;color:#15803d}
