/* hide native buttons */
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart {
  visibility: hidden !important;
}

/* wrapper */
.advanced-add-to-cart {
  position: relative;
  margin: .5em 0;
  width: 100%;
}

/* spinner overlay */
.faac-spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 10;
}
.faac-spinner-overlay.active {
  opacity: 1;
}
.faac-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ADD + button */
.aac-add-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: .7em;
  height: 30px;
  width: 100%;
  border: none;
  padding: 0 1em;
  cursor: pointer;
}
.aac-text { flex: 1; text-align: left; }
.aac-plus-icon { font-size: 1.2em; transition: transform .3s ease; }
.aac-add-btn:hover .aac-plus-icon {
  transform: translateX(5px);
}

/* quantity UI */
.aac-qty-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  border: 1px solid #000;
}
.aac-minus,
.aac-plus {
  width: 30px;
  height: 100%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}
.aac-qty {
  flex: 1;
  text-align: center;
  border: none;
  background: transparent;
  font-size: .7em;
  pointer-events: none;
}
