/* DFS Wishlist companion v1.0.3 */

.dfs-wishlist-toggle {
  cursor: pointer;
  font: inherit;
}

.dfs-site .dfs-product-card__wishlist.dfs-wishlist-toggle {
  padding: 0;
}

.dfs-site .dfs-product-card__wishlist.dfs-wishlist-toggle.is-active {
  border-color: rgb(6 77 227 / 28%);
  background: #fff;
  color: var(--dfs-color-brand-active);
}

.dfs-site .dfs-product-card__wishlist.dfs-wishlist-toggle.is-active svg path,
.dfs-site .dfs-single-product__wishlist.dfs-wishlist-toggle.is-active svg path {
  fill: currentColor;
}

.dfs-site .dfs-single-product__wishlist.dfs-wishlist-toggle {
  cursor: pointer;
}

.dfs-site .dfs-single-product__wishlist.dfs-wishlist-toggle.is-active {
  border-color: var(--dfs-color-brand);
  color: var(--dfs-color-brand-active);
}

.dfs-wishlist-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--dfs-color-brand-active, #064de3);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.dfs-wishlist-count[hidden] { display: none; }

.dfs-mobile-drawer__utility .dfs-wishlist-count {
  position: static;
  margin-left: auto;
  border: 0;
  background: rgb(255 255 255 / 14%);
}


/*
 * The theme's .dfs-empty-state component defines display explicitly. Browsers'
 * UA [hidden] rule can therefore be overridden by author CSS. Keep wishlist
 * runtime states mutually exclusive regardless of theme/component specificity.
 */
.dfs-wishlist-view__grid[hidden],
.dfs-wishlist-view__empty[hidden],
.dfs-wishlist-view__status[hidden] {
  display: none !important;
}

.dfs-wishlist-view {
  display: grid;
  gap: 1.5rem;
}

.dfs-wishlist-view__summary { min-height: 24px; }
.dfs-wishlist-view__count { margin: 0; color: #667085; font-size: 0.92rem; }
.dfs-wishlist-view__status { padding: 1rem 0; color: #667085; }
.dfs-wishlist-view__grid { margin-top: 0.25rem !important; }
.dfs-wishlist-view__empty { margin-top: 0.5rem; }

.dfs-wishlist-toast {
  position: fixed;
  z-index: 999999;
  right: 20px;
  bottom: 24px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 11px 15px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  box-shadow: 0 10px 35px rgb(16 24 40 / 22%);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dfs-wishlist-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .dfs-wishlist-toast {
    right: 16px;
    bottom: 84px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}
