/* LastChanceOutlets v0.12.9 — fix storefront cards shifted by an unstyled favorite button.
   WooCommerce product favorite controls also render on home / collection / product pages,
   while lco-account.css had previously loaded on account/login pages only. */

/* Contain absolutely positioned controls within their own image tiles. */
[data-product-shop] > div:first-child,
.kkset-card,
.lco-account-product-image { position: relative; }

/* IMPORTANT: take the save-heart OUT of normal document flow. Without this
   declaration the inline button occupies a ~34px strip above product images. */
[data-product-shop] > div > .lco-favorite-toggle,
.kkset-card > .lco-favorite-toggle,
.lco-account-product-image > .lco-favorite-toggle {
  position: absolute !important;
  top: 10px;
  right: 10px;
  z-index: 25;
}
.lco-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e3f2;
  border-radius: 50%;
  background: #fff;
  color: #3e577d;
  box-shadow: 0 4px 12px rgba(8,27,60,.12);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.lco-favorite-toggle > i { display: block; font-size: 18px; line-height: 1; }
.lco-favorite-toggle:hover,
.lco-favorite-toggle:focus-visible,
.lco-favorite-toggle[aria-pressed="true"] {
  background: #e9f3ff;
  border-color: #1673ea;
  color: #1673ea;
}
.lco-favorite-toggle:focus-visible { outline: 2px solid #1673ea; outline-offset: 2px; }
.lco-favorite-toggle[aria-busy="true"] { opacity: .55; }

/* Long category labels must never run behind the favorite icon. */
[data-product-shop] .lco-product-badge {
  max-width: calc(100% - 60px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* On the product page the favorite control is an inline action, not an overlay. */
.lco-product-save {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  color: #5f718b;
  font-size: 12px;
}
.lco-product-save .lco-favorite-toggle { position: static !important; }
