@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.gw-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

body.gw-page img {
  max-width: 100%;
  height: auto;
}

body.gw-page button,
body.gw-page input {
  font: inherit;
}

body.gw-page a {
  color: inherit;
}

@keyframes gw-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gw-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes gw-scan {
  0% {
    top: 6%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    top: 92%;
    opacity: 0;
  }
}

@keyframes gw-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gw-trust {
  display: none !important;
}

/* Sharp / squared UI across all gateways */
body.gw-page :where(
  .payment-card,
  .top,
  .content,
  .card,
  .main-card,
  .header,
  .top-card,
  .topbar,
  .qr-box,
  .qr-frame,
  .qr,
  .copy-box input,
  .copy-box button,
  .timer,
  .time-box,
  .pay-app,
  .pay-btn,
  .app,
  .phonepe,
  .input-group input,
  .utr,
  .utr-input,
  .hash-input,
  .submit-btn,
  .submit,
  .return-btn,
  .secondary-btn,
  .retry-btn,
  .save-btn,
  .copy-btn,
  .btn,
  .action-btn,
  .download-btn,
  .info,
  .notice,
  .upi-box,
  .utr-card,
  .address-card,
  .hash-card,
  .tips,
  .timer-card,
  .warning,
  .wallet-box,
  .wait-card,
  .wait-box,
  .success-card,
  .error-card,
  .gw-step,
  .tag,
  .badge,
  .network,
  .status,
  .container,
  .wrapper,
  .success-top,
  .error-top
) {
  border-radius: 0 !important;
}

body.gw-page .qr-box img,
body.gw-page .qr-frame img,
body.gw-page .qr img {
  border-radius: 0 !important;
}

body.gw-page .loader,
body.gw-page .success-icon,
body.gw-page .error-icon,
body.gw-page .check,
body.gw-page .error-check,
body.gw-page .error-mark,
body.gw-page .clock {
  border-radius: 50% !important;
}

.gw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.gw-step {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 6px;
  border: 1px solid transparent;
}

/* Payment app tiles — logo only, fills box */
body.gw-page .pay-app span,
body.gw-page .pay-btn span,
body.gw-page .app-name,
body.gw-page .hand {
  display: none !important;
}

body.gw-page .apps-grid,
body.gw-page .pay-apps .apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.gw-page .pay-app,
body.gw-page .pay-btn,
body.gw-page .apps .app,
body.gw-page .apps-grid .app {
  aspect-ratio: 1;
  min-height: 0 !important;
  height: auto;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.gw-page .app-icon,
body.gw-page .pay-icon,
body.gw-page .apps .icon {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.gw-page .app-icon img,
body.gw-page .pay-icon img,
body.gw-page .apps .icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  padding: 4px;
}

/* ScanFast list apps → logo-only squares */
body.gw-page .gw-scanfast-paytm .app .arrow,
body.gw-page .gw-scanfast-paytm .app .app-left > div:not(.icon) {
  display: none !important;
}

body.gw-page .gw-scanfast-paytm .app {
  aspect-ratio: 1;
  min-height: 0 !important;
  padding: 12px !important;
  justify-content: center !important;
}

body.gw-page .gw-scanfast-paytm .app .app-left {
  width: 100%;
  height: 100%;
  justify-content: center;
}

body.gw-page .gw-scanfast-paytm .apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.gw-page .gw-scanfast-paytm .app .icon {
  width: 100% !important;
  height: 100% !important;
}

body.gw-page .gw-quickpay-paytm .app-left {
  width: 100%;
  height: 100%;
  justify-content: center;
}

.gw-step-num {
  display: block;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.65;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

@media (max-width: 430px) {
  body.gw-page {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
}
