/* commerce wishlist add to favorites */
button.add-to-favorites,
.dummy-wishlist-link {
  width: 33px;
  height: 33px;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0;
  font-size: 0;
  padding: 0;
  color: #fff;
  background-color: transparent !important;
  margin: 0;
  border-radius: 0;
  letter-spacing: 0;
  line-height: 0;
  box-shadow: none !important;
  outline: none !important;
  background-image: url(../icons/heart-empty.svg);
  display: block;
}

button.add-to-favorites.active {
  background-image: url(../icons/heart.svg);
}

.commerce-order-item-add-to-cart-form .form-submit[data-drupal-selector="edit-wishlist"] {
  display: none;
}

/* commerce wishlist user page */

.wishlist-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 1280px) {
  .wishlist-items {
    grid-template-columns: 1fr 1fr;
  }
}

.wishlist-items .wishlist-item {
  display: block;
  margin: 0;
  padding: 5px;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: #fff;
}

.wishlist-items .wishlist-item .wishlist-item__actions {
  display: none;
}

.wishlist-items .wishlist-item .wishlist-item__entity {
  display: -webkit-box;
  display: flex;
}

.wishlist-items .wishlist-item .wishlist-item__entity .product-image {
  -webkit-box-flex: 0;
  flex: 0 0 28%;
}

.wishlist-items .wishlist-item .wishlist-item__entity .product-info {
  -webkit-box-flex: 0;
  flex: 0 0 60%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wishlist-items .wishlist-item .wishlist-item__entity .product-info .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions {
  display: grid;
  gap: 0.25rem;
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper > .remove,
.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper > .add-to-cart-button,
.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .remove-button-wrapper > .remove,
.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .remove-button-wrapper > .add-to-cart-button {
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  border: 0;
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .remove-button-wrapper .remove {
  background-image: url(/modules/custom/yr_wishlist/icons/wishlist_squared_on.svg);
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper {
  position: relative;
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper .add-to-cart-button {
  display: block;
  background-image: url(/modules/custom/yr_wishlist/icons/quick-shop.svg);
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper .add-to-cart-button.not-available {
  opacity: 0.3;
  cursor: not-allowed;
}

.wishlist-items .wishlist-item .wishlist-item__entity .item-actions .add-to-cart-wrapper .ajax-progress {
  position: absolute;
  top: 0;
  right: 0;
}

/*********************************************/

.es-wishlish-wrapper,
.dummy-wishlist-link-wrapper {
  border-radius: 100%;
  padding: 10px;
  box-shadow: 0 0 10px #D0D0D0;
  margin-left: auto;
  width: fit-content;
}

.commerce-product--grid-page {
  position: relative;
}

.commerce-product--grid-page .es-wishlish-wrapper,
.commerce-product--grid-page .dummy-wishlist-link-wrapper {
  position: absolute;
  bottom: 50%;
  right: 10px;
  line-height: initial;
}

.commerce-product--grid-page .es-wishlish-wrapper .add-to-favorites,
.commerce-product--grid-page .dummy-wishlist-link-wrapper .dummy-wishlist-link {
  width: 20px;
  height: 20px;
  z-index: 3;
}
