/* ZEPAY Premium Fintech UPI Cashier (v4) */
.gateway-page .cashier.zcc-enhanced {
  border-radius: 22px;
  border: 1px solid #dce6f2;
  box-shadow: 0 14px 34px rgba(18, 63, 112, 0.08);
  overflow: hidden;
  background: #ffffff;
}

.gateway-page .cashier.zcc-enhanced .cashier-heading {
  display: none !important;
}

/* Hide the old "I've paid · Check status" button completely */
.gateway-page button.zcc-hidden-check-btn {
  display: none !important;
}

.zcc-root {
  background: #ffffff;
  animation: zccFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes zccFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.zcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #eef3f9;
}

.zcc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zcc-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #128beb, #166fbd);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 14px rgba(18, 139, 235, 0.22);
}

.zcc-header-icon svg {
  width: 20px;
  height: 20px;
}

.zcc-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #13253d;
  letter-spacing: -0.2px;
}

.zcc-header-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
}

.zcc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  flex: none;
}

.zcc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: zccPulse 1.6s infinite;
}

@keyframes zccPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.zcc-body {
  padding: 20px 18px 20px;
}

.zcc-qr-stage {
  position: relative;
  padding: 20px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 45%, #eaf3ff 0%, #f8fbff 68%, #ffffff 100%);
  border: 1px solid #e3edf8;
  margin-bottom: 16px;
}

.zcc-qr-wrap {
  position: relative;
  width: 214px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbe7f4;
  box-shadow: 0 14px 32px rgba(18, 63, 112, 0.10);
  box-sizing: border-box;
}

.zcc-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #128beb;
  border-style: solid;
  pointer-events: none;
}

.zcc-corner.tl { top: 6px; left: 6px; border-width: 3px 0 0 3px; border-top-left-radius: 9px; }
.zcc-corner.tr { top: 6px; right: 6px; border-width: 3px 3px 0 0; border-top-right-radius: 9px; }
.zcc-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; border-bottom-left-radius: 9px; }
.zcc-corner.br { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; border-bottom-right-radius: 9px; }

.zcc-qr-box {
  width: 184px;
  height: 184px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.zcc-qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.zcc-scan-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #128beb, #38bdf8, #128beb, transparent);
  box-shadow: 0 0 14px rgba(18, 139, 235, 0.8);
  border-radius: 9999px;
  pointer-events: none;
  animation: zccScan 2.4s ease-in-out infinite;
}

@keyframes zccScan {
  0%, 100% { top: 16px; opacity: 0.25; }
  50% { top: 196px; opacity: 0.95; }
}

.zcc-qr-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #5b6f86;
}

.zcc-upi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f3f7fd;
  border: 1px solid #dbe7f5;
  border-radius: 15px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.zcc-upi-meta {
  min-width: 0;
}

.zcc-upi-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #527399;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 3px;
}

.zcc-upi-value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.zcc-copy-btn {
  flex: none;
  border: 0;
  border-radius: 11px;
  background: #128beb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 139, 235, 0.22);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.zcc-copy-btn:active {
  transform: scale(0.95);
}

.zcc-copy-btn.copied {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.zcc-utr-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zcc-utr-box:focus-within {
  border-color: #128beb;
  box-shadow: 0 0 0 4px rgba(18, 139, 235, 0.12);
}

.zcc-utr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.zcc-utr-top label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zcc-utr-count {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.zcc-utr-count.ready {
  background: #dcfce7;
  color: #15803d;
}

.zcc-utr-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0f172a;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}

.zcc-utr-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: 13px;
}

/* Primary Submit UTR button positioned at the bottom action slot */
.zcc-bottom-submit {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(110deg, #128beb, #286ad2);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(18, 139, 235, 0.28);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.zcc-bottom-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.zcc-bottom-submit:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.zcc-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  animation: zccFadeIn 0.25s ease both;
}

.zcc-msg.error {
  background: #fff2ed;
  border: 1px solid #f2d1c6;
  color: #9a5140;
}

.zcc-msg.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.zcc-loading {
  padding: 40px 16px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.zcc-loading-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 3px solid #dbeafe;
  border-top-color: #128beb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
/* QR Expiry Pill + Resume Banner + Exit Modal (v5) */
.zcc-qr-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.zcc-qr-timer.warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.zcc-qr-timer.expired {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.zcc-resume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 10px 13px;
  border-radius: 13px;
  background: linear-gradient(110deg, #eff6ff, #e0f2fe);
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 12px rgba(18, 139, 235, 0.10);
  animation: zccFadeIn 0.3s ease both;
}

.zcc-resume-info {
  min-width: 0;
}

.zcc-resume-info strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #13253d;
}

.zcc-resume-info span {
  display: block;
  font-size: 11px;
  color: #1d4ed8;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zcc-resume-btn {
  flex: none;
  border: 0;
  border-radius: 10px;
  background: #128beb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  cursor: pointer;
}

/* Custom 2-Option Exit Modal */
.zcc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  animation: zccFadeIn 0.2s ease both;
}

.zcc-modal {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.zcc-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.zcc-modal-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #13253d;
}

.zcc-modal-close {
  border: 0;
  background: #f1f5f9;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.zcc-modal p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.zcc-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zcc-btn-exit-continue {
  border: 0;
  border-radius: 13px;
  padding: 13px 12px;
  background: linear-gradient(110deg, #128beb, #286ad2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.zcc-btn-exit {
  border: 1px solid #fecaca;
  border-radius: 13px;
  padding: 13px 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Upgraded UTR Reference Card & Locked Buy Button (v7) */
.zcc-utr-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 13px 14px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.zcc-utr-box.ready {
  border-color: #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.zcc-utr-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zcc-utr-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
  color: #128beb;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.zcc-utr-box.ready .zcc-utr-icon {
  background: #dcfce7;
  color: #059669;
}

.zcc-utr-icon svg {
  width: 17px;
  height: 17px;
}

.zcc-utr-helper {
  margin: 7px 0 0;
  font-size: 11px;
  color: #64748b;
}

.zcc-utr-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #e2e8f0;
}

.zcc-utr-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #128beb, #38bdf8);
  transition: width 0.2s ease, background 0.2s ease;
}

.zcc-utr-box.ready .zcc-utr-progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

.market-page .buy-order.zcc-buy-locked {
  background: #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.zcc-payee-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #dbe7f5;
  box-shadow: 0 2px 8px rgba(18, 63, 112, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: #13253d;
}

.zcc-payee-pill svg {
  width: 14px;
  height: 14px;
  color: #10b981;
  flex: none;
}

.zcc-qr-stage-center {
  text-align: center;
}

/* Compact Black Notification Toast Strip (v11 - Dead Center) */
.zcc-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: calc(100% - 32px);
  max-width: 420px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  z-index: 10000;
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.zcc-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.zcc-toast-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.zcc-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  flex: none;
}

.zcc-toast-text {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zcc-toast-btn {
  flex: none;
  border: 0;
  border-radius: 9px;
  background: #128beb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
}

/* Mobile-Fit Fixed Frame + Inner-Scroll Only (v12) */
.gateway-page.zcc-fixed-layout {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.gateway-page.zcc-fixed-layout > header {
  flex-shrink: 0;
  padding: 10px 14px;
}

.gateway-page.zcc-fixed-layout > header h1 {
  font-size: 17px;
}

.gateway-page.zcc-fixed-layout > main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  overflow: hidden;
}

.gateway-page.zcc-fixed-layout .summary {
  flex-shrink: 0;
  padding: 12px 15px;
  border-radius: 16px;
  gap: 6px 12px;
}

.gateway-page.zcc-fixed-layout .summary strong {
  font-size: 20px;
}

.gateway-page.zcc-fixed-layout .summary b {
  font-size: 16px;
}

.gateway-page.zcc-fixed-layout .summary p {
  padding-top: 8px;
  font-size: 11px;
}

.gateway-page.zcc-fixed-layout .summary p strong {
  font-size: 14px;
}

.gateway-page.zcc-fixed-layout .payment-time {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px;
}

.gateway-page.zcc-fixed-layout .payment-time p {
  display: none;
}

.gateway-page.zcc-fixed-layout .cashier.zcc-enhanced {
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
}

.gateway-page.zcc-fixed-layout .zcc-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gateway-page.zcc-fixed-layout .zcc-header {
  flex-shrink: 0;
  padding: 11px 14px;
}

.gateway-page.zcc-fixed-layout .zcc-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.gateway-page.zcc-fixed-layout .zcc-header-title {
  font-size: 14px;
}

.gateway-page.zcc-fixed-layout .zcc-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 14px;
}

.gateway-page.zcc-fixed-layout .zcc-qr-stage {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 16px;
}

.gateway-page.zcc-fixed-layout .zcc-qr-wrap {
  width: 166px;
  padding: 10px;
  border-radius: 16px;
}

.gateway-page.zcc-fixed-layout .zcc-qr-box {
  width: 144px;
  height: 144px;
}

.gateway-page.zcc-fixed-layout .zcc-scan-line {
  animation-name: zccScanCompact;
}

@keyframes zccScanCompact {
  0%, 100% { top: 12px; opacity: 0.25; }
  50% { top: 150px; opacity: 0.95; }
}

.gateway-page.zcc-fixed-layout .zcc-payee-pill {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 11px;
}

.gateway-page.zcc-fixed-layout .zcc-qr-caption {
  margin-top: 6px;
  font-size: 10px;
}

.gateway-page.zcc-fixed-layout .zcc-upi-card {
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
}

.gateway-page.zcc-fixed-layout .zcc-utr-box {
  padding: 10px 12px 12px;
  border-radius: 13px;
}

.gateway-page.zcc-fixed-layout .verification,
.gateway-page.zcc-fixed-layout .footnote {
  display: none !important;
}

.gateway-page.zcc-fixed-layout .zcc-bottom-submit {
  flex-shrink: 0;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.gateway-page.zcc-fixed-layout .zcc-msg {
  flex-shrink: 0;
  margin-top: 0;
  padding: 9px 12px;
}
