.sxgc-wishlist-header {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sxgc-wishlist-drawer[hidden],
.sxgc-wishlist-drawer__empty[hidden],
.sxgc-wishlist-drawer__purchase[hidden],
.sxgc-wishlist-count[hidden] { display: none !important; }

.sxgc-wishlist-header svg,
.sxgc-wishlist-toggle svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill .18s ease, transform .18s ease;
}

.sxgc-wishlist-count {
  position: absolute;
  top: -2px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ed-product,
.woocommerce ul.products li.product,
.product-card { position: relative; }

.sxgc-wishlist-toggle {
  appearance: none;
  border: 1px solid #deddd9;
  background: rgba(255, 255, 255, .94);
  color: #111;
  cursor: pointer;
}

.sxgc-wishlist-toggle--card {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(17, 17, 17, .06);
}

.sxgc-wishlist-toggle--card svg { width: 17px; height: 17px; }

.sxgc-wishlist-toggle--single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 14px;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

.sxgc-wishlist-toggle--single svg { width: 18px; height: 18px; }
.sxgc-wishlist-toggle:hover svg { transform: scale(1.06); }
.sxgc-wishlist-toggle.is-saved svg,
.sxgc-wishlist-header.has-items svg { fill: #111; }
.sxgc-wishlist-toggle:focus-visible,
.sxgc-wishlist-header:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.sxgc-wishlist-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.sxgc-wishlist-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(17, 17, 17, .34);
  cursor: default;
}

.sxgc-wishlist-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 50px rgba(17, 17, 17, .12);
}

.sxgc-wishlist-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.sxgc-wishlist-drawer__header p {
  margin: 0 0 7px;
  color: #777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}

.sxgc-wishlist-drawer__header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.sxgc-wishlist-drawer__close {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sxgc-wishlist-drawer__items { display: grid; }

.sxgc-wishlist-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}

.sxgc-wishlist-item__image {
  display: block;
  width: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #ecebe8;
  background: #f7f7f5;
}

.sxgc-wishlist-item__image img { width: 100%; height: 100%; object-fit: contain; }
.sxgc-wishlist-item__copy { min-width: 0; }
.sxgc-wishlist-item__copy a { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.sxgc-wishlist-item__copy span { display: block; margin-top: 7px; color: #666; font-size: 12px; }
.sxgc-wishlist-item__remove { appearance: none; border: 0; background: transparent; color: #777; padding: 6px; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.sxgc-wishlist-drawer__empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 280px;
  text-align: center;
}

.sxgc-wishlist-drawer__empty p { margin: 0 0 12px; color: #666; font-size: 14px; }
.sxgc-wishlist-drawer__empty a { border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 12px; font-weight: 650; }
.sxgc-wishlist-open { overflow: hidden; }

@media (min-width: 1101px), (min-width:761px) and (max-width:1100px) and (orientation:portrait) {
  .sxgc-wishlist-drawer__purchase {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
  }

  .sxgc-wishlist-drawer__purchase > p {
    margin: 0 0 2px;
    color: #6d6a65;
    font-size: 12px;
    line-height: 1.5;
  }

  .sxgc-wishlist-drawer__purchase > button {
    appearance: none;
    min-height: 46px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 680;
    cursor: pointer;
    transition: opacity .18s ease;
  }

  .sxgc-wishlist-drawer__purchase > button:hover { opacity: .82; }
  .sxgc-wishlist-drawer__purchase > button:disabled { cursor: wait; opacity: .58; }
  .sxgc-wishlist-drawer__purchase > button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

  .sxgc-wishlist-drawer__purchase > a {
    justify-self: start;
    border-bottom: 1px solid rgba(17, 17, 17, .36);
    padding-bottom: 2px;
    font-size: 11px;
    font-weight: 620;
  }

  .sxgc-wishlist-drawer__status {
    min-height: 0;
    color: #8b3b2f;
    font-size: 11px;
    line-height: 1.45;
  }

  .sxgc-wishlist-drawer__status:empty { display: none; }
}

@media (max-width: 1100px) and (max-width:760px), (max-width: 1100px) and (orientation:landscape) {
  .sxgc-wishlist-drawer__purchase { display: none !important; }
}

@media (max-width: 560px) {
  .sxgc-wishlist-drawer__panel { padding: 22px 18px; }
  .sxgc-wishlist-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .sxgc-wishlist-item__image { width: 76px; }
  .sxgc-wishlist-item__remove { grid-column: 2; justify-self: start; padding: 0; }
  .sxgc-wishlist-toggle--card { top: 7px; right: 7px; width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sxgc-wishlist-header svg,
  .sxgc-wishlist-toggle svg { transition: none; }
}
