:root {
  --ink: #1b1b1f; --ink-2: #55524d; --muted: #8a857e;
  --bg: #f6f4f0; --card: #fff; --line: #dcd8d1; --line-soft: #efece7; --row: #f6f4f0;
  --green: #2d6a25; --green-bg: #e8f1e4; --accent: #b5601c;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: inherit; }
p { margin: 0; }
.hide { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line-soft); }
.top-in { height: 84px; display: flex; align-items: center; justify-content: center; }
.logo img { display: block; height: 64px; width: auto; max-width: 100%; }
.secure { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 16px; padding-bottom: 40px; }
.side { display: flex; flex-direction: column; gap: 16px; }

/* Summary (PetLab-style: sits on the page, bold green prices) */
.summary { }
.sum-bar { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sum-label { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.sum-right { display: inline-flex; align-items: center; gap: 14px; }
.sum-total { font-size: 18px; font-weight: 700; color: var(--ink); }
.summary.open .sum-total { display: none; }
.chev { transition: transform .2s ease; }
.summary.open .chev { transform: rotate(180deg); }
.sum-body { display: none; }
.summary.open .sum-body { display: block; }

.club-head { display: flex; align-items: center; gap: 7px; padding-top: 16px; font-size: 15px; }
.club-head b { font-weight: 600; }
.club-head .sep { width: 1.5px; height: 20px; background: var(--ink); margin: 0 7px; }
.club-head a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line .th { position: relative; width: 64px; height: 64px; }
.line .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.line .q { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.line .nm { font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.line .vr { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.line .pr { text-align: right; white-space: nowrap; }
.line .pr s { display: block; font-size: 15px; color: var(--ink-2); }
.line .pr b { display: block; font-size: 20px; font-weight: 700; color: var(--green); }
.free { color: var(--green); font-weight: 700; }
.free.big { font-size: 20px; }
#ship:not(.free) { color: var(--ink); font-weight: 600; font-size: 17px; }

.gift { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.gift-head { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.gift-head b { font-weight: 600; }
.gift-sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.gift-sub b { color: var(--ink); font-weight: 600; }
.gift-card { margin-top: 12px; background: #fff; border-radius: 14px; overflow: hidden; }
.gift-row { padding: 14px 16px; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.gift-rev { border-top: 1px solid var(--line-soft); padding: 10px 16px 13px; text-align: center; font-size: 14px; color: var(--ink-2); }
.gift-rev .gstars { display: block; color: #f2a54a; font-size: 19px; letter-spacing: 3px; line-height: 1.2; }
.gift-rev.placeholder span:last-child { opacity: .5; }
.guarantee { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #eaf7f8; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.guarantee svg { flex: none; width: 26px; height: 26px; color: var(--ink); }
.guarantee b { font-weight: 600; }
.gift-card img { border-radius: 8px; object-fit: cover; }
.gift-txt b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.gift-txt span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.gift-pr { text-align: right; }
.gift-pr s { display: block; font-size: 15px; color: var(--ink-2); }
.gift-pr b { font-size: 20px; }

.totals { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.totals div + div { margin-top: 10px; }
.totals dd { margin: 0; }
.totals dd s { color: var(--ink-2); font-size: 15px; margin-left: 4px; }
.grand { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.grand span:last-child { font-size: 22px; color: var(--ink-2); }
.renew { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-soft); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.renew b { color: var(--ink); }

/* Vet reviewed card */
.vet { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); padding: 18px 20px 20px; }
.vet-k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vet-q { margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; }
.vet-who { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.vet-who img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #e6eefb; }
.vet-who b { display: block; font-size: 15px; font-weight: 600; }
.vet-who span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }

/* Express wallets */
.express { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); padding: 18px 20px 4px; }
.express-k { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.express.collapsed { height: 0; padding: 0; overflow: hidden; box-shadow: none; margin-bottom: -16px; }
.or { display: flex; align-items: center; gap: 14px; margin: 16px -20px 0; padding: 0 20px 14px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.vet.placeholder { outline: 1.5px dashed var(--line); outline-offset: -1.5px; }
.vet.placeholder .vet-q, .vet.placeholder .vet-who { opacity: .55; }

/* Club opt-in */
.club-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: 14px; background: #fff7ef; cursor: pointer; }
.club-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.club-box { flex: none; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.club-opt input:checked + .club-box { background: var(--accent); border-color: var(--accent); }
.club-opt input:checked + .club-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.club-opt input:focus-visible + .club-box { box-shadow: 0 0 0 2px var(--accent); }
.club-txt { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.club-txt b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.club-txt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.club-opt img { flex: none; border-radius: 8px; object-fit: cover; }

/* Payment */
.pay { display: flex; flex-direction: column; gap: 16px; }
.pay-card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); padding: 6px; }
#whop-checkout { min-height: 460px; }
.skeleton { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.skeleton i { height: 48px; border-radius: 10px; background: linear-gradient(90deg, var(--row), #fbfaf8, var(--row)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton i.tall { height: 120px; }
.skeleton i.btn { height: 52px; border-radius: 99px; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.assure { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 6px; }
.assure svg { width: 16px; height: 16px; color: var(--ink); }

.trust-banner { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* Trustpilot */
.tp { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--ink); text-decoration: none; }
.tp-label { font-weight: 600; font-size: 13px; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars i { width: 15px; height: 15px; background: #dcdce6; display: grid; place-items: center; }
.tp-stars i.on { background: #00b67a; }
.tp-stars i.half { background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%); }
.tp-stars i svg { width: 10px; height: 10px; }
.tp.placeholder { opacity: .5; }
.tp-brand { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 13px; }

.fine { text-align: center; font-size: 12px; color: var(--muted); }
.fine a { text-decoration: none; }
.fine a:hover { text-decoration: underline; }

/* Thank-you page card */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); padding: 24px; }

/* Desktop: payment left, summary + vet right; summary always open */
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 40px; align-items: start; }
  .pay { grid-column: 1; grid-row: 1; }
  .side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .summary { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); padding: 4px 24px 8px; }
  .sum-bar { cursor: default; pointer-events: none; }
  .sum-right { display: none; }
  .sum-body { display: block; }
  .gift-card { background: var(--bg); }
  .grand { border-bottom: 0; }
}
