.billing-widget {
  max-width: 440px;
  margin: 0 auto;
  font-family: inherit;
}

.bw-step { padding: 8px 0; }
.bw-step.hidden { display: none; }

.billing-widget h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.billing-widget p {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 16px;
  line-height: 1.5;
}

.bw-input-row {
  display: flex;
  align-items: center;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.bw-currency {
  padding: 12px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  background: var(--border, #e2e8f0);
}
.bw-amount-input {
  flex: 1;
  padding: 12px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text, #1e293b);
  outline: none;
}

.bw-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bw-preset {
  padding: 10px 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: var(--surface, #fff);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  transition: all 0.12s;
}
.bw-preset:hover {
  border-color: var(--blue, #1a56db);
  background: #eff6ff;
}

.bw-submit {
  width: 100%;
  margin-bottom: 8px;
}

.bw-error {
  color: var(--red, #dc2626);
  font-size: 0.8rem;
  margin-top: 8px;
}
.bw-error.hidden { display: none; }

.bw-account-card {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.bw-acct-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.bw-acct-row:last-child { border: none; }
.bw-label {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bw-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  text-align: right;
}
.bw-acct-num {
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-family: monospace;
}
.bw-amount-due {
  font-size: 1.1rem;
  color: var(--blue, #1a56db);
}
.bw-timer {
  font-size: 1rem;
  font-weight: 700;
  color: var(--warning, #ffa502);
  font-variant-numeric: tabular-nums;
}

.bw-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bw-polling {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  animation: pulse 1.5s ease-in-out infinite;
}
.bw-polling.hidden { display: none; }

.bw-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green, #16a34a);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.bw-expired-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 480px) {
  .bw-presets { grid-template-columns: repeat(2, 1fr); }
}
