/**
 * WooTools Order Now Button Styles
 * Loading states and button enhancements
 */

/* Order Now Button Loading State */
.wootools-order-now.loading,
.single_add_to_cart_button[data-order-now="1"].loading,
button[data-order-now="1"].loading {
  opacity: 0.6;
  cursor: wait;
  position: relative;
}

.wootools-order-now.loading::after,
.single_add_to_cart_button[data-order-now="1"].loading::after,
button[data-order-now="1"].loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: wootools-spin 0.6s linear infinite;
}

@keyframes wootools-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Elementor Button Compatibility */
.elementor-button.wootools-order-now {
  cursor: pointer;
}

.elementor-button.wootools-order-now.loading {
  pointer-events: none;
}

/* Disabled State */
.wootools-order-now:disabled,
button[data-order-now="1"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
