.qps-payment-shell {
  --qps-ink: #17202a;
  --qps-muted: #667085;
  --qps-border: #d8dee8;
  --qps-surface: #ffffff;
  --qps-soft: #f5f7fa;
  --qps-primary: #176b87;
  --qps-primary-dark: #0f5269;
  --qps-success: #067647;
  --qps-error: #b42318;
  --qps-warning: #b54708;
  color: var(--qps-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 860px;
  margin: 24px auto;
}

.qps-payment-card {
  background: var(--qps-surface);
  border: 1px solid var(--qps-border);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.08);
  padding: 28px;
}

.qps-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.qps-payment-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  margin: 2px 0 0;
  letter-spacing: 0;
}

.qps-kicker {
  color: var(--qps-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.qps-currency-pill {
  align-items: center;
  background: #eef6f8;
  border: 1px solid #cfe7ee;
  border-radius: 999px;
  color: var(--qps-primary-dark);
  display: inline-flex;
  font-weight: 700;
  min-height: 34px;
  padding: 0 14px;
}

.qps-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.qps-step {
  align-items: center;
  background: var(--qps-soft);
  border: 1px solid var(--qps-border);
  border-radius: 6px;
  color: var(--qps-muted);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
}

.qps-step span {
  align-items: center;
  background: #e4e9f1;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
}

.qps-step.is-active {
  background: #eef6f8;
  border-color: #9ed2df;
  color: var(--qps-primary-dark);
}

.qps-step.is-active span,
.qps-step.is-complete span {
  background: var(--qps-primary);
  color: #ffffff;
}

.qps-field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qps-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.qps-field span {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.qps-field b {
  color: var(--qps-primary);
  font-size: 12px;
  margin-left: 4px;
}

.qps-optional {
  color: var(--qps-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.qps-field input {
  background: #ffffff;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--qps-ink);
  font: inherit;
  min-height: 46px;
  outline: none;
  padding: 11px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}

.qps-field input:focus {
  border-color: var(--qps-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

.qps-field small {
  color: var(--qps-muted);
  font-size: 12px;
  min-height: 16px;
}

.qps-field.has-error input {
  border-color: var(--qps-error);
}

.qps-field.has-error small {
  color: var(--qps-error);
}

.qps-amount-field {
  grid-column: 1 / -1;
}

.qps-hp {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.qps-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.qps-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  min-width: 148px;
  padding: 0 18px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.qps-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.qps-primary {
  background: var(--qps-primary);
  color: #ffffff;
}

.qps-primary:hover:not(:disabled) {
  background: var(--qps-primary-dark);
}

.qps-secondary {
  background: #ffffff;
  border-color: var(--qps-border);
  color: #344054;
}

.qps-secondary:hover:not(:disabled) {
  border-color: #98a2b3;
}

.qps-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--qps-border);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.qps-summary strong {
  font-size: 20px;
}

.qps-summary span {
  color: var(--qps-muted);
  font-size: 14px;
  text-align: right;
}

.qps-payment-element {
  border: 1px solid var(--qps-border);
  border-radius: 8px;
  padding: 16px;
}

.qps-card-actions {
  justify-content: space-between;
}

.qps-alert {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  margin-top: 18px;
  padding: 13px 14px;
}

.qps-alert-error {
  background: #fff2f0;
  border: 1px solid #fecdca;
  color: var(--qps-error);
}

.qps-alert-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--qps-success);
}

.qps-alert-info {
  background: #f0f9ff;
  border: 1px solid #b9e6fe;
  color: #026aa2;
}

@media (max-width: 680px) {
  .qps-payment-shell {
    margin: 16px auto;
  }

  .qps-payment-card {
    padding: 20px;
  }

  .qps-payment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .qps-currency-pill {
    align-self: flex-start;
  }

  .qps-steps,
  .qps-field-grid {
    grid-template-columns: 1fr;
  }

  .qps-actions,
  .qps-card-actions,
  .qps-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .qps-button {
    width: 100%;
  }

  .qps-summary span {
    text-align: left;
  }
}
.qps-payment-loading {
  padding: 28px 16px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: #f7fafb;
  color: #35515d;
  text-align: center;
}
