:root {
  --avi-wishlist-empty-color: #2b2b2b;
  --avi-wishlist-active-color: #b86b62;
}

.avi-header-wishlist {
  position: relative;
  color: var(--avi-wishlist-empty-color, #2b2b2b);
  min-width: var(--minimum-touch-target, 44px);
  min-height: var(--minimum-touch-target, 44px);
  align-items: center;
}

.avi-header-wishlist__icon {
  display: inline-flex;
  width: var(--button-size, 44px);
  height: var(--button-size, 44px);
  align-items: center;
  justify-content: center;
}

.avi-header-wishlist__icon svg {
  width: var(--icon-size-md, 20px);
  height: var(--icon-size-md, 20px);
}

.avi-header-wishlist:hover,
.avi-header-wishlist:focus-visible {
  color: var(--avi-wishlist-active-color, #b86b62);
}

.avi-wishlist-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avi-wishlist-active-color, #b86b62);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

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

.card-gallery {
  position: relative;
}

.avi-wishlist-button {
  --avi-wishlist-button-size: 42px;

  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: var(--avi-wishlist-button-size);
  height: var(--avi-wishlist-button-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--avi-wishlist-empty-color, #2b2b2b);
  background: rgb(255 255 255 / 86%);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(34 34 34 / 12%);
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  z-index: 4;
}

.avi-wishlist-button:hover,
.avi-wishlist-button:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 26px rgb(34 34 34 / 16%);
}

.avi-wishlist-button--card {
  position: absolute;
  top: 12px;
  right: 12px;
}

.avi-wishlist-button.is-active {
  color: var(--avi-wishlist-active-color, #b86b62);
}

.avi-wishlist-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61c-1.54-1.44-3.95-1.36-5.4.18L12 8.44 8.56 4.79C7.11 3.25 4.7 3.17 3.16 4.61c-1.63 1.53-1.72 4.1-.2 5.73L12 20l9.04-9.66c1.52-1.63 1.43-4.2-.2-5.73Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.avi-wishlist-button.is-active .avi-wishlist-icon {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61c-1.54-1.44-3.95-1.36-5.4.18L12 8.44 8.56 4.79C7.11 3.25 4.7 3.17 3.16 4.61c-1.63 1.53-1.72 4.1-.2 5.73L12 20l9.04-9.66c1.52-1.63 1.43-4.2-.2-5.73Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.avi-wishlist-button--product {
  gap: 10px;
  width: auto;
  min-width: 44px;
  padding-inline: 16px;
  border-radius: var(--style-border-radius-buttons-primary, 6px);
}

.avi-wishlist-page {
  padding-block: clamp(40px, 6vw, 78px);
}

.avi-wishlist-page__header {
  margin-block-end: 28px;
}

.avi-wishlist-page__title {
  margin: 0;
}

.avi-wishlist-empty {
  max-width: 560px;
  padding-block: 52px;
}

.avi-wishlist-empty[hidden],
.avi-wishlist-grid[hidden],
.avi-wishlist-loading[hidden] {
  display: none;
}

.avi-wishlist-empty__title {
  margin-block: 0 10px;
}

.avi-wishlist-empty__text {
  margin-block: 0 22px;
  color: rgb(var(--color-foreground-rgb, 34 34 34) / 70%);
}

.avi-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}

.avi-wishlist-card {
  display: grid;
  gap: 14px;
}

.avi-wishlist-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(34 34 34 / 5%);
  aspect-ratio: 4 / 5;
}

.avi-wishlist-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avi-wishlist-card__placeholder {
  width: 100%;
  height: 100%;
  background: rgb(34 34 34 / 6%);
}

.avi-wishlist-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.avi-wishlist-card__title a {
  color: inherit;
  text-decoration: none;
}

.avi-wishlist-card__price {
  color: rgb(var(--color-foreground-rgb, 34 34 34) / 78%);
}

.avi-wishlist-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avi-wishlist-remove {
  background: transparent;
  color: var(--avi-wishlist-active-color, #b86b62);
  border: 0;
  padding-inline: 0;
  cursor: pointer;
}

@media screen and (max-width: 989px) {
  .avi-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 749px) {
  .avi-wishlist-button {
    --avi-wishlist-button-size: 38px;
  }

  .avi-wishlist-button--card {
    top: 10px;
    right: 10px;
  }

  .avi-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
