/* WHEIF Stray No More — Feed a Friend (builds on wheif.css tokens) */

.wheif-body--stray,
.wheif-body--staff,
.wheif-body--staff-login {
    background: var(--wh-bg);
    color: var(--wh-text);
    min-height: 100vh;
}

.wheif-muted { color: var(--wh-muted); }

.wheif-btn--sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.wheif-btn--danger { background: #b3261e; color: #fff; }
.wheif-btn--danger:hover { background: #8f1d17; }

/* ---- Shared top nav (premium translucent, matches home) ---- */
.wheif-stray-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    position: sticky; top: 0; z-index: 200;
    background: rgba(15, 51, 41, 0.72);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s, box-shadow 0.3s;
}
.wheif-stray-nav.is-scrolled {
    background: rgba(15, 51, 41, 0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.wheif-stray-nav__right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wheif-stray-nav .wheif-brand__logo {
    height: 34px; width: auto; background: #fff;
    padding: 5px 10px; border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wheif-stray-nav .wheif-brand:hover .wheif-brand__logo { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.wheif-stray-nav .wheif-lang { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.18rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.12); }
.wheif-stray-nav .wheif-lang__btn { color: rgba(255,255,255,0.72); padding: 0.32rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; }
.wheif-stray-nav .wheif-lang__btn:hover { color: #fff; }
.wheif-stray-nav .wheif-lang__btn.is-active { color: #2a2208; background: var(--wh-gold); }

/* ---- Feed hero banner (emotional, image-backed like home) ---- */
.wheif-feed__banner {
    position: relative; overflow: hidden;
    margin-top: -1px; /* tuck under the translucent sticky nav */
    color: #fff;
}
.wheif-feed__banner-media { position: absolute; inset: 0; }
.wheif-feed__banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.wheif-feed__banner-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15,51,41,0.55) 0%, rgba(15,51,41,0.35) 35%, rgba(15,51,41,0.92) 100%),
        linear-gradient(90deg, rgba(15,51,41,0.7) 0%, transparent 60%);
}
.wheif-feed__banner-inner {
    position: relative; z-index: 2; max-width: var(--wh-max); margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}
.wheif-feed__banner h1 { font-family: var(--wh-serif); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0.4rem 0 0.9rem; max-width: 18ch; }
.wheif-feed__banner h1 em { font-style: italic; color: var(--wh-gold-light); }
.wheif-feed__lead { max-width: 40rem; margin: 0 0 1.5rem; font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.65; color: rgba(255,255,255,0.92); }
.wheif-feed__lead strong { color: var(--wh-gold-light); }
.wheif-feed__banner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

.wheif-feed__how { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wheif-feed__how-chip {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.95rem; border-radius: 999px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.84rem; color: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
}
.wheif-feed__how-chip b { color: var(--wh-gold-light); font-weight: 700; }

/* ---- Feed list body ---- */
.wheif-feed { max-width: var(--wh-max); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem; }

.wheif-feed__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.wheif-feed__toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; justify-items: center; }
.wheif-feed__search { display: grid; gap: 0.35rem; width: min(100%, 28rem); }
.wheif-feed__search-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wh-muted, #5c6570); }
.wheif-feed__search input {
    width: 100%; border: 1px solid rgba(20, 40, 30, 0.14); border-radius: 999px;
    padding: 0.7rem 1.1rem; font: inherit; background: #fff; color: var(--wh-bg-deep);
}
.wheif-feed__search input:focus { outline: 2px solid rgba(40, 120, 80, 0.35); outline-offset: 1px; }
.wheif-feed__search-empty { text-align: center; color: var(--wh-muted, #5c6570); margin: 0 0 1rem; }
.wheif-feed__toolbar .wheif-feed__filters { margin-bottom: 0; }
.wheif-feed__filters button {
    border: 1.5px solid var(--wh-line); background: #fff; color: var(--wh-text);
    padding: 0.5rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.wheif-feed__filters button:hover { transform: translateY(-1px); border-color: var(--wh-green-light); }
.wheif-feed__filters button.is-active { background: var(--wh-bg-deep); color: #fff; border-color: var(--wh-bg-deep); }
.wheif-feed__empty { text-align: center; color: var(--wh-muted); padding: 3rem 0; }
.wheif-feed__more { display: flex; justify-content: center; margin: 1.75rem 0 0.5rem; }
.wheif-feed__more[hidden] { display: none !important; }
.wheif-feed__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.5rem; }
.wheif-card {
    position: relative; background: var(--wh-panel); border-radius: var(--wh-radius);
    overflow: hidden; box-shadow: var(--wh-shadow); display: flex; flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wheif-card:hover { transform: translateY(-6px); box-shadow: var(--wh-shadow-lg); }
.wheif-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 3;
    background: transparent; transition: background 0.2s;
}
.wheif-card--empty::before { background: #d9534f; }
.wheif-card--soon::before { background: var(--wh-gold); }
.wheif-card__link { display: flex; flex-direction: column; flex: 1; }
.wheif-card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--wh-bg-soft), #e3ede7); overflow: hidden; }
.wheif-card__photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.wheif-card__placeholder--cover { display: none; position: absolute; inset: 0; z-index: 0; }
.wheif-card__media--fallback .wheif-card__photo { display: none; }
.wheif-card__media--fallback .wheif-card__placeholder--cover { display: grid; z-index: 1; }
.wheif-card__media .wheif-badge { z-index: 2; }
.wheif-card__media img.wheif-card__photo { transition: transform 0.5s ease; }
.wheif-card:hover .wheif-card__media img.wheif-card__photo { transform: scale(1.06); }
.wheif-card__media::after {
    content: ""; position: absolute; inset: 40% 0 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(15,51,41,0.18));
}
.wheif-card__placeholder { display: grid; place-items: center; gap: 0.4rem; height: 100%; position: relative; z-index: 0; }
.wheif-card__placeholder img { width: 42%; max-width: 110px; height: auto; opacity: 0.5; }
.wheif-card__placeholder span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wh-muted); opacity: 0.8; }
.wheif-card__placeholder--0 { background: linear-gradient(135deg, #eef5f1, #d9e8e0); }
.wheif-card__placeholder--1 { background: linear-gradient(135deg, #f4efe4, #e7dcc6); }
.wheif-card__placeholder--2 { background: linear-gradient(135deg, #e9f0ef, #d2e2dd); }
.wheif-card__body { padding: 1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.wheif-card__code { margin: 0; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wh-muted); }
.wheif-card__name { margin: 0; font-family: var(--wh-serif); font-size: 1.55rem; line-height: 1.1; color: var(--wh-bg-deep); }
.wheif-card__meta { margin: 0; color: var(--wh-muted); font-size: 0.9rem; }
.wheif-card__meta strong { color: var(--wh-bg-deep); }
.wheif-card__named { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--wh-gold-dark); display: flex; gap: 0.25rem; align-items: baseline; }
.wheif-card__food { margin-top: auto; padding-top: 0.6rem; }
.wheif-card__cta { margin: 0 1.15rem 1.15rem; text-align: center; }

.wheif-foodbar { height: 9px; border-radius: 999px; background: var(--wh-line); overflow: hidden; margin-bottom: 0.45rem; }
.wheif-foodbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--wh-green), var(--wh-green-light)); border-radius: 999px; transition: width 0.6s ease; }
.wheif-card--empty .wheif-foodbar span { background: #d9534f; }
.wheif-card--soon .wheif-foodbar span { background: linear-gradient(90deg, var(--wh-gold-dark), var(--wh-gold)); }

/* ---- Game-style HP food bar ---- */
.wheif-hp {
    position: relative; height: 20px; border-radius: 7px; overflow: hidden;
    background:
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 9px, transparent 9px 10px),
        rgba(15, 51, 41, 0.12);
    border: 1px solid rgba(15, 51, 41, 0.18); margin-bottom: 0.45rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.wheif-hp--lg { height: 26px; border-radius: 9px; }
.wheif-hp__fill {
    position: absolute; top: 0; left: 0; bottom: 0; width: 0;
    border-radius: 6px; transition: width 0.6s ease;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), linear-gradient(90deg, #2fbfa4, #1f8f7a);
}
.wheif-hp__val {
    position: relative; z-index: 2; display: block; text-align: center;
    font-size: 0.72rem; font-weight: 800; line-height: 20px; letter-spacing: 0.04em;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.wheif-hp--lg .wheif-hp__val { line-height: 26px; font-size: 0.82rem; }

.wheif-hp--blue .wheif-hp__fill { background-image: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), linear-gradient(90deg, #3aa0e6, #1f6fb0); }
.wheif-hp--teal .wheif-hp__fill { background-image: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), linear-gradient(90deg, #2fbfa4, #1f8f7a); }
.wheif-hp--orange .wheif-hp__fill { background-image: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 55%), linear-gradient(90deg, #f4b13a, #dc8a1e); }
.wheif-hp--red .wheif-hp__fill { background-image: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), linear-gradient(90deg, #e8604a, #c8341f); }
.wheif-hp--critical .wheif-hp__fill,
.wheif-hp--empty .wheif-hp__fill { background-image: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%), linear-gradient(90deg, #ff5a4d, #d21f10); }

/* Flashing "needs food now" states */
.wheif-hp--critical, .wheif-hp--empty { border-color: #d21f10; animation: wheif-hp-pulse 1s ease-in-out infinite; }
.wheif-hp--critical .wheif-hp__fill, .wheif-hp--empty .wheif-hp__fill { animation: wheif-hp-blink 0.9s ease-in-out infinite; }
@keyframes wheif-hp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes wheif-hp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(210,31,16,0.5); } 50% { box-shadow: 0 0 0 4px rgba(210,31,16,0); } }
@media (prefers-reduced-motion: reduce) {
    .wheif-hp--critical, .wheif-hp--empty, .wheif-hp--critical .wheif-hp__fill, .wheif-hp--empty .wheif-hp__fill { animation: none; }
}

.wheif-badge {
    position: absolute; top: 0.7rem; left: 0.7rem; z-index: 4;
    padding: 0.32rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.02em; background: rgba(255,255,255,0.94); color: var(--wh-text);
    box-shadow: 0 4px 14px rgba(15,51,41,0.18);
}
.wheif-badge--empty { background: #d9534f; color: #fff; }
.wheif-badge--soon { background: var(--wh-gold); color: #3a2c00; }
.wheif-badge--ok { background: #2f9e63; color: #fff; }
.wheif-badge--adopted { background: #4a6cf7; color: #fff; }
.wheif-badge--rainbow { background: #7a5cad; color: #fff; }

.wheif-feed__general {
    text-align: center; margin-top: 3.5rem; padding: 2.5rem 1.5rem;
    border-radius: var(--wh-radius); background: var(--wh-bg-soft); border: 1px solid var(--wh-line);
}
.wheif-feed__general p { margin: 0 0 0.9rem; color: var(--wh-muted); font-size: 1.05rem; }

.wheif-feed__how-chip--link { text-decoration: none; cursor: pointer; transition: background 0.2s; }
.wheif-feed__how-chip--link:hover { background: rgba(255,255,255,0.2); }

/* ---- Supporters wall ---- */
.wheif-sup { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem; }
.wheif-sup__head { text-align: center; margin-bottom: 2rem; }
.wheif-sup__head h1 { font-family: var(--wh-serif); font-size: clamp(2rem, 5vw, 3rem); color: var(--wh-bg-deep); margin: 0.25rem 0 0.75rem; }
.wheif-sup__lead { color: var(--wh-muted); max-width: 46rem; margin: 0 auto; }
.wheif-sup__total { margin: 1rem 0 0; font-weight: 700; color: var(--wh-green); }
.wheif-sup__empty { text-align: center; color: var(--wh-muted); padding: 3rem 0; }
.wheif-sup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; counter-reset: sup; }
.wheif-sup__item {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem;
    background: var(--wh-panel); border: 1px solid var(--wh-line); border-radius: 14px; padding: 0.85rem 1.1rem;
    box-shadow: var(--wh-shadow);
}
.wheif-sup__rank { font-family: var(--wh-serif); font-size: 1.3rem; font-weight: 700; color: var(--wh-muted); min-width: 1.6rem; text-align: center; }
.wheif-sup__item:nth-child(1) .wheif-sup__rank { color: var(--wh-gold-dark); }
.wheif-sup__name { font-weight: 700; color: var(--wh-bg-deep); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wheif-sup__tier { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; }
.wheif-sup__tier--friend { background: var(--wh-bg-soft); color: var(--wh-green); }
.wheif-sup__tier--guardian { background: #d8f0e6; color: var(--wh-bg-mid); }
.wheif-sup__tier--champion { background: var(--wh-gold-light); color: #4a3a08; }
.wheif-sup__tier--legend { background: linear-gradient(135deg, var(--wh-gold-light), var(--wh-gold)); color: #3a2c00; }
.wheif-sup__meta { text-align: right; }
.wheif-sup__meta strong { display: block; color: var(--wh-bg-deep); font-size: 1.05rem; }
.wheif-sup__gifts { font-size: 0.78rem; color: var(--wh-muted); }
.wheif-sup__anon { text-align: center; color: var(--wh-muted); margin: 1.25rem 0 0; }
.wheif-sup__cta { text-align: center; margin-top: 2.5rem; }
.wheif-sup__note { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--wh-muted); }

/* ---- General Fund essentials ---- */
.wheif-gf {
    margin-top: 3.5rem; padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--wh-radius); color: #fff;
    background: linear-gradient(160deg, var(--wh-bg-mid), var(--wh-bg-deep));
    box-shadow: var(--wh-shadow);
}
.wheif-gf__head { max-width: 720px; margin: 0 auto 1.75rem; text-align: center; }
.wheif-gf__head .wheif-eyebrow { color: var(--wh-gold-light); }
.wheif-gf__head h2 { font-family: var(--wh-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.25rem 0 0.75rem; }
.wheif-gf__lead { color: rgba(255,255,255,0.9); line-height: 1.65; margin: 0 0 1.5rem; }
.wheif-gf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.wheif-gf__card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 1.25rem 1.35rem; }
.wheif-gf__card h3 { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--wh-gold-light); }
.wheif-gf__card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.wheif-gf__card li { color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.wheif-gf__foot { text-align: center; margin: 1.75rem 0 0; color: rgba(255,255,255,0.85); }
.wheif-gf__foot a { color: var(--wh-gold-light); font-weight: 700; text-decoration: underline; margin-left: 0.35rem; }

/* ---- Scroll reveal (safe: only hides once JS marks body enhanced) ---- */
.wheif-enhanced .wheif-sr { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.wheif-enhanced .wheif-sr.is-visible { opacity: 1; transform: none; }
.wheif-enhanced .wheif-feed__grid .wheif-sr.is-visible { transition-delay: 0.04s; }
.wheif-enhanced .wheif-feed__grid .wheif-sr:nth-child(2).is-visible { transition-delay: 0.08s; }
.wheif-enhanced .wheif-feed__grid .wheif-sr:nth-child(3).is-visible { transition-delay: 0.12s; }
.wheif-enhanced .wheif-feed__grid .wheif-sr:nth-child(4).is-visible { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
    .wheif-enhanced .wheif-sr { opacity: 1; transform: none; transition: none; }
}

/* ---- Animal detail ---- */
.wheif-animal { max-width: var(--wh-max); margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 4rem; }

/* Cover hero header */
.wheif-animal__hero { position: relative; overflow: hidden; color: #fff; margin-top: -1px; min-height: 320px; display: flex; align-items: flex-end; }
.wheif-animal__hero-media { position: absolute; inset: 0; background: linear-gradient(135deg, var(--wh-bg-mid), var(--wh-bg-deep)); }
.wheif-animal__hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.wheif-animal__hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,51,41,0.25) 0%, rgba(15,51,41,0.35) 45%, rgba(15,51,41,0.9) 100%); }
.wheif-animal__hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wh-max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.wheif-animal__hero .wheif-badge { position: static; display: inline-block; margin-bottom: 0.7rem; }
.wheif-animal__hero h1 { font-family: var(--wh-serif); font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0; }
.wheif-animal__species { margin: 0.3rem 0 0; color: rgba(255,255,255,0.82); font-size: 1.02rem; }
.wheif-animal__hero-food { margin-top: 1.1rem; display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding: 0.85rem 1.25rem; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; backdrop-filter: blur(6px); }
.wheif-animal__hero-food p { margin: 0; font-size: 0.95rem; color: rgba(255,255,255,0.92); }
.wheif-animal__foodlabel { color: rgba(255,255,255,0.7); margin-right: 0.4rem; }
.wheif-animal__back { display: inline-block; margin-bottom: 1.25rem; color: var(--wh-green); font-weight: 600; }
.wheif-animal__back:hover { color: var(--wh-gold-dark); }

.wheif-animal__media h2,
.wheif-animal__about h2,
.wheif-animal__sponsor h2,
.wheif-animal__history h2 { font-family: var(--wh-serif); color: var(--wh-bg-deep); }

.wheif-related { margin: 2.5rem 0 1rem; padding: 1.5rem 0 0; border-top: 1px solid rgba(20, 40, 30, 0.08); }
.wheif-related__head { text-align: center; margin-bottom: 1.25rem; }
.wheif-related__lead { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--wh-muted, #5c6570); }
.wheif-related__head h2 { margin: 0; font-family: var(--wh-serif); font-size: clamp(1.35rem, 3vw, 1.85rem); color: var(--wh-bg-deep); }
.wheif-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 1rem; }
.wheif-related__card {
    display: grid; gap: 0.55rem; text-decoration: none; color: inherit;
    background: #fff; border-radius: 1rem; overflow: hidden;
    border: 1px solid rgba(20, 40, 30, 0.08); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wheif-related__card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 30, 0.08); }
.wheif-related__media { aspect-ratio: 1; background: #e8efe9; overflow: hidden; position: relative; }
.wheif-related__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wheif-related__media--fallback img { display: none; }
.wheif-related__placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--wh-serif); font-size: 2rem; color: rgba(20, 40, 30, 0.35);
}
.wheif-related__body { padding: 0 0.75rem 0.85rem; display: grid; gap: 0.2rem; }
.wheif-related__code { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wh-muted, #5c6570); }
.wheif-related__name { margin: 0; font-family: var(--wh-serif); font-size: 1.05rem; line-height: 1.15; color: var(--wh-bg-deep); }
.wheif-related__more { text-align: center; margin: 1.25rem 0 0; }
.wheif-related__more a { font-weight: 700; color: var(--wh-green-dark, #1f5a3a); text-decoration: none; }
.wheif-related__more a:hover { text-decoration: underline; }

.wheif-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.wheif-media { margin: 0; background: var(--wh-panel); border-radius: 14px; overflow: hidden; box-shadow: var(--wh-shadow); }
.wheif-media__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wheif-media__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wheif-media__link { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--wh-bg-soft); }
.wheif-media__link img { width: 100%; height: 100%; object-fit: cover; }
.wheif-media__link--video {
    display: grid; place-items: center; text-decoration: none;
    background: linear-gradient(160deg, #1a4d3e 0%, #0f3329 100%);
    color: #fff; overflow: hidden;
}
.wheif-media__link--video img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72;
}
.wheif-media__video-mark {
    position: relative; z-index: 1;
    font-size: 2rem; line-height: 1; opacity: 0.95;
}
.wheif-media__open { position: absolute; bottom: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.6); color: #fff; padding: 0.2rem 0.6rem; border-radius: 8px; font-size: 0.8rem; }
.wheif-media__open--static { position: static; display: inline-block; margin-top: 0.5rem; }
.wheif-media__link--fallback { display: grid; place-items: center; }
.wheif-media figcaption { padding: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--wh-muted); }

.wheif-animal__cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; margin: 2rem 0; align-items: start; }
.wheif-animal__sponsor { position: sticky; top: 5rem; }
.wheif-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1rem; }
.wheif-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wh-muted); }
.wheif-facts dd { margin: 0.1rem 0 0; font-weight: 600; }
.wheif-animal__story { white-space: pre-wrap; color: var(--wh-text); }

.wheif-animal__sponsor { background: var(--wh-panel); border-radius: var(--wh-radius); padding: 1.5rem; box-shadow: var(--wh-shadow); }
.wheif-sponsor-form label { display: block; margin: 0.75rem 0; font-weight: 600; color: var(--wh-text); }
.wheif-sponsor-form input[type="text"],
.wheif-sponsor-form input[type="email"],
.wheif-sponsor-form input[type="tel"],
.wheif-sponsor-form textarea {
    display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--wh-line); border-radius: 12px; font: inherit; background: #fff;
}
.wheif-sponsor-months { border: 0; padding: 0; margin: 0 0 1rem; }
.wheif-sponsor-months legend { font-weight: 700; color: var(--wh-bg-deep); margin-bottom: 0.5rem; }
.wheif-month-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 0.6rem; }
.wheif-month--naming { border-color: var(--wh-gold); }
.wheif-month__badge {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wh-gold);
}
.wheif-month {
    position: relative;
    display: block;
    border: 1.5px solid var(--wh-line); border-radius: 12px; padding: 0;
    background: #fff; cursor: pointer; color: var(--wh-text);
}
.wheif-month input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.wheif-month__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.6rem 0.4rem;
    pointer-events: none;
}
.wheif-month strong { font-size: 1.3rem; color: var(--wh-bg-deep); }
.wheif-month span { font-size: 0.72rem; color: var(--wh-muted); }
.wheif-month em { font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--wh-green); }
.wheif-month:has(input:checked),
.wheif-month.is-active {
    border-color: var(--wh-gold);
    box-shadow: 0 0 0 2px var(--wh-gold-light) inset;
}
.wheif-month--custom span { font-size: 0.72rem; }
.wheif-month--custom input { width: 100%; margin-top: 0.2rem; padding: 0.35rem; border: 1px solid var(--wh-line); border-radius: 8px; text-align: center; font: inherit; }
.wheif-sponsor-custom {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--wh-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}
.wheif-sponsor-custom label { margin: 0; }
.wheif-sponsor-custom input[type="number"] {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--wh-line);
    border-radius: 10px;
    font: inherit;
}
.wheif-sponsor-custom__days { margin: 0.45rem 0 0; font-size: 0.9rem; }
.wheif-sponsor-custom__days strong { color: var(--wh-bg-deep); }

.wheif-animal__named { margin: 0.6rem 0 0; color: var(--wh-gold-light); font-size: 0.95rem; }
.wheif-animal__named strong { color: #fff; }

.wheif-sponsor-name {
    margin: 0.25rem 0 1rem; padding: 0.85rem 1rem;
    border: 1px dashed var(--wh-gold); border-radius: 14px;
    background: rgba(212, 168, 42, 0.08);
}
.wheif-sponsor-name label { margin: 0; }
.wheif-sponsor-name__hint { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--wh-gold-dark); font-weight: 600; }

.wheif-sponsor-total { display: flex; align-items: baseline; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--wh-line); }
.wheif-sponsor-total strong { font-size: 1.6rem; color: var(--wh-bg-deep); }
.wheif-sponsor-newuntil { margin: 0 0 1rem; color: var(--wh-muted); }
.wheif-check { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 500 !important; }
.wheif-check input { margin-top: 0.2rem; }
.wheif-sponsor-terms { font-size: 0.85rem; color: var(--wh-muted); }
.wheif-sponsor-terms a, .wheif-footer__legal a { color: var(--wh-green); text-decoration: underline; }

.wheif-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.wheif-history__item { background: var(--wh-bg-soft); border-radius: 12px; padding: 0.85rem 1rem; }
.wheif-history__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.wheif-history__amt { color: var(--wh-green); font-weight: 600; font-size: 0.9rem; }
.wheif-history__date { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--wh-muted); }
.wheif-history__msg { margin: 0.4rem 0 0; font-style: italic; color: var(--wh-text); }

/* ---- Legal / terms ---- */
.wheif-legal { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem; }
.wheif-legal h1 { font-family: var(--wh-serif); color: var(--wh-bg-deep); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.wheif-legal__intro { color: var(--wh-muted); }
.wheif-legal__list { display: grid; gap: 1rem; padding-left: 1.2rem; }
.wheif-legal__list li { line-height: 1.6; }
.wheif-legal__back { margin-top: 2rem; }

/* ---- Staff login ---- */
.wheif-body--staff-login { display: grid; place-items: center; }
.wheif-stafflogin { max-width: 420px; margin: 2rem; padding: 2.5rem; background: var(--wh-panel); border-radius: var(--wh-radius); box-shadow: var(--wh-shadow-lg); text-align: center; }
.wheif-stafflogin__mark { width: 72px; height: 72px; margin: 0 auto 1rem; }
.wheif-stafflogin h1 { font-family: var(--wh-serif); color: var(--wh-bg-deep); margin: 0 0 0.25rem; }
.wheif-stafflogin__form { margin-top: 1.25rem; text-align: left; }
.wheif-stafflogin__form label { display: block; margin-bottom: 0.85rem; font-weight: 600; }
.wheif-stafflogin__form input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.85rem; border: 1.5px solid var(--wh-line); border-radius: 12px; font: inherit; }
.wheif-stafflogin__home { margin-top: 1.25rem; }
.wheif-stafflogin__home a { color: var(--wh-muted); }
.wheif-stafflogin__www-tip {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--wh-muted);
    text-align: left;
}

/* ---- Staff console ---- */
.wheif-staff { max-width: 1080px; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem) 4rem; }
.wheif-staff h1 { font-family: var(--wh-serif); color: var(--wh-bg-deep); }
.wheif-staff__user { color: #fff; font-weight: 600; }
.wheif-staff__tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1.25rem; }
.wheif-staff-tabs {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin: 0 0 1.25rem; padding: 0.3rem;
    background: #fff; border: 1px solid rgba(26, 77, 62, 0.12); border-radius: 14px;
}
.wheif-staff-tabs__btn {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    padding: 0.65rem 1.1rem; border-radius: 10px; font: inherit; font-weight: 600;
    color: #5c6b63;
}
.wheif-staff-tabs__btn.is-active { background: #0f3329; color: #faf6f0; }
.wheif-staff-panel { display: none; }
.wheif-staff-panel.is-active { display: block; }
.wheif-staff-panel__title { margin: 0 0 0.35rem; font-size: 1.15rem; color: #0f3329; }
.wheif-staff-panel__sub { margin: 1.4rem 0 0.45rem; font-size: 1rem; color: #0f3329; }
.wheif-staff-form--password { max-width: 32rem; margin-bottom: 1.25rem; }
.wheif-staff-form--referral { max-width: 40rem; margin-bottom: 1.25rem; }
.wheif-staff-share { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; max-width: 22rem; }
.wheif-staff-share__url { word-break: break-all; font-size: 0.82rem; }
.wheif-staff-table tr.is-inactive td { opacity: 0.62; }
.wheif-staff__recent { margin: 0 0 1.75rem; padding: 1rem 1.1rem; border: 1px solid rgba(26, 77, 62, 0.12); border-radius: 16px; background: #fff; }
.wheif-staff__recent-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.wheif-staff__recent-head h2 { margin: 0; font-size: 1.05rem; color: #0f3329; }
.wheif-staff__export { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wheif-staff__export-hint { margin: 0.25rem 0 0.85rem; font-size: 0.86rem; max-width: 52rem; }
.wheif-staff-filters {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end;
    margin: 0 0 0.65rem; padding: 0.75rem 0.85rem;
    background: #f4f7f5; border-radius: 12px;
}
.wheif-staff-filters label { display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: #5c6b63; text-transform: uppercase; letter-spacing: 0.03em; }
.wheif-staff-filters select,
.wheif-staff-filters input[type="search"] {
    min-width: 10rem; padding: 0.45rem 0.55rem; border-radius: 8px;
    border: 1px solid rgba(26, 77, 62, 0.18); background: #fff; font: inherit; color: #1c2b26;
    text-transform: none; letter-spacing: normal; font-weight: 500;
}
.wheif-staff-filters__search { flex: 1 1 14rem; }
.wheif-staff-filters__search input { width: 100%; }
.wheif-staff-filters__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wheif-staff-chip {
    appearance: none; border: 1px solid rgba(26, 77, 62, 0.16); background: #fff;
    border-radius: 999px; padding: 0.35rem 0.75rem; font: inherit; font-size: 0.86rem;
    color: #0f3329; cursor: pointer;
}
.wheif-staff-chip.is-active { background: #0f3329; color: #faf6f0; border-color: #0f3329; }
.wheif-staff-filter-count { margin: 0 0 0.65rem; font-size: 0.86rem; }
.wheif-staff-table-wrap { overflow-x: auto; }
.wheif-staff-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wheif-staff-table th, .wheif-staff-table td { text-align: left; padding: 0.55rem 0.45rem; border-bottom: 1px solid rgba(26, 77, 62, 0.1); vertical-align: top; }
.wheif-staff-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #5c6b63; }
.wheif-staff-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wheif-staff-note { max-width: 16rem; word-break: break-word; }
.wheif-staff-status { font-size: 0.82rem; font-weight: 600; }
.wheif-staff-status--completed { color: #1a4d3e; }
.wheif-staff-status--cancelled, .wheif-staff-status--failed { color: #9b2c2c; }
.wheif-staff-status--pending { color: #7a5d00; }
.wheif-staff-kind { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 6px; background: #eef5f1; color: #0f3329; }
.wheif-staff-kind--sponsorship, .wheif-staff-kind--sponsor { background: #e8f1fb; color: #1a4d8c; }
.wheif-staff-kind--manual { background: #fff3cd; color: #7a5d00; }
.wheif-staff-kind--death_release { background: #f3e8ff; color: #5b2c6f; }
.wheif-staff-panel [hidden], .is-hidden { display: none !important; }
.wheif-staff__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.wheif-stat-card { background: var(--wh-panel); border-radius: 14px; padding: 0.9rem 1rem; box-shadow: var(--wh-shadow); font-size: 0.82rem; color: var(--wh-muted); }
.wheif-stat-card span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--wh-bg-deep); }
.wheif-stat-card--empty span { color: #d9534f; }
.wheif-stat-card--soon span { color: var(--wh-gold-dark); }
.wheif-stat-card--ok span { color: #2f9e63; }
.wheif-stat-card--money span { font-size: 1.15rem; color: var(--wh-green); }

.wheif-staff__add { background: var(--wh-panel); border-radius: 14px; box-shadow: var(--wh-shadow); margin-bottom: 1.5rem; padding: 0.5rem 1.25rem; }
.wheif-staff__add summary { cursor: pointer; font-weight: 700; color: var(--wh-bg-deep); padding: 0.75rem 0; }

.wheif-staff-form { display: grid; gap: 0.6rem; padding: 0.5rem 0 1rem; }
.wheif-staff-form h4 { margin: 0.75rem 0 0; color: var(--wh-bg-deep); }
.wheif-staff-form label { font-weight: 600; font-size: 0.9rem; display: block; }
.wheif-staff-form input[type="text"],
.wheif-staff-form input[type="email"],
.wheif-staff-form input[type="url"],
.wheif-staff-form input[type="number"],
.wheif-staff-form input[type="tel"],
.wheif-staff-form select,
.wheif-staff-form textarea {
    display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.7rem;
    border: 1.5px solid var(--wh-line); border-radius: 10px; font: inherit; background: #fff;
}
.wheif-staff-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.wheif-staff-form__checks { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.wheif-staff-cover { margin: 0.75rem 0 1rem; }
.wheif-staff-cover__preview {
    display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--wh-line); margin-bottom: 0.65rem; background: #eef5f1;
}
.wheif-staff-cover__preview.is-empty { display: none; }
.wheif-staff-cover__upload { cursor: pointer; margin-bottom: 0.35rem; }
.wheif-staff-cover__hint { font-size: 0.82rem; margin: 0.35rem 0 0.75rem; }
.wheif-staff-form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 0.6rem; }
.wheif-staff-form--inline button { white-space: nowrap; }
.wheif-staff-form--offline {
    grid-template-columns: 1fr;
    margin: 0 0 1.15rem;
    padding: 0.95rem 1rem 1.05rem;
    border: 2px solid #c9a227;
    border-radius: 14px;
    background: #fffaf0;
}
.wheif-staff-form--offline h4 { margin: 0 0 0.35rem; color: var(--wh-bg-deep); }
.wheif-staff-form--offline .wheif-muted { margin: 0 0 0.65rem; }

.wheif-staff__list { display: grid; gap: 1rem; }
.wheif-staff-row { background: var(--wh-panel); border-radius: 14px; box-shadow: var(--wh-shadow); padding: 1rem 1.25rem; }
.wheif-staff-row__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wheif-staff-row__title { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wheif-staff-row__title .wheif-badge { position: static; }
.wheif-staff-row__title strong { font-size: 1.1rem; color: var(--wh-bg-deep); }
.wheif-staff-row__draft { color: #b3261e; font-size: 0.78rem; font-style: normal; background: #fde7e6; padding: 0.1rem 0.45rem; border-radius: 6px; }
.wheif-staff-row__meta { display: flex; gap: 1rem; color: var(--wh-muted); font-size: 0.85rem; }
.wheif-staff-row__manage { margin-top: 0.75rem; border-top: 1px solid var(--wh-line); }
.wheif-staff-row__manage summary { cursor: pointer; font-weight: 600; color: var(--wh-green); padding: 0.6rem 0; }

.wheif-staff-media__list { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.4rem; }
.wheif-staff-media__list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.wheif-staff-media__list a { flex: 1; color: var(--wh-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheif-staff-media__type { font-size: 0.7rem; text-transform: uppercase; background: var(--wh-bg-soft); padding: 0.1rem 0.4rem; border-radius: 6px; color: var(--wh-muted); }
.wheif-staff-status__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wheif-link-btn { border: 0; background: none; color: #b3261e; cursor: pointer; font: inherit; text-decoration: underline; }

.wheif-form__status { margin: 0.4rem 0 0; min-height: 1.2em; font-size: 0.88rem; }
.wheif-form__status.is-success { color: #2f7d4f; }
.wheif-form__status.is-error { color: #b3261e; }

/* ---- Multi-select cart ---- */
.wheif-card__actions { display: flex; gap: 0.5rem; margin: 0 1.15rem 1.15rem; }
.wheif-card__actions .wheif-card__cta { flex: 1; margin: 0; }
.wheif-card__add { white-space: nowrap; }
.wheif-card__add.is-added, .wheif-animal__addcart.is-added { background: var(--wh-green); color: #fff; border-color: var(--wh-green); }
.wheif-animal__addcart { margin-top: 0.6rem; width: 100%; }

.wheif-cart-fab {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.25rem; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; color: #2a2208;
    background: linear-gradient(135deg, var(--wh-gold-light), var(--wh-gold));
    box-shadow: 0 14px 36px rgba(212, 168, 42, 0.45);
}
.wheif-cart-fab__count {
    display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem;
    padding: 0 0.35rem; border-radius: 999px; background: var(--wh-bg-deep); color: #fff; font-size: 0.85rem;
}
.wheif-cart-backdrop { position: fixed; inset: 0; z-index: 320; background: rgba(15, 51, 41, 0.5); }
.wheif-cart-backdrop[hidden],
.wheif-cart-backdrop:not(.is-open) { display: none !important; }
.wheif-cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 330;
    width: min(420px, 92vw); background: var(--wh-panel); box-shadow: var(--wh-shadow-lg);
    display: flex; flex-direction: column; overflow-y: auto; padding: 1.25rem;
}
.wheif-cart-drawer[hidden],
.wheif-cart-drawer:not(.is-open) { display: none !important; }
.wheif-cart-drawer__head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin-bottom: 0.5rem; position: sticky; top: 0; z-index: 2;
    padding-bottom: 0.5rem; background: var(--wh-panel);
}
.wheif-cart-drawer__head h2 { margin: 0; font-family: var(--wh-serif); color: var(--wh-bg-deep); flex: 1; }
.wheif-cart-close {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    min-width: 44px; min-height: 44px; padding: 0.35rem 0.65rem;
    border: 1.5px solid var(--wh-line); border-radius: 999px;
    background: #fff; font: inherit; font-size: 0.9rem; font-weight: 700;
    line-height: 1; cursor: pointer; color: var(--wh-bg-deep);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.wheif-cart-close__icon { font-size: 1.35rem; line-height: 1; }
.wheif-cart-close__text { font-size: 0.82rem; letter-spacing: 0.02em; }
.wheif-cart-close:hover { border-color: var(--wh-green-light); background: #f4faf7; }
.wheif-cart-fab[hidden] { display: none !important; }
.wheif-cart-items { display: grid; gap: 0.6rem; margin: 0.5rem 0; }
.wheif-cart-empty { color: var(--wh-muted); padding: 1.5rem 0; text-align: center; }
.wheif-cart-item { border: 1px solid var(--wh-line); border-radius: 12px; padding: 0.7rem 0.85rem; }
.wheif-cart-item__name { font-weight: 700; color: var(--wh-bg-deep); margin-bottom: 0.4rem; }
.wheif-cart-item__row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.wheif-cart-stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.wheif-cart-stepper button {
    width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1.5px solid var(--wh-line);
    background: #fff; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.wheif-cart-item__amt { margin-left: auto; font-weight: 700; color: var(--wh-green); }
.wheif-cart-item__namefield { display: block; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--wh-gold-dark); }
.wheif-cart-item__namefield input {
    display: block; width: 100%; margin-top: 0.25rem; padding: 0.5rem 0.7rem; font: inherit; font-weight: 400;
    border: 1px dashed var(--wh-gold); border-radius: 10px; background: rgba(212, 168, 42, 0.08);
}
.wheif-cart-total { display: flex; align-items: baseline; justify-content: space-between; padding: 0.85rem 0; border-top: 1px solid var(--wh-line); }
.wheif-cart-total strong { font-size: 1.5rem; color: var(--wh-bg-deep); }
.wheif-cart-form { display: grid; gap: 0.6rem; }
.wheif-cart-form label { font-weight: 600; font-size: 0.9rem; }
.wheif-cart-form input[type="text"], .wheif-cart-form input[type="email"], .wheif-cart-form input[type="tel"] {
    display: block; width: 100%; margin-top: 0.25rem; padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--wh-line); border-radius: 10px; font: inherit;
}
body.wheif-cart-open { overflow: hidden; }

/* Payment return: multiple sponsored friends */
.wheif-return-friend { text-align: left; }
.wheif-return-friend + .wheif-return-friend { border-top: 1px solid var(--wh-line); margin-top: 0.75rem; padding-top: 0.75rem; }
.wheif-return-friend__link { display: inline-block; margin-top: 0.35rem; color: var(--wh-green); font-weight: 600; text-decoration: underline; }

@media (max-width: 820px) {
    .wheif-cart-drawer { width: min(420px, 100vw); padding-top: max(1rem, env(safe-area-inset-top)); }
    .wheif-cart-close__text { display: inline; }
    .wheif-animal__cols { grid-template-columns: 1fr; }
    .wheif-animal__sponsor { position: static; }
    .wheif-staff-form__row { grid-template-columns: 1fr; }
    .wheif-staff-form--inline { grid-template-columns: 1fr; }
}
