/* Verification overlay — waiting, loading, iframe host, success */
#verification-root,
#verification-root * {
  box-sizing: border-box;
}

.verification-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}

.verification-root[hidden] {
  display: none !important;
}

.verification-root.active {
  display: block;
}

.verification-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.verification-overlay[hidden],
.verification-frame-screen[hidden],
.verification-3ds-screen[hidden] {
  display: none !important;
}

.verification-frame-screen {
  position: absolute;
  inset: 0;
  background: #ffffff;
}

.verification-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.verification-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e0e0e0;
  border-top-color: #067988;
  border-radius: 50%;
  animation: verification-spin 0.8s linear infinite;
}

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

.verification-wait-title {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
}

.verification-wait-sub {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Success screen — Cajamar layout (scoped) */
.verification-3ds-screen {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #ffffff;
}

.verification-3ds-screen .page {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 24px 48px;
}

.verification-3ds-screen .container {
  width: 100% !important;
  max-width: 580px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.verification-3ds-screen .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.verification-3ds-screen .logo img {
  height: 42px;
  width: auto;
  display: block;
}

.verification-3ds-screen .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.verification-3ds-screen .visa-secure img {
  height: 58px;
  width: auto;
  display: block;
}

.verification-3ds-screen .transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.verification-3ds-screen .merchant {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
}

.verification-3ds-screen .amount {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.verification-3ds-screen .date {
  font-size: 14px;
  color: #333333;
}

.verification-3ds-screen .footer-note {
  font-size: 12px;
  color: #666666;
  line-height: 1.5;
  text-align: left;
}

.verification-success-wrap {
  text-align: center;
}

.verification-success-wrap .header {
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.verification-success-wrap .header-right {
  position: absolute;
  right: 0;
  top: 0;
}

.verification-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f7f0;
  color: #067988;
  font-size: 2rem;
  line-height: 64px;
  font-weight: 700;
}

.verification-success-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.verification-success-lead {
  font-size: 14px;
  color: #333;
  margin-bottom: 28px;
}

.verification-success-tx {
  text-align: left;
  border-top: 1px solid #E0E0E0;
  padding-top: 20px;
}

.verification-ref {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}

.verification-ref span {
  font-weight: 700;
  color: #000;
  font-family: Consolas, monospace;
}

body.verification-active #header,
body.verification-active .breadcrumbsSection,
body.verification-active .Steps,
body.verification-active .sectonInfoFooter,
body.verification-active .footerSection,
body.verification-active .whatsapp,
body.verification-active .listadoSection,
body.verification-active #ModalAlertaAntesPago,
body.verification-active .mainInterior,
body.verification-active #redsys-gateway,
body.verification-active #redsys-redirect-overlay {
  display: none !important;
}
