/* ==========================================================================
   The wish list (rpg-shop 1.105.0) — the product page's heart button, the
   My Account tab, the line on the Guild Door.

   Tokens are the chrome's (rpg-site-styles ml-chrome.css): --gold, --gold-hi,
   --brass, --brass-ink, --forest, --forest-deep, --ink, --muted, --book,
   --r-md, --ease-out. Flat single-class selectors where it matters, because
   LiteSpeed's UCSS keeps those most reliably for guests. `.is-saved`,
   `.is-pop` and `.is-going` are set by JS — they need the UCSS allowlist
   (see rpg-shop CLAUDE.md), and the SAVED look is also printed server-side,
   so a stripped class costs only the animation.
   ========================================================================== */

/* -------------------------------------------------------- the button row --- */
/* `.rpg-ml` in front because the chrome's reset
   `.rpg-ml :is(…, p, form, …){ margin:0 }` is (0,1,1) and ate a bare
   `.wishrow`'s margin for members, whose row is a <form> (1.105.1). */
.rpg-ml .wishrow{ display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px;
  margin:20px 0 4px; } /* 1.106.1: 14 → 20, clear of PayPal's button above */

.wishrow .wishbtn{ appearance:none; -webkit-appearance:none; display:inline-flex;
  align-items:center; justify-content:center; gap:9px; min-height:46px;
  padding:11px 20px; border-radius:var(--r-md,10px);
  border:1.5px solid var(--brass,#ac8748); background:transparent;
  color:var(--brass-ink,#7a5a22); font:inherit; font-weight:700; font-size:14px;
  line-height:1.2; text-decoration:none; cursor:pointer;
  transition:background-color .2s, border-color .2s, color .2s, transform .16s var(--ease-out,ease-out); }
.wishrow .wishbtn:hover{ background:rgba(172,135,72,.10); transform:translateY(-1px); }
.wishrow .wishbtn:focus-visible{ outline:3px solid var(--gold,#dcb75f); outline-offset:2px; }
.wishrow .wishbtn:active{ transform:translateY(0); }

.wishheart{ flex:0 0 auto; width:20px; height:20px; fill:transparent;
  stroke:currentColor; stroke-width:1.9; stroke-linejoin:round;
  transition:fill .2s, stroke .2s, transform .3s var(--ease-out,ease-out); }

/* Saved: a deep wax red, the same family as the Guild Door's seal, so the
   heart reads "kept" rather than "warning". 7.3:1 on parchment. */
.wishrow .wishbtn.is-saved,
.wishrow .wishbtn[aria-pressed="true"]{ border-color:#8e3427; color:#8e3427;
  background:rgba(142,52,39,.07); }
.wishrow .wishbtn.is-saved .wishheart,
.wishrow .wishbtn[aria-pressed="true"] .wishheart{ fill:#a8402f; stroke:#8e3427; }

.wishrow .wishbtn.is-going{ opacity:.7; pointer-events:none; }
.wishrow .wishbtn.is-pop .wishheart{ animation:rpg-wish-pop .42s var(--ease-out,ease-out); }
@keyframes rpg-wish-pop{
  0%{ transform:scale(1); } 35%{ transform:scale(1.32); } 70%{ transform:scale(.92); } 100%{ transform:scale(1); }
}

.wishgo{ font-size:13.5px; font-weight:600; color:var(--forest,#1c3a30);
  text-decoration:underline; text-underline-offset:3px; }
.wishgo[hidden]{ display:none; }

/* Phone: the button spans the buy column like the add button above it, and
   the "View wish list" link sits centred under it. */
@media (max-width:600px){
  .rpg-ml .wishrow{ flex-direction:column; align-items:stretch; gap:8px; }
  .wishrow .wishbtn{ width:100%; min-height:48px; }
  .wishgo{ align-self:center; padding:4px 0; }
}

/* ------------------------------------------------------- the account tab --- */
.wishpane{ display:block; }

.rpg-ml .wishsum{ margin:0 0 18px; font-size:14px; color:var(--muted,#6b604c); }
.wishsum b{ font-family:var(--serif,inherit); font-size:20px; color:var(--ink,#22190e); margin-right:2px; }

.wishgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:18px; }

.wishitem{ display:flex; flex-direction:column; min-width:0;
  transition:opacity .25s, transform .25s; }
.wishitem .prod{ flex:1 1 auto; }
.wishitem.is-going{ opacity:0; transform:scale(.96); }

.wishfoot{ display:flex; align-items:center; justify-content:space-between;
  gap:8px; padding:8px 2px 0; }
.wishwhen{ font-size:12px; color:var(--muted,#6b604c); }
.wishfoot form{ margin:0; margin-left:auto; }

.wishfoot .wishrm{ appearance:none; -webkit-appearance:none; display:inline-flex;
  align-items:center; gap:5px; min-height:36px; padding:6px 12px;
  border-radius:999px; border:1px solid rgba(34,25,14,.18); background:transparent;
  color:var(--ink,#22190e); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
  transition:background-color .2s, border-color .2s, color .2s; }
.wishfoot .wishrm span[aria-hidden]{ font-size:15px; line-height:1; }
.wishfoot .wishrm:hover{ border-color:#8e3427; color:#8e3427; background:rgba(142,52,39,.06); }
.wishfoot .wishrm:focus-visible{ outline:3px solid var(--gold,#dcb75f); outline-offset:2px; }

/* Two cards a row on a phone, like the shop grid; the footer stacks so
   "Saved 3 Nov" and Remove never squeeze a 150px card. */
@media (max-width:600px){
  .wishgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .wishfoot{ flex-direction:column; align-items:stretch; gap:6px; }
  .wishfoot form{ margin-left:0; }
  .wishfoot .wishrm{ width:100%; justify-content:center; min-height:40px; }
  .wishwhen{ text-align:center; }
}

/* ------------------------------------------------- sharing (1.106.0) --- */
.wishshare{ display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px 18px;
  margin:0 0 22px; padding:16px 18px; border-radius:14px;
  border:1px solid rgba(172,135,72,.45); background:rgba(220,183,95,.08); }
.wishshare[hidden], .wishshare [hidden]{ display:none !important; }
.wishshare__txt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.wishshare__txt b{ font-family:var(--serif,inherit); font-size:17px; color:var(--ink,#22190e); }
.wishshare__txt span{ font-size:13.5px; line-height:1.5; color:var(--muted,#6b604c); }
.rpg-ml .wishshare form{ margin:0; }

.wishshare .wishsharebtn{ appearance:none; display:inline-flex; align-items:center; gap:8px;
  min-height:44px; padding:10px 18px; border-radius:var(--r-md,10px); border:0;
  background:var(--forest,#1c3a30); color:#f6eeda; font:inherit; font-size:14px; font-weight:700;
  cursor:pointer; white-space:nowrap; transition:background-color .2s, transform .16s var(--ease-out,ease-out); }
.wishshare .wishsharebtn:hover{ background:var(--forest-deep,#122a22); transform:translateY(-1px); }
.wishshare .wishsharebtn:disabled{ opacity:.7; cursor:progress; }
.wishshare .wishsharebtn:focus-visible,
.wishshare .wishcopy:focus-visible,
.wishshare .wishunshare:focus-visible{ outline:3px solid var(--gold,#dcb75f); outline-offset:2px; }
.wishshareicon{ flex:0 0 auto; }

.wishshare__link{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.wishshare__link input{ flex:1 1 260px; min-width:0; height:42px; padding:0 12px;
  border:1px solid rgba(34,25,14,.2); border-radius:var(--r-md,10px); background:#fffdf7;
  color:var(--ink,#22190e); font:inherit; font-size:13.5px; }
.wishshare .wishcopy{ appearance:none; min-height:42px; padding:8px 16px; border-radius:var(--r-md,10px);
  border:1.5px solid var(--brass,#ac8748); background:transparent; color:var(--brass-ink,#7a5a22);
  font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; white-space:nowrap; min-width:96px; }
.wishshare .wishcopy:hover{ background:rgba(172,135,72,.10); }
.wishpeek{ font-size:13px; font-weight:600; color:var(--forest,#1c3a30);
  text-decoration:underline; text-underline-offset:3px; }
.wishshare__stop{ margin-left:auto !important; }
.wishshare .wishunshare{ appearance:none; padding:6px 2px; border:0; background:none;
  color:#8e3427; font:inherit; font-size:13px; font-weight:600; cursor:pointer;
  text-decoration:underline; text-underline-offset:3px; }

@media (max-width:600px){
  .wishshare{ grid-template-columns:1fr; padding:14px; }
  .wishshare .wishsharebtn{ width:100%; justify-content:center; min-height:48px; }
  .wishshare__link input{ flex-basis:100%; }
  .wishshare .wishcopy{ flex:1 1 auto; }
  .wishshare__stop{ margin-left:0 !important; flex-basis:100%; text-align:center; }
}

/* The shared page: the owner's note above the cards. */
.rpg-ml .wishownernote{ margin:0 0 18px; padding:10px 14px; border-radius:10px;
  background:rgba(28,58,48,.07); font-size:13.5px; color:var(--ink,#22190e); }
.wishownernote a{ font-weight:700; color:var(--forest,#1c3a30); margin-left:6px; }
.rpg-ml .wishsharedsec{ padding-top:34px; }

/* ----------------------------------------------------------- empty state --- */
.wishempty{ max-width:460px; margin:10px auto; padding:34px 22px 30px;
  text-align:center; border:1px dashed rgba(172,135,72,.55);
  border-radius:16px; background:rgba(220,183,95,.06); }
.wishempty[hidden]{ display:none; }
.wishempty__heart{ display:inline-grid; place-items:center; width:62px; height:62px;
  border-radius:50%; color:#8e3427; background:rgba(142,52,39,.08); margin-bottom:10px; }
.wishempty__heart .wishheart{ width:30px; height:30px; fill:rgba(168,64,47,.18); }
.wishempty h2{ margin:4px 0 8px; font-size:22px; }
.wishempty p{ margin:0 auto 18px; max-width:36ch; font-size:14.5px; line-height:1.55; color:var(--muted,#6b604c); }

/* --------------------------------------------- the Guild Door's band seal --- */
.wishseal .wishheart{ width:19px; height:19px; fill:#f6e6d0; stroke:none; }

/* --------------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion:reduce){
  .wishrow .wishbtn, .wishheart, .wishitem, .wishfoot .wishrm{ transition:none; }
  .wishrow .wishbtn.is-pop .wishheart{ animation:none; }
  .wishrow .wishbtn:hover{ transform:none; }
}
