Pay Later 2
Pay-later receipt band: an itemised ledger of what is due today ($0.00) beside what is due on the charge date,
Use it in a prompt
Use offer/pay-later-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/offer/pay-later-2.tsx. - Import it and pass your copy and images (Props tab):
import { PayLater2 } from "@/components/funneldna/offer/pay-later-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/pay-later-2/component.tsx 498 lines
// layout: ledger-receipt
// Pay-later receipt band: an itemised ledger of what is due today ($0.00) beside what is due on the charge date,
// with a consent tick that unlocks the start button, so the visitor agrees to the later charge before the card.
// Theme: every colour, face, radius and shadow reads theme tokens; hex appears only as var() fallbacks
// (the marker default #fae37c and the white status-badge glyph). Images arrive as src props filled from slots.
import * as React from "react"
import { Check, Loader2, Lock, ShieldCheck } from "lucide-react"
import { FX_HOST, Pattern } from "../fx/fx"
export type PayLater2Line = {
label: string
/** Small line under the label. */
detail?: string
/** Amount at the end of the dotted leader, e.g. "$189.00". */
amount: string
}
export type PayLater2State = "default" | "hover" | "active"
/**
* Strings accept placeholders, replaced as text: {today} = todayTotal, {later} = laterTotal,
* {date} = chargeDate, {days} = trialDays.
*/
export type PayLater2Props = {
headline?: React.ReactNode
/** Promise phrase set on one marker stroke after the headline. */
highlight?: React.ReactNode
lead?: React.ReactNode
reasonsTitle?: string
/** Numbered inline reasons under the lead; empty hides them. */
reasons?: string[]
/** Transparent cut-out of the product (slot product). */
productImage?: string
productImageAlt?: string
receiptTitle?: React.ReactNode
/** Quiet chip under the receipt title; empty hides it. */
chip?: string
/** Free days before the charge. */
trialDays?: number
todayHeading?: string
todayNote?: string
todayItems?: PayLater2Line[]
subtotalLabel?: string
/** Empty hides the subtotal line. */
subtotal?: string
creditLabel?: string
/** The discount line, e.g. "−$189.00"; empty hides it. */
credit?: string
todayTotalLabel?: string
/** What is charged today, e.g. "$0.00". */
todayTotal?: string
laterHeading?: string
laterNote?: string
/** The charge date text, e.g. "December 21, 2026". */
chargeDate?: string
laterItems?: PayLater2Line[]
laterTotalLabel?: string
/** What is charged on the charge date, e.g. "$189.00". */
laterTotal?: string
keepsTitle?: string
/** What keeps going after the charge; empty hides the list. */
keeps?: string[]
/** The commit checkbox that unlocks the button. */
consentLabel?: string
label?: string
busyLabel?: string
/** Line under the button while it is locked. */
lockedNote?: string
/** Line under the button once it is unlocked. */
readyNote?: string
/** Cancellation link under the button; empty hides it. */
cancelLabel?: string
cancelHref?: string
onCancel?: () => void
/** Destination once the box is ticked. */
href?: string
/** Runs after the box is ticked; a returned promise shows the busy state until it settles. */
onAction?: () => void | Promise<unknown>
state?: PayLater2State
className?: string
}
const TODAY_ITEMS: PayLater2Line[] = [
{ label: "The Ridgeline Boot, waxed brown", detail: "Sent in your size, ready to wear", amount: "$189.00" },
{ label: "Shipping to your door", detail: "Free both ways", amount: "$0.00" },
{ label: "Prepaid return label, in the box", amount: "$0.00" },
]
const LATER_ITEMS: PayLater2Line[] = [
{ label: "The Ridgeline Boot, if you keep them", detail: "One charge, never a payment plan", amount: "{later}" },
{ label: "Sent back before {date}", detail: "The charge is cancelled", amount: "$0.00" },
]
const KEEPS = ["Free resoling for the life of the boot", "Free size swaps, shipped both ways"]
const REASONS = [
"You try them on your own floors first",
"Your card is saved, not charged, until {date}",
"Returns are free, with the label in the box",
]
export function PayLater2(props: PayLater2Props) {
const {
headline = "Try them at home for {days} days.",
highlight = "Pay nothing today.",
lead = "Wear them around the house. Keep them and you pay {later} on {date}. Send them back and you never pay.",
reasonsTitle = "Three reasons it's {today} today:",
reasons = REASONS,
productImage,
productImageAlt = "",
receiptTitle = "Hollow Pine ships your boots today. Your card waits {days} days.",
chip = "Card saved, not charged",
trialDays = 30,
todayHeading = "Due today",
todayNote = "Ships to your door today",
todayItems = TODAY_ITEMS,
subtotalLabel = "Subtotal",
subtotal = "$189.00",
creditLabel = "{days}-day try-at-home credit",
credit = "−$189.00",
todayTotalLabel = "Total due today",
todayTotal = "$0.00",
laterHeading = "Due on {date}",
laterNote = "Only if you keep them",
chargeDate = "December 21, 2026",
laterItems = LATER_ITEMS,
laterTotalLabel = "Total if you keep them",
laterTotal = "$189.00",
keepsTitle = "Yours for as long as you wear them:",
keeps = KEEPS,
consentLabel = "I understand I'll be charged {later} on {date} unless I cancel.",
label = "Ship my boots for {today}",
busyLabel = "One moment…",
lockedNote = "Tick the box to unlock your free trial",
readyNote = "Card saved, not charged · Free returns",
cancelLabel = "How to cancel before {date}",
cancelHref = "#cancel",
onCancel,
href,
onAction,
state = "default",
className = "",
} = props
const uid = React.useId()
const titleId = `${uid}-title`
const consentId = `${uid}-consent`
const noteId = `${uid}-note`
const forced = state === "hover" || state === "active"
const [agreed, setAgreed] = React.useState(forced)
const [busy, setBusy] = React.useState(false)
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
if (forced) setAgreed(true)
}, [forced])
const vars: Record<string, string> = { today: todayTotal, later: laterTotal, date: chargeDate, days: String(trialDays) }
const t = (text: string) => fill(text, vars)
const n = (node: React.ReactNode) => (typeof node === "string" ? t(node) : node)
const run = () => {
if (!agreed || busy || !onAction) return
const result = onAction()
if (result && typeof (result as Promise<unknown>).then === "function") {
setBusy(true)
const done = () => {
if (alive.current) setBusy(false)
}
;(result as Promise<unknown>).then(done, done)
}
}
const row = (lbl: string, amt: string, save = false) => (
<div className="cf-pl2__row">
<span className="cf-pl2__lbl">{t(lbl)}</span>
<span className="cf-pl2__dots" aria-hidden="true" />
<span className={save ? "cf-pl2__amt cf-pl2__amt--save" : "cf-pl2__amt"}>{t(amt)}</span>
</div>
)
const lines = (list: PayLater2Line[], offset: number) => (
<ul className="cf-pl2__lines">
{list.map((ln, i) => (
<li key={i} className="cf-pl2__ln" style={{ "--i": offset + i } as React.CSSProperties}>
{row(ln.label, ln.amount)}
{ln.detail ? <span className="cf-pl2__det">{t(ln.detail)}</span> : null}
</li>
))}
</ul>
)
const btnClass = [
"cf-pl2__btn",
agreed ? "is-ready" : "",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ")
const btnInner = busy ? (
<>
<span>
<Loader2 className="cf-pl2__spin cf-pl2__bi" size={20} strokeWidth={2.5} aria-hidden="true" />
{busyLabel}
</span>
</>
) : (
<>
<span>
{agreed ? null : <Lock className="cf-pl2__bi" size={20} strokeWidth={2.5} aria-hidden="true" />}
{t(label)}
</span>
</>
)
return (
<section className={`cf-pay-later-2 ${className}`.trim()} style={FX_HOST} aria-labelledby={titleId}>
<style>{CSS}</style>
<Pattern name="grid" fade="edges" />
<div className="cf-pl2__in">
<header className="cf-pl2__head">
<h2 id={titleId} className="cf-pl2__h">
{n(headline)}
{highlight ? (
<>
{" "}
<span className="cf-pl2__mark">{n(highlight)}</span>
</>
) : null}
</h2>
{lead ? <p className="cf-pl2__lead">{n(lead)}</p> : null}
{reasons.length ? (
<div className="cf-pl2__why">
{reasonsTitle ? <p className="cf-pl2__why-t">{t(reasonsTitle)}</p> : null}
<ol className="cf-pl2__why-l">
{reasons.map((r, i) => (
<li key={i} style={{ "--i": i } as React.CSSProperties}>
<span className="cf-pl2__num" aria-hidden="true">
{i + 1}
</span>
<span className="cf-pl2__why-x">{t(r)}</span>
</li>
))}
</ol>
</div>
) : null}
</header>
<div className="cf-pl2__card">
<div className={productImage ? "cf-pl2__top" : "cf-pl2__top cf-pl2__top--solo"}>
{productImage ? (
<img
className="cf-pl2__img"
src={productImage}
alt={productImageAlt}
width={392}
height={392}
loading="lazy"
decoding="async"
/>
) : null}
<div>
<h3 className="cf-pl2__rt">{n(receiptTitle)}</h3>
{chip ? (
<p className="cf-pl2__chip">
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
{t(chip)}
</p>
) : null}
</div>
</div>
<hr className="cf-pl2__rule" />
<div className="cf-pl2__cols">
<div className="cf-pl2__col">
<h4 className="cf-pl2__ch">{t(todayHeading)}</h4>
{todayNote ? <p className="cf-pl2__cn">{t(todayNote)}</p> : null}
{lines(todayItems, 0)}
{subtotal || credit ? (
<div className="cf-pl2__sums">
{subtotal ? row(subtotalLabel, subtotal) : null}
{credit ? row(creditLabel, credit, true) : null}
</div>
) : null}
<p className="cf-pl2__total">
<span className="cf-pl2__tl">{t(todayTotalLabel)}</span>
<span className="cf-pl2__ta cf-pl2__ta--today">{t(todayTotal)}</span>
</p>
</div>
<div className="cf-pl2__col cf-pl2__col--later">
<h4 className="cf-pl2__ch">{t(laterHeading)}</h4>
{laterNote ? <p className="cf-pl2__cn">{t(laterNote)}</p> : null}
{lines(laterItems, todayItems.length)}
<p className="cf-pl2__total">
<span className="cf-pl2__tl">{t(laterTotalLabel)}</span>
<span className="cf-pl2__ta">{t(laterTotal)}</span>
</p>
{keeps.length ? (
<div className="cf-pl2__keeps">
{keepsTitle ? <p className="cf-pl2__kt">{t(keepsTitle)}</p> : null}
<ul className="cf-pl2__kl">
{keeps.map((k, i) => (
<li key={i}>
<span className="cf-pl2__badge" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span>{t(k)}</span>
</li>
))}
</ul>
</div>
) : null}
</div>
</div>
<hr className="cf-pl2__rule" />
<div className="cf-pl2__act">
<label className={agreed ? "cf-pl2__consent is-on" : "cf-pl2__consent"} htmlFor={consentId}>
<input
id={consentId}
className="cf-pl2__cb"
type="checkbox"
checked={agreed}
disabled={busy}
onChange={(e) => setAgreed(e.target.checked)}
/>
<span className="cf-pl2__box" aria-hidden="true">
<Check size={18} strokeWidth={3} />
</span>
<span className="cf-pl2__ct">{t(consentLabel)}</span>
</label>
<div className="cf-pl2__go">
{href && agreed && !busy ? (
<a
className={btnClass}
href={href}
aria-describedby={noteId}
onClick={() => {
void onAction?.()
}}
>
{btnInner}
</a>
) : (
<button
type="button"
className={btnClass}
disabled={!agreed || busy}
aria-busy={busy || undefined}
aria-describedby={noteId}
onClick={run}
>
{btnInner}
</button>
)}
<p id={noteId} className={agreed ? "cf-pl2__note is-ready" : "cf-pl2__note"} aria-live="polite">
{agreed ? (
<ShieldCheck className="cf-pl2__ni" size={16} strokeWidth={2.5} aria-hidden="true" />
) : (
<Lock className="cf-pl2__ni" size={16} strokeWidth={2.5} aria-hidden="true" />
)}
{agreed ? t(readyNote) : t(lockedNote)}
</p>
{cancelLabel ? (
<p className="cf-pl2__cancel">
<a href={cancelHref} onClick={onCancel}>
{t(cancelLabel)}
</a>
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default PayLater2
function fill(text: string, vars: Record<string, string>) {
return text.replace(/[{]([a-z]+)[}]/g, (match: string, key: string) => (key in vars ? vars[key] : match))
}
const CSS = `
.cf-pay-later-2{position:relative;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-pay-later-2 *,.cf-pay-later-2 *::before,.cf-pay-later-2 *::after{box-sizing:border-box}
.cf-pay-later-2 .cf-pl2__in{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-pay-later-2 .cf-pl2__head{max-width:60rem;margin:0 auto;text-align:center}
.cf-pay-later-2 .cf-pl2__h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--ink)}
.cf-pay-later-2 .cf-pl2__mark{color:var(--marker-ink,var(--field-ink,var(--ink)));background:linear-gradient(180deg,transparent 14%,color-mix(in oklch,var(--marker,#fae37c) 90%,transparent) 14%,color-mix(in oklch,var(--marker,#fae37c) 90%,transparent) 94%,transparent 94%);padding:0 .14em;margin:0 -.04em;border-radius:.2em .45em .3em .25em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-pay-later-2 .cf-pl2__lead{margin:16px auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__why{margin-top:28px}
.cf-pay-later-2 .cf-pl2__why-t{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.4}
.cf-pay-later-2 .cf-pl2__why-l{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:16px 32px;width:fit-content;max-width:100%;margin:16px auto 0;padding:0}
.cf-pay-later-2 .cf-pl2__why-l li{display:flex;align-items:baseline;gap:10px;flex:0 1 17rem;min-width:0;text-align:left;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:500;animation:cf-pl2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-pay-later-2 .cf-pl2__why-x{min-width:0;text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__num{flex:none;min-width:1ch;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-pay-later-2 .cf-pl2__card{position:relative;max-width:1040px;margin:clamp(96px,11vw,152px) auto 0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)));animation:cf-pl2-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-pay-later-2 .cf-pl2__top{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:clamp(16px,2.6vw,28px)}
.cf-pay-later-2 .cf-pl2__top--solo{grid-template-columns:minmax(0,1fr)}
.cf-pay-later-2 .cf-pl2__img{display:block;width:clamp(112px,15vw,196px);height:auto;aspect-ratio:1;object-fit:contain;margin-top:calc(-1 * clamp(64px,8vw,112px));filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .35)) drop-shadow(0 14px 14px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22))}
.cf-pay-later-2 .cf-pl2__rt{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
.cf-pay-later-2 .cf-pl2__chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;margin:12px 0 0;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-pay-later-2 .cf-pl2__rule{height:1px;margin:clamp(20px,3vw,28px) 0;border:0;background:oklch(from var(--ink) l c h / .12)}
.cf-pay-later-2 .cf-pl2__cols{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(32px,5vw,64px)}
.cf-pay-later-2 .cf-pl2__cols::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:oklch(from var(--ink) l c h / .12)}
.cf-pay-later-2 .cf-pl2__ch{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
.cf-pay-later-2 .cf-pl2__cn{margin:8px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-pay-later-2 .cf-pl2__lines{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:14px}
.cf-pay-later-2 .cf-pl2__ln{animation:cf-pl2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-pay-later-2 .cf-pl2__row{display:flex;align-items:baseline;gap:10px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4}
.cf-pay-later-2 .cf-pl2__lbl{min-width:0;font-weight:600;text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__dots{flex:1 1 24px;min-width:16px;height:3px;transform:translateY(-.25em);background-image:radial-gradient(circle at 1.5px 1.5px,oklch(from var(--ink) l c h / .4) 1.2px,transparent 1.7px);background-size:7px 3px;background-repeat:repeat-x}
.cf-pay-later-2 .cf-pl2__amt{flex:none;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-pay-later-2 .cf-pl2__amt--save{color:var(--success)}
.cf-pay-later-2 .cf-pl2__det{display:block;margin-top:2px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__sums{display:grid;gap:10px;margin-top:20px}
.cf-pay-later-2 .cf-pl2__total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:16px 0 0;padding:16px 18px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-pay-later-2 .cf-pl2__tl{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3}
.cf-pay-later-2 .cf-pl2__ta{margin-left:auto;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-pay-later-2 .cf-pl2__ta--today{color:var(--success)}
.cf-pay-later-2 .cf-pl2__keeps{margin-top:24px}
.cf-pay-later-2 .cf-pl2__kt{margin:0 0 12px;font-size:.9375rem;font-weight:700;line-height:1.4}
.cf-pay-later-2 .cf-pl2__kl{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cf-pay-later-2 .cf-pl2__kl li{display:flex;align-items:flex-start;gap:10px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__badge{flex:none;display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
.cf-pay-later-2 .cf-pl2__act{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,400px);align-items:start;gap:clamp(16px,2.4vw,24px)}
.cf-pay-later-2 .cf-pl2__consent{position:relative;display:flex;align-items:center;gap:14px;min-height:72px;padding:14px 18px;border:1px solid oklch(from var(--ink) l c h / .16);border-radius:var(--radius,12px);background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink);cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.cf-pay-later-2 .cf-pl2__consent:hover{border-color:oklch(from var(--ink) l c h / .32)}
.cf-pay-later-2 .cf-pl2__consent.is-on{background:color-mix(in oklch,var(--accent) 10%,var(--card));border-color:oklch(from var(--accent) l c h / .55)}
.cf-pay-later-2 .cf-pl2__consent:has(.cf-pl2__cb:focus-visible){box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
.cf-pay-later-2 .cf-pl2__cb{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cf-pay-later-2 .cf-pl2__cb:disabled{cursor:progress}
.cf-pay-later-2 .cf-pl2__box{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;border:2px solid oklch(from var(--field-ink,var(--ink)) l c h / .55);background:var(--field);color:transparent;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.cf-pay-later-2 .cf-pl2__consent:hover .cf-pl2__box{border-color:var(--field-focus,var(--accent))}
.cf-pay-later-2 .cf-pl2__consent.is-on .cf-pl2__box{background:var(--accent-fill,var(--accent));border-color:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-pay-later-2 .cf-pl2__cb:focus-visible + .cf-pl2__box{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-pay-later-2 .cf-pl2__ct{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__go{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.cf-pay-later-2 .cf-pl2__go .cf-pl2__btn{white-space:normal;text-wrap:balance;min-width:0;padding-block:12px}
.cf-pay-later-2 .cf-pl2__go .cf-pl2__btn > span{min-width:0}
.cf-pay-later-2 .cf-pl2__btn{appearance:none;width:100%;min-height:72px;margin:0;padding:0 28px;border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;white-space:nowrap;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}
.cf-pay-later-2 .cf-pl2__btn:not(.is-ready){background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;border:1px solid var(--button-2-border,transparent);box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed}
.cf-pay-later-2 .cf-pl2__btn.is-ready{animation:cf-pl2-pop .3s ease-out}
.cf-pay-later-2 .cf-pl2__btn.is-ready:not(:disabled):hover,.cf-pay-later-2 .cf-pl2__btn.is-ready.is-hover{transform:translateY(-1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32),0 12px 20px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .55)}
.cf-pay-later-2 .cf-pl2__btn.is-ready:not(:disabled):active,.cf-pay-later-2 .cf-pl2__btn.is-ready.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .1) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-pay-later-2 .cf-pl2__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-pay-later-2 .cf-pl2__btn.is-ready:disabled{cursor:progress}
.cf-pay-later-2 .cf-pl2__note{margin:0;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-pay-later-2 .cf-pl2__ni{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-pay-later-2 .cf-pl2__note.is-ready .cf-pl2__ni{color:var(--success)}
.cf-pay-later-2 .cf-pl2__cancel{margin:0;text-align:center;font-size:.9375rem;line-height:1.4}
.cf-pay-later-2 .cf-pl2__cancel a{color:var(--link,var(--accent));font-weight:600;text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / .45);text-underline-offset:.18em;border-radius:4px}
.cf-pay-later-2 .cf-pl2__cancel a:hover{color:oklch(from var(--link,var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
.cf-pay-later-2 .cf-pl2__cancel a:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px;text-decoration-color:currentColor}
.cf-pay-later-2 .cf-pl2__spin{animation:cf-pl2-spin .8s linear infinite}
.cf-pay-later-2 .cf-pl2__bi{display:inline-block;vertical-align:-0.2em;margin-inline-end:10px}
@keyframes cf-pl2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-pl2-pop{from{transform:scale(.97)}to{transform:scale(1)}}
@keyframes cf-pl2-spin{to{transform:rotate(360deg)}}
@media (max-width:820px){
.cf-pay-later-2 .cf-pl2__why-l{flex-direction:column;align-items:flex-start;gap:10px;max-width:28rem}
.cf-pay-later-2 .cf-pl2__why-l li{flex:none}
.cf-pay-later-2 .cf-pl2__cols{grid-template-columns:minmax(0,1fr);gap:0}
.cf-pay-later-2 .cf-pl2__cols::before{display:none}
.cf-pay-later-2 .cf-pl2__col--later{position:relative;margin-top:28px;padding-top:28px}
.cf-pay-later-2 .cf-pl2__col--later::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:oklch(from var(--ink) l c h / .12)}
.cf-pay-later-2 .cf-pl2__act{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:520px){
.cf-pay-later-2 .cf-pl2__card{margin-top:88px}
.cf-pay-later-2 .cf-pl2__top{grid-template-columns:minmax(0,1fr);gap:12px}
.cf-pay-later-2 .cf-pl2__img{width:120px;margin-top:-64px}
.cf-pay-later-2 .cf-pl2__consent{align-items:flex-start;padding:14px 16px}
.cf-pay-later-2 .cf-pl2__go .cf-pl2__btn{padding:12px 16px;min-height:64px}
.cf-pay-later-2 .cf-pl2__row{gap:6px}
.cf-pay-later-2 .cf-pl2__dots{flex-basis:12px;min-width:12px}
.cf-pay-later-2 .cf-pl2__total{padding:14px 16px}
.cf-pay-later-2 .cf-pl2__cancel{text-wrap:balance}
}
@media (prefers-reduced-motion:reduce){
.cf-pay-later-2 .cf-pl2__card,.cf-pay-later-2 .cf-pl2__ln,.cf-pay-later-2 .cf-pl2__why-l li,.cf-pay-later-2 .cf-pl2__btn.is-ready,.cf-pay-later-2 .cf-pl2__spin{animation:none}
.cf-pay-later-2 .cf-pl2__btn,.cf-pay-later-2 .cf-pl2__consent,.cf-pay-later-2 .cf-pl2__box{transition:none}
.cf-pay-later-2 .cf-pl2__btn.is-ready:not(:disabled):hover,.cf-pay-later-2 .cf-pl2__btn.is-ready.is-hover,.cf-pay-later-2 .cf-pl2__btn.is-ready:not(:disabled):active,.cf-pay-later-2 .cf-pl2__btn.is-ready.is-active{transform:none}
}
`
pieces/offer/pay-later-2/specimen.tsx 24 lines
import __studioImage166a320e from "../assets/0f9a7d0781055031.webp";
import { PayLater2, type PayLater2State } from "../pay-later-2"
import { slot } from "../../slots"
export const states = ["default", "hover", "active"]
export default function PayLater2Specimen({ state = "default" }: { state?: PayLater2State }) {
return (
<PayLater2
state={state}
productImage={slot(
"product",
__studioImage166a320e
)}
productImageAlt="A pair of waxed brown leather Ridgeline boots from Hollow Pine"
trialDays={30}
chargeDate="December 21, 2026"
subtotal="$189.00"
credit="−$189.00"
todayTotal="$0.00"
laterTotal="$189.00"
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalPayLater2 |
React.ReactNode |
|
highlight OptionalPayLater2 |
React.ReactNode |
|
lead OptionalPayLater2 |
React.ReactNode |
|
reasonsTitle OptionalPayLater2 |
string |
|
reasons OptionalPayLater2 |
string[] |
|
productImage OptionalPayLater2 |
string |
|
productImageAlt OptionalPayLater2 |
string |
|
receiptTitle OptionalPayLater2 |
React.ReactNode |
|
chip OptionalPayLater2 |
string |
|
trialDays OptionalPayLater2 |
number |
|
todayHeading OptionalPayLater2 |
string |
|
todayNote OptionalPayLater2 |
string |
|
todayItems OptionalPayLater2 |
PayLater2Line[] |
|
subtotalLabel OptionalPayLater2 |
string |
|
subtotal OptionalPayLater2 |
string |
|
creditLabel OptionalPayLater2 |
string |
|
credit OptionalPayLater2 |
string |
|
todayTotalLabel OptionalPayLater2 |
string |
|
todayTotal OptionalPayLater2 |
string |
|
laterHeading OptionalPayLater2 |
string |
|
laterNote OptionalPayLater2 |
string |
|
chargeDate OptionalPayLater2 |
string |
|
laterItems OptionalPayLater2 |
PayLater2Line[] |
|
laterTotalLabel OptionalPayLater2 |
string |
|
laterTotal OptionalPayLater2 |
string |
|
keepsTitle OptionalPayLater2 |
string |
|
keeps OptionalPayLater2 |
string[] |
|
consentLabel OptionalPayLater2 |
string |
|
label OptionalPayLater2 |
string |
|
busyLabel OptionalPayLater2 |
string |
|
lockedNote OptionalPayLater2 |
string |
|
readyNote OptionalPayLater2 |
string |
|
cancelLabel OptionalPayLater2 |
string |
|
cancelHref OptionalPayLater2 |
string |
|
onCancel OptionalPayLater2 |
() => void |
|
href OptionalPayLater2 |
string |
|
onAction OptionalPayLater2 |
() => void | Promise<unknown> |
|
state OptionalPayLater2 |
PayLater2State |
|
className OptionalPayLater2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-focus--field-ink- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
0f9a7d0781055031.webp
image/webp · 348 KB