.yamm-wishlist-header { position: relative; }
.yamm-wishlist-header__dot {
  position: absolute;
  top: 5px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #987440;
}

@media (min-width: 981px) {
  .yamm-header__bar .yamm-header__actions { gap: 10px; }
}

.yamm-wishlist-menu .yamm-offcanvas__link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.yamm-wishlist-menu__dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #987440;
}

.yamm-offcanvas [data-yamm-nav-panel="root"] .yamm-offcanvas__item--cart {
  margin-bottom: 40px;
}

.yamm-wishlist-menu__dot[hidden],
.yamm-wishlist-header__dot[hidden],
.yamm-wishlist [hidden],
.yamm-wishlist-toast[hidden],
.yamm-wishlist-toast [hidden],
.yamm-wishlist-confirmation [hidden] { display: none; }

.yamm-wishlist-product-media,
.yamm-product-card__visual { position: relative; }

.yamm-wishlist-heart {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  inset: 9px 9px auto auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #24211e;
  cursor: pointer;
}

.yamm-wishlist-heart--card { inset: 0 0 auto auto; }

.yamm-wishlist-heart--card svg,
.yamm-wishlist-heart--remove::before,
.yamm-wishlist-heart--remove::after {
  translate: 3px -3px;
}

.yamm-wishlist-heart--product { display: none; }
.yamm-wishlist-heart svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
}

.yamm-wishlist-heart:hover { color: #825d36; }
.yamm-wishlist-heart[aria-pressed="true"] { color: #825d36; }
.yamm-wishlist-heart[aria-pressed="true"] svg { fill: currentColor; }
.yamm-wishlist-heart[aria-busy] { opacity: .63; }
.yamm-wishlist-heart:focus-visible { outline: 2px solid #6c4b26; outline-offset: 3px; }

.yamm-wishlist-heart--remove svg { display: none; }

.yamm-wishlist-heart--remove::before,
.yamm-wishlist-heart--remove::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1.35px;
  background: #262321;
  transform: rotate(45deg);
}

.yamm-wishlist-heart--remove::after { transform: rotate(-45deg); }

.yamm-wishlist {
  --wishlist-muted: #59554f;
  --wishlist-line: #e4e3e1;
  margin-bottom: clamp(42px, 7vw, 96px);
  color: #22201e;
}

.yamm-wishlist :where(p, h1, h2) { margin: 0; }

.yamm-wishlist__intro {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(31px, 4vw, 62px) 18px clamp(25px, 3.8vw, 49px);
  text-align: center;
}

.yamm-wishlist h1,
.yamm-wishlist h2 {
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.yamm-wishlist h1 { font-size: clamp(22px, 1.7vw, 24px); }
.yamm-wishlist__intro p { max-width: 56ch; margin: 12px auto 0; color: var(--wishlist-muted); line-height: 1.5; }

.yamm-wishlist__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 21px;
}

.yamm-wishlist__actions:has(> :not([hidden])) { min-height: 46px; }
.yamm-wishlist__actions:not(:has(> :not([hidden]))) { display: none; }

.yamm-wishlist .yamm-wishlist__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #252525;
  border-radius: 30px;
  background: white;
  color: #222;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.yamm-wishlist .yamm-wishlist__button:hover { background: #f3f2ef; }
.yamm-wishlist .yamm-wishlist__button--primary { background: #181818; color: #fff; }
.yamm-wishlist .yamm-wishlist__button--primary:hover { background: #373737; }
.yamm-wishlist__button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; }

.yamm-wishlist__section { margin-top: clamp(25px, 4vw, 55px); }

.yamm-wishlist__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 0 clamp(16px, 4vw, 58px) 12px;
}

.yamm-wishlist h2 { font-size: clamp(22px, 2.6vw, 34px); }

.yamm-wishlist .yamm-wishlist__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .27em;
  cursor: pointer;
}

.yamm-wishlist__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 0;
}

.yamm-wishlist__grid .yamm-product-card { margin: 0; width: auto; min-width: 0; }
.yamm-wishlist__grid .yamm-product-card__media { aspect-ratio: 1 / 1; background: #f2f2f2; }
.yamm-wishlist__grid .yamm-product-card__body { padding: clamp(10px, 1.5vw, 20px); }
.yamm-wishlist__grid .yamm-product-card__title { font-size: clamp(15px, 1.5vw, 19px); }
.yamm-wishlist__grid .yamm-product-card__title a { color: inherit; text-decoration: none; }
.yamm-wishlist__grid .yamm-product-card__title a:hover { color: #64503b; }
.yamm-wishlist__grid .yamm-product-card__notes,
.yamm-wishlist__grid .yamm-product-card__master,
.yamm-wishlist__grid .yamm-product-card__arrow { display: none; }

.yamm-wishlist__empty {
  padding: clamp(20px, 4vw, 34px);
  border-top: 1px solid var(--wishlist-line);
  color: var(--wishlist-muted);
  text-align: center;
}
.yamm-wishlist__empty a { display: inline-block; margin-top: 12px; color: #46382c; text-underline-offset: .27em; }
.yamm-wishlist__history-empty { padding-inline: clamp(16px, 4vw, 58px); color: var(--wishlist-muted); }

.yamm-wishlist-toast {
  position: fixed;
  z-index: 1850;
  inset: calc(var(--yamm-header-height, 76px) + 10px) clamp(12px, 3vw, 38px) auto auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(435px, calc(100vw - 24px));
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #e8dfd3;
  border-inline-start: 3px solid #a18154;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 32px rgb(34 23 10 / 13%);
  color: #211e1a;
}

.yamm-wishlist-toast.is-visible { animation: yamm-wishlist-toast-in .24s ease-out both; }
.yamm-wishlist-toast img { width: 51px; height: 59px; flex: 0 0 auto; object-fit: cover; background: #f6f5f3; }
.yamm-wishlist-toast div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.yamm-wishlist-toast p { margin: 0; font-size: 14px; line-height: 1.35; }
.yamm-wishlist-toast a { color: #604526; font-size: 13px; text-underline-offset: .24em; }
.yamm-wishlist-toast button {
  width: 34px;
  height: 38px;
  flex: 0 0 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #211e1a;
  font-size: 23px;
  cursor: pointer;
}

.yamm-wishlist-confirmation {
  position: fixed;
  inset: 0;
  width: min(475px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid #e4e1dd;
  border-radius: 8px;
  background: #fff;
  color: #24211f;
  box-shadow: 0 16px 70px rgb(0 0 0 / 16%);
}

.yamm-wishlist-confirmation[open] { animation: yamm-wishlist-confirm .26s ease-out both; }

.yamm-wishlist-confirmation::backdrop {
  background: rgb(13 12 11 / 60%);
  animation: yamm-wishlist-veil .24s ease-out both;
}

.yamm-wishlist-confirmation__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 77px;
  padding: 10px 12px;
}

.yamm-wishlist-confirmation__content:has(img[hidden]) { grid-template-columns: minmax(0, 1fr) 34px; }
.yamm-wishlist-confirmation img { width: 55px; height: 62px; object-fit: cover; background: #f4f4f4; }
.yamm-wishlist-confirmation p { margin: 0 0 4px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.yamm-wishlist-confirmation a { color: #302c27; font-size: 13px; text-underline-offset: .24em; }
.yamm-wishlist-confirmation button {
  width: 34px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b2824;
  font-size: 25px;
  cursor: pointer;
}

@keyframes yamm-wishlist-confirm {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes yamm-wishlist-veil {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes yamm-wishlist-toast-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: none; }
}

.yamm-product-summary .yamm-product-summary__topline {
  column-gap: 12px;
  margin-block: -12px 13px;
}

.yamm-product-summary__topline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  margin-inline-end: -12px;
}

.yamm-product-summary__topline-actions .yamm-wishlist-heart--product-summary {
  position: static;
  z-index: auto;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

@media (max-width: 760px) {
  .yamm-header__actions .yamm-wishlist-header { display: none; }

  .yamm-wishlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }
  .yamm-wishlist-heart { width: 39px; height: 39px; }
  .yamm-wishlist-heart svg { width: 16px; height: 16px; }
  .yamm-wishlist-confirmation__content { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .yamm-wishlist-toast.is-visible,
  .yamm-wishlist-confirmation[open],
  .yamm-wishlist-confirmation::backdrop { animation: none; }
}
