import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { jsx, jsxs } from 'react/jsx-runtime';

// src/lib/utils.ts
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
function CommerceCheckout({ children, summary, title, className }) {
  return /* @__PURE__ */ jsx("section", { className: cn("bg-background py-12 sm:py-16", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-7xl px-6 lg:px-8", children: [
    title ? /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: title }) : null,
    /* @__PURE__ */ jsxs("div", { className: cn("grid gap-10 lg:grid-cols-[1fr_24rem] lg:gap-12", title && "mt-8"), children: [
      /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-8", children }),
      /* @__PURE__ */ jsx("aside", { "aria-label": "Order summary", children: /* @__PURE__ */ jsx("div", { className: "rounded-2xl border border-border bg-card p-6 text-card-foreground lg:sticky lg:top-6", children: summary }) })
    ] })
  ] }) });
}

export { CommerceCheckout };
//# sourceMappingURL=commerce-checkout.js.map
//# sourceMappingURL=commerce-checkout.js.map