/* Pending-request animation for the bank statement analyzer (#loading). */
#loading.bs-pa-enhanced > .spinner { display: none; }
#loading.bs-pa-enhanced { padding: 1.5rem 0; }
#loading.bs-pa-enhanced > #bsLoadingLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-pa-card { max-width: 440px; margin: 0 auto; padding: 22px 22px 20px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 20px; box-shadow: 0 12px 32px -12px rgba(76,29,149,.18); text-align: left; }
.bs-pa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bs-pa-icon { position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(135deg,#7c3aed,#4f46e5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bs-pa-icon svg { width: 24px; height: 24px; color: #fff; position: relative; z-index: 1; }
.bs-pa-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg,transparent,rgba(255,255,255,.35),transparent); animation: bsPaScan 2.2s ease-in-out infinite; }
.bs-pa-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7c3aed; }
.bs-pa-title { font-size: 16px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.bs-pa-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bs-pa-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1.5px solid #eef2f7; }
.bs-pa-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4b5fd; flex-shrink: 0; animation: bsPaPulse 1.8s ease-in-out infinite; }
.bs-pa-row:nth-child(2) .bs-pa-dot { animation-delay: .3s; }
.bs-pa-row:nth-child(3) .bs-pa-dot { animation-delay: .6s; }
.bs-pa-line { flex: 1; height: 8px; border-radius: 6px; background: linear-gradient(90deg,#eef2f7 0%,#e0e7ff 40%,#eef2f7 80%); background-size: 200% 100%; animation: bsPaShimmer 1.8s linear infinite; }
.bs-pa-line.short { flex: 0 0 22%; }
.bs-pa-msgwrap { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #7c3aed; background: #faf5ff; }
.bs-pa-msgwrap .bank-anim-spinner, .bs-pa-spin { width: 18px; height: 18px; border: 2.5px solid #e9d5ff; border-top-color: #7c3aed; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.bs-pa-msg { font-size: 13px; font-weight: 600; color: #4c1d95; transition: opacity .3s ease, transform .3s ease; }
.bs-pa-msg.out { opacity: 0; transform: translateY(4px); }
.bs-pa-note { margin-top: 12px; font-size: 11.5px; color: #64748b; text-align: center; }
@keyframes bsPaScan { 0% { transform: translateY(-120%); } 100% { transform: translateY(260%); } }
@keyframes bsPaPulse { 0%,100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes bsPaShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 520px) { .bs-pa-card { padding: 18px 16px; border-radius: 16px; } .bs-pa-title { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .bs-pa-icon::after, .bs-pa-dot, .bs-pa-line, .bs-pa-spin { animation: none; }
  .bs-pa-msg { transition: none; }
}
