/* The public adopter checkout (/w/*). Mobile-first and light only, in the
   tenant app's look: Nunito text with Baloo 2 headings, the purple palette,
   and a white panel over the purple hexagon backdrop. Builds on lib-web's
   web.css (tokens, .web-btn, .web-stepper, .web-sticky-cta). Loaded from
   'self' — the page's CSP allows no inline styles, and the fonts are
   self-hosted (lib-web /web/fonts, SIL OFL) because it allows no third-party
   fonts either. */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/web/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/web/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/web/fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/web/fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* The tenant app's palette, with its Dark Text Grey for muted text (10.7:1
     on white): every text colour here passes WCAG AA; the purple accent is
     8.6:1 under white button text. */
  --web-radius: 12px;
  --web-canvas: #f6f6fa; --web-surface: #ffffff; --web-surface-raised: #f6f6fa;
  --web-border: #eceaf2; --web-divider: #f2f0f7;
  --web-fg: #20242e; --web-fg-muted: #413c44;
  --web-accent: #6c2ba3; --web-accent-hover: #581f86; --web-accent-fg: #ffffff;
  --web-accent-bg: #f3ebfb; --web-ring: rgba(108, 43, 163, .30);
  --web-link: #007c85; /* Neon Blue darkened to 5:1 on white, as /app's links */
  --web-ok: #3fa566; --web-ok-bg: #e6f6ec;
  --web-warning-bg: #fdeee2;
  /* field errors are text too */
  --web-danger: #c62828; --web-danger-bg: #fdecec;
  --co-max: 640px;
  --co-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --co-display: "Baloo 2", var(--co-font);
  --co-input-border: #d9d6e3;
  --co-shadow: 0 18px 50px -12px rgba(58, 30, 92, .35);
}

html, body { margin: 0; background: #6c2ba3; }
body { font-family: var(--co-font); color: var(--web-fg); font-size: 16px; line-height: 1.5; }
h1, h2, h3, legend { font-family: var(--co-font); }

/* The backdrop: the Pawlytics purple-into-teal gradient (as /app's Workflows
   section) under its faceted-hexagon lattice (the same tile as /app; data:
   images are allowed by img-src). */
.co-app {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background-color: #652d90;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22121.2%22%20height%3D%22210.0%22%20viewBox%3D%220%200%20121.2%20210.0%22%3E%3Cpolygon%20points%3D%220.0%2C0.0%200.0%2C-70.0%2060.6%2C-35.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C0.0%2060.6%2C-35.0%2060.6%2C35.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C0.0%2060.6%2C35.0%200.0%2C70.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C0.0%200.0%2C70.0%20-60.6%2C35.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C0.0%20-60.6%2C35.0%20-60.6%2C-35.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C0.0%20-60.6%2C-35.0%200.0%2C-70.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%20121.2%2C-70.0%20181.9%2C-35.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%20181.9%2C-35.0%20181.9%2C35.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%20181.9%2C35.0%20121.2%2C70.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%20121.2%2C70.0%2060.6%2C35.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%2060.6%2C35.0%2060.6%2C-35.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C0.0%2060.6%2C-35.0%20121.2%2C-70.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%200.0%2C140.0%2060.6%2C175.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%2060.6%2C175.0%2060.6%2C245.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%2060.6%2C245.0%200.0%2C280.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%200.0%2C280.0%20-60.6%2C245.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%20-60.6%2C245.0%20-60.6%2C175.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%220.0%2C210.0%20-60.6%2C175.0%200.0%2C140.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%20121.2%2C140.0%20181.9%2C175.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%20181.9%2C175.0%20181.9%2C245.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%20181.9%2C245.0%20121.2%2C280.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%20121.2%2C280.0%2060.6%2C245.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%2060.6%2C245.0%2060.6%2C175.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%22121.2%2C210.0%2060.6%2C175.0%20121.2%2C140.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%2060.6%2C35.0%20121.2%2C70.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%20121.2%2C70.0%20121.2%2C140.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%20121.2%2C140.0%2060.6%2C175.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%2060.6%2C175.0%200.0%2C140.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.07%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%200.0%2C140.0%200.0%2C70.0%22%20fill%3D%22rgba%280%2C0%2C0%2C.035%29%22%2F%3E%3Cpolygon%20points%3D%2260.6%2C105.0%200.0%2C70.0%2060.6%2C35.0%22%20fill%3D%22rgba%28255%2C255%2C255%2C.02%29%22%2F%3E%3C%2Fsvg%3E"),
    linear-gradient(125deg, #652d90, #4a4fa8 55%, #009ca7);
  background-size: 121px 210px, 100% 100%;
}

/* Header, on the backdrop: the organization's brand, not Pawlytics'. */
.co-header {
  display: flex; align-items: center; gap: 12px; box-sizing: border-box;
  width: 100%; max-width: var(--co-max); margin: 0 auto; padding: 14px 16px 16px;
}
.co-header__logo {
  flex: none; width: 44px; height: 44px; box-sizing: border-box; padding: 3px;
  border-radius: 12px; object-fit: contain; background: #fff;
  box-shadow: 0 6px 18px -6px rgba(20, 8, 40, .45);
}
.co-header__name {
  font-family: var(--co-display); font-weight: 700; font-size: 20px; line-height: 1.2; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* The panel: on a phone a white sheet from under the header to the bottom;
   wider, a floating card like the app's. */
.co-main {
  flex: 1 0 auto; box-sizing: border-box; width: 100%; max-width: var(--co-max);
  margin: 0 auto; padding: 20px 16px 28px;
  background: var(--web-surface); border-radius: 24px 24px 0 0;
}
.co-main > .web-stepper { margin-bottom: 22px; }

.co-title { margin: 0 0 6px; font-family: var(--co-display); font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.co-lead { margin: 0 0 20px; color: var(--web-fg-muted); }

.co-section { margin: 0 0 20px; padding: 16px; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 16px; box-shadow: 0 8px 22px -16px rgba(58, 30, 92, .35); }
.co-section h2 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--web-fg-muted); }

/* Secondary buttons inside the page are soft purple, like the app's chips;
   the sticky bar keeps the solid primary. */
.co-main .web-btn--secondary { background: var(--web-accent-bg); color: var(--web-accent); border-color: transparent; }
.co-main .web-btn--secondary:hover { background: #eadcf8; }
.web-btn { font-weight: 800; letter-spacing: .01em; }

/* Pet cards: a fixed-aspect photo box so nothing jumps while images load. */
.co-pets { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.co-pet { display: flex; gap: 12px; align-items: center; }
.co-pet__photo {
  flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--web-accent-bg); display: flex; align-items: center; justify-content: center;
}
.co-pet__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-pet__placeholder { font-family: var(--co-display); font-size: 30px; font-weight: 700; color: var(--web-accent); }
.co-pet__name { margin: 0; font-family: var(--co-display); font-size: 20px; line-height: 1.2; font-weight: 700; }
.co-pet__meta { margin: 2px 0 0; font-size: 14px; color: var(--web-fg-muted); }

.co-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.co-details dt { color: var(--web-fg-muted); font-size: 14px; }
.co-details dd { margin: 0; overflow-wrap: anywhere; }

.co-contact { margin: 4px 0 0; font-size: 14px; color: var(--web-fg-muted); }
.co-contact a, .co-prose a, .off-frame a { color: var(--web-link); font-weight: 700; }

.co-prose { font-size: 16px; }
.co-prose > :first-child { margin-top: 0; }
.co-prose h1, .co-prose h2, .co-prose h3 { font-family: var(--co-display); line-height: 1.25; margin: 1.2em 0 .4em; }
.co-prose h1 { font-size: 20px; } .co-prose h2 { font-size: 18px; } .co-prose h3 { font-size: 16px; }
.co-prose p, .co-prose ul, .co-prose ol { margin: 0 0 12px; }
.co-list { padding-left: 1.25em; }
.co-list li { margin-bottom: 8px; }

.co-error {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--web-danger-bg); color: #b71c1c; font-weight: 700;
}

/* Notices (invalid / cancelled / expired / unavailable) and the thank-you page. */
.co-notice, .co-done { padding: 32px 0 8px; text-align: center; }
.co-notice h1 { margin: 0 0 12px; font-family: var(--co-display); font-size: 26px; line-height: 1.2; }
.co-notice::before {
  content: "!"; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 9999px;
  background: var(--web-accent-bg); color: var(--web-accent);
  font-family: var(--co-display); font-size: 30px; font-weight: 800; line-height: 1;
}
.co-notice p { margin: 0 auto 12px; max-width: 32em; color: var(--web-fg-muted); }
.co-done__mark {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 9999px; background: var(--web-ok);
  display: flex; align-items: center; justify-content: center;
}
.co-done__mark::after {
  content: ""; width: 22px; height: 12px; margin-top: -4px;
  border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg);
}
.co-done + .co-contact { text-align: center; }

/* Thank-you: the automatic work (htmx-polled) and the signed contracts. */
.co-progress { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--web-surface-raised); text-align: center; font-size: 15px; }
.co-progress p { margin: 0; }
.co-progress__busy::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 9999px; animation: co-spin .8s linear infinite;
}
.co-progress__done::before { content: "\2713  "; font-weight: 700; color: var(--web-ok); }
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-progress__busy::before { animation: none; } }
.co-downloads h2 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--web-fg-muted); }

/* The sticky action bar spans the viewport; its button stays phone-width. */
.co-cta { justify-content: center; }
.co-cta-form { display: flex; flex: 1 1 auto; max-width: var(--co-max); }
.co-cta-form > .web-btn { flex: 1 1 auto; }
/* a step's own button (one that submits the page's form) is no wider than the card either */
.co-cta > .web-btn { max-width: var(--co-max); }

/* The action bar: on a phone a white bar pinned to the bottom of the screen;
   wider, it follows the card, its button white over the backdrop. */
.co-cta .web-btn--primary { box-shadow: 0 8px 20px -10px rgba(58, 30, 92, .55); }

.co-footer { padding: 16px; text-align: center; font-size: 13px; color: var(--web-fg-muted); background: var(--web-surface); }
.co-footer a { color: var(--web-link); }

@media (min-width: 641px) {
  .co-header { padding: 28px 8px 18px; }
  .co-header__logo { width: 52px; height: 52px; border-radius: 14px; }
  .co-header__name { font-size: 24px; }
  /* fits its content; the action bar follows it, wherever it ends — not
     pinned to the bottom of the window with a gap above it */
  .co-main {
    flex: 0 0 auto; width: calc(100% - 48px); margin: 0 auto; padding: 32px 36px 36px;
    border-radius: 28px; box-shadow: var(--co-shadow);
  }
  .co-main:last-child { margin-bottom: 32px; }
  .co-cta { position: static; margin-top: 20px; background: transparent; border-top-color: transparent; }
  /* white over the purple backdrop, where the primary purple disappeared */
  .co-cta .web-btn--primary { background: #fff; color: var(--web-accent); box-shadow: 0 14px 34px -10px rgba(20, 8, 40, .6); }
  .co-cta .web-btn--primary:hover { background: #f4ecfc; }
  .co-footer { margin-top: auto; }
  .co-title { font-size: 32px; }
  .co-pet__photo { width: 120px; }
  .co-footer { background: none; color: rgba(255, 255, 255, .85); padding: 20px 16px 28px; }
  .co-footer a { color: #fff; }
}

/* --- Contracts step --------------------------------------------------------- */

.ec-paper {
  margin: 0 0 20px; padding: 16px; background: #fff;
  border: 1px solid var(--web-border); border-radius: 12px;
}
.ec-paper__title { margin: 0 0 12px; font-family: var(--co-display); font-size: 22px; line-height: 1.2; }
.ec-paper__box {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 16px;
  padding: 12px; border: 1px solid var(--web-border); border-radius: 12px; background: var(--web-surface-raised);
}
.ec-paper__box dt { color: var(--web-accent); font-weight: 700; font-size: 14px; }
.ec-paper__box dd { margin: 0; overflow-wrap: anywhere; }
.ec-paper__body { font-size: 15px; overflow-wrap: anywhere; }

/* An "Initial here" marker: a real checkbox, 44px tall, stamped once ticked. */
.ec-mark {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box;
  margin: 2px 0; padding: 4px 12px; vertical-align: middle; cursor: pointer;
  border: 2px dashed var(--web-accent); border-radius: 12px; background: var(--web-accent-bg);
  font-size: 14px; font-weight: 800; color: var(--web-accent);
}
.ec-mark input { width: 20px; height: 20px; margin: 0; accent-color: var(--web-accent); }
.ec-mark__img { display: none; height: 28px; width: auto; }
.ec-mark.is-done { border-style: solid; background: #fff; }
.ec-mark.is-done .ec-mark__img[src] { display: inline; }
.ec-mark.is-done .ec-mark__img[src] ~ .ec-mark__text,
.ec-mark.is-done .ec-mark__text:has(~ .ec-mark__img[src]) { display: none; }

.ec-fieldset {
  margin: 0 0 16px; padding: 16px; background: var(--web-surface);
  border: 1px solid var(--web-border); border-radius: 12px;
}
.ec-fieldset legend { padding: 0 4px; font-weight: 800; }
.ec-hint { margin: 0 0 12px; font-size: 14px; color: var(--web-fg-muted); }

/* Draw / Type — the tabs and pads appear only once signature.js runs. */
.ec-tabs { display: none; }
.ec-js .ec-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.ec-tab {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1px solid var(--co-input-border); border-radius: 12px; background: var(--web-surface); font-weight: 700;
}
.ec-tab:has(input:checked) { border-color: var(--web-accent); background: var(--web-accent-bg); color: var(--web-accent); box-shadow: inset 0 0 0 1px var(--web-accent); }
.ec-pad { display: none; position: relative; }
.ec-js.ec-mode-drawn .ec-pad { display: block; }
.ec-js.ec-mode-drawn .ec-typed { display: none; }
.ec-pad__canvas {
  display: block; width: 100%; height: 160px; touch-action: none;
  background: #fff; border: 1px solid var(--co-input-border); border-radius: 12px;
  background-image: linear-gradient(to top, transparent 36px, var(--web-border) 36px, var(--web-border) 37px, transparent 37px);
}
.ec-pad--initials .ec-pad__canvas { height: 110px; max-width: 280px; }
.ec-pad__clear {
  position: absolute; top: 6px; right: 6px; min-height: 36px; padding: 4px 10px;
  border: 1px solid var(--co-input-border); border-radius: 10px; background: var(--web-surface); font: inherit; font-size: 13px; font-weight: 700;
}
.ec-pad--initials .ec-pad__clear { left: 226px; right: auto; }

.ec-consent { margin: 0 0 8px; }
.ec-consent__label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ec-consent__label input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--web-accent); }

.ec-list { margin: 0 0 16px; padding: 0; list-style: none; border: 1px solid var(--web-border); border-radius: 16px; background: var(--web-surface); }
.ec-list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--web-divider); font-size: 15px; }
.ec-list__item:first-child { border-top: 0; }
.ec-list__item.is-current { font-weight: 700; }
.ec-list__title { min-width: 0; }
.ec-list__pet { display: block; color: var(--web-fg-muted); font-size: 14px; font-weight: 600; }
.ec-list__state { flex: none; color: var(--web-fg-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ec-list__item.is-current .ec-list__state { padding: 3px 10px; border-radius: 9999px; background: var(--web-accent-bg); color: var(--web-accent); }
.ec-list__pdf {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9999px;
  background: var(--web-accent-bg); color: var(--web-accent); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.ec-list__pdf:hover { background: #eadcf8; }

/* Re-apply the signature from the contract signed just before. */
.ec-reuse {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px;
  border: 1px solid var(--web-accent); border-radius: 16px; background: var(--web-accent-bg); font-size: 15px;
}
.ec-reuse input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--web-accent); }
.ec-form.ec-mode-reuse .ec-tabs,
.ec-form.ec-mode-reuse .ec-fieldset,
.ec-js.ec-mode-reuse .ec-pad { display: none; }


/* --- Invoice step ------------------------------------------------------------ */

.inv-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.inv-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-row--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--web-border); font-size: 18px; font-weight: 800; }
.inv-form { margin: 0; }
.inv-donate { border-width: 1px; }
.inv-donate legend { padding: 0 4px; font-weight: 800; }
.inv-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.inv-preset { position: relative; }
.inv-preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inv-preset span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--co-input-border); border-radius: 9999px; background: var(--web-surface); font-weight: 700; cursor: pointer;
}
.inv-preset input:checked + span { border-color: var(--web-accent); background: var(--web-accent); color: var(--web-accent-fg); box-shadow: none; }
.inv-preset input:focus-visible + span { outline: 2px solid var(--web-ring); outline-offset: 2px; }
.inv-custom { display: none; margin: 0 0 12px; }
.inv-form:has(input[name="donation"][value="custom"]:checked) .inv-custom { display: block; }
.inv-custom span { display: block; margin-bottom: 4px; font-size: 14px; color: var(--web-fg-muted); }
.inv-custom input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; font-size: 16px;
  border: 1px solid var(--co-input-border); border-radius: 12px; background: var(--web-surface);
}
.inv-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.inv-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--web-accent); }
.inv-cover { margin: 0 0 20px; }
.inv-totals { margin: 0 0 20px; padding: 14px 16px; border-radius: 16px; background: var(--web-surface-raised); }
.inv-note { margin: 2px 0; font-size: 13px; color: var(--web-fg-muted); }

/* Insurance offers: the plan once, then one card per pet; the stub's example
   label is loud on purpose. */
.off-plan { margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--web-accent-bg); color: var(--web-accent); font-size: 14px; font-weight: 700; }
.off-card { padding: 10px 0; border-bottom: 1px solid var(--web-border); }
.off-card .inv-row span:last-child { font-weight: 800; }
.off-card:last-of-type { border-bottom: 0; }
.off-example {
  display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 8px;
  background: var(--web-warning-bg); color: #8a4b00; font-size: 12px; font-weight: 700;
}
#offer-quotes .web-btn { margin: 10px 0 4px; }
.off-enroll { margin: 14px 0 10px; }
/* The insurer's checkout, embedded: as tall as its page says it is
   (checkout.js); the loading line until it's up. On a phone it runs to the
   screen's edges, out of the quotes card (16px padding + 1px border) and the
   panel (16px): the insurer's page is laid out for the device's width and
   clips at the card's. */
.off-frame { margin: 14px 0 10px; }
.off-frame__frame { display: block; width: 100%; height: 760px; border: 0; border-radius: 16px; background: #fff; }
.off-frame[data-loaded] .off-frame__loading { display: none; }
/* How the purchase went, from the insurer's page (checkout.js). */
.off-frame__result { margin: 12px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--web-warning-bg); font-weight: 700; }
/* The confirmation once the purchase went through: in the frame's place
   (checkout.js), or instead of the prices when the step is opened again. Its
   heading is a heading, not a card's small label. */
.off-done { padding: 20px 0 6px; text-align: center; outline: none; }
.off-done[hidden] { display: none; }
.co-section .off-done__title {
  margin: 0 0 10px; font-family: var(--co-display); font-size: 24px; line-height: 1.2; font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--web-fg);
}
.off-done p { margin: 0 auto 8px; max-width: 32em; }
.off-done__policy strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.off-done__next { color: var(--web-fg-muted); }
.off-done__continue { display: flex; margin: 14px 0 0; }
.off-done__continue > .web-btn { flex: 1 1 auto; }
/* the confirmation's Continue stands in for the action bar's (checkout.js) */
.co-cta[hidden] { display: none; }
/* A pet's sex, when its record doesn't say: the question, then the button. */
.off-sex { margin: 12px 0 4px; }
.off-sex__pet { margin: 0 0 12px; }
/* Where the adopter lives, when it isn't on file: city, then state and ZIP. The street waits for Enroll. */
.off-where { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; min-width: 0; margin: 4px 0 8px; padding: 0; border: 0; }
.off-where > .web-field:first-of-type { grid-column: 1 / -1; }
.off-where .web-field input, .off-where .web-field select { width: 100%; max-width: 100%; box-sizing: border-box; }
/* Enroll's street, when it isn't on file. */
.off-enroll .web-field input { width: 100%; max-width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
  .off-frame__frame { width: calc(100% + 66px); margin: 0 -33px; border-radius: 0; }
}

/* Surrender: the owner's pet details. One section per pet; plain form controls. */
.pd-form { display: grid; gap: 0; min-width: 0; }
.pd-pet { display: grid; gap: 16px; min-width: 0; }
/* grid items default to min-width:auto, and a select is as wide as its longest option */
.pd-pet > * { min-width: 0; }
.pd-pet .web-field input, .pd-pet .web-field select, .pd-pet .web-field textarea { width: 100%; max-width: 100%; }
.pd-pet h2 { margin-bottom: 0; }
.pd-radios { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.pd-radios legend { width: 100%; margin-bottom: 8px; padding: 0; }
.pd-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--co-input-border); border-radius: 12px; background: var(--web-surface); cursor: pointer; font-weight: 700; }
.pd-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--web-accent); }
.pd-radio:has(input:checked) { border-color: var(--web-accent); background: var(--web-accent-bg); color: var(--web-accent); box-shadow: inset 0 0 0 1px var(--web-accent); }
.pd-radios .web-field__error { width: 100%; }
.pd-photos { display: grid; gap: 6px; }
.pd-photos__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-photos__list img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.pd-photos__list li { display: grid; gap: 4px; justify-items: start; }
.pd-photos__remove { min-height: 32px; padding: 2px 10px; border: 1px solid var(--co-input-border); border-radius: 10px;
  background: var(--web-surface); color: var(--web-fg); font: inherit; font-size: 14px; cursor: pointer; }
.pd-photos__add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px dashed var(--web-accent); border-radius: 12px; background: var(--web-accent-bg); color: var(--web-accent); font-weight: 800; cursor: pointer; }
.pd-photos__add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-photos__add:focus-within { outline: 2px solid var(--web-ring); outline-offset: 2px; }
.pd-photos__status { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--web-fg-muted); }

/* Form controls in the page take the app's input look. */
.co-main .web-field input:not([type="checkbox"]):not([type="radio"]),
.co-main .web-field select, .co-main .web-field textarea { border-color: var(--co-input-border); }
.co-main .web-field__label { font-weight: 700; }
.co-main input[type="checkbox"], .co-main input[type="radio"] { accent-color: var(--web-accent); }

/* Finix's hosted fields are iframes with no width of their own (300px). */
#finix-card iframe { width: 100%; }

/* Fieldset legends sit inside their card, as a heading, not on its border.
   Everything after the legend clears it, not just the next element: that one
   may be hidden (the drawing pad in Type mode), and a flex box beside the
   float is squeezed into no width. */
.inv-donate legend, .ec-fieldset legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 16px; font-weight: 800; }
.inv-donate legend ~ *, .ec-fieldset legend ~ * { clear: both; }
