/* Shared wallet wait / error screen (Joey, and the Market's signing steps): the same neutral grey
   card with gold accents as the Xaman signing screens (js/xaman-qr-modal.js). */
.joey-payment-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joey-processing-container {
  box-sizing: border-box;
  width: 360px;
  max-width: 92vw;
  max-height: 94vh;
  overflow: auto;
  padding: 28px 24px 22px;
  background: #1c1c1e;
  border: 1px solid #303033;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.joey-processing-container h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.joey-processing-container p {
  margin: 6px 0 0;
  color: #c9c9ce;
  font-size: 0.92rem;
  line-height: 1.55;
}

.joey-processing-container p.joey-payment-small-text {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: #8a8a91;
}

/* The site's loading animation (lh-loader.css): a gold ring around the logo. (Older markup still
   holds three small rings: not shown.) */
.joey-payment-spinner {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  background: url('../images/hexwheel_center_logo.png') center / 62% 62% no-repeat;
}

.joey-payment-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(230, 201, 122, 0.22);
  border-top-color: #e6c97a;
  animation: joey-payment-spin 1.15s linear infinite;
}

.joey-payment-spinner-ring {
  display: none;
}

/* In the Market's retry step the title comes first. */
.joey-processing-container h3 + .joey-payment-spinner {
  margin-top: 18px;
  margin-bottom: 12px;
}

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

@media (prefers-reduced-motion: reduce) {
  .joey-payment-spinner::before {
    animation: none;
  }
}

.joey-payment-dismiss-btn,
.joey-payment-open-wallet-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 20px 0 0;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.joey-payment-dismiss-btn {
  background: #27272a;
  color: #fff;
  border: 1px solid #3a3a3e;
}

.joey-payment-dismiss-btn:hover,
.joey-payment-dismiss-btn:focus-visible {
  border-color: #e8c047;
  background: #2c2c30;
  outline: none;
}

.joey-payment-open-wallet-btn {
  background: #e8c047;
  color: #111;
  border: 1px solid #e8c047;
  font-weight: 600;
}

.joey-payment-open-wallet-btn:hover {
  filter: brightness(1.08);
}

.joey-payment-open-wallet-btn + .joey-payment-dismiss-btn {
  margin-top: 10px;
}
