/* The payment method on the buy buttons (js/pay.js, 2026-10-06): on a device with Apple Pay or Google Pay, a chip at
   the left end of the page's own buy button says how the person pays and opens a sheet to change it (the wallet or a
   card); the button pays that way. The chip takes the button's own ink, so it sits on the yellow, green, pine or
   maroon buttons of every page alike; the sheet is neutral (white, ink, a hairline) in the page's sans.
   Plus, on the ad landings (js/go.js), the bar at the bottom of the screen with that same button. */

/* ---------- the chip on a buy button ---------- */
.pm-wrap { position: relative; display: block; }
.pm-wrap > .pm-has { padding-left: calc(var(--pm-w, 88px) + 24px); }
.pm-chip {
  position: absolute; left: 12px; top: 50%; z-index: 1; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 1px; height: 34px; padding: 0 5px 0 9px;
  border: 1.5px solid currentColor; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
@supports (border-color: color-mix(in srgb, red 50%, transparent)) {
  .pm-chip { border-color: color-mix(in srgb, currentColor 70%, transparent); }
  .pm-chip:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
}
.pm-chip::before { content: ""; position: absolute; inset: -8px -6px; } /* a bigger target than the chip itself */
/* phones: a little less room around the chip, so the words keep to one line (js/pay.js fit can also take their type
   down by up to 2.5px; 2026-10-06 "Get my payoff plan · / $19" broke in two on a 390px iPhone) */
@media (max-width: 400px) { .pm-wrap > .pm-has { padding-left: calc(var(--pm-w, 88px) + 20px); padding-right: 14px; } }
.pm-chip:disabled { cursor: progress; opacity: .6; }
.pm-mark { display: inline-flex; align-items: center; gap: 4px; }
.pm-apple { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; font-weight: 600; font-size: 1.14em; line-height: 1; margin: -2px 1px 0 0; }
.pm-g { width: 15px; height: 15px; }
.pm-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }

/* ---------- the sheet to choose ---------- */
.pm-dim { position: fixed; inset: 0; z-index: 2147483001; background: rgba(9, 20, 17, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.pm-dim.on { opacity: 1; visibility: visible; transition: opacity .25s; }
.pm-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483002; max-width: 520px; margin: 0 auto;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0;
  background: #fff; color: #0E1A16; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  font-family: var(--sans, inherit); -webkit-font-smoothing: antialiased;
  transform: translateY(105%); visibility: hidden; transition: transform .42s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .42s;
}
.pm-sheet.on { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.pm-grab { width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: #D5DBDA; }
.pm-head { position: relative; margin: 0 0 14px; text-align: center; }
.pm-head h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.pm-x { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: #4B5B5A; cursor: pointer; }
.pm-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pm-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; margin: 0 0 10px; padding: 10px 14px;
  border: 1.5px solid #DCE4E1; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s;
}
.pm-opt:hover { border-color: #9DAAA6; }
.pm-opt.on { border: 2px solid #0E1A16; padding: 9.5px 13.5px; }
.pm-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 34px; padding: 0 9px; border: 1.5px solid #0E1A16; border-radius: 9px; background: #F2F5F4; font-size: 14px; font-weight: 700; }
.pm-t { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pm-t b { font-size: 16px; line-height: 1.25; font-weight: 600; }
.pm-t small { font-size: 13px; line-height: 1.3; color: #5B6762; }
.pm-tick { flex: none; width: 24px; height: 24px; color: #0E1A16; }
.pm-tick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pm-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.35; color: #5B6762; text-align: center; }
.pm-note svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- the landings' bar at the bottom of the screen ---------- */
/* Up whenever none of the page's own buy buttons is in view: always one way to buy on screen, never two side by
   side. Frosted white, so it sits over the dark hero and the light sections alike. */
.pay-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-top: 1px solid rgba(14, 26, 22, .08); box-shadow: 0 -12px 32px -16px rgba(14, 26, 22, .35);
  font-family: var(--sans, inherit); /* the landing's interface face, not the article's serif */
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
}
.pay-dock.on { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.pay-dock-in { max-width: 480px; margin: 0 auto; }
.pay-dock .pm-wrap, .pay-dock [data-buy] { width: 100%; max-width: none; margin: 0; }
.pay-dock-note { margin: 7px 0 0; font-size: 12.5px; line-height: 1.3; color: #5B6762; text-align: center; }
@media (max-width: 360px) { .pay-dock-note { font-size: 11.5px; letter-spacing: -.005em; } } /* one line on 320px too */

/* the page keeps its last lines above the bar (room kept while the bar exists, so nothing jumps when it comes and
   goes), and its payment messages float above it */
body.has-dock { padding-bottom: var(--pay-dock, 110px); }
body.has-dock [data-go-error]:not([hidden]), body.has-dock [data-go-canceled]:not([hidden]) { bottom: calc(14px + var(--pay-dock, 110px)); }
/* the cookie banner (js/consent.js), when it is on, waits above the bar */
body.dock-on #ais-ck { bottom: calc(10px + var(--pay-dock, 110px)); }
/* a phone: the bar is the way to buy while it is up, the small button in the header steps aside */
@media (max-width: 760px) { body.dock-on .bar-buy, body.dock-on .mini-buy { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .pay-dock, .pay-dock.on, .pm-sheet, .pm-sheet.on, .pm-dim, .pm-dim.on { transition: none; } }
