/*
 * Gando commerce corrections — v8.2.5
 * Keeps the approved v7 visual language while making PDP/cart interactions
 * WooCommerce-native and resilient in light/dark/responsive layouts.
 */

/* Wishlist: the tooltip lives at document level so card overflow cannot clip it. */
[data-gando-favorite]::before,
[data-gando-favorite]::after {
  display: none !important;
  content: none !important;
}
.gando-favorite-tooltip {
  position: fixed;
  z-index: 100050;
  max-width: min(220px, calc(100vw - 16px));
  padding: 7px 10px;
  color: #fff;
  background: #0d4023;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(7,34,18,.2);
  font-family: var(--gando-font-body, "YekanBakh", Tahoma, Arial, sans-serif);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.gando-favorite-tooltip[hidden] { display: none !important; }
html[data-theme="dark"] .gando-favorite-tooltip {
  color: #102218;
  background: #d9efe0;
  border-color: #95bda1;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}

/* Immediately reveal the real WooCommerce mini-cart after an AJAX add/update. */
.cart-shell.is-cart-updated .mini-cart {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .gando-favorite-tooltip,
  .cart-shell.is-cart-updated .mini-cart { transition: none !important; }
}
