/* Product panel. Existing page layout, fonts and navigation remain inherited. */
div.aml-steps.aml-steps {
  max-height: none;
  opacity: 1;
  pointer-events: auto;
}
.aml-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 32px 40px;
  border-radius: 20px;
  background: #fefefe;
  text-align: left;
}
.aml-step + .aml-step {
  border-left: 1px solid #e8e8ed;
  padding-left: 40px;
}
.aml-step { display: flex; flex-direction: column; min-width: 0; }
.aml-step__heading { display: flex; align-items: center; gap: 14px; }
.aml-step__number {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f3f7;
  color: #262626;
  font-size: 20px;
  font-weight: 700;
}
.aml-step__label {
  display: block;
  color: #838391;
  font-size: 14px;
  line-height: 20px;
}
.aml-step__title {
  margin: 0;
  color: #262626;
  font-family: Onest, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}
.aml-step__description {
  margin: 12px 0 20px;
  color: #696973;
  font-size: 16px;
  line-height: 24px;
}
.aml-step__button {
  display: block;
  width: 100%;
  margin-top: auto;
  min-height: 56px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #262626;
  color: #fefefe;
  font: 700 20px/32px "Wix Madefor Text", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
}
.aml-step__button:hover { background: #404040; }
.aml-step__button:focus-visible { outline: 2px solid #71b39b; outline-offset: 3px; }
.aml-step__button--pending,
.aml-step__button--pending:hover {
  background: #dddee1;
  color: #a6a6b3;
  cursor: default;
}
@media (max-width: 767px) {
  .aml-steps { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .aml-step + .aml-step { padding: 24px 0 0; border-left: 0; border-top: 1px solid #e8e8ed; }
  .aml-step__title { font-size: 22px; line-height: 28px; }
  .aml-step__description { margin: 10px 0 16px; }
  .aml-step__button { font-size: 18px; line-height: 28px; }
}

/* --- wallet button readiness states (spinner -> ready glow; shake on early click) --- */
.aml-step__button--boot { color: #c9c9d1; }
.aml-step__button--boot::after {
  content: ""; width: 18px; height: 18px; margin-left: 12px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  display: inline-block; vertical-align: -3px; animation: aml-spin .8s linear infinite;
}
@keyframes aml-spin { to { transform: rotate(1turn); } }
.aml-step__button--ready { animation: aml-ready .9s ease-out 1; }
@keyframes aml-ready {
  0%   { box-shadow: 0 0 0 0 rgba(113,179,155,.6); }
  100% { box-shadow: 0 0 0 16px rgba(113,179,155,0); }
}
.aml-step__shake { animation: aml-shake .3s ease 1; }
@keyframes aml-shake {
  20% { transform: translateX(-5px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .aml-step__button--boot::after { animation-duration: 1.6s; }
  .aml-step__button--ready, .aml-step__shake { animation: none; }
}

/* v3: boot state must be readable even without animations */
.aml-step__button--boot { background: #8e8e99 !important; color: #fff; }
.aml-step__button--ready { box-shadow: 0 0 0 0 rgba(113,179,155,0); }

/* v4: label for boot/near states drawn in CSS (no DOM text edits => no React mismatch) */
.aml-step__button--boot { font-size: 0; background: #8e8e99 !important; }
.aml-step__button--boot::before {
  content: "Preparing\2026"; display: inline-block;
  font: 700 20px/32px "Wix Madefor Text", sans-serif; vertical-align: middle;
}
.aml-step__button--boot.aml-step__button--near::before { content: "Almost ready\2026"; }
@media (max-width: 767px) {
  .aml-step__button--boot::before { font-size: 18px; line-height: 28px; }
}
