/**
 * Checkout button loading state styles with spinner animation
 */

/* Loading spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Checkout login button loading state */
.checkout-login-button-loading.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Spinner element */
.checkout-login-button-loading.is-loading .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Loading text */
.checkout-login-button-loading.is-loading .loading-text {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Alternative spinner style (dot style) */
.checkout-login-button-loading.is-loading .spinner.dot-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  animation: spin 1s linear infinite;
}
