/* MMS Stripe Auth - loader shown while the card is being authorized */

.mms-stripe-auth-processing {
  position: relative;
}

.mms-stripe-auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: wait;
}

.mms-stripe-auth-overlay__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #333;
  border-radius: 50%;
  animation: mms-stripe-auth-spin 0.8s linear infinite;
}

.mms-stripe-auth-overlay__text {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.mms-stripe-auth-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mms-stripe-auth-spin 0.8s linear infinite;
}

.mms-stripe-auth-processing .wpforms-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.8;
}

@keyframes mms-stripe-auth-spin {
  to { transform: rotate(360deg); }
}
