/* ============================================================================
   pd2-paywall.css — Paywall takeover
   OWNER: W4. No other workstream may edit this file.

   EVERY selector in this file must start with `.pd2-pw-`.
   Consume the tokens from pd2-tokens.css (var(--pd2-*)); do not hardcode a
   colour, radius or shadow that already exists there.
   This file owns its own responsive rules — there is no shared responsive file.

   Design source: website html/index/property-detail-v3.html — the `.paywall`
   block (lines 578-680). Every declaration below is that block transcribed
   1:1, with the prototype's `--*` variables swapped for their `--pd2-*`
   equivalents. The handful of literal rgba()/hex values that survive
   (#EDE7E1/#DED5CD shimmer stops, #BFE3D6 guarantee border, the accent and
   green alpha shadows) exist only in the prototype and have no token — they
   are copied verbatim rather than invented or approximated.

   The @keyframes is namespaced `pd2-pw-shimmer` rather than `shimmer`:
   keyframe names are global, and the prototype reuses `shimmer` in the
   gallery block that W1 owns.
   ========================================================================== */

.pd2-pw-root{padding:12px 0 40px}

/* ------------------------------------------------------------- teaser ---- */
/* Slim context strip - a chip and two short lines. No property image is ever requested here. */
.pd2-pw-teaser{
  display:flex;align-items:center;gap:12px;max-width:520px;margin:0 auto 18px;
  padding:10px 14px;border:1px solid var(--pd2-line);border-radius:14px;background:var(--pd2-bg-soft);
}
.pd2-pw-teaser-copy{min-width:0}
.pd2-pw-teaser-t{font-size:14px;font-weight:600;line-height:1.35}
.pd2-pw-teaser-s{font-size:12px;color:var(--pd2-ink-3);line-height:1.4;margin-top:1px}
.pd2-pw-lockchip{
  display:inline-flex;align-items:center;gap:6px;background:var(--pd2-ink);color:#fff;flex:none;
  font-size:11px;font-weight:600;padding:5px 10px;border-radius:999px;
}

/* ------------------------------------------------------ guided choice ----- */
.pd2-pw-choice{max-width:520px;margin:0 auto}
.pd2-pw-q{font-family:var(--pd2-font-display);font-size:17px;font-weight:600;text-align:center;margin:0 0 16px;line-height:1.4}
/* Scoped through .pd2-pw-choice: pd2-tokens.css resets `.pd2-root button` at (0,1,1). */
.pd2-pw-choice .pd2-pw-seg{display:grid;grid-template-columns:1fr 1fr;background:var(--pd2-bg-soft);border:1px solid var(--pd2-line);border-radius:14px;padding:4px;margin-bottom:16px}
.pd2-pw-choice .pd2-pw-seg-b{padding:11px 8px;border-radius:10px;font-size:14.5px;font-weight:500;color:var(--pd2-ink-2);cursor:pointer;text-align:center;transition:all .15s}
.pd2-pw-choice .pd2-pw-seg-b.pd2-pw-seg-on{background:#fff;color:var(--pd2-ink);font-weight:600;box-shadow:var(--pd2-shadow-md)}
.pd2-pw-hero{border:2px solid var(--pd2-accent);border-radius:14px;background:#fff;padding:14px 16px 14px;box-shadow:0 0 0 4px rgba(255,84,3,.10)}
.pd2-pw-hero-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pd2-pw-hero-namewrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.pd2-pw-hero-name{font-family:var(--pd2-font-display);font-size:15px;font-weight:600;line-height:1.3}
.pd2-pw-hero-days{font-size:12px;color:var(--pd2-ink-3);white-space:nowrap}
/* Price row. (These rules were lost in an earlier CSS edit; restored here.) */
.pd2-pw-pprice{display:flex;align-items:baseline;gap:6px;margin:8px 0 2px}
.pd2-pw-pprice b{font-size:26px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.pd2-pw-pprice span{font-size:12px;color:var(--pd2-ink-3)}
.pd2-pw-pprice .pd2-pw-gst{font-size:11px}
.pd2-pw-hero .pd2-pw-feats{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.pd2-pw-hero .pd2-pw-feats li{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--pd2-ink-2);line-height:1.4;list-style:none;margin:0;padding:0}
.pd2-pw-hero .pd2-pw-feats li::marker{content:''}
.pd2-pw-hero .pd2-pw-feats i{color:var(--pd2-green);font-size:13px;margin-top:2px;flex:none}
.pd2-pw-chip-refund,.pd2-pw-chip-norefund{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;letter-spacing:.03em;padding:2px 7px;border-radius:6px;line-height:1.5;white-space:nowrap}
.pd2-pw-chip-refund{background:var(--pd2-green-soft);color:var(--pd2-green);border:1px solid var(--pd2-green-line)}
.pd2-pw-chip-norefund{background:var(--pd2-bg-soft);color:var(--pd2-ink-3);border:1px solid var(--pd2-line)}
.pd2-pw-choice .pd2-pw-switch{display:flex;align-items:center;gap:14px;margin-top:14px;padding:14px;border:1px solid var(--pd2-line);border-radius:14px;background:var(--pd2-bg-soft);cursor:pointer;transition:all .15s}
.pd2-pw-choice .pd2-pw-switch.pd2-pw-switch-on{border-color:var(--pd2-green-line);background:var(--pd2-green-soft)}
.pd2-pw-sw{width:44px;height:26px;border-radius:13px;background:var(--pd2-line-strong);position:relative;flex:none;transition:background .15s}
.pd2-pw-sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.pd2-pw-switch-on .pd2-pw-sw{background:var(--pd2-green)}
.pd2-pw-switch-on .pd2-pw-sw i{left:21px}
.pd2-pw-switch-copy{flex:1;display:flex;flex-direction:column;gap:2px;text-align:left}
.pd2-pw-switch-t{font-size:14.5px;font-weight:600}
.pd2-pw-switch-s{font-size:12.5px;color:var(--pd2-ink-2);line-height:1.45}
.pd2-pw-switch-p{font-size:14px;font-weight:600;white-space:nowrap}
.pd2-pw-choice .pd2-pw-hcard{display:block;width:100%;text-align:left;border:1.5px solid var(--pd2-line);border-radius:var(--pd2-r-lg);background:#fff;padding:16px 18px;margin-bottom:12px;cursor:pointer;transition:all .15s}
.pd2-pw-choice .pd2-pw-hcard:hover{border-color:var(--pd2-line-strong);box-shadow:var(--pd2-shadow-md)}
.pd2-pw-choice .pd2-pw-hcard.pd2-pw-hcard-on{border:2px solid var(--pd2-accent);padding:15px 17px;box-shadow:0 0 0 4px rgba(255,84,3,.11)}
.pd2-pw-hcard-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.pd2-pw-hcard-name{font-family:var(--pd2-font-display);font-size:15px;font-weight:600}
.pd2-pw-hcard-price{font-size:18px;font-weight:700;letter-spacing:-.02em}
.pd2-pw-hcard-price small{font-size:11px;font-weight:400;color:var(--pd2-ink-3);letter-spacing:0}
.pd2-pw-hcard-sub{display:block;font-size:12.5px;color:var(--pd2-ink-2);margin-top:5px;line-height:1.5}
.pd2-pw-choice [hidden]{display:none}

/* ------------------------------------------ pick-your-contacts sheet ----- */
.pd2-pw-choice .pd2-pw-customcard{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:12px 14px;text-align:left;background:#fff;border:1.5px dashed var(--pd2-accent);border-radius:14px;cursor:pointer;transition:background .15s}
.pd2-pw-choice .pd2-pw-customcard:hover{background:#FFF8F2}
.pd2-pw-cc-ic{flex:none;width:38px;height:38px;border-radius:10px;background:#FFF1E6;color:var(--pd2-accent);display:grid;place-items:center;font-size:18px}
.pd2-pw-cc-copy{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pd2-pw-cc-t{font-size:14px;font-weight:600;color:var(--pd2-ink)}
.pd2-pw-cc-s{font-size:12.5px;color:var(--pd2-ink-2);line-height:1.4}
.pd2-pw-cc-s b{font-weight:600;color:var(--pd2-ink)}
.pd2-pw-cc-go{flex:none;color:var(--pd2-accent);font-size:16px}
body.pd2-pw-noscroll{overflow:hidden}
.pd2-pw-sheet{position:fixed;inset:0;z-index:1080;display:flex;align-items:flex-end;justify-content:center}
.pd2-pw-sheet[hidden]{display:none}
.pd2-pw-sheet-back{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.pd2-pw-sheet-panel{position:relative;width:100%;max-width:440px;background:#fff;border-radius:20px 20px 0 0;padding:10px 20px 20px;max-height:92vh;overflow:auto}
.pd2-pw-sheet-handle{width:36px;height:4px;border-radius:2px;background:var(--pd2-line-strong);margin:0 auto 12px}
.pd2-pw-sheet-head{display:flex;justify-content:space-between;align-items:center}
.pd2-pw-sheet-head h3{font-family:var(--pd2-font-display);font-size:17px;font-weight:600;margin:0}
.pd2-pw-sheet .pd2-pw-sheet-x{font-size:18px;color:var(--pd2-ink-2);cursor:pointer;padding:4px}
.pd2-pw-sheet-sub{font-size:13px;color:var(--pd2-ink-2);margin:4px 0 8px}
.pd2-pw-sheet-row{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px;font-size:14px}
.pd2-pw-sheet-row b{font-size:26px;font-weight:600}
.pd2-pw-sheet-per{font-size:13px;color:var(--pd2-ink-2)}
/* The site has global range-slider rules (e.g. `.rq-page input[type=range]` with a fixed
   gradient fill), so this slider carries its own class and states every property that
   matters. --pct is set from JS so the orange fill always matches the thumb. */
.pd2-pw-sheet .pd2-pw-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:6px;margin:16px 0 8px;padding:0;border:0;border-radius:100px;outline:none;cursor:pointer;
  background:linear-gradient(90deg,var(--pd2-accent) 0,var(--pd2-accent) var(--pct,0%),var(--pd2-line) var(--pct,0%),var(--pd2-line) 100%) !important}
.pd2-pw-sheet .pd2-pw-range::-webkit-slider-runnable-track{height:6px;border:0;border-radius:100px;background:transparent !important}
.pd2-pw-sheet .pd2-pw-range::-moz-range-track{height:6px;border:0;border-radius:100px;background:transparent !important}
.pd2-pw-sheet .pd2-pw-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;margin-top:-9px;border-radius:50%;background:#fff;border:3px solid var(--pd2-accent);box-shadow:0 2px 6px rgba(0,0,0,.18)}
.pd2-pw-sheet .pd2-pw-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid var(--pd2-accent);box-shadow:0 2px 6px rgba(0,0,0,.18)}
.pd2-pw-sheet .pd2-pw-range:focus-visible{box-shadow:0 0 0 4px rgba(255,84,3,.18)}
.pd2-pw-sheet-ticks{display:flex;justify-content:space-between;font-size:11.5px;color:var(--pd2-ink-3)}
.pd2-pw-sheet-price{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--pd2-bg-soft);border:1px solid var(--pd2-line);display:flex;justify-content:space-between;align-items:center;gap:12px}
.pd2-pw-sheet-price b{font-size:26px;font-weight:700;letter-spacing:-.02em}
.pd2-pw-sheet-price small{font-size:12px;color:var(--pd2-ink-3);margin-left:6px}
.pd2-pw-sheet-save{font-size:12.5px;color:var(--pd2-green);min-height:18px;margin-top:2px}
.pd2-pw-sheet-note{font-size:11.5px;color:var(--pd2-ink-2);text-align:right;line-height:1.5}
.pd2-pw-sheet-nudge{margin-top:10px;padding:10px 12px;border-radius:12px;background:#FFF1E6;color:#993C1D;font-size:13px;line-height:1.5}
.pd2-pw-sheet .pd2-pw-sheet-buy{width:100%;margin-top:12px;background:var(--pd2-accent);color:#fff;font-weight:600;font-size:15.5px;padding:14px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 4px 12px rgba(255,84,3,.28)}
.pd2-pw-sheet .pd2-pw-sheet-buy[disabled]{opacity:.75;cursor:default}
.pd2-pw-sheet .pd2-pw-sheet-alt{display:block;width:100%;margin-top:10px;padding:8px;font-size:13.5px;color:var(--pd2-ink-2);text-decoration:underline;text-underline-offset:2px;text-align:center}
@media (min-width:721px){
  .pd2-pw-sheet{align-items:center}
  .pd2-pw-sheet-panel{border-radius:20px}
  .pd2-pw-sheet-handle{display:none}
}

/* --------------------------------------------------------------- cta ----- */
.pd2-pw-cta{max-width:420px;margin:28px auto 0}
/* Both buttons are scoped through .pd2-pw-cta on purpose. pd2-tokens.css
   resets `.pd2-root button{font:inherit;background:none;color:inherit}` at
   specificity (0,1,1); a bare `.pd2-pw-buy` (0,1,0) loses to it regardless of
   file order, so the button would render as unstyled body text. The prototype
   has the same reset as a bare `button{}` (0,0,1), which its `.btn-primary`
   already outranks — this restores that relationship. */
/* prototype .btn-primary */
.pd2-pw-cta .pd2-pw-buy{
  width:100%; background:var(--pd2-accent); color:#fff; font-weight:600; font-size:15.5px;
  padding:14px; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:9px;
  box-shadow:0 4px 12px rgba(255,84,3,.28); transition:all .15s; line-height:1.55;
}
.pd2-pw-cta .pd2-pw-buy:hover{background:var(--pd2-accent-ink); box-shadow:0 6px 16px rgba(255,84,3,.34)}
.pd2-pw-cta .pd2-pw-buy[disabled]{opacity:.75; cursor:default}
/* prototype .btn-quiet */
.pd2-pw-cta .pd2-pw-quiet{
  width:100%;margin-top:11px;padding:12px;font-size:14.5px;font-weight:600;
  color:var(--pd2-ink-2);border-radius:12px;line-height:1.55;
}
.pd2-pw-cta .pd2-pw-quiet:hover{background:var(--pd2-bg-soft)}
.pd2-pw-cta-note{text-align:center;font-size:12px;color:var(--pd2-ink-3);margin-top:10px}
.pd2-pw-cta-note a{color:var(--pd2-green);text-decoration:underline;text-underline-offset:2px}

/* ------------------------------------------------------------- trust ----- */
.pd2-pw-trust{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;margin-top:22px;
  padding-top:16px;border-top:1px solid var(--pd2-line);
}
.pd2-pw-trust span{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--pd2-ink-2)}
.pd2-pw-trust i{color:var(--pd2-green);font-size:15px}

/* -------------------------------------------------------- responsive ----- */
@media (max-width:1000px){
  .pd2-pw-plans{grid-template-columns:1fr}
}
