:root {
  --czuw-navy: #1a2653;
  --czuw-burgundy: #64213c;
  --czuw-border: rgba(26, 38, 83, .14);
  --czuw-soft: #f5f5f2;
}

.undamed-wishlist-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .94);
  color: var(--czuw-navy);
  box-shadow: 0 1px 6px rgba(26, 38, 83, .08);
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
  z-index: 8;
}

.undamed-wishlist-button svg,
.undamed-header-wishlist svg,
.undamed-wishlist-empty__heart svg {
  width: 19px;
  height: 19px;
  overflow: visible;
}

.undamed-wishlist-button svg path,
.undamed-header-wishlist svg path,
.undamed-wishlist-empty__heart svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  transition: fill .16s ease, stroke .16s ease;
}

.undamed-wishlist-button:hover,
.undamed-wishlist-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(26, 38, 83, .14);
  outline: none;
}

.undamed-wishlist-button.is-active {
  background: #fff;
  color: var(--czuw-burgundy);
}

.undamed-wishlist-button.is-active svg path,
.undamed-header-wishlist.is-active svg path,
.undamed-wishlist-empty__heart svg path {
  fill: currentColor;
}

.undamed-wishlist-button.is-loading {
  opacity: .55;
  pointer-events: none;
}

.product-miniature .product-miniature__top {
  position: relative;
}

.product-miniature .product-miniature__top > .undamed-wishlist-button--card {
  position: absolute;
  top: 10px;
  right: 10px;
}

.undamed-product-card {
  position: relative;
}

.undamed-product-card > .undamed-wishlist-button--card {
  position: absolute;
  top: 10px;
  right: 10px;
}

body#product .product__right,
body#product .product__infos {
  position: relative;
}

body#product .undamed-wishlist-button--product {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  box-shadow: none;
  border: 1px solid var(--czuw-border);
}

body#product .undamed-wishlist-button--product > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body#product .product__name {
  padding-right: 48px !important;
}

.undamed-header-wishlist {
  position: relative;
  min-width: 34px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--czuw-navy);
  text-decoration: none;
}

.undamed-header-wishlist:hover,
.undamed-header-wishlist:focus-visible {
  color: var(--czuw-burgundy);
  outline: none;
}

.undamed-header-wishlist__count {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--czuw-burgundy);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.undamed-header-wishlist__count[hidden] {
  display: none !important;
}

.undamed-header-wishlist-mobile-holder {
  align-items: center;
}

.undamed-wishlist-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2147482500;
  transform: translate(-50%, 12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  background: var(--czuw-navy);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.undamed-wishlist-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.undamed-wishlist-page {
  width: 100%;
  padding: 12px 0 64px;
}

.undamed-wishlist-page__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--czuw-border);
}

.undamed-wishlist-page__head h1 {
  margin: 0 0 7px;
  color: var(--czuw-navy);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
}

.undamed-wishlist-page__head p {
  margin: 0;
  color: #626879;
  font-size: 13px;
}

.undamed-wishlist-page__counter {
  flex: 0 0 auto;
  color: #626879;
  font-size: 12px;
}

.undamed-wishlist-page__guest {
  margin: -10px 0 24px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f5f5f2;
  color: #42485a;
  font-size: 12px;
}

.undamed-wishlist-page__guest a {
  color: var(--czuw-navy);
  font-weight: 650;
  white-space: nowrap;
}

.undamed-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.undamed-wishlist-card {
  min-width: 0;
}

.undamed-wishlist-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--czuw-soft);
}

.undamed-wishlist-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.undamed-wishlist-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.undamed-wishlist-card__media .undamed-wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.undamed-wishlist-card__info {
  padding-top: 11px;
}

.undamed-wishlist-card__info h2 {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
}

.undamed-wishlist-card__info h2 a,
.undamed-wishlist-card__open {
  color: var(--czuw-navy);
  text-decoration: none;
}

.undamed-wishlist-card__variant {
  min-height: 17px;
  margin: 0 0 5px;
  color: #717688;
  font-size: 10px;
  line-height: 1.45;
}

.undamed-wishlist-card__price {
  margin: 0 0 9px;
  color: #11182f;
  font-size: 12px;
  font-weight: 650;
}

.undamed-wishlist-card__open {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.undamed-wishlist-empty {
  grid-column: 1 / -1;
  min-height: 360px;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--czuw-border);
}

.undamed-wishlist-empty__heart {
  width: 52px;
  height: 52px;
  margin-bottom: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--czuw-burgundy);
}

.undamed-wishlist-empty__heart svg {
  width: 30px;
  height: 30px;
}

.undamed-wishlist-empty h2 {
  margin: 0 0 7px;
  color: var(--czuw-navy);
  font-size: 22px;
}

.undamed-wishlist-empty p {
  max-width: 430px;
  margin: 0 0 20px;
  color: #666c7d;
  font-size: 13px;
}

.undamed-wishlist-loading {
  grid-column: 1 / -1;
  min-height: 260px;
  position: relative;
}

.undamed-wishlist-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px;
  border: 2px solid rgba(26, 38, 83, .18);
  border-top-color: var(--czuw-navy);
  border-radius: 50%;
  animation: czuw-spin .7s linear infinite;
}

.undamed-wishlist-error {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid rgba(139, 36, 69, .25);
  color: var(--czuw-burgundy);
}

@keyframes czuw-spin { to { transform: rotate(360deg); } }

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

@media (max-width: 767.98px) {
  .undamed-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
  }

  .undamed-wishlist-page {
    padding-bottom: 42px;
  }

  .undamed-wishlist-page__head {
    align-items: flex-start;
  }

  .undamed-wishlist-page__guest {
    align-items: flex-start;
    flex-direction: column;
  }

  body#product .undamed-wishlist-button--product {
    top: 2px;
    right: 0;
  }
}


/* CZ Undamed Wishlist 1.0.1 - PDP heart, stable header order and product-card cleanup. */
@media (min-width: 992px) {
  #header .undamed-header-actions #_desktop_ps_searchbar { order: 1; }
  #header .undamed-header-actions .undamed-header-account,
  #header .undamed-header-actions #_desktop_ps_customersignin { order: 2; }
  #header .undamed-header-actions > .undamed-header-wishlist:not(.undamed-header-wishlist--mobile) {
    order: 3;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
  }
  #header .undamed-header-actions .undamed-header-cart { order: 4; }
}

body#product .product__name.undamed-product-title-with-wishlist {
  position: relative !important;
  min-height: 40px;
  padding-right: 50px !important;
}

body#product .product__name > .undamed-wishlist-button--product {
  position: absolute !important;
  z-index: 12;
  top: -6px !important;
  right: 0 !important;
  width: 40px;
  height: 40px;
  margin: 0 !important;
}

/* The old productextras cards had a decorative pseudo-heart. The real wishlist owns this UI now. */
body#product .undamed-product-card__image::after {
  display: none !important;
  content: none !important;
}
