/* TimePay UPI — Corporate slate + gold */
body.gw-timepay-upi {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  min-height: 100dvh;
}

.gw-timepay-upi .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0)) 16px 10px;
  max-width: 430px;
  margin: 0 auto;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.gw-timepay-upi .timer-top {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fbbf24;
  font-size: 1rem;
}

.gw-timepay-upi .title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gw-timepay-upi .icon {
  font-size: 1.25rem;
}

.gw-timepay-upi .wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 12px 24px;
}

.gw-timepay-upi .card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  animation: gw-fade-up 0.4s ease;
}

.gw-timepay-upi .gw-step {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.gw-timepay-upi .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.gw-timepay-upi .sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.9rem;
}

.gw-timepay-upi .qr {
  margin-top: 16px;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.gw-timepay-upi .qr img {
  width: min(220px, 64vw);
  border-radius: 12px;
}

.gw-timepay-upi .download-btn {
  width: 100%;
  margin-top: 12px;
  height: 46px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.gw-timepay-upi .phonepe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

.gw-timepay-upi .phonepe .logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.gw-timepay-upi .phonepe .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-timepay-upi .section {
  margin-top: 18px;
}

.gw-timepay-upi .section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 10px;
}

.gw-timepay-upi .copy-box {
  display: flex;
  gap: 8px;
}

.gw-timepay-upi .copy-box input {
  flex: 1;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.gw-timepay-upi .copy-btn {
  width: 72px;
  border: none;
  border-radius: 12px;
  background: #1e293b;
  color: #fbbf24;
  font-weight: 800;
  cursor: pointer;
}

.gw-timepay-upi .tip {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.gw-timepay-upi .warning {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

.gw-timepay-upi .utr {
  width: 100%;
  height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.gw-timepay-upi .submit {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.25);
}

.gw-timepay-upi .notes {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
}

.gw-timepay-upi .wait-screen,
.gw-timepay-upi .success-screen,
.gw-timepay-upi .error-screen {
  display: none;
}

.gw-timepay-upi .wait-card {
  margin-top: 40px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.gw-timepay-upi .loader {
  width: 64px;
  height: 64px;
  border: 4px solid #e2e8f0;
  border-top-color: #d97706;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: gw-spin 0.9s linear infinite;
}

.gw-timepay-upi .wait-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.gw-timepay-upi .success-card {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.gw-timepay-upi .success-top {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  text-align: center;
  padding: 32px 20px;
}

.gw-timepay-upi .error-top {
  background: #ef4444;
  color: #fff;
  text-align: center;
  padding: 32px 20px;
}

.gw-timepay-upi .check,
.gw-timepay-upi .error-check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 2rem;
  font-weight: 800;
}

.gw-timepay-upi .check {
  color: #059669;
}

.gw-timepay-upi .error-check {
  color: #ef4444;
}

.gw-timepay-upi .success-body {
  padding: 20px;
  text-align: center;
}

.gw-timepay-upi .return-btn,
.gw-timepay-upi .retry-btn {
  display: block;
  width: 100%;
  background: #1e293b;
  color: #fbbf24;
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
}

.gw-timepay-upi .retry-btn {
  background: #475569;
  color: #fff;
}

.gw-timepay-upi .redirect {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.88rem;
}
