/* Elegant Customer Suite — standalone wishlist controls for shop, product and account pages. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-product-template > li,
.wc-block-grid__product,
.elementor-loop-container .e-loop-item { position: relative; }

button.ecs-wishlist-toggle {
  --ecs-heart-color: var(--ecs-wishlist-accent, #b28d58);
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto;
  max-width: 100%;
  margin: 0 !important;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
  font-family: var(--e-global-typography-text-font-family, inherit) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease !important;
}
button.ecs-wishlist-toggle .ecs-wishlist-heart,
button.ecs-wishlist-toggle .ecs-wishlist-heart svg { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; }
button.ecs-wishlist-toggle svg { display: block; stroke-width: 1.95; fill: none; transition: fill .2s ease, stroke .2s ease; }
button.ecs-wishlist-toggle.ecs-is-saved svg { fill: currentColor; stroke: currentColor; }
button.ecs-wishlist-toggle:focus-visible { outline: 3px solid var(--ecs-heart-color) !important; outline-offset: 3px !important; }
button.ecs-wishlist-toggle:disabled { opacity: .65; cursor: progress !important; }

/* Product detail — elegant outlined control, independently positioned below Woo add-to-cart form. */
.ecs-wishlist-single-wrap { clear: both; display: flex; align-items: center; width: 100%; margin: 12px 0 20px; }
button.ecs-wishlist-single,
button.ecs-wishlist-account {
  min-height: 46px !important;
  padding: 11px 18px !important;
  border: 1px solid #dedede !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #242424 !important;
}
button.ecs-wishlist-single:hover,
button.ecs-wishlist-account:hover {
  border-color: var(--ecs-heart-color) !important;
  background: #fbfaf8 !important;
  color: #25211d !important;
  transform: translateY(-1px);
}
button.ecs-wishlist-single.ecs-is-saved,
button.ecs-wishlist-account.ecs-is-saved { color: #7c6043 !important; border-color: #d5c5ae !important; background: #f9f6f1 !important; }
button.ecs-wishlist-account { min-height: 42px !important; padding: 9px 13px !important; }

/* Product listing — independent icon button outside WooCommerce's linked product content. */
button.ecs-wishlist-archive {
  position: absolute !important;
  z-index: 20 !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(20,20,20,.10) !important;
  background: rgba(255,255,255,.98) !important;
  color: #242424 !important;
  box-shadow: 0 3px 14px rgba(0,0,0,.10) !important;
}
button.ecs-wishlist-archive .ecs-wishlist-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
button.ecs-wishlist-archive:hover { background: #fff !important; border-color: #d6c0a3 !important; color: #82633b !important; transform: translateY(-2px); }
button.ecs-wishlist-archive.ecs-is-saved { color: var(--ecs-heart-color) !important; border-color: #e7d9c4 !important; background: #fff !important; }

.ecs-wishlist-toast { position: fixed; z-index: 999999; left: 22px; bottom: 22px; padding: 12px 18px; background: #1b1b1b; color: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.19); font-family: var(--e-global-typography-text-font-family, inherit); font-size: 13px; line-height: 1.5; max-width: min(420px,calc(100vw - 30px)); pointer-events: none; }
.ecs-wishlist-toast[data-error="true"] { background: #7c2b2b; }
@media (max-width: 600px) {
  button.ecs-wishlist-archive { top: 9px !important; right: 9px !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; }
  button.ecs-wishlist-single { min-height: 46px !important; font-size: 14px !important; }
  .ecs-wishlist-toast { left: 12px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) { button.ecs-wishlist-toggle { transition: none !important; } }
