.xzed-wishlist-toggle,
.xzed-product-wishlist[data-xzed-wishlist-managed="plugin"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  background: var(--xzed-surface, #fff);
  color: var(--xzed-text, #25221f);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.xzed-wishlist-toggle { padding: .6rem .8rem; }
.xzed-wishlist-toggle svg { width: 18px; height: 18px; }
.xzed-wishlist-toggle:hover,
.xzed-wishlist-toggle:focus-visible,
.xzed-wishlist-toggle.is-active,
.xzed-product-wishlist[data-xzed-wishlist-managed="plugin"].is-active {
  border-color: #8f5b62;
  background: #fff5f6;
  color: #7d3f49;
}
.xzed-wishlist-toggle.is-active svg,
.xzed-product-wishlist[data-xzed-wishlist-managed="plugin"].is-active svg { fill: currentColor; }
.xzed-wishlist-toggle:disabled { opacity: .55; cursor: wait; }

.xzed-wishlist-page { direction: rtl; }
.xzed-wishlist-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid #eadfd7;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #fbf6f2);
}
.xzed-wishlist-page__header h2 { margin: .3rem 0 .5rem; }
.xzed-wishlist-page__header p { margin: 0; color: #6c625c; }
.xzed-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.xzed-wishlist-empty,
.xzed-wishlist-loading,
.xzed-wishlist-error {
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  border: 1px dashed #d7c8be;
  border-radius: 22px;
  text-align: center;
  background: #fffdfa;
}
.xzed-wishlist-empty .dashicons { width: 48px; height: 48px; font-size: 48px; color: #9b6870; }
.xzed-wishlist-empty h3 { margin: .8rem 0 .4rem; }
.xzed-wishlist-empty p { margin: 0 0 1rem; color: #6c625c; }
.xzed-wishlist-card img { width: 100%; height: auto; border-radius: 16px; }

.xzed-product-alerts { display: grid; gap: .7rem; margin-top: .85rem; }
.xzed-product-alert {
  border: 1px solid #e4d9d1;
  border-radius: 16px;
  background: #fffdfb;
  overflow: clip;
}
.xzed-product-alert summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.xzed-product-alert summary::-webkit-details-marker { display: none; }
.xzed-product-alert summary > span:last-child { display: grid; gap: .15rem; }
.xzed-product-alert summary strong { font-size: .94rem; }
.xzed-product-alert summary small { color: #766b64; line-height: 1.5; }
.xzed-product-alert[open] summary { border-bottom: 1px solid #eee4dd; background: #fbf6f2; }
.xzed-alert-form { position: relative; display: grid; gap: .8rem; padding: 1rem; }
.xzed-alert-field { display: grid; gap: .35rem; }
.xzed-alert-field > span { font-weight: 700; font-size: .88rem; }
.xzed-alert-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8ccc4;
  border-radius: 12px;
  padding: .65rem .75rem;
  background: #fff;
}
.xzed-alert-field small { color: #766b64; line-height: 1.6; }
.xzed-alert-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; line-height: 1.7; color: #655c57; }
.xzed-alert-consent input { margin-top: .35rem; }
.xzed-alert-honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.xzed-alert-variation-note {
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: rgba(143, 91, 98, .08);
  color: #655c57;
  font-size: .84rem;
  line-height: 1.7;
}
.xzed-alert-form__message { min-height: 1.6em; margin: 0; font-size: .86rem; }
.xzed-alert-form.is-success .xzed-alert-form__message { color: #217a4c; }
.xzed-alert-form.has-error .xzed-alert-form__message { color: #a53232; }

.xzed-sc-toast {
  position: fixed;
  z-index: 99999;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(92vw, 440px);
  padding: .72rem 1rem;
  border-radius: 999px;
  background: #28231f;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
  text-align: center;
}

@media (max-width: 900px) {
  .xzed-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .xzed-wishlist-page__header { display: grid; }
  .xzed-wishlist-page__header .button { width: 100%; justify-content: center; }
  .xzed-wishlist-grid { grid-template-columns: 1fr; }
  .xzed-product-alert summary { align-items: flex-start; }
}
