/* SUNDEX verification hardening p52 — fixes nested React state geometry. */
body.sundex-transaction-system.stx-verification-flow .stx-vf-stage {
  overflow-x: hidden !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-stage > .stx-vf-motion-host {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-motion-host > .stx-vf-eyebrow {
  display: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-motion-host > .stx-vf-content-root,
body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  margin: 0 auto 0 0 !important;
  padding: 0 0 28px !important;
  overflow: visible !important;
  text-align: left !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > * {
  position: static !important;
  min-width: 0 !important;
  max-width: 100%;
  flex: 0 0 auto !important;
  transform: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-alert-icon {
  display: grid !important;
  width: 64px !important;
  max-width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  min-height: 64px !important;
  flex-basis: 64px !important;
  place-items: center !important;
  padding: 0 !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-title {
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-copy {
  width: auto !important;
  max-width: 62ch !important;
  white-space: normal !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-summary,
body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions {
  width: min(610px, 100%) !important;
  max-width: 610px !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 122px !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions > button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions > button:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid var(--process-line) !important;
  color: var(--process-text) !important;
  background: var(--process-field) !important;
  box-shadow: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions > button:last-child::after {
  display: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-coins-layout {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-coins-layout > .stx-vf-coin-list {
  width: 100% !important;
  max-height: min(31dvh, 280px) !important;
  min-height: 160px !important;
  margin: 0 !important;
  overflow-y: auto !important;
}

html body.sundex-transaction-system.stx-verification-flow .stx-vf-motion-host .stx-vf-coins-layout > button.stx-vf-submit[disabled] {
  border: 1px solid var(--process-line-soft) !important;
  color: var(--process-dim) !important;
  background-color: rgba(177, 201, 233, 0.07) !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-coins-layout > .stx-vf-submit::after {
  display: none !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-coins-screen,
body.sundex-transaction-system.stx-verification-flow .stx-vf-deposit-screen {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1000px) {
  body.sundex-transaction-system.stx-verification-flow .stx-vf-motion-host > .stx-vf-content-root,
  body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root {
    width: min(720px, 100%) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 640px) {
  body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sundex-transaction-system.stx-verification-flow .stx-vf-content-root > .stx-vf-alert-icon {
    width: 54px !important;
    max-width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    max-height: 54px !important;
    min-height: 54px !important;
    flex-basis: 54px !important;
  }
}
