/* Mundo Steam Wishlist — styles aligned with mundosteam.shop palette */

.ms-wishlist-wrap,
.ms-wishlist-account,
.ms-wishlist-link,
.ms-wishlist-shared-wrap,
.ms-wishlist-modal {
  --msw-text:          #ffffff;
  --msw-muted:         rgba(255,255,255,0.65);
  --msw-muted-soft:    rgba(255,255,255,0.5);
  --msw-panel:         #1d1d1d;
  --msw-panel-tint:    rgba(255,255,255,0.03);
  --msw-border:        rgba(255,255,255,0.08);
  --msw-accent-a:      #0ea5e9;
  --msw-accent-b:      #38bdf8;
  --msw-accent-grad:   linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --msw-accent-shadow: 0 4px 16px 0 rgba(14,165,233,0.30);
  --msw-pink-a:        #ec4899;
  --msw-pink-b:        #f472b6;
  --msw-pink-grad:     linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  --msw-pink-shadow:   0 8px 24px rgba(236,72,153,0.25);
  --msw-radius-card:   16px;
  --msw-radius-btn:    14px;
  --msw-radius-pill:   9999px;
}

/* ============ Single product button ============ */
.ms-wishlist-wrap {
  margin: 14px 0 6px;
}

.ms-wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--msw-radius-btn);
  border: 1px solid rgba(14,165,233,0.25);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.08) 0%, rgba(56,189,248,0.04) 100%);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.2),
    0 0 0 1px rgba(14,165,233,0.1) inset;
  color: var(--msw-text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s, box-shadow .3s, background .3s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.ms-wishlist-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(14,165,233,0.15), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.ms-wishlist-btn:hover::before { opacity: 1; }
.ms-wishlist-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: msw-shimmer 3s infinite;
  pointer-events: none;
}
@keyframes msw-shimmer {
  0%   { left: -100%; }
  50%, 100% { left: 100%; }
}

.ms-wishlist-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.4);
  box-shadow:
    0 8px 24px rgba(14,165,233,0.25),
    0 4px 12px rgba(0,0,0,0.15),
    0 0 0 1px rgba(14,165,233,0.2) inset;
}

.ms-wishlist-btn .ms-fav-icon {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ms-wishlist-btn .ms-fav-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(14,165,233,0.3)); }
.ms-wishlist-btn .ms-heart-filled { opacity: 0; transition: opacity .25s ease; }
.ms-wishlist-btn .ms-heart-outline { opacity: 1; transition: opacity .25s ease; }
.ms-wishlist-btn:hover .ms-fav-icon { transform: scale(1.15); }

.ms-wishlist-btn .ms-fav-text {
  position: relative; z-index: 1; white-space: nowrap;
  color: var(--msw-muted);
}
.ms-wishlist-btn .ms-fav-word {
  background: var(--msw-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Added state */
.ms-wishlist-btn.is-added {
  border-color: rgba(236,72,153,0.35);
  background: linear-gradient(135deg, rgba(236,72,153,0.08) 0%, rgba(244,114,182,0.04) 100%);
}
.ms-wishlist-btn.is-added:hover {
  border-color: rgba(236,72,153,0.55);
  box-shadow:
    0 8px 24px rgba(236,72,153,0.25),
    0 4px 12px rgba(0,0,0,0.15),
    0 0 0 1px rgba(236,72,153,0.25) inset;
}
.ms-wishlist-btn.is-added .ms-heart-filled  { opacity: 1; }
.ms-wishlist-btn.is-added .ms-heart-outline { opacity: 0; }
.ms-wishlist-btn.is-added .ms-fav-word {
  background: var(--msw-pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Beat animation on add */
@keyframes msw-heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
}
.ms-wishlist-btn .ms-fav-icon.is-beating {
  animation: msw-heart-beat .6s ease-in-out;
}

/* Loading / disabled */
.ms-wishlist-btn.is-loading,
.ms-wishlist-btn[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.ms-wishlist-btn.is-loading .ms-fav-icon {
  animation: msw-spin 1s linear infinite;
}
@keyframes msw-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ============ Shop loop heart icon ============ */
.ms-wishlist-heart {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ms-wishlist-heart:hover {
  transform: scale(1.08);
  background: rgba(14,165,233,0.2);
  border-color: rgba(14,165,233,0.45);
  color: #38bdf8;
}
.ms-wishlist-heart svg { width: 18px; height: 18px; }
.ms-wishlist-heart .ms-heart-filled  { display: none; }
.ms-wishlist-heart .ms-heart-outline { display: block; }
.ms-wishlist-heart.is-added {
  background: rgba(236,72,153,0.18);
  border-color: rgba(236,72,153,0.5);
  color: #f472b6;
}
.ms-wishlist-heart.is-added .ms-heart-filled  { display: block; }
.ms-wishlist-heart.is-added .ms-heart-outline { display: none; }

/* Let the loop card position the heart absolutely inside it */
.products li.product { position: relative; }

/* ============ Account / shortcode page ============ */
.ms-wishlist-account {
  color: var(--msw-text);
  font-family: inherit;
}
.ms-wishlist-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background:
    radial-gradient(600px 160px at 0% 0%, rgba(14,165,233,0.12), transparent 60%),
    radial-gradient(600px 160px at 100% 100%, rgba(236,72,153,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), #1d1d1d;
  border: 1px solid var(--msw-border);
}
.ms-wishlist-account-head h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ms-wishlist-account-head h3 i {
  color: #f472b6;
  filter: drop-shadow(0 0 8px rgba(236,72,153,0.35));
}
.ms-wishlist-account-head p {
  margin: 0;
  color: var(--msw-muted);
  font-size: 13px;
}
.ms-wishlist-account-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ms-wishlist-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: var(--msw-radius-pill);
  background: var(--msw-accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--msw-accent-shadow);
}
.ms-wishlist-clear-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.ms-wishlist-clear-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
  background: rgba(239,68,68,0.08);
  box-shadow: 0 8px 18px -8px rgba(239,68,68,0.4);
}

/* Empty state */
.ms-wishlist-empty {
  text-align: center;
  padding: 50px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), #1d1d1d;
  border: 1px solid var(--msw-border);
}
.ms-wishlist-empty-icon {
  font-size: 42px;
  color: rgba(236,72,153,0.45);
  margin-bottom: 12px;
}
.ms-wishlist-empty p {
  margin: 0 0 18px;
  color: var(--msw-muted);
  font-size: 14px;
}
.ms-wishlist-shop-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--msw-radius-pill);
  background: var(--msw-accent-grad);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: var(--msw-accent-shadow);
  transition: transform .15s, box-shadow .25s;
}
.ms-wishlist-shop-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(14,165,233,0.55); }

/* --- Grid --- */
.ms-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* --- Card --- */
.ms-wishlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--msw-border);
  border-radius: var(--msw-radius-card);
  overflow: hidden;
  transition:
    transform .28s cubic-bezier(.4,0,.2,1),
    border-color .25s,
    box-shadow .35s;
}
.ms-wishlist-card::after {
  /* Inner ring that brightens on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: box-shadow .3s;
}
.ms-wishlist-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.45);
  box-shadow:
    0 24px 40px -20px rgba(0,0,0,0.6),
    0 14px 30px -14px rgba(14,165,233,0.45);
}
.ms-wishlist-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* --- Media (square, no crop — images are 1024x1024) --- */
.ms-wishlist-card-media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(80% 80% at 50% 50%, rgba(14,165,233,0.08), transparent 70%),
    #0a0b10;
  overflow: hidden;
}
.ms-wishlist-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;      /* 1:1 container + 1024×1024 source = no crop */
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1), filter .3s;
}
.ms-wishlist-card:hover .ms-wishlist-card-media img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Subtle gradient at bottom of image so badges read cleanly */
.ms-wishlist-card-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
}
.ms-wishlist-card:hover .ms-wishlist-card-media::after { opacity: 1; }

/* --- Badges (sale / out-of-stock) --- */
.ms-wishlist-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.ms-badge-sale {
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(16,185,129,0.15));
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.45);
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}
.ms-badge-oos {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(239,68,68,0.15));
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.45);
  top: auto; bottom: 12px; left: 12px;
  box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

/* --- Floating remove X (overlay, shows on hover) --- */
.ms-wishlist-remove-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10,10,14,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity .22s, transform .22s, background .2s, color .2s, border-color .2s;
  z-index: 3;
  font-family: inherit;
}
.ms-wishlist-card:hover .ms-wishlist-remove-btn,
.ms-wishlist-remove-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.ms-wishlist-remove-btn:hover {
  background: rgba(239,68,68,0.85);
  border-color: rgba(239,68,68,0.9);
  color: #fff;
  transform: scale(1.08);
}
.ms-wishlist-remove-btn i { font-size: 13px; }
/* Touch / no-hover devices: keep remove button visible */
@media (hover: none) {
  .ms-wishlist-remove-btn { opacity: 1; transform: scale(1); }
}

/* --- Card body --- */
.ms-wishlist-card-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ms-wishlist-card-name {
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em); /* reserves 2 lines so all cards align */
  transition: color .2s;
}
.ms-wishlist-card-name:hover { color: #38bdf8; }
.ms-wishlist-card-price {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ms-wishlist-card-price del {
  color: var(--msw-muted-soft);
  font-weight: 500;
  font-size: 12px;
  text-decoration: line-through;
}
.ms-wishlist-card-price ins { text-decoration: none; color: #38bdf8; }
.ms-wishlist-card-price .woocommerce-Price-amount { font-weight: 700; }

/* --- Actions: full-width add-to-cart (remove is now on the image) --- */
.ms-wishlist-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ms-wishlist-add-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--msw-radius-pill);
  background: var(--msw-accent-grad);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-decoration: none !important;
  border: 0;
  box-shadow: var(--msw-accent-shadow), inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform .15s, box-shadow .25s, filter .2s;
  font-family: inherit;
  cursor: pointer;
}
.ms-wishlist-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(56,189,248,0.6), inset 0 0 0 1px rgba(255,255,255,0.15);
  filter: brightness(1.08);
}
.ms-wishlist-add-btn.is-disabled {
  background: rgba(255,255,255,0.06);
  color: var(--msw-muted) !important;
  box-shadow: none;
}
.ms-wishlist-add-btn .fa-spinner { animation: msw-spin 1s linear infinite; }

/* --- Remove animation (when commit finally fires) --- */
.ms-wishlist-card.is-removing {
  animation: msw-fade-out .3s forwards;
}
@keyframes msw-fade-out {
  to { opacity: 0; transform: scale(0.92); }
}

/* ============ Header/menu link widget ============ */
.ms-wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--msw-text);
  text-decoration: none;
  font-weight: 600;
}
.ms-wishlist-link-icon {
  color: #f472b6;
}
.ms-wishlist-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--msw-muted);
  font-size: 11px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.ms-wishlist-counter.has-items {
  background: var(--msw-pink-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(236,72,153,0.3);
}

/* ============ Bulk "Add all" + Share buttons ============ */
/* "Agregar todos al carrito" is the primary action — full gradient,
   sits next to two secondary outline buttons (share + clear).       */
.ms-wishlist-bulk-btn,
.ms-wishlist-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s, filter .2s;
  font-family: inherit;
}

/* Primary: gradient */
.ms-wishlist-bulk-btn {
  background: var(--msw-accent-grad);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: var(--msw-accent-shadow), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.ms-wishlist-bulk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(56,189,248,0.55), inset 0 0 0 1px rgba(255,255,255,0.15);
  filter: brightness(1.08);
}
.ms-wishlist-bulk-btn.is-loading { pointer-events: none; opacity: .85; }

/* Secondary: subtle pink outline for share */
.ms-wishlist-share-btn {
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f472b6;
}
.ms-wishlist-share-btn:hover {
  transform: translateY(-1px);
  background: rgba(236,72,153,0.18);
  border-color: rgba(236,72,153,0.5);
  box-shadow: 0 8px 18px -8px rgba(236,72,153,0.45);
  color: #f9a8d4;
}

/* ============ Hint row ============ */
.ms-wishlist-hint {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--msw-muted);
  font-size: 12px;
  margin: 0 0 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 999px;
}
.ms-wishlist-hint i { color: #38bdf8; }

/* ============ Card: drag handle + placeholder ============ */
.ms-wishlist-card { position: relative; }
/* Drag handle sits at top-right, next to the remove X. Both appear on
   hover, stacked horizontally. Badges get the top-left corner clean.   */
.ms-wishlist-card-drag {
  position: absolute;
  top: 10px;
  right: 52px;            /* remove X is right:10 + width:32 + 10 gap */
  z-index: 4;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10,10,14,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  cursor: grab;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity .22s, transform .22s, color .2s, background .2s, border-color .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ms-wishlist-card-drag i { font-size: 12px; }
.ms-wishlist-card:hover .ms-wishlist-card-drag,
.ms-wishlist-card.is-dragging .ms-wishlist-card-drag {
  opacity: 1;
  transform: scale(1);
}
.ms-wishlist-card-drag:hover {
  color: #38bdf8;
  background: rgba(14,165,233,0.25);
  border-color: rgba(14,165,233,0.6);
  transform: scale(1.08);
}
.ms-wishlist-card-drag:active { cursor: grabbing; }
.ms-wishlist-card.is-dragging {
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.7), 0 0 0 2px rgba(14,165,233,0.5);
  transform: scale(1.02);
  z-index: 10;
}
.ms-wishlist-card-placeholder {
  border-radius: var(--msw-radius-card);
  border: 2px dashed rgba(14,165,233,0.45);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(14,165,233,0.04),
      rgba(14,165,233,0.04) 10px,
      rgba(14,165,233,0.08) 10px,
      rgba(14,165,233,0.08) 20px
    );
  min-height: 100%;
}

/* Touch devices: keep drag handle always visible */
@media (hover: none) {
  .ms-wishlist-card-drag { opacity: 1; transform: scale(1); }
}

/* Pending-remove (undo state) */
.ms-wishlist-card.is-pending-remove {
  opacity: 0.35;
  transform: scale(0.97);
  pointer-events: none;
  filter: grayscale(0.6);
  transition: opacity .25s, transform .25s, filter .25s;
}

/* ============ Share modal ============ */
.ms-wishlist-modal {
  position: fixed; inset: 0;
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ms-wishlist-modal[hidden] { display: none !important; }
.ms-wishlist-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: msw-fadein .2s ease;
}
.ms-wishlist-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)), #1d1d1d;
  border: 1px solid rgba(236,72,153,0.3);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(236,72,153,0.15) inset;
  color: #fff;
  text-align: center;
  animation: msw-pop .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes msw-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes msw-pop    { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.ms-wishlist-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.ms-wishlist-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.ms-wishlist-modal-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(14,165,233,0.15));
  color: #f472b6;
  font-size: 24px;
  box-shadow: 0 10px 24px -10px rgba(236,72,153,0.4);
}
.ms-wishlist-modal-panel h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.ms-wishlist-modal-desc {
  color: var(--msw-muted);
  font-size: 13px;
  margin: 0 0 22px;
}

.ms-wishlist-share-url {
  display: flex; gap: 8px;
  margin-bottom: 14px;
}
.ms-wishlist-share-url input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-wishlist-share-url input:focus {
  outline: none;
  border-color: rgba(14,165,233,0.5);
}
.ms-wishlist-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--msw-accent-grad);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: filter .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--msw-accent-shadow);
  font-family: inherit;
}
.ms-wishlist-copy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ms-wishlist-copy-btn.is-copied {
  background: #10b981;
  box-shadow: 0 4px 16px 0 rgba(16,185,129,0.3);
}

.ms-wishlist-share-actions {
  display: flex; gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ms-wishlist-share-rotate,
.ms-wishlist-share-revoke {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--msw-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s, background .2s;
}
.ms-wishlist-share-rotate:hover {
  border-color: rgba(14,165,233,0.5);
  color: #38bdf8;
  background: rgba(14,165,233,0.08);
}
.ms-wishlist-share-revoke:hover {
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
  background: rgba(239,68,68,0.08);
}

/* ============ Shared public page ============ */
.ms-wishlist-shared-wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  color: #fff;
}
.ms-wishlist-shared-head {
  text-align: center;
  margin: 24px 0 32px;
  padding: 30px 24px;
  border-radius: 20px;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(14,165,233,0.18), transparent 60%),
    radial-gradient(700px 220px at 100% 100%, rgba(236,72,153,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), #1d1d1d;
  border: 1px solid var(--msw-border);
}
.ms-wishlist-shared-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.3);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.ms-wishlist-shared-head h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}
.ms-wishlist-shared-head p {
  margin: 0;
  color: var(--msw-muted);
}
.ms-wishlist-shared-cta {
  margin: 32px 0 16px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(14,165,233,0.06));
  border: 1px solid rgba(236,72,153,0.2);
  text-align: center;
}
.ms-wishlist-shared-cta i {
  color: #f472b6;
  font-size: 28px;
  margin-bottom: 8px;
}
.ms-wishlist-shared-cta p {
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
}
.ms-wishlist-shared-404 {
  text-align: center;
  padding: 60px 30px;
}
.ms-wishlist-shared-404-icon {
  font-size: 56px;
  color: rgba(236,72,153,0.5);
  margin-bottom: 12px;
}

/* ============ Toast (top-center, user's natural line of sight) ============
   Positioned ~90px from top — below any sticky header, well within easy
   reach for clicking the action button, and away from the Crisp bubble.  */
.ms-wishlist-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px) scale(0.96);
  z-index: 99999;
  max-width: min(460px, calc(100vw - 32px));
  min-width: 280px;
  padding: 14px 18px 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)), #1d1d1d;
  border: 1px solid rgba(14,165,233,0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow:
    0 24px 60px -18px rgba(0,0,0,0.7),
    0 10px 24px -8px rgba(14,165,233,0.4),
    0 0 0 1px rgba(14,165,233,0.18) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.ms-wishlist-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.ms-wishlist-toast.is-pink {
  border-color: rgba(236,72,153,0.4);
  box-shadow:
    0 24px 60px -18px rgba(0,0,0,0.7),
    0 10px 24px -8px rgba(236,72,153,0.4),
    0 0 0 1px rgba(236,72,153,0.2) inset;
}
.ms-wishlist-toast.is-error {
  border-color: rgba(239,68,68,0.45);
  box-shadow:
    0 24px 60px -18px rgba(0,0,0,0.7),
    0 10px 24px -8px rgba(239,68,68,0.4),
    0 0 0 1px rgba(239,68,68,0.2) inset;
}
.ms-wishlist-toast i {
  font-size: 18px;
  flex-shrink: 0;
}
.ms-wishlist-toast.is-pink i { color: #f472b6; }
.ms-wishlist-toast.is-error i { color: #f87171; }
.ms-wishlist-toast:not(.is-pink):not(.is-error) i { color: #38bdf8; }
.ms-wishlist-toast > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-wishlist-toast .ms-toast-action {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14,165,233,0.22);
  color: #7dd3fc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(14,165,233,0.35);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.ms-wishlist-toast .ms-toast-action:hover {
  background: rgba(14,165,233,0.35);
  border-color: rgba(14,165,233,0.6);
  color: #fff;
  transform: translateY(-1px);
}
.ms-wishlist-toast.is-pink .ms-toast-action {
  background: rgba(236,72,153,0.2);
  border-color: rgba(236,72,153,0.35);
  color: #f9a8d4;
}
.ms-wishlist-toast.is-pink .ms-toast-action:hover {
  background: rgba(236,72,153,0.35);
  border-color: rgba(236,72,153,0.6);
  color: #fff;
}

/* Mobile: full-width at top with small insets */
@media (max-width: 520px) {
  .ms-wishlist-toast {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: translateY(-16px) scale(0.96);
    min-width: 0;
    max-width: none;
  }
  .ms-wishlist-toast.is-visible {
    transform: translateY(0) scale(1);
  }
  .ms-wishlist-toast > span { white-space: normal; }
}

/* Respect admin bar when logged-in WP admin */
body.admin-bar .ms-wishlist-toast {
  top: calc(90px + 32px);
}
@media (max-width: 782px) {
  body.admin-bar .ms-wishlist-toast { top: calc(90px + 46px); }
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .ms-wishlist-btn { padding: 10px 14px; font-size: 13px; gap: 8px; }
  .ms-wishlist-btn .ms-fav-icon { width: 18px; height: 18px; }
  .ms-wishlist-account-head { flex-wrap: wrap; padding: 16px; }
  .ms-wishlist-account-actions { flex-wrap: wrap; width: 100%; }
  .ms-wishlist-bulk-btn, .ms-wishlist-share-btn, .ms-wishlist-clear-btn { flex: 1; justify-content: center; }
  .ms-wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .ms-wishlist-card-drag { opacity: 1; }
  .ms-wishlist-modal-panel { padding: 28px 20px 20px; }
  .ms-wishlist-shared-head h1 { font-size: 22px; }
  .ms-wishlist-card-body { padding: 10px; gap: 8px; }
  .ms-wishlist-card-name { font-size: 12.5px; }
  .ms-wishlist-card-price { font-size: 14px; }
  .ms-wishlist-add-btn { padding: 10px 12px; font-size: 12px; }
  /* Keep remove as floating overlay on mobile too — no more full-width X */
  .ms-wishlist-remove-btn { opacity: 1; }
}
@media (max-width: 480px) {
  /* Collapse header action buttons to icon-only so they fit comfortably */
  .ms-wishlist-bulk-btn span,
  .ms-wishlist-share-btn span,
  .ms-wishlist-clear-btn span { display: none; }
  .ms-wishlist-bulk-btn,
  .ms-wishlist-share-btn,
  .ms-wishlist-clear-btn {
    padding: 10px;
    min-width: 44px;
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .ms-wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============ Accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  .ms-wishlist-btn,
  .ms-wishlist-btn::before,
  .ms-wishlist-btn::after,
  .ms-wishlist-btn .ms-fav-icon,
  .ms-wishlist-heart,
  .ms-wishlist-card,
  .ms-wishlist-toast {
    animation: none !important;
    transition: none !important;
  }
}
