/**
 * XPay verify wait — Gold ring (Option A).
 * Scoped to #wc_xpay_payment-message only. Mobile-first.
 */
#wc_xpay_payment-message.wc-xpay-verify-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 18px 12px 12px;
  margin: 12px 0 4px;
  color: #111;
  background: transparent;
  border: none;
  box-shadow: none;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 400px) {
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring-wrap {
    width: 56px;
    height: 56px;
  }
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #f4e9d3;
  border-top-color: #c09b5b;
  animation: wc-xpay-spin 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c09b5b;
  animation: wc-xpay-pulse 1.6s ease-in-out infinite;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-verify-title {
  margin: 0;
  padding: 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #111;
  max-width: 280px;
}

@media (min-width: 400px) {
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-verify-title {
    font-size: 14px;
  }
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-verify-sub {
  margin: 0;
  padding: 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  max-width: 280px;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 8px;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c09b5b;
  opacity: 0.25;
  animation: wc-xpay-bounce 1.2s ease-in-out infinite;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-cancel-pay {
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-cancel-pay:hover,
#wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-cancel-pay:focus {
  color: #555;
  outline: none;
}

/* Error / retry state — not the ring */
#wc_xpay_payment-message:not(.wc-xpay-verify-wait) {
  text-align: left;
}

@keyframes wc-xpay-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wc-xpay-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wc-xpay-bounce {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring,
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring-dot,
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots i {
    animation: none;
  }
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring {
    border-top-color: #c09b5b;
    border-right-color: #c09b5b;
  }
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-ring-dot,
  #wc_xpay_payment-message.wc-xpay-verify-wait .wc-xpay-dots i {
    opacity: 0.85;
  }
}
