/* The store setting owns card feedback for both classic and block buttons. */
.af-product-cards :is(li.product, .wc-block-product):has([data-af-card-product]) .added_to_cart,
.af-product-cards .wp-block-woocommerce-product-button:has([data-af-card-product]) > span:has(> .added_to_cart) {
  display: none !important;
}
.af-product-cards .af-cart-card-label { display: inline; }
.af-product-cards .wp-block-woocommerce-product-button .af-card-view-cart { margin-top: .5rem !important; }

.af-product-cards .af-cart-button-busy { cursor: wait !important; opacity: .75 !important; }
.af-product-cards .af-cart-button-busy::after {
  content: "" !important;
  display: inline-block !important;
  position: static !important;
  width: 1em;
  height: 1em;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-left: .65em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -.15em;
  animation: af-cart-button-spin .7s linear infinite !important;
}
.af-card-add-status:empty { display: none; }
.af-card-add-status { margin-top: .5rem; font-size: .9rem; }
@keyframes af-cart-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .af-product-cards .af-cart-button-busy::after { animation: none !important; }
}
