Bundle Picker 4
Consultative bundle picker: two bold questions (dog size, number of dogs) turn the supplied serving rules into a
Use it in a prompt
Use offer/bundle-picker-4 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/bundle-picker-4.tsx. - Import it and pass your copy and images (Props tab):
import { BundlePicker4 } from "@/components/funneldna/offer/bundle-picker-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/bundle-picker-4/component.tsx 809 lines
// layout: interview-qa
// Consultative bundle picker: two bold questions (dog size, number of dogs) turn the supplied serving rules into a
// daily serving, every pack shows how many days it lasts at that rate, and the right-sized pack is picked for the buyer.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Dog, Info, Loader2, Minus, Plus, ShieldCheck, ShoppingCart } from 'lucide-react'
import { Spot } from '../fx/fx'
import calendar from '../fx/spots/calendar'
export type BundlePicker4Size = {
label: string
/** Weight range shown under the label, e.g. 26–60 lb. */
detail?: string
/** Servings per dog per day for this size, from the product's serving guide. */
perDay: number
}
export type BundlePicker4Pack = {
/** Number of packs in the bundle, e.g. 1, 3, 6. */
count: number
/** Total price of the bundle in the chosen currency. */
price: number
/** Cut-out photo of this exact bundle; without it productImage is fanned out by count (up to three). */
image?: string
imageAlt?: string
/** Value passed back for this bundle; defaults to the pack count. */
id?: string
}
export type BundlePicker4Answers = { size: BundlePicker4Size; sizeIndex: number; dogs: number; daily: number }
export type BundlePicker4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/**
* Copy templates. Named placeholders are replaced as text: {perDay}, {perDayWord}, {dogs}, {daily}, {dailyWord},
* {size}, {detail}, {pack}, {count}, {packWord}, {total}, {totalWord}, {days}, {cost}, {savings}, {coverDays},
* {countWord}, {guarantee}, {servingOther}, {product}.
*/
export type BundlePicker4Copy = typeof DEFAULT_COPY
export type BundlePicker4Props = {
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
lead?: string
/** Lifestyle photo of a dog (scene slot). */
photo?: string
photoAlt?: string
/** Cut-out shot of one pack on a transparent background (product slot). */
productImage?: string
/** Product name used in image labels. */
productName?: string
/** fx Spot illustration beside the daily serving (an imported spot asset); empty hides it. */
answerArt?: string
/** Serving rules by dog size, from the product's serving guide. */
sizes?: BundlePicker4Size[]
/** Size index chosen on load. */
defaultSize?: number
minDogs?: number
maxDogs?: number
defaultDogs?: number
/** Servings in one pack, e.g. 60 chews. */
servingsPerPack?: number
/** Serving words, e.g. chew / chews. */
servingUnit?: { one: string; other: string }
/** Pack words, e.g. pack / packs. */
packUnit?: { one: string; other: string }
packs?: BundlePicker4Pack[]
/** Days a bundle should last to be recommended; the smallest bundle that reaches it is highlighted. */
coverDays?: number
/** Pack index chosen on load; without it the selection follows the recommendation until the buyer picks. */
defaultSelected?: number
/** ISO currency code for every price. */
currency?: string
/** Locale used to format prices and counts. */
locale?: string
/** Supplied guarantee, shown under the button and as a reason. Empty hides it. */
guarantee?: string
/** Forces a preview state; 'error' shows the inline order error. */
state?: BundlePicker4State
onAnswersChange?: (answers: BundlePicker4Answers) => void
onSelect?: (pack: BundlePicker4Pack, index: number) => void
/** Called with the chosen bundle and the answers. A rejected promise shows the inline error. */
onSubmit?: (pack: BundlePicker4Pack, index: number, answers: BundlePicker4Answers) => void | Promise<void>
copy?: Partial<BundlePicker4Copy>
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
export function BundlePicker4(props: BundlePicker4Props) {
const {
headline = 'How many chews does your dog need? Two answers tell you.',
highlight = 'Two answers tell you.',
lead = 'Pick your dog’s size and how many dogs you feed. We work out the daily serving and show how long each pack lasts.',
photo,
photoAlt,
productImage,
productName = 'joint chews',
answerArt = calendar,
sizes = DEFAULT_SIZES,
defaultSize = 1,
minDogs = 1,
maxDogs = 4,
defaultDogs = 1,
servingsPerPack = 60,
servingUnit = { one: 'chew', other: 'chews' },
packUnit = { one: 'pack', other: 'packs' },
packs = DEFAULT_PACKS,
coverDays = 60,
defaultSelected,
currency = 'USD',
locale = 'en-US',
guarantee = '',
state,
onAnswersChange,
onSelect,
onSubmit,
copy,
className,
style,
} = props
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const ids = { title: `${uid}-title`, q1: `${uid}-q1`, q2: `${uid}-q2`, q3: `${uid}-q3`, q4: `${uid}-q4`, err: `${uid}-err` }
const low = Math.max(1, Math.round(minDogs))
const high = Math.max(low, Math.round(maxDogs))
const [sizeIndex, setSizeIndex] = React.useState(() => clamp(Math.round(defaultSize), 0, Math.max(0, sizes.length - 1)))
const [dogs, setDogs] = React.useState(() => clamp(Math.round(defaultDogs), low, high))
const [picked, setPicked] = React.useState<number | null>(() =>
typeof defaultSelected === 'number' && defaultSelected >= 0 && defaultSelected < packs.length ? defaultSelected : null
)
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
if (!sizes.length || !packs.length) return null
const money = (n: number, cents = false) => formatMoney(n, locale, currency, cents)
const pl = (n: number, w: { one: string; other: string }) => (n === 1 ? w.one : w.other)
const dayText = (d: number) => (d < 1 ? '<1' : d.toLocaleString(locale))
const si = clamp(sizeIndex, 0, sizes.length - 1)
const size = sizes[si]
const dogCount = clamp(dogs, low, high)
const perDay = Math.max(0, size.perDay)
const daily = perDay * dogCount
const perPack = servingsPerPack > 0 ? servingsPerPack : 1
const base = packs.reduce<BundlePicker4Pack | undefined>((m, p) => (p.count > 0 && (!m || p.count < m.count) ? p : m), undefined)
const baseEach = base ? base.price / base.count : 0
const rows = packs.map((p) => {
const total = Math.max(0, p.count) * perPack
const days = daily > 0 ? Math.floor(total / daily) : 0
const cost = daily > 0 && total > 0 ? (p.price * daily) / total : 0
const compare = baseEach * p.count
const raw = compare - p.price
return {
total,
days,
cost,
compare,
savings: raw > 0.005 ? raw : 0,
name: fill(text.packName, { count: p.count, packWord: pl(p.count, packUnit) }),
}
})
const order = packs.map((_, i) => i).sort((a, b) => packs[a].count - packs[b].count)
const covering = order.find((i) => rows[i].days >= coverDays)
const rec = covering ?? order.reduce((m, i) => (rows[i].days > rows[m].days ? i : m), order[0])
const sel = picked !== null && picked < packs.length ? picked : rec
const pack = packs[sel]
const row = rows[sel]
const maxDays = Math.max(1, ...rows.map((r) => r.days))
const disabled = state === 'disabled'
const loading = status === 'loading'
const answers: BundlePicker4Answers = { size, sizeIndex: si, dogs: dogCount, daily }
const report = (next: { sizeIndex?: number; dogs?: number }) => {
const s = next.sizeIndex ?? si
const d = next.dogs ?? dogCount
onAnswersChange?.({ size: sizes[s], sizeIndex: s, dogs: d, daily: Math.max(0, sizes[s].perDay) * d })
}
const clearError = () => {
if (status === 'error') setStatus('idle')
}
const chooseSize = (i: number) => {
if (disabled || loading) return
setSizeIndex(i)
clearError()
report({ sizeIndex: i })
}
const stepDogs = (delta: number) => {
if (disabled || loading) return
const next = clamp(dogCount + delta, low, high)
if (next === dogCount) return
setDogs(next)
clearError()
report({ dogs: next })
}
const choosePack = (i: number) => {
if (disabled || loading) return
setPicked(i)
clearError()
onSelect?.(packs[i], i)
}
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (disabled || loading || !onSubmit) return
setStatus('loading')
try {
await onSubmit(pack, sel, answers)
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const vars: Record<string, string | number> = {
daily,
dailyWord: pl(daily, servingUnit),
perDay,
perDayWord: pl(perDay, servingUnit),
dogs: dogCount,
size: size.label,
detail: size.detail ? ` (${size.detail})` : '',
coverDays,
servingOther: servingUnit.other,
product: productName,
guarantee,
}
const resultLead = dogCount === 1 ? text.resultOne : fill(text.resultMany, vars)
const why = fill(dogCount === 1 ? text.whyOne : text.whyMany, vars)
const recLine = fill(covering !== undefined ? text.recommendWhy : text.recommendLongest, { ...vars, pack: rows[rec].name })
const total = money(pack.price)
const reasons = [
fill(text.reasonLasts, { ...vars, days: dayText(row.days) }),
fill(text.reasonCost, { cost: money(row.cost, true) }),
]
if (row.savings > 0) reasons.push(fill(text.reasonSave, { savings: money(row.savings) }))
else if (guarantee) reasons.push(fill(text.reasonGuarantee, { guarantee }))
const reasonsTitle = fill(text.reasonsTitle, {
countWord: text.countWords[reasons.length - 1] ?? String(reasons.length),
pack: row.name,
total,
})
const live = fill(text.live, { ...vars, pack: rows[rec].name, days: dayText(rows[rec].days) })
const rootClass = ['cf-bundle-picker-4', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '', className ?? '']
.filter(Boolean)
.join(' ')
const iconFor = (i: number) =>
ICON_STEPS[Math.min(ICON_STEPS.length - 1, Math.round((i * (ICON_STEPS.length - 1)) / Math.max(1, sizes.length - 1)))]
return (
<section className={rootClass} aria-labelledby={ids.title} style={style}>
<style>{CSS}</style>
<div className='bp4-wrap'>
<header className={photo ? 'bp4-head has-photo' : 'bp4-head'}>
<div className='bp4-rise'>
<h2 id={ids.title} className='bp4-title'>
{markPhrase(headline, highlight)}
</h2>
{lead ? <p className='bp4-lead'>{lead}</p> : null}
</div>
{photo ? (
<figure className='bp4-photo bp4-rise' style={rise(1)}>
<img src={photo} alt={photoAlt ?? text.photoAlt} width={800} height={600} decoding='async' />
</figure>
) : null}
</header>
<form className='bp4-form' onSubmit={handleSubmit} noValidate aria-busy={loading || undefined}>
<fieldset className='bp4-fs' disabled={disabled}>
<legend className='bp4-sr'>{text.legend}</legend>
<div className='bp4-qs'>
<div className='bp4-q bp4-rise' style={rise(1)}>
<span className='bp4-qnum' aria-hidden='true'>1</span>
<div className='bp4-qbody'>
<h3 id={ids.q1} className='bp4-qtitle'>{text.sizeQuestion}</h3>
<p className='bp4-hint'>{text.sizeHint}</p>
<div
className='bp4-chips'
role='radiogroup'
aria-labelledby={ids.q1}
style={{ ['--bp4-c' as string]: Math.min(sizes.length, 4) } as React.CSSProperties}
>
{sizes.map((s, i) => {
const on = i === si
return (
<label key={`${s.label}-${i}`} className={on ? 'bp4-chip is-on' : 'bp4-chip'}>
<input
type='radio'
className='bp4-sr'
name={`${uid}-size`}
value={String(i)}
checked={on}
onChange={() => chooseSize(i)}
/>
<span className='bp4-dog' aria-hidden='true'>
<Dog size={iconFor(i)} strokeWidth={2.5} />
</span>
<span className='bp4-tick' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='bp4-chip-label'>{s.label}</span>
{s.detail ? <span className='bp4-chip-detail bp4-soft'>{s.detail}</span> : null}
<span className='bp4-chip-rule'>
{fill(text.sizeRule, { perDay: s.perDay, perDayWord: pl(s.perDay, servingUnit) })}
</span>
</label>
)
})}
</div>
</div>
</div>
<div className='bp4-q bp4-rise' style={rise(2)}>
<span className='bp4-qnum' aria-hidden='true'>2</span>
<div className='bp4-qbody'>
<h3 id={ids.q2} className='bp4-qtitle'>{text.dogsQuestion}</h3>
<p className='bp4-hint'>{text.dogsHint}</p>
<div className='bp4-stepper' role='group' aria-labelledby={ids.q2}>
<button
type='button'
className='bp4-step'
onClick={() => stepDogs(-1)}
disabled={disabled || dogCount <= low}
aria-label={text.fewer}
>
<Minus size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
<output className='bp4-count' aria-live='polite'>
<span className='bp4-count-num bp4-bump' key={`dogs-${dogCount}`}>
{dogCount}
</span>
<span className='bp4-count-word'>{pl(dogCount, text.dogWord)}</span>
</output>
<button
type='button'
className='bp4-step'
onClick={() => stepDogs(1)}
disabled={disabled || dogCount >= high}
aria-label={text.more}
>
<Plus size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
</div>
</div>
</div>
<div className={answerArt ? 'bp4-answer has-art bp4-rise' : 'bp4-answer bp4-rise'} style={rise(3)}>
<div className='bp4-answer-copy'>
<p className='bp4-result'>
<span>{resultLead}</span>
<span className='bp4-result-num bp4-bump' key={`daily-${daily}`}>
{daily}
</span>
<span>{fill(text.resultUnit, vars)}</span>
</p>
<p className='bp4-why'>{why}</p>
<p className='bp4-note'>
<Info className='bp4-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{text.estimate}
</p>
</div>
{answerArt ? (
<span className='bp4-answer-art' aria-hidden='true'>
<Spot src={answerArt} size={112} />
</span>
) : null}
</div>
<div className='bp4-q bp4-rise' style={rise(4)}>
<span className='bp4-qnum' aria-hidden='true'>3</span>
<div className='bp4-qbody'>
<h3 id={ids.q3} className='bp4-qtitle'>{text.packQuestion}</h3>
<p className='bp4-lede'>{recLine}</p>
<div
className='bp4-packs'
role='radiogroup'
aria-labelledby={ids.q3}
style={{ ['--bp4-n' as string]: Math.min(packs.length, 4) } as React.CSSProperties}
>
{packs.map((p, i) => {
const r = rows[i]
const on = i === sel
const isRec = i === rec
const fan = p.image
? [p.image]
: productImage
? Array.from({ length: clamp(p.count, 1, 3) }, () => productImage)
: []
const cls = ['bp4-pack', on ? 'is-on' : '', isRec ? 'is-rec' : '', fan.length ? '' : 'no-fan'].filter(Boolean).join(' ')
return (
<label key={p.id ?? `${p.count}-${i}`} className={cls}>
<input
type='radio'
className='bp4-sr'
name={`${uid}-pack`}
value={p.id ?? String(p.count)}
checked={on}
onChange={() => choosePack(i)}
/>
{isRec ? <span className='bp4-flag'>{text.rightSize}</span> : null}
{fan.length ? (
<span
className='bp4-fan'
role='img'
aria-label={p.imageAlt ?? fill(text.fanLabel, { pack: r.name, product: productName })}
>
{fan.map((src, k) => (
<img key={k} src={src} alt='' width={120} height={140} loading='lazy' decoding='async' />
))}
</span>
) : null}
<span className='bp4-tick' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='bp4-pack-name'>{r.name}</span>
<span className='bp4-pack-contents bp4-soft'>
{fill(text.packContents, { total: r.total.toLocaleString(locale), totalWord: pl(r.total, servingUnit) })}
</span>
<span className='bp4-days'>
<span className='bp4-days-pre bp4-soft'>{text.lastsAbout}</span>
<span className='bp4-days-num bp4-bump' key={`days-${r.days}`}>
{dayText(r.days)}
</span>
<span className='bp4-days-word'>{pl(r.days, text.dayWord)}</span>
</span>
<span className='bp4-meter' aria-hidden='true'>
<i style={{ width: `${Math.max(4, Math.round((r.days / maxDays) * 100))}%` }} />
</span>
<span className='bp4-pack-price'>{money(p.price)}</span>
<span className='bp4-pack-per bp4-soft'>{fill(text.perDayCost, { cost: money(r.cost, true) })}</span>
</label>
)
})}
</div>
</div>
</div>
<div className='bp4-q bp4-rise' style={rise(5)}>
<span className='bp4-qnum' aria-hidden='true'>4</span>
<div className='bp4-qbody'>
<h3 id={ids.q4} className='bp4-qtitle'>
{fill(text.closeQuestion, { ...vars, days: dayText(row.days) })}
</h3>
<div className='bp4-order'>
<div className='bp4-reveal'>
{row.savings > 0 ? (
<>
<p className='bp4-value-label'>{fill(text.valueLabel, { pack: row.name })}</p>
<p className='bp4-value-num'>{money(row.compare)}</p>
<p className='bp4-but'>{text.butLine}</p>
</>
) : null}
<p className='bp4-today'>
<span className='bp4-today-label'>{text.todayLabel}</span>
<span className='bp4-today-num bp4-bump' key={`today-${sel}`}>
{total}
</span>
</p>
</div>
<div className='bp4-close'>
<p className='bp4-reasons-title'>{reasonsTitle}</p>
<p className='bp4-reasons'>
{reasons.map((reason, k) => (
<span key={k} className='bp4-reason'>
<span className='bp4-rn'>{k + 1}</span>
{reason}{' '}
</span>
))}
</p>
<button
type='submit'
className='bp4-cta'
disabled={disabled}
aria-describedby={status === 'error' ? ids.err : undefined}
>
{loading ? (
<Loader2 className='bp4-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
) : (
<ShoppingCart size={20} strokeWidth={2.5} aria-hidden='true' />
)}
<span>{loading ? text.loading : fill(text.button, { total, pack: row.name })}</span>
</button>
{guarantee ? (
<p className='bp4-assure'>
<ShieldCheck className='bp4-ico bp4-ico-ok' size={16} strokeWidth={2.5} aria-hidden='true' />
{guarantee}
</p>
) : null}
{status === 'error' ? (
<p id={ids.err} className='bp4-error' role='alert'>
<AlertCircle className='bp4-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{text.error}
</p>
) : null}
</div>
</div>
</div>
</div>
</fieldset>
<p className='bp4-sr' aria-live='polite'>
{live}
</p>
</form>
</div>
</section>
)
}
export default BundlePicker4
const ICON_STEPS: number[] = [16, 20, 24]
const DEFAULT_SIZES: BundlePicker4Size[] = [
{ label: 'Small', detail: 'Up to 25 lb', perDay: 1 },
{ label: 'Medium', detail: '26–60 lb', perDay: 2 },
{ label: 'Large', detail: 'Over 60 lb', perDay: 3 },
]
const DEFAULT_PACKS: BundlePicker4Pack[] = [
{ count: 1, price: 29 },
{ count: 3, price: 79 },
{ count: 6, price: 139 },
]
const DEFAULT_COPY = {
legend: 'Find the right pack for your dog',
sizeQuestion: 'How big is your dog?',
sizeHint: 'Pick the closest weight. Each size has its own daily serving.',
sizeRule: '{perDay} {perDayWord} a day',
dogsQuestion: 'How many dogs?',
dogsHint: 'Count every dog who gets a chew.',
fewer: 'One fewer dog',
more: 'One more dog',
dogWord: { one: 'dog', other: 'dogs' },
resultOne: 'Your dog needs',
resultMany: 'Your {dogs} dogs need',
resultUnit: '{dailyWord} a day',
whyOne: '{size} dogs{detail} get {perDay} {perDayWord} a day.',
whyMany: '{size} dogs{detail} get {perDay} {perDayWord} a day, times {dogs} dogs.',
estimate: 'Estimates from the serving guide on the pack. Always follow the label for your dog.',
packQuestion: 'Which pack lasts long enough?',
recommendWhy: 'At {daily} {dailyWord} a day, {pack} is the smallest bundle that lasts {coverDays} days.',
recommendLongest: 'At {daily} {dailyWord} a day, {pack} lasts the longest.',
packName: '{count} {packWord}',
packContents: '{total} {totalWord}',
lastsAbout: 'Lasts about',
dayWord: { one: 'day', other: 'days' },
perDayCost: '{cost} a day',
rightSize: 'Right size for you',
closeQuestion: 'Ready for {days} days of {servingOther}?',
valueLabel: '{pack} at the single-pack price',
butLine: 'But you won’t pay that.',
todayLabel: 'Your price today',
countWords: ['One', 'Two', 'Three'],
reasonsTitle: '{countWord} reasons to pick {pack} at {total}',
reasonLasts: 'It lasts about {days} days at {daily} {dailyWord} a day.',
reasonCost: 'That works out to {cost} a day.',
reasonSave: 'You save {savings} over buying single packs.',
reasonGuarantee: 'It’s covered by the {guarantee}.',
button: 'Add To Cart · {total}',
loading: 'Adding to your cart…',
error: 'We couldn’t add that to your cart. Please try again.',
live: '{daily} {dailyWord} a day. {pack} lasts about {days} days.',
photoAlt: 'A happy dog out on a walk',
fanLabel: '{pack} of {product}',
}
function clamp(n: number, lo: number, hi: number) {
return Number.isFinite(n) ? Math.min(hi, Math.max(lo, n)) : lo
}
function fill(tpl: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((s, k) => s.split('{' + k + '}').join(String(vars[k])), tpl)
}
function rise(i: number): React.CSSProperties {
return { animationDelay: `${Math.min(i * 0.07, 0.28)}s` }
}
function formatMoney(n: number, locale: string, currency: string, cents: boolean) {
const whole = !cents && Math.abs(n - Math.round(n)) < 0.005
try {
return new Intl.NumberFormat(locale, {
style: 'currency',
currency,
minimumFractionDigits: whole ? 0 : 2,
maximumFractionDigits: whole ? 0 : 2,
}).format(whole ? Math.round(n) : n)
} catch {
return String(n)
}
}
function markPhrase(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text
const at = text.indexOf(phrase)
if (at < 0) return text
return (
<>
{text.slice(0, at)}
<span className='bp4-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
const CSS = `
.cf-bundle-picker-4{
--bp4-sh:var(--shadow, oklch(0.22 0.03 260));
--bp4-sh-sm:var(--shadow-sm, 0 1px 1px oklch(from var(--bp4-sh) l c h / .18), 0 1px 3px oklch(from var(--bp4-sh) l c h / .14));
--bp4-sh-md:var(--shadow-md, 0 1px 2px oklch(from var(--bp4-sh) l c h / .22), 0 4px 10px -2px oklch(from var(--bp4-sh) l c h / .2));
--bp4-sh-lg:var(--shadow-lg, 0 2px 4px oklch(from var(--bp4-sh) l c h / .22), 0 12px 24px -8px oklch(from var(--bp4-sh) l c h / .32));
--bp4-accent:var(--accent, #2f5ad0);
--bp4-fill:var(--accent-fill, var(--accent, #2f5ad0));
--bp4-fill-ink:var(--accent-fill-ink, var(--card, #fff));
--bp4-border:var(--card-border, oklch(from var(--ink, #1b2333) l c h / .12));
--bp4-focus:oklch(from var(--field-focus, var(--accent, #2f5ad0)) l c h / .5);
position:relative;isolation:isolate;overflow:hidden;
background:var(--surface, #fff);color:var(--ink, #1b2333);
font-family:var(--font-body, system-ui, sans-serif);
font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
}
.cf-bundle-picker-4 *,.cf-bundle-picker-4 *::before,.cf-bundle-picker-4 *::after{box-sizing:border-box}
.cf-bundle-picker-4 :where(h2,h3,p,figure,fieldset){margin:0}
.cf-bundle-picker-4 .bp4-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-bundle-picker-4 .bp4-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;gap:clamp(40px,5vw,64px)}
.cf-bundle-picker-4 .bp4-head{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start}
.cf-bundle-picker-4 .bp4-head.has-photo{grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:clamp(32px,5vw,72px)}
.cf-bundle-picker-4 .bp4-title{font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-bundle-picker-4 .bp4-mark{background:linear-gradient(transparent 56%, var(--marker, #fae37c) 56%, var(--marker, #fae37c) 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .06em}
.cf-bundle-picker-4 .bp4-lead{margin-top:16px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted, #4a5568);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 40%;border-radius:12px}
.cf-bundle-picker-4 .bp4-fs{border:0;padding:0;min-width:0;display:grid;gap:clamp(40px,5vw,64px)}
.cf-bundle-picker-4 .bp4-qs{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:clamp(32px,4vw,56px);align-items:start}
.cf-bundle-picker-4 .bp4-q{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:start}
.cf-bundle-picker-4 .bp4-qbody{min-width:0}
.cf-bundle-picker-4 .bp4-qnum{min-width:1ch;font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--bp4-accent);font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-qtitle{font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-bundle-picker-4 .bp4-hint{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted, #4a5568);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-lede{margin-top:12px;max-width:64ch;color:var(--muted, #4a5568);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-soft{color:var(--muted, #4a5568)}
.cf-bundle-picker-4 .is-on .bp4-soft{color:var(--ink, #1b2333)}
.cf-bundle-picker-4 .bp4-chips{margin-top:16px;display:grid;grid-template-columns:repeat(var(--bp4-c, 3),minmax(0,1fr));gap:12px}
.cf-bundle-picker-4 .bp4-chip{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'icon tick' 'label label' 'detail detail' 'rule rule';align-content:start;row-gap:2px;column-gap:12px;min-height:56px;padding:16px;background:var(--card, #fff);color:var(--ink, #1b2333);border:1px solid var(--bp4-border);border-radius:var(--radius, 12px);box-shadow:var(--bp4-sh-sm);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease}
.cf-bundle-picker-4 .bp4-dog{grid-area:icon;display:flex;align-items:center;height:28px;margin-bottom:8px;color:var(--bp4-accent)}
.cf-bundle-picker-4 .bp4-chip .bp4-tick{grid-area:tick}
.cf-bundle-picker-4 .bp4-tick{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:999px;border:2px solid oklch(from var(--ink, #1b2333) l c h / .28);color:transparent;transition:background-color .16s ease,border-color .16s ease}
.cf-bundle-picker-4 .is-on .bp4-tick{background:var(--bp4-fill);border-color:var(--bp4-fill);color:var(--bp4-fill-ink)}
.cf-bundle-picker-4 .bp4-chip-label{grid-area:label;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.2}
.cf-bundle-picker-4 .bp4-chip-detail{grid-area:detail;font-size:.9375rem;font-weight:500;line-height:1.4}
.cf-bundle-picker-4 .bp4-chip-rule{grid-area:rule;margin-top:8px;font-size:.9375rem;font-weight:700;line-height:1.4}
.cf-bundle-picker-4 .bp4-chip:hover{border-color:oklch(from var(--ink, #1b2333) l c h / .3);box-shadow:var(--bp4-sh-md);transform:translateY(-1px)}
.cf-bundle-picker-4 .bp4-chip.is-on{border-color:var(--bp4-accent);box-shadow:inset 0 0 0 1px var(--bp4-accent),var(--bp4-sh-sm);background:color-mix(in oklch, var(--bp4-accent) 8%, var(--card, #fff))}
.cf-bundle-picker-4 .bp4-chip:has(input:focus-visible),.cf-bundle-picker-4 .bp4-pack:has(input:focus-visible){outline:3px solid var(--bp4-focus);outline-offset:3px}
.cf-bundle-picker-4 .bp4-stepper{margin-top:16px;display:inline-grid;grid-template-columns:56px minmax(96px,auto) 56px;align-items:center;gap:6px;padding:6px;background:var(--field, #fff);color:var(--field-ink, #1b2333);border:1px solid var(--field-border, color-mix(in oklch, var(--ink, #1b2333) 22%, transparent));border-radius:var(--field-radius, var(--radius, 12px))}
.cf-bundle-picker-4 .bp4-step{display:grid;place-items:center;width:56px;height:56px;padding:0;border:1px solid var(--button-2-border, transparent);border-radius:calc(var(--field-radius, var(--radius, 12px)) - 4px);background:var(--button-2-bg, var(--secondary, #eef1f6));color:var(--button-2-ink, var(--secondary-ink, #1b2333));box-shadow:var(--button-2-shadow, var(--bp4-sh-sm));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
.cf-bundle-picker-4 .bp4-step:hover:not(:disabled){background:oklch(from var(--button-2-bg, var(--secondary, #eef1f6)) calc(l - .04) c h)}
.cf-bundle-picker-4 .bp4-step:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px 2px oklch(from var(--bp4-sh) l c h / .25)}
.cf-bundle-picker-4 .bp4-step:focus-visible{outline:3px solid var(--bp4-focus);outline-offset:2px}
.cf-bundle-picker-4 .bp4-step:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.cf-bundle-picker-4 .bp4-count{display:grid;justify-items:center;line-height:1.15;text-align:center}
.cf-bundle-picker-4 .bp4-count-num{display:inline-block;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-count-word{font-size:.875rem;font-weight:700;color:color-mix(in oklch, var(--field-ink, #1b2333) 70%, var(--field, #fff))}
.cf-bundle-picker-4 .bp4-answer{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;column-gap:clamp(24px,4vw,48px);padding:clamp(20px,3vw,32px) clamp(20px,3.5vw,40px);border-radius:var(--card-radius, var(--radius, 14px));background:color-mix(in oklch, var(--ink, #1b2333) 4%, var(--surface, #fff))}
.cf-bundle-picker-4 .bp4-answer.has-art{grid-template-columns:minmax(0,1fr) auto}
.cf-bundle-picker-4 .bp4-answer-copy{display:grid;gap:12px;min-width:0}
.cf-bundle-picker-4 .bp4-answer-art{display:block;line-height:0}
.cf-bundle-picker-4 .bp4-result{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.3em;row-gap:4px;font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em}
.cf-bundle-picker-4 .bp4-result-num{display:inline-block;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--bp4-accent)}
.cf-bundle-picker-4 .bp4-why{max-width:64ch;color:var(--ink, #1b2333);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-note{max-width:64ch;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted, #4a5568);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-ico{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-bundle-picker-4 .bp4-ico-ok{color:var(--success, #1f7a3d)}
.cf-bundle-picker-4 .bp4-packs{margin-top:28px;display:grid;grid-template-columns:repeat(var(--bp4-n, 3),minmax(0,1fr));gap:clamp(16px,2vw,24px);align-items:stretch}
.cf-bundle-picker-4 .bp4-pack{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(24px,3vw,32px) clamp(16px,2vw,24px) clamp(20px,2.5vw,28px);background:var(--card, #fff);color:var(--ink, #1b2333);border:1px solid var(--bp4-border);border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--bp4-sh-md));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease}
.cf-bundle-picker-4 .bp4-pack:hover{transform:translateY(-2px);border-color:oklch(from var(--ink, #1b2333) l c h / .28);box-shadow:var(--bp4-sh-lg)}
.cf-bundle-picker-4 .bp4-pack.is-on{border-color:var(--bp4-accent);box-shadow:inset 0 0 0 1px var(--bp4-accent),var(--bp4-sh-lg);background:color-mix(in oklch, var(--bp4-accent) 6%, var(--card, #fff))}
.cf-bundle-picker-4 .bp4-flag{position:absolute;top:0;left:50%;translate:-50% -50%;display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--bp4-fill);color:var(--bp4-fill-ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:var(--bp4-sh-sm);animation:bp4-pop .3s ease both}
.cf-bundle-picker-4 .bp4-fan{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:flex-end;height:120px;margin-bottom:16px}
.cf-bundle-picker-4 .bp4-fan::before{content:'';position:absolute;z-index:-1;inset:6% 2% 0;border-radius:50%;background:radial-gradient(closest-side, color-mix(in oklch, var(--ink, #1b2333) 8%, transparent), transparent)}
.cf-bundle-picker-4 .bp4-fan img{position:relative;display:block;height:112px;width:auto;max-width:104px;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--bp4-sh) l c h / .3)) drop-shadow(0 10px 12px oklch(from var(--bp4-sh) l c h / .18))}
.cf-bundle-picker-4 .bp4-fan img+img{margin-left:-44px}
.cf-bundle-picker-4 .bp4-pack-name{display:block;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;white-space:nowrap}
.cf-bundle-picker-4 .bp4-pack .bp4-tick{position:absolute;top:14px;right:14px}
.cf-bundle-picker-4 .bp4-pack-contents{margin-top:4px;font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-bundle-picker-4 .bp4-days{margin-top:16px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:2px 8px}
.cf-bundle-picker-4 .bp4-days-pre{font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-bundle-picker-4 .bp4-days-num{display:inline-block;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-days-word{font-family:var(--font-display, inherit);font-weight:800}
.cf-bundle-picker-4 .bp4-meter{display:block;width:100%;height:8px;margin-top:14px;border-radius:999px;overflow:hidden;background:color-mix(in oklch, var(--ink, #1b2333) 10%, var(--card, #fff))}
.cf-bundle-picker-4 .bp4-meter i{display:block;height:100%;border-radius:inherit;background:var(--bp4-fill);transition:width .45s cubic-bezier(.2,.7,.2,1)}
.cf-bundle-picker-4 .bp4-pack-price{margin-top:auto;padding-top:20px;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-pack-per{margin-top:2px;font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-bundle-picker-4 .bp4-fs:disabled .bp4-chip,.cf-bundle-picker-4 .bp4-fs:disabled .bp4-pack{cursor:not-allowed;transform:none;box-shadow:none;background:color-mix(in oklch, var(--ink, #1b2333) 4%, var(--card, #fff))}
.cf-bundle-picker-4 .bp4-order{margin-top:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:clamp(24px,4vw,56px);align-items:start;padding:clamp(24px,3.5vw,40px);background:var(--card, #fff);color:var(--ink, #1b2333);border:1px solid oklch(from var(--bp4-accent) l c h / .35);border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--bp4-sh-lg))}
.cf-bundle-picker-4 .bp4-value-label{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted, #4a5568)}
.cf-bundle-picker-4 .bp4-value-num{margin-top:8px;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(1.625rem,2.4vw,2rem);line-height:1.1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;color:var(--muted, #4a5568);text-decoration:line-through;text-decoration-thickness:.08em;text-decoration-color:var(--danger, #b42318)}
.cf-bundle-picker-4 .bp4-but{margin-top:16px;font-family:var(--font-display, inherit);font-weight:800;line-height:1.3}
.cf-bundle-picker-4 .bp4-today{margin-top:12px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.cf-bundle-picker-4 .bp4-reveal>.bp4-today:first-child{margin-top:0}
.cf-bundle-picker-4 .bp4-today-label{font-size:.9375rem;font-weight:700;line-height:1.4}
.cf-bundle-picker-4 .bp4-today-num{display:inline-block;font-family:var(--font-display, inherit);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-reasons-title{font-family:var(--font-display, inherit);font-weight:800;line-height:1.3;text-wrap:balance}
.cf-bundle-picker-4 .bp4-reasons{margin-top:8px;text-wrap:pretty}
.cf-bundle-picker-4 .bp4-rn{font-family:var(--font-display, inherit);font-weight:800;color:var(--bp4-accent);margin-inline-end:.35em;font-variant-numeric:tabular-nums}
.cf-bundle-picker-4 .bp4-cta{
--bp4-bg:var(--button-bg, var(--cta, #d92d20));
--bp4-bg2:var(--button-bg-2, var(--cta-2, #b42318));
display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;margin-top:24px;padding:0 28px;border:0;
border-radius:var(--button-radius, var(--radius, 12px));
font-family:var(--button-font, var(--font-display, inherit));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;
color:var(--button-ink, var(--cta-ink, #fff));text-shadow:var(--button-text-shadow, none);
background:linear-gradient(oklch(from var(--bp4-bg) calc(l + .04) c h), oklch(from var(--bp4-bg2) calc(l - .02) c h));
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--bp4-bg) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--bp4-bg) calc(l - .16) c h), 0 1px 2px oklch(from var(--bp4-sh) l c h / .3), 0 8px 16px -6px oklch(from var(--bp4-sh) l c h / .45));
cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.cf-bundle-picker-4 .bp4-cta:hover:not(:disabled),.cf-bundle-picker-4.is-hover .bp4-cta:not(:disabled){transform:translateY(-1px);background:linear-gradient(oklch(from var(--bp4-bg) calc(l - .01) c h), oklch(from var(--bp4-bg2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--bp4-bg) calc(l + .1) c h / .6), inset 0 -3px 0 oklch(from var(--bp4-bg) calc(l - .2) c h), 0 1px 2px oklch(from var(--bp4-sh) l c h / .32), 0 10px 20px -6px oklch(from var(--bp4-sh) l c h / .5)}
.cf-bundle-picker-4 .bp4-cta:active:not(:disabled),.cf-bundle-picker-4.is-active .bp4-cta:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--bp4-bg) calc(l - .05) c h), oklch(from var(--bp4-bg2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--bp4-bg) calc(l - .22) c h / .6), inset 0 -2px 0 oklch(from var(--bp4-bg) calc(l - .16) c h), 0 1px 2px oklch(from var(--bp4-sh) l c h / .3)}
.cf-bundle-picker-4 .bp4-cta span{text-wrap:balance}
.cf-bundle-picker-4 .bp4-cta:focus-visible{outline:3px solid var(--bp4-focus);outline-offset:3px}
.cf-bundle-picker-4 .bp4-cta:disabled{cursor:not-allowed;transform:none;background:var(--secondary, #eef1f6);color:var(--secondary-ink, #1b2333);text-shadow:none;box-shadow:none}
.cf-bundle-picker-4 .bp4-form[aria-busy] .bp4-cta{cursor:progress}
.cf-bundle-picker-4 .bp4-assure{margin-top:12px;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted, #4a5568);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-error{margin-top:12px;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger, #b42318);text-wrap:pretty}
.cf-bundle-picker-4 .bp4-rise{animation:bp4-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-bundle-picker-4 .bp4-bump{animation:bp4-bump .3s cubic-bezier(.2,.7,.2,1) both}
.cf-bundle-picker-4 .bp4-spin{animation:bp4-spin .8s linear infinite}
@keyframes bp4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes bp4-bump{from{opacity:.82;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes bp4-pop{from{scale:.9;opacity:.7}to{scale:1;opacity:1}}
@keyframes bp4-spin{to{transform:rotate(360deg)}}
@media (max-width:859px){
.cf-bundle-picker-4 .bp4-head.has-photo{grid-template-columns:minmax(0,1fr)}
.cf-bundle-picker-4 .bp4-photo img{aspect-ratio:16/10}
.cf-bundle-picker-4 .bp4-qs{grid-template-columns:minmax(0,1fr)}
.cf-bundle-picker-4 .bp4-stepper{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;width:100%}
.cf-bundle-picker-4 .bp4-order{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:759px){
/* Number sits beside its question; everything under it uses the full width. */
.cf-bundle-picker-4 .bp4-q{grid-template-columns:auto minmax(0,1fr);column-gap:12px}
.cf-bundle-picker-4 .bp4-qnum{grid-row:1;grid-column:1}
.cf-bundle-picker-4 .bp4-qbody{display:contents}
.cf-bundle-picker-4 .bp4-qbody>*{grid-column:1 / -1}
.cf-bundle-picker-4 .bp4-qbody>.bp4-qtitle{grid-row:1;grid-column:2}
.cf-bundle-picker-4 .bp4-packs{grid-template-columns:minmax(0,1fr);gap:24px}
.cf-bundle-picker-4 .bp4-pack{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:'fan name tick' 'fan contents tick' 'days days price' 'days days per' 'meter meter meter';column-gap:14px;row-gap:2px;align-items:center;text-align:left;padding:26px 18px 20px}
.cf-bundle-picker-4 .bp4-pack.no-fan{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'name tick' 'contents tick' 'days price' 'days per' 'meter meter'}
.cf-bundle-picker-4 .bp4-flag{left:18px;translate:0 -50%}
.cf-bundle-picker-4 .bp4-fan{grid-area:fan;align-self:center;justify-content:flex-start;height:64px;margin:0}
.cf-bundle-picker-4 .bp4-fan::before{inset:10% -6% 0}
.cf-bundle-picker-4 .bp4-fan img{height:60px;max-width:40px}
.cf-bundle-picker-4 .bp4-fan img+img{margin-left:-28px}
.cf-bundle-picker-4 .bp4-pack-name{grid-area:name;align-self:end}
.cf-bundle-picker-4 .bp4-pack .bp4-tick{position:static;grid-area:tick;justify-self:end;align-self:start}
.cf-bundle-picker-4 .bp4-pack-contents{grid-area:contents;margin:0;align-self:start;white-space:nowrap}
.cf-bundle-picker-4 .bp4-days{grid-area:days;justify-content:flex-start;align-self:end;margin-top:16px}
.cf-bundle-picker-4 .bp4-pack-price{grid-area:price;margin:16px 0 0;padding:0;text-align:right;align-self:end}
.cf-bundle-picker-4 .bp4-pack-per{grid-area:per;margin:0;text-align:right;align-self:start;white-space:nowrap}
.cf-bundle-picker-4 .bp4-meter{grid-area:meter;margin-top:12px}
.cf-bundle-picker-4 .bp4-order{padding:24px 20px}
.cf-bundle-picker-4 .bp4-cta{min-height:64px;padding:0 20px}
}
@media (max-width:639px){
.cf-bundle-picker-4 .bp4-chips{grid-template-columns:minmax(0,1fr)}
.cf-bundle-picker-4 .bp4-chip{grid-template-columns:28px minmax(0,1fr) auto auto;grid-template-areas:'icon label rule tick' 'icon detail detail tick';align-items:center;padding:14px 16px}
.cf-bundle-picker-4 .bp4-dog{margin:0;justify-content:center}
.cf-bundle-picker-4 .bp4-chip-rule{margin:0;text-align:right;white-space:nowrap}
.cf-bundle-picker-4 .bp4-answer.has-art{grid-template-columns:minmax(0,1fr)}
.cf-bundle-picker-4 .bp4-answer-art{display:none}
}
@media (prefers-reduced-motion: reduce){
/* !important so every reveal, bump, pop and spin stays still regardless of selector order. */
.cf-bundle-picker-4 *,.cf-bundle-picker-4 *::before,.cf-bundle-picker-4 *::after{animation:none !important;transition:none !important}
.cf-bundle-picker-4 .bp4-chip:hover,.cf-bundle-picker-4 .bp4-pack:hover,.cf-bundle-picker-4 .bp4-cta:hover{transform:none}
}
`
pieces/offer/bundle-picker-4/specimen.tsx 36 lines
import __studioImage7b2e0611 from "../assets/42fe04338c36df62.webp";
import __studioImageff1025d0 from "../assets/2fdaf30721343b68.webp";
import * as React from 'react'
import { BundlePicker4, type BundlePicker4State } from '../bundle-picker-4'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function BundlePicker4Specimen({ state }: { state?: BundlePicker4State }) {
return (
<BundlePicker4
state={state}
headline='How much Good Boy does your dog need? Two answers tell you.'
highlight='Two answers tell you.'
lead='Pick your dog’s size and how many dogs you feed. We work out the daily serving and show how long each pack of Good Boy joint chews lasts.'
photo={slot('scene', __studioImage7b2e0611)}
photoAlt='Golden retriever trotting across a sunny park lawn'
productImage={slot('product', __studioImageff1025d0)}
productName='Good Boy joint chews'
sizes={[
{ label: 'Small', detail: 'Up to 25 lb', perDay: 1 },
{ label: 'Medium', detail: '26–60 lb', perDay: 2 },
{ label: 'Large', detail: 'Over 60 lb', perDay: 3 },
]}
servingsPerPack={60}
packs={[
{ count: 1, price: 29, id: 'good-boy-1' },
{ count: 3, price: 79, id: 'good-boy-3' },
{ count: 6, price: 139, id: 'good-boy-6' },
]}
guarantee={defaults.sample.guarantee}
onSubmit={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalBundlePicker4 |
string |
|
highlight OptionalBundlePicker4 |
string |
|
lead OptionalBundlePicker4 |
string |
|
photo OptionalBundlePicker4 |
string |
|
photoAlt OptionalBundlePicker4 |
string |
|
productImage OptionalBundlePicker4 |
string |
|
productName OptionalBundlePicker4 |
string |
|
answerArt OptionalBundlePicker4 |
string |
|
sizes OptionalBundlePicker4 |
BundlePicker4Size[] |
|
defaultSize OptionalBundlePicker4 |
number |
|
minDogs OptionalBundlePicker4 |
number |
|
maxDogs OptionalBundlePicker4 |
number |
|
defaultDogs OptionalBundlePicker4 |
number |
|
servingsPerPack OptionalBundlePicker4 |
number |
|
servingUnit OptionalBundlePicker4 |
{ one: string; other: string } |
|
packUnit OptionalBundlePicker4 |
{ one: string; other: string } |
|
packs OptionalBundlePicker4 |
BundlePicker4Pack[] |
|
coverDays OptionalBundlePicker4 |
number |
|
defaultSelected OptionalBundlePicker4 |
number |
|
currency OptionalBundlePicker4 |
string |
|
locale OptionalBundlePicker4 |
string |
|
guarantee OptionalBundlePicker4 |
string |
|
state OptionalBundlePicker4 |
BundlePicker4State |
|
onAnswersChange OptionalBundlePicker4 |
(answers: BundlePicker4Answers) => void |
|
onSelect OptionalBundlePicker4 |
(pack: BundlePicker4Pack, index: number) => void |
|
onSubmit OptionalBundlePicker4 |
(pack: BundlePicker4Pack, index: number, answers: BundlePicker4Answers) => void | Promise<void> |
|
copy OptionalBundlePicker4 |
Partial<BundlePicker4Copy> |
|
className OptionalBundlePicker4 |
string |
|
style OptionalBundlePicker4 |
React.CSSProperties |
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-border--field-focus--field-ink--field-radius- 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).
scene- A wide atmosphere photo behind or beside the copy.
-
2fdaf30721343b68.webp
image/webp · 24.9 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
42fe04338c36df62.webp
image/webp · 36.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB