/* Neetly Add to Cart Popup SAFE 1.1.0
   Non tocca il funzionamento WooCommerce: nasconde solo il link nativo "Vai al carrello" e mostra un toast dopo evento added_to_cart. */

a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart.wc-forward {
  display: none !important;
  visibility: hidden !important;
}

.neetly-atc-popup {
  position: fixed;
  z-index: 999999;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  color: #182018;
  box-shadow: 0 14px 38px rgba(0,0,0,.22), 0 3px 10px rgba(0,0,0,.12);
  border: 1px solid rgba(180,0,0,.14);
  text-align: center;
  font-family: inherit;
  opacity: 0;
  transform: translate(-50%, -6px) scale(.98);
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease;
}

.neetly-atc-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.neetly-atc-popup__message {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 9px 0;
}

.neetly-atc-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #b40000;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(180,0,0,.22);
}

.neetly-atc-popup__button:hover,
.neetly-atc-popup__button:focus {
  color: #fff !important;
  filter: brightness(.96);
}

@media (max-width: 600px) {
  .neetly-atc-popup {
    min-width: 210px;
    padding: 11px 12px;
    border-radius: 16px;
  }
}
