/* Shared Joey Wallet payment wait/error overlay (scratch, dice, plinko) */
.joey-payment-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joey-processing-container {
  background: var(--card-bg, #1a1d29);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  width: 380px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.joey-processing-container h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.joey-processing-container p {
  margin: 0.25rem 0;
  color: #aaa;
  font-size: 0.95rem;
}

.joey-payment-small-text {
  font-size: 0.8rem;
  color: #888;
  margin: 0.5rem 0 1.25rem;
}

.joey-payment-spinner {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.joey-payment-spinner-ring {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(76, 110, 245, 0.5);
  border-top-color: #4c6ef5;
  border-radius: 50%;
  animation: joey-payment-spin 0.8s linear infinite;
}

.joey-payment-spinner-ring:nth-child(2) {
  animation-delay: 0.15s;
}

.joey-payment-spinner-ring:nth-child(3) {
  animation-delay: 0.3s;
}

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

.joey-payment-dismiss-btn {
  padding: 10px 20px;
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.joey-payment-dismiss-btn:hover {
  color: #fff;
  border-color: #777;
}

.joey-payment-open-wallet-btn {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 12px 20px;
  background: #4c6ef5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.joey-payment-open-wallet-btn:hover {
  background: #5c7cfa;
}
