/*
 * Shared AstraShop toast placement across the public storefront.
 * Load after @stack('head') so it wins over default desktop/mobile rules
 * from style.css without changing existing toast behavior or messages.
 */
body .shop-toast {
  top: auto;
  right: auto;
  bottom: 20px;
  left: 20px;
  max-width: min(320px, calc(100vw - 40px));
  transform: translateY(12px);
}
body .shop-toast.is-visible {
  transform: translateY(0);
}

/* Keep notices above the persistent mobile/tablet bottom navigation. */
@media (max-width: 820px) {
  body .shop-toast {
    top: auto;
    right: auto;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    max-width: min(320px, calc(100vw - 28px));
  }

  /* Bottom navigation is hidden while the cart/mobile search is open. */
  body.shop-cart-open .shop-toast,
  body.mobile-search-open .shop-toast {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body .shop-toast {
    transition: none;
  }
}
