{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkout-form-block",
  "title": "Checkout Form Block",
  "description": "A one-page checkout: contact, delivery with shipping method cards (address fields fold away for pickup), card payment with live formatting and checksum validation, inline errors after blur, discount codes, a sticky order summary with a counting total (collapsible on phones) and a processing → confirmed flow.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/checkout-form-block/checkout-form-block.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, animate, motion, useMotionValue, useReducedMotion, useTransform } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface CheckoutItem {\n  id: string;\n  title: string;\n  variant: string;\n  price: number;\n  quantity: number;\n  image?: string;\n}\n\nexport interface CheckoutValue {\n  email: string;\n  name: string;\n  address: string;\n  city: string;\n  postcode: string;\n  country: string;\n  shipping: string;\n  code?: string;\n  total: number;\n}\n\nexport interface CheckoutFormBlockProps {\n  items?: CheckoutItem[];\n  currency?: string;\n  taxRate?: number;\n  /** Discount codes the demo accepts: code → percent off. */\n  codes?: Record<string, number>;\n  /** Return a Promise; reject with an Error to show its message. Card details are never passed. */\n  onPlaceOrder?: (value: CheckoutValue) => void | Promise<void>;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", title: \"#FFFFFF\", muted: \"rgba(255,255,255,0.45)\", body: \"rgba(255,255,255,0.62)\", line: \"rgba(255,255,255,0.12)\", card: \"#141414\", input: \"#0F0F0F\", photo: \"#F1F1F1\", buttonBg: \"#FFFFFF\", buttonText: \"#111111\", accent: \"#7CDE6A\", error: \"#FF6B57\", ring: \"rgba(255,255,255,0.5)\" },\n  light: { bg: \"#FFFFFF\", title: \"#111111\", muted: \"rgba(0,0,0,0.45)\", body: \"rgba(0,0,0,0.62)\", line: \"rgba(0,0,0,0.1)\", card: \"#F7F7F6\", input: \"#FFFFFF\", photo: \"#F1F1F1\", buttonBg: \"#111111\", buttonText: \"#FFFFFF\", accent: \"#2F9E44\", error: \"#D9480F\", ring: \"rgba(0,0,0,0.45)\" },\n};\nconst ITEMS: CheckoutItem[] = [\n  { id: \"earbuds\", title: \"Wireless Earbuds\", variant: \"Black\", price: 129, quantity: 1, image: \"/demo/wireless-earbuds.webp\" },\n  { id: \"bottle\", title: \"Insulated Water Bottle\", variant: \"750 ml\", price: 39, quantity: 2, image: \"/demo/insulated-water-bottle.webp\" },\n];\nconst SHIPPING = [\n  { id: \"standard\", label: \"Standard\", eta: \"3–5 business days\", price: 0 },\n  { id: \"express\", label: \"Express\", eta: \"1–2 business days\", price: 12 },\n  { id: \"pickup\", label: \"Pick up in store\", eta: \"Ready tomorrow\", price: 0 },\n];\nconst CODES = { WELCOME10: 10, DESK40: 40 };\nconst COUNTRIES = [\"United States\", \"Canada\", \"United Kingdom\", \"Germany\", \"Netherlands\", \"Australia\"];\n\nfunction Money({ value, currency, reduce }: { value: number; currency: string; reduce: boolean }) {\n  const mv = useMotionValue(value);\n  const text = useTransform(mv, (v) => `${currency}${v.toFixed(2)}`);\n  React.useEffect(() => {\n    if (reduce) {\n      mv.set(value);\n      return;\n    }\n    const c = animate(mv, value, { duration: 0.45, ease: [0.22, 1, 0.36, 1] });\n    return () => c.stop();\n  }, [value, reduce, mv]);\n  return <motion.span>{text}</motion.span>;\n}\n\nconst fmtCard = (v: string) =>\n  v\n    .replace(/\\D/g, \"\")\n    .slice(0, 16)\n    .replace(/(.{4})/g, \"$1 \")\n    .trim();\nconst fmtExp = (v: string) => {\n  const d = v.replace(/\\D/g, \"\").slice(0, 4);\n  return d.length > 2 ? `${d.slice(0, 2)} / ${d.slice(2)}` : d;\n};\nconst luhn = (num: string) => {\n  const d = num.replace(/\\D/g, \"\");\n  if (d.length < 13) return false;\n  let sum = 0;\n  for (let i = 0; i < d.length; i++) {\n    let n = Number(d[d.length - 1 - i]);\n    if (i % 2) {\n      n *= 2;\n      if (n > 9) n -= 9;\n    }\n    sum += n;\n  }\n  return sum % 10 === 0;\n};\n\nexport function CheckoutFormBlock({ items = ITEMS, currency = \"$\", taxRate = 0.08, codes = CODES, onPlaceOrder, theme = \"dark\", className }: CheckoutFormBlockProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [f, setF] = React.useState({ email: \"\", name: \"\", address: \"\", city: \"\", postcode: \"\", country: COUNTRIES[0], card: \"\", exp: \"\", cvc: \"\", news: true });\n  const [touched, setTouched] = React.useState<Record<string, boolean>>({});\n  const [shipping, setShipping] = React.useState(\"standard\");\n  const [codeInput, setCodeInput] = React.useState(\"\");\n  const [code, setCode] = React.useState<string | null>(null);\n  const [codeError, setCodeError] = React.useState<string | null>(null);\n  const [status, setStatus] = React.useState<\"idle\" | \"paying\" | \"done\">(\"idle\");\n  const [submitError, setSubmitError] = React.useState<string | null>(null);\n  const [showSummary, setShowSummary] = React.useState(false);\n\n  const subtotal = items.reduce((a, i) => a + i.price * i.quantity, 0);\n  const discount = code ? subtotal * ((codes[code] ?? 0) / 100) : 0;\n  const ship = SHIPPING.find((s) => s.id === shipping)?.price ?? 0;\n  const tax = (subtotal - discount) * taxRate;\n  const total = subtotal - discount + ship + tax;\n  const money = (n: number) => `${currency}${n.toFixed(2)}`;\n  const set = (k: keyof typeof f, v: string | boolean) => setF((s) => ({ ...s, [k]: v }));\n\n  const [mm, yy] = f.exp.split(\" / \").map(Number);\n  const errors: Record<string, string | null> = {\n    email: /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(f.email) ? null : \"Enter a valid email\",\n    name: f.name.trim().length > 1 ? null : \"Enter your full name\",\n    address: shipping === \"pickup\" || f.address.trim().length > 4 ? null : \"Enter a street address\",\n    city: shipping === \"pickup\" || f.city.trim() ? null : \"Required\",\n    postcode: shipping === \"pickup\" || f.postcode.trim().length >= 3 ? null : \"Required\",\n    card: luhn(f.card) ? null : \"Check the card number\",\n    exp: mm >= 1 && mm <= 12 && yy >= 26 ? null : \"Use MM / YY\",\n    cvc: /^\\d{3,4}$/.test(f.cvc) ? null : \"3–4 digits\",\n  };\n  const show = (k: string) => touched[k] && errors[k];\n  const valid = Object.values(errors).every((e) => !e);\n\n  const applyCode = () => {\n    const c = codeInput.trim().toUpperCase();\n    if (!c) return;\n    if (codes[c]) {\n      setCode(c);\n      setCodeError(null);\n      setCodeInput(\"\");\n    } else setCodeError(`“${c}” isn't a valid code`);\n  };\n  const submit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    setTouched(Object.fromEntries(Object.keys(errors).map((k) => [k, true])));\n    if (!valid || status === \"paying\") {\n      const first = Object.keys(errors).find((k) => errors[k]);\n      if (first) document.getElementById(`${uid}-${first}`)?.focus();\n      return;\n    }\n    setSubmitError(null);\n    setStatus(\"paying\");\n    try {\n      await (onPlaceOrder ? onPlaceOrder({ email: f.email, name: f.name, address: f.address, city: f.city, postcode: f.postcode, country: f.country, shipping, code: code ?? undefined, total }) : new Promise((r) => setTimeout(r, reduce ? 0 : 1200)));\n      setStatus(\"done\");\n    } catch (err) {\n      setStatus(\"idle\");\n      setSubmitError(err instanceof Error ? err.message : \"Payment failed. Try another card.\");\n    }\n  };\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.bg } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const label = \"mb-1.5 block text-[12.5px] font-medium\";\n  const field = (k: keyof typeof f & string, lbl: string, props: React.InputHTMLAttributes<HTMLInputElement> = {}, fmt?: (v: string) => string) => (\n    <div className=\"min-w-0\">\n      <label htmlFor={`${uid}-${k}`} className={label} style={{ color: p.body }}>\n        {lbl}\n      </label>\n      <input\n        id={`${uid}-${k}`}\n        value={f[k] as string}\n        onChange={(e) => set(k, fmt ? fmt(e.target.value) : e.target.value)}\n        onBlur={() => setTouched((t) => ({ ...t, [k]: true }))}\n        aria-invalid={!!show(k) || undefined}\n        aria-describedby={show(k) ? `${uid}-${k}-e` : undefined}\n        className=\"h-11 w-full rounded-xl border px-3.5 text-[14px] transition-colors outline-none focus-visible:ring-2\"\n        style={{ background: p.input, borderColor: show(k) ? p.error : p.line, color: p.title, ...ring }}\n        {...props}\n      />\n      <AnimatePresence initial={false}>\n        {show(k) && (\n          <motion.p key=\"e\" id={`${uid}-${k}-e`} initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} className=\"m-0 overflow-hidden pt-1 text-[12px]\" style={{ color: p.error }}>\n            {errors[k]}\n          </motion.p>\n        )}\n      </AnimatePresence>\n    </div>\n  );\n  const section = (n: number, title: string, children: React.ReactNode) => (\n    <fieldset className=\"m-0 min-w-0 border-0 p-0\">\n      <legend className=\"mb-4 flex items-center gap-2.5 p-0 text-[16px] font-semibold\">\n        <span className=\"grid h-6 w-6 place-items-center rounded-full text-[12px]\" style={{ background: p.buttonBg, color: p.buttonText }}>\n          {n}\n        </span>\n        {title}\n      </legend>\n      {children}\n    </fieldset>\n  );\n\n  const summary = (where: string) => (\n    <div className=\"flex flex-col gap-4\">\n      <ul className=\"m-0 flex list-none flex-col gap-3 p-0\">\n        {items.map((i) => (\n          <li key={i.id} className=\"flex items-center gap-3\">\n            <span className=\"relative h-14 w-14 shrink-0 overflow-hidden rounded-xl\" style={{ background: p.photo }}>\n              {/* eslint-disable-next-line @next/next/no-img-element */}\n              {i.image && <img src={i.image} alt=\"\" className=\"h-full w-full object-cover\" />}\n              <span className=\"absolute -top-0 -right-0 grid h-5 min-w-5 place-items-center rounded-bl-lg px-1 text-[11px] font-semibold\" style={{ background: p.buttonBg, color: p.buttonText }}>\n                {i.quantity}\n              </span>\n            </span>\n            <span className=\"min-w-0 flex-1\">\n              <span className=\"block truncate text-[13.5px] font-medium\">{i.title}</span>\n              <span className=\"block text-[12px]\" style={{ color: p.muted }}>\n                {i.variant}\n              </span>\n            </span>\n            <span className=\"text-[13.5px] tabular-nums\">{money(i.price * i.quantity)}</span>\n          </li>\n        ))}\n      </ul>\n      <div>\n        {code ? (\n          <div className=\"flex items-center justify-between rounded-xl px-3 py-2.5 text-[13px]\" style={{ background: `${p.accent}1A`, color: p.accent }}>\n            <span>\n              ✓ <span className=\"font-mono font-semibold\">{code}</span> applied · {codes[code]}% off\n            </span>\n            <button type=\"button\" onClick={() => setCode(null)} className={cn(\"cursor-pointer border-0 bg-transparent p-0 text-[12px] underline\", focus)} style={{ color: p.body, ...ring }}>\n              Remove\n            </button>\n          </div>\n        ) : (\n          <div className=\"flex gap-2\">\n            <label htmlFor={`${uid}-code-${where}`} className=\"sr-only\">\n              Discount code\n            </label>\n            <input\n              id={`${uid}-code-${where}`}\n              value={codeInput}\n              onChange={(e) => {\n                setCodeInput(e.target.value);\n                setCodeError(null);\n              }}\n              onKeyDown={(e) => e.key === \"Enter\" && (e.preventDefault(), applyCode())}\n              placeholder=\"Discount code\"\n              className=\"h-11 min-w-0 flex-1 rounded-xl border px-3.5 font-mono text-[13.5px] uppercase outline-none placeholder:font-sans placeholder:normal-case focus-visible:ring-2\"\n              style={{ background: p.input, borderColor: codeError ? p.error : p.line, color: p.title, ...ring }}\n            />\n            <button type=\"button\" onClick={applyCode} disabled={!codeInput.trim()} className={cn(\"h-11 cursor-pointer rounded-xl border bg-transparent px-4 text-[13px] font-medium disabled:cursor-default disabled:opacity-40\", focus)} style={{ borderColor: p.line, color: p.title, ...ring }}>\n              Apply\n            </button>\n          </div>\n        )}\n        {codeError && (\n          <p className=\"m-0 mt-1.5 text-[12px]\" role=\"alert\" style={{ color: p.error }}>\n            {codeError}\n          </p>\n        )}\n      </div>\n      <dl className=\"m-0 flex flex-col gap-2 border-t pt-4 text-[13.5px]\" style={{ borderColor: p.line }}>\n        {[\n          [\"Subtotal\", subtotal, false],\n          ...(discount ? [[`Discount (${code})`, -discount, true]] : []),\n          [\"Shipping\", ship, false],\n          [`Tax (${Math.round(taxRate * 100)}%)`, tax, false],\n        ].map(([k, v, good]) => (\n          <div key={k as string} className=\"flex justify-between\">\n            <dt style={{ color: p.body }}>{k as string}</dt>\n            <dd className=\"m-0 tabular-nums\" style={{ color: good ? p.accent : p.title }}>\n              {k === \"Shipping\" && v === 0 ? \"Free\" : (v as number) < 0 ? `−${money(-(v as number))}` : money(v as number)}\n            </dd>\n          </div>\n        ))}\n        <div className=\"mt-1 flex items-baseline justify-between border-t pt-3\" style={{ borderColor: p.line }}>\n          <dt className=\"text-[15px] font-semibold\">Total</dt>\n          <dd className=\"m-0 text-[22px] font-semibold tracking-[-0.02em] tabular-nums\">\n            <Money value={total} currency={currency} reduce={reduce} />\n          </dd>\n        </div>\n      </dl>\n    </div>\n  );\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.title }}>\n      <div className=\"mx-auto max-w-6xl px-4 py-10 @[640px]:px-8\">\n        <AnimatePresence mode=\"popLayout\" initial={false}>\n          {status === \"done\" ? (\n            <motion.div key=\"done\" role=\"status\" initial={reduce ? false : { opacity: 0, y: 12 }} animate={{ opacity: 1, y: 0 }} className=\"mx-auto flex max-w-md flex-col items-center py-12 text-center\">\n              <svg width=\"76\" height=\"76\" viewBox=\"0 0 76 76\" aria-hidden=\"true\">\n                <motion.circle cx=\"38\" cy=\"38\" r=\"34\" fill=\"none\" stroke={p.accent} strokeWidth=\"3\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.5 }} />\n                <motion.path d=\"M24 39l10 10 18-21\" fill=\"none\" stroke={p.accent} strokeWidth=\"3.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.35, delay: reduce ? 0 : 0.45 }} />\n              </svg>\n              <h2 className=\"m-0 mt-5 text-[26px] font-semibold tracking-[-0.02em]\">Thanks, {f.name.split(\" \")[0] || \"you're all set\"}!</h2>\n              <p className=\"m-0 mt-2 text-[14px]\" style={{ color: p.body }}>\n                Order <span className=\"font-mono\">#NL-48213</span> is confirmed. A receipt for {money(total)} is on its way to {f.email}.\n              </p>\n            </motion.div>\n          ) : (\n            <motion.form key=\"form\" onSubmit={submit} noValidate exit={reduce ? undefined : { opacity: 0, y: -8 }} className=\"grid grid-cols-1 gap-8 @[900px]:grid-cols-[minmax(0,1fr)_380px] @[900px]:gap-10\">\n              {/* Mobile summary toggle */}\n              <div className=\"rounded-2xl border @[900px]:hidden\" style={{ borderColor: p.line, background: p.card }}>\n                <button type=\"button\" onClick={() => setShowSummary((s) => !s)} aria-expanded={showSummary} className={cn(\"flex w-full cursor-pointer items-center justify-between border-0 bg-transparent px-4 py-3.5 text-[14px]\", focus)} style={{ color: p.title, ...ring }}>\n                  <span>{showSummary ? \"Hide\" : \"Show\"} order summary</span>\n                  <span className=\"font-semibold tabular-nums\">\n                    <Money value={total} currency={currency} reduce={reduce} />\n                  </span>\n                </button>\n                <AnimatePresence initial={false}>\n                  {showSummary && (\n                    <motion.div key=\"s\" initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} className=\"overflow-hidden\">\n                      <div className=\"border-t p-4\" style={{ borderColor: p.line }}>\n                        {summary(\"m\")}\n                      </div>\n                    </motion.div>\n                  )}\n                </AnimatePresence>\n              </div>\n\n              <div className=\"flex min-w-0 flex-col gap-8\">\n                {section(\n                  1,\n                  \"Contact\",\n                  <div className=\"flex flex-col gap-3\">\n                    {field(\"email\", \"Email\", { type: \"email\", autoComplete: \"email\", placeholder: \"you@example.com\" })}\n                    <label className=\"flex cursor-pointer items-center gap-2 text-[13px]\" style={{ color: p.body }}>\n                      <input type=\"checkbox\" checked={f.news} onChange={(e) => set(\"news\", e.target.checked)} className=\"h-4 w-4 cursor-pointer\" style={{ accentColor: p.title }} />\n                      Email me about new products and offers\n                    </label>\n                  </div>,\n                )}\n                {section(\n                  2,\n                  \"Delivery\",\n                  <div className=\"flex flex-col gap-4\">\n                    <div role=\"radiogroup\" aria-label=\"Shipping method\" className=\"grid grid-cols-1 gap-2 @[560px]:grid-cols-3\">\n                      {SHIPPING.map((s) => (\n                        <label key={s.id} className=\"relative cursor-pointer rounded-xl border p-3.5 transition-colors has-[:focus-visible]:ring-2\" style={{ borderColor: shipping === s.id ? p.title : p.line, background: shipping === s.id ? p.card : \"transparent\", ...ring }}>\n                          <input type=\"radio\" name={`${uid}-ship`} checked={shipping === s.id} onChange={() => setShipping(s.id)} className=\"sr-only\" />\n                          <span className=\"flex items-center justify-between text-[13.5px] font-medium\">\n                            {s.label}\n                            <span className=\"tabular-nums\" style={{ color: s.price ? p.title : p.accent }}>\n                              {s.price ? money(s.price) : \"Free\"}\n                            </span>\n                          </span>\n                          <span className=\"mt-0.5 block text-[12px]\" style={{ color: p.muted }}>\n                            {s.eta}\n                          </span>\n                        </label>\n                      ))}\n                    </div>\n                    {field(\"name\", \"Full name\", { autoComplete: \"name\", placeholder: \"Alex Morgan\" })}\n                    <AnimatePresence initial={false}>\n                      {shipping !== \"pickup\" && (\n                        <motion.div key=\"addr\" initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} className=\"overflow-hidden\">\n                          <div className=\"flex flex-col gap-4 p-0.5\">\n                            {field(\"address\", \"Street address\", { autoComplete: \"street-address\", placeholder: \"123 Market Street, Apt 4\" })}\n                            <div className=\"grid grid-cols-2 gap-3 @[560px]:grid-cols-3\">\n                              {field(\"city\", \"City\", { autoComplete: \"address-level2\" })}\n                              {field(\"postcode\", \"Postcode\", { autoComplete: \"postal-code\", inputMode: \"text\" })}\n                              <div className=\"col-span-2 min-w-0 @[560px]:col-span-1\">\n                                <label htmlFor={`${uid}-country`} className={label} style={{ color: p.body }}>\n                                  Country\n                                </label>\n                                <select id={`${uid}-country`} value={f.country} onChange={(e) => set(\"country\", e.target.value)} autoComplete=\"country-name\" className={cn(\"h-11 w-full cursor-pointer rounded-xl border px-3 text-[14px]\", focus)} style={{ background: p.input, borderColor: p.line, color: p.title, ...ring }}>\n                                  {COUNTRIES.map((c) => (\n                                    <option key={c}>{c}</option>\n                                  ))}\n                                </select>\n                              </div>\n                            </div>\n                          </div>\n                        </motion.div>\n                      )}\n                    </AnimatePresence>\n                  </div>,\n                )}\n                {section(\n                  3,\n                  \"Payment\",\n                  <div className=\"rounded-2xl border p-4\" style={{ borderColor: p.line, background: p.card }}>\n                    <p className=\"m-0 mb-3 flex items-center gap-1.5 text-[12px]\" style={{ color: p.muted }}>\n                      <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                        <path d=\"M6 11h12v9H6zM8 11V8a4 4 0 0 1 8 0v3\" />\n                      </svg>\n                      Encrypted and never stored on our servers\n                    </p>\n                    <div className=\"flex flex-col gap-3\">\n                      {field(\"card\", \"Card number\", { inputMode: \"numeric\", autoComplete: \"cc-number\", placeholder: \"1234 1234 1234 1234\" }, fmtCard)}\n                      <div className=\"grid grid-cols-2 gap-3\">\n                        {field(\"exp\", \"Expiry\", { inputMode: \"numeric\", autoComplete: \"cc-exp\", placeholder: \"MM / YY\" }, fmtExp)}\n                        {field(\"cvc\", \"CVC\", { inputMode: \"numeric\", autoComplete: \"cc-csc\", placeholder: \"123\", maxLength: 4 }, (v) => v.replace(/\\D/g, \"\").slice(0, 4))}\n                      </div>\n                    </div>\n                  </div>,\n                )}\n                <div className=\"flex flex-col gap-2\">\n                  {submitError && (\n                    <p className=\"m-0 text-[13px]\" role=\"alert\" style={{ color: p.error }}>\n                      {submitError}\n                    </p>\n                  )}\n                  <button type=\"submit\" aria-disabled={!valid} className={cn(\"flex h-13 min-h-[52px] w-full cursor-pointer items-center justify-center gap-2 rounded-full border-0 text-[15px] font-semibold transition-opacity\", focus)} style={{ background: p.buttonBg, color: p.buttonText, opacity: valid ? 1 : 0.7, ...ring }}>\n                    {status === \"paying\" ? (\n                      <>\n                        <motion.span className=\"h-4 w-4 rounded-full border-2 border-current border-t-transparent\" animate={reduce ? undefined : { rotate: 360 }} transition={{ repeat: Infinity, duration: 0.7, ease: \"linear\" }} aria-hidden=\"true\" />\n                        Processing…\n                      </>\n                    ) : (\n                      <>\n                        Pay <Money value={total} currency={currency} reduce={reduce} />\n                      </>\n                    )}\n                  </button>\n                  <p className=\"m-0 text-center text-[11.5px]\" style={{ color: p.muted }}>\n                    By placing your order you agree to our terms and 30-day return policy.\n                  </p>\n                </div>\n              </div>\n\n              <aside className=\"hidden @[900px]:block\" aria-label=\"Order summary\">\n                <div className=\"sticky top-6 rounded-2xl border p-5\" style={{ borderColor: p.line, background: p.card }}>\n                  <h3 className=\"m-0 mb-4 text-[16px] font-semibold\">Order summary</h3>\n                  {summary(\"d\")}\n                </div>\n              </aside>\n            </motion.form>\n          )}\n        </AnimatePresence>\n      </div>\n    </section>\n  );\n}\n\nexport default CheckoutFormBlock;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}