/* EverLat v1.3.2 — account-free saved products and native cart actions. */

.header__icon--wishlist {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.header__icon--wishlist:disabled {
  color: #9aa6b5;
  cursor: not-allowed;
}

.header__icon--wishlist.has-items > svg path,
.el-product-wishlist-button.is-active > svg path,
.el-product-card__wishlist.is-active > svg path,
.el-related-wishlist.is-active > svg path {
  fill: currentColor;
}

.el-wishlist-count[hidden] {
  display: none !important;
}

.el-product-card__wishlist-wrap {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 6;
}

.el-product-card__wishlist-wrap[hidden] {
  display: none !important;
}

.el-product-card__wishlist {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  padding: 0;
  border: 1px solid #d5dde8;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--el-navy);
  box-shadow: 0 .45rem 1.5rem rgba(8, 37, 79, .1);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.el-product-card__wishlist svg {
  width: 2rem;
  height: 2rem;
}

.el-product-card__wishlist:hover,
.el-product-card__wishlist.is-active {
  border-color: rgba(212, 9, 44, .34);
  background: #fff1f3;
  color: var(--el-red);
  transform: translateY(-.1rem);
}

.el-product-card__wishlist:focus-visible {
  outline: .3rem solid #2f7fd5;
  outline-offset: .25rem;
}

body.el-wishlist-open {
  overflow: hidden;
}

.el-wishlist-drawer {
  position: fixed;
  inset: 0;
  z-index: 100050;
}

.el-wishlist-drawer[hidden] {
  display: none !important;
}

.el-wishlist-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 18, 42, .62);
  cursor: default;
}

.el-wishlist-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(46rem, 100%);
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  color: var(--el-ink);
  box-shadow: -1.5rem 0 4.5rem rgba(3, 18, 42, .2);
}

.el-wishlist-drawer__header {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid var(--el-line);
}

.el-wishlist-drawer__header h2 {
  margin: 0;
  color: var(--el-navy);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.el-wishlist-drawer__header p {
  margin: .45rem 0 0;
  color: var(--el-muted);
  font-size: 1.2rem;
}

.el-wishlist-drawer__close {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 4.4rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--el-line);
  border-radius: 50%;
  background: #fff;
  color: var(--el-navy);
  font-size: 2.7rem;
  line-height: 1;
}

.el-wishlist-drawer__close:hover {
  border-color: rgba(212, 9, 44, .28);
  background: #fff2f4;
  color: var(--el-red);
}

.el-wishlist-drawer__content {
  overflow-y: auto;
  padding: 1.6rem 2rem 2.4rem;
  overscroll-behavior: contain;
}

.el-wishlist-products {
  display: grid;
  gap: 1rem;
}

.el-wishlist-product {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.1rem;
  border: 1px solid #dce3ed;
  border-radius: 1rem;
  background: #fff;
}

.el-wishlist-product__image {
  display: grid;
  width: 10.5rem;
  height: 10.5rem;
  place-items: center;
  overflow: hidden;
  border-radius: .8rem;
  background: #f7f8fb;
}

.el-wishlist-product__image img {
  width: 100%;
  height: 100%;
  padding: .65rem;
  object-fit: contain;
}

.el-wishlist-product__body {
  min-width: 0;
}

.el-wishlist-product__body h3 {
  margin: 0 0 .55rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.el-wishlist-product__body h3 a {
  color: var(--el-navy);
  text-decoration: none;
}

.el-wishlist-product__body h3 a:hover {
  color: var(--el-red);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.el-wishlist-product__price {
  margin: 0;
  color: var(--el-navy);
  font-size: 1.35rem;
  font-weight: 850;
}

.el-wishlist-product__stock {
  margin: .25rem 0 0;
  color: #536177;
  font-size: 1.1rem;
}

.el-wishlist-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  margin-top: .8rem;
}

.el-wishlist-product__cart,
.el-wishlist-product__cart.button {
  display: inline-flex;
  min-height: 3.8rem;
  flex: 1 0 100%;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 1px solid var(--el-red, #d4092c);
  border-radius: .7rem;
  background: var(--el-red, #d4092c);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.el-wishlist-product__cart:hover,
.el-wishlist-product__cart:focus-visible,
.el-wishlist-product__cart.button:hover,
.el-wishlist-product__cart.button:focus-visible {
  border-color: #a80622;
  background: #a80622;
  color: #fff;
}

.el-wishlist-product__cart.loading {
  opacity: .65;
  pointer-events: none;
}

.el-wishlist-product__cart--options {
  border-color: var(--el-navy);
  background: var(--el-navy);
}

.el-wishlist-product__view,
.el-wishlist-product__remove,
.el-wishlist-product__actions > .added_to_cart {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.el-wishlist-product__view {
  color: var(--el-navy);
}

.el-wishlist-product__actions > .added_to_cart {
  color: var(--el-navy);
}

.el-wishlist-product__remove {
  color: #a80622;
}

.el-wishlist-drawer__empty {
  margin: 0;
  padding: 4rem 1rem;
  color: #657387;
  text-align: center;
}

.el-wishlist-drawer__notice {
  margin: 1.4rem 0 0;
  color: #6d7b8e;
  font-size: 1.1rem;
  line-height: 1.5;
}

.el-product-wishlist-action {
  margin-top: 1rem;
}

.el-product-wishlist-action[hidden] {
  display: none !important;
}

.el-product-wishlist-button {
  display: inline-flex;
  width: 100%;
  min-height: 4.4rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .75rem 1rem;
  border: 1px solid #cfd9e5;
  border-radius: .8rem;
  background: #fff;
  color: var(--el-navy);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
}

.el-product-wishlist-button svg {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
}

.el-related-wishlist svg {
  width: 2rem;
  height: 2rem;
}

.el-product-wishlist-button:hover,
.el-product-wishlist-button.is-active {
  border-color: #e9a4b0;
  background: #fff3f5;
  color: #a80622;
}

.el-wishlist-drawer :where(a, button, [tabindex]):focus-visible,
.header__icon--wishlist:focus-visible,
.el-product-wishlist-button:focus-visible {
  outline: .3rem solid #2f7fd5;
  outline-offset: .25rem;
}

@media (max-width: 749px) {
  .el-wishlist-drawer__panel {
    width: min(42rem, 100%);
  }

  .el-wishlist-drawer__header {
    padding: 1.5rem;
  }

  .el-wishlist-drawer__content {
    padding: 1.2rem 1.5rem 2rem;
  }
}

@media (max-width: 420px) {
  .el-wishlist-product {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .el-wishlist-product__image {
    width: 8.5rem;
    height: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .el-wishlist-drawer *,
  .header__icon--wishlist,
  .el-product-wishlist-button,
  .el-product-card__wishlist {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
