{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ebay-reviews",
  "title": "eBay Reviews",
  "description": "A seller-feedback carousel with the eBay wordmark, aggregate rating header and CTA, above a draggable autoplaying grid of review cards.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/ebay-reviews/ebay-reviews.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nconst TOKENS = {\n  ink: \"#0d0d0d\",\n  glassBorderSoft: \"rgba(255,255,255,0.12)\",\n  uiFontFamily: \"'Helvetica Neue', Arial, sans-serif\",\n  gapDefault: 20,\n} as const;\n\nconst MOBILE_BREAKPOINT = 640;\nconst TABLET_BREAKPOINT = 980;\n\nfunction useContainerWidth(ref: React.RefObject<HTMLDivElement | null>) {\n  const [width, setWidth] = React.useState(9999);\n  React.useEffect(() => {\n    if (!ref.current) return;\n    let rafId = 0;\n    const ro = new ResizeObserver(([entry]) => {\n      cancelAnimationFrame(rafId);\n      rafId = requestAnimationFrame(() => setWidth(entry.contentRect.width));\n    });\n    ro.observe(ref.current);\n    return () => {\n      cancelAnimationFrame(rafId);\n      ro.disconnect();\n    };\n  }, [ref]);\n  return width;\n}\n\nconst AVATAR_PALETTE = [\"#3c7a63\", \"#64748b\", \"#8b5cf6\", \"#c026d3\", \"#0ea5e9\", \"#d97706\"];\n\nexport type EbayReviewsThemeMode = \"light\" | \"dark\" | \"custom\";\n\nexport interface EbayReviewItem {\n  avatar?: string | null;\n  name: string;\n  date: string;\n  rating: number;\n  text: string;\n}\n\nexport interface EbayReviewsFontValue {\n  fontFamily?: string;\n  fontWeight?: string | number;\n  fontStyle?: string;\n  fontSize?: number | string;\n  lineHeight?: number | string;\n  letterSpacing?: number | string;\n}\n\nconst DEFAULT_REVIEWS: EbayReviewItem[] = [\n  {\n    avatar: null,\n    name: \"Emma Wilson\",\n    date: \"7 days ago\",\n    rating: 5,\n    text: \"Item arrived exactly as described and much faster than expected. Great communication from the seller throughout.\",\n  },\n  {\n    avatar: null,\n    name: \"Grace Miller\",\n    date: \"21 days ago\",\n    rating: 5,\n    text: \"I've bought from this seller a few times now and I'm always impressed. Packaging is careful, shipping is fast, and everything matches the listing photos.\",\n  },\n  {\n    avatar: null,\n    name: \"Sofia Martinez\",\n    date: \"21 days ago\",\n    rating: 5,\n    text: \"Much better than I expected. Great condition and reasonable price.\",\n  },\n  {\n    avatar: null,\n    name: \"Marcus Lee\",\n    date: \"28 days ago\",\n    rating: 5,\n    text: \"Smooth transaction from start to finish. Support was responsive too, cant say enough good things about this seller.\",\n  },\n  {\n    avatar: null,\n    name: \"David Chen\",\n    date: \"1 month ago\",\n    rating: 5,\n    text: \"I left with a very positive impression overall. From bidding to delivery, the experience felt smooth, well organized, and easy to follow every step of the way.\",\n  },\n];\n\n// Official eBay wordmark — shown for platform attribution only.\nconst EbayMark = React.memo(function EbayMark({ size = 22 }: { size?: number }) {\n  const uid = React.useId();\n\n  return (\n    <svg width={size * (1000 / 401)} height={size} viewBox=\"0 0 1000 401\" fill=\"none\" aria-hidden=\"true\">\n      <g clipPath={`url(#clip0_${uid})`}>\n        <path\n          fill=\"#FFBC13\"\n          d=\"M633.078 212.532C587.64 214.022 559.407 222.221 559.407 252.151C559.407 271.527 574.854 292.533 614.07 292.533C666.647 292.533 694.713 263.874 694.713 216.87L694.716 211.7C676.283 211.7 653.551 211.861 633.078 212.532ZM744.829 274.635C744.829 289.218 745.251 303.613 746.523 316.576H699.909C698.666 305.902 698.212 295.296 698.212 285.009C673.01 315.989 643.035 324.895 601.451 324.895C539.774 324.895 506.75 292.295 506.75 254.588C506.75 199.976 551.666 180.72 629.64 178.934C650.963 178.447 674.914 178.375 694.715 178.375L694.712 173.039C694.712 136.478 671.269 121.445 630.645 121.445C600.486 121.445 578.259 133.926 575.968 155.492H523.317C528.889 101.721 585.383 88.1211 635.057 88.1211C694.565 88.1211 744.829 109.294 744.829 172.236L744.829 274.635Z\"\n        />\n        <path\n          fill=\"#F12C2D\"\n          d=\"M199.636 185.865C197.692 138.988 163.857 121.445 127.695 121.445C88.7007 121.445 57.5683 141.178 52.1147 185.865H199.636ZM51.0344 219.19C53.7387 264.674 85.1042 291.574 128.232 291.574C158.112 291.574 184.692 279.399 193.591 252.914H245.276C235.224 306.654 178.122 324.895 128.973 324.895C39.6064 324.895 0 275.678 0 209.306C0 136.241 40.9656 88.1211 129.788 88.1211C200.487 88.1211 252.288 125.12 252.288 205.877V219.19H51.0344Z\"\n        />\n        <path\n          fill=\"#0968F6\"\n          d=\"M380.832 290.624C427.405 290.624 459.273 257.102 459.273 206.515C459.273 155.933 427.405 122.406 380.832 122.406C334.522 122.406 302.388 155.933 302.388 206.515C302.388 257.102 334.522 290.624 380.832 290.624ZM252.286 0H302.388L302.383 125.877C326.94 96.6173 360.772 88.1219 394.073 88.1219C449.908 88.1219 511.924 125.799 511.924 207.151C511.924 275.273 462.603 324.895 393.143 324.895C356.786 324.895 322.563 311.853 301.457 286.013C301.457 296.334 300.881 306.736 299.752 316.577H250.58C251.435 300.667 252.286 280.858 252.286 264.83L252.286 0Z\"\n        />\n        <path\n          fill=\"#93C822\"\n          d=\"M1000 96.457L845.056 400.751H788.95L833.496 316.255L716.891 96.457H775.517L861.322 268.188L946.885 96.457H1000Z\"\n        />\n      </g>\n      <defs>\n        <clipPath id={`clip0_${uid}`}>\n          <rect width=\"1000\" height=\"400.751\" fill=\"white\" />\n        </clipPath>\n      </defs>\n    </svg>\n  );\n});\n\nfunction clampRating(r: number) {\n  return Math.max(0, Math.min(5, r));\n}\n\nconst STAR_PATH = \"M12 2.5l2.9 6.3 6.9.7-5.2 4.7 1.5 6.8L12 17.7 5.9 21l1.5-6.8L2.2 9.5l6.9-.7L12 2.5z\";\n\nconst StarRow = React.memo(function StarRow({\n  rating,\n  size = 14,\n  filledColor = \"#f5b800\",\n  emptyColor = \"rgba(0,0,0,0.15)\",\n}: {\n  rating: number;\n  size?: number;\n  filledColor?: string;\n  emptyColor?: string;\n}) {\n  const uid = React.useId();\n\n  const clamped = clampRating(rating);\n  const fullStars = Math.floor(clamped);\n  const fraction = clamped - fullStars;\n\n  return (\n    <div role=\"img\" aria-label={`Rated ${clamped.toFixed(1)} out of 5 stars`} className=\"flex gap-0.5 leading-none\">\n      {Array.from({ length: 5 }).map((_, i) => {\n        let fill: string;\n        if (i < fullStars) fill = filledColor;\n        else if (i === fullStars && fraction > 0) fill = `url(#${uid}-${i})`;\n        else fill = emptyColor;\n        return (\n          <svg key={i} width={size} height={size} viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n            {i === fullStars && fraction > 0 && (\n              <defs>\n                <linearGradient id={`${uid}-${i}`}>\n                  <stop offset={`${fraction * 100}%`} stopColor={filledColor} />\n                  <stop offset={`${fraction * 100}%`} stopColor={emptyColor} />\n                </linearGradient>\n              </defs>\n            )}\n            <path d={STAR_PATH} fill={fill} />\n          </svg>\n        );\n      })}\n    </div>\n  );\n});\n\nfunction Avatar({ src, name, color, size = 44 }: { src?: string | null; name: string; color: string; size?: number }) {\n  if (src) {\n    return (\n      // eslint-disable-next-line @next/next/no-img-element\n      <img src={src} alt={name ? `${name}'s avatar` : \"\"} className=\"block shrink-0 rounded-full object-cover\" style={{ width: size, height: size }} />\n    );\n  }\n  const initial = (name || \"?\").trim().charAt(0).toUpperCase() || \"?\";\n  return (\n    <div\n      className=\"flex shrink-0 items-center justify-center rounded-full font-semibold text-white\"\n      style={{ width: size, height: size, background: color, fontSize: size * 0.4, fontFamily: TOKENS.uiFontFamily }}\n    >\n      {initial}\n    </div>\n  );\n}\n\nexport interface EbayReviewsProps extends Omit<React.ComponentPropsWithoutRef<\"section\">, \"children\"> {\n  themeMode?: EbayReviewsThemeMode;\n  accentColor?: string;\n  customBackground?: string;\n  customSurface?: string;\n  customBorder?: string;\n  customText?: string;\n  customTextMuted?: string;\n  badgeTitle?: string;\n  overallRating?: number;\n  reviewCount?: number;\n  showHeader?: boolean;\n  showCTA?: boolean;\n  ctaText?: string;\n  ctaLink?: string;\n  showArrows?: boolean;\n  logoSize?: number;\n  reviews?: EbayReviewItem[];\n  cardsDesktop?: number;\n  autoPlay?: boolean;\n  autoPlaySpeed?: number;\n  gap?: number;\n  sectionGap?: number;\n  cardRadius?: number;\n  paddingTop?: number;\n  paddingBottom?: number;\n  paddingHorizontal?: number;\n  titleFont?: EbayReviewsFontValue;\n  reviewTextFont?: EbayReviewsFontValue;\n  reviewerNameFont?: EbayReviewsFontValue;\n  metaFont?: EbayReviewsFontValue;\n  ctaFont?: EbayReviewsFontValue;\n}\n\nexport function EbayReviews({\n  themeMode = \"dark\",\n  accentColor = \"#0968F6\",\n  customBackground = \"#f6f5fb\",\n  customSurface = \"#ffffff\",\n  customBorder = \"rgba(30,27,75,0.08)\",\n  customText = \"#1e1b4b\",\n  customTextMuted = \"rgba(30,27,75,0.55)\",\n  badgeTitle = \"eBay Reviews\",\n  overallRating = 4.3,\n  reviewCount = 191,\n  showHeader = true,\n  showCTA = true,\n  ctaText = \"Share your feedback\",\n  ctaLink = \"\",\n  showArrows = true,\n  logoSize = 22,\n  reviews: reviewsProp = DEFAULT_REVIEWS,\n  cardsDesktop = 3,\n  autoPlay = true,\n  autoPlaySpeed = 5,\n  gap = TOKENS.gapDefault,\n  sectionGap = 16,\n  cardRadius = 20,\n  paddingTop = 56,\n  paddingBottom = 56,\n  paddingHorizontal = 24,\n  titleFont,\n  reviewTextFont,\n  reviewerNameFont,\n  metaFont,\n  ctaFont,\n  className,\n  style,\n  ...props\n}: EbayReviewsProps) {\n  const containerRef = React.useRef<HTMLDivElement>(null);\n  const containerWidth = useContainerWidth(containerRef);\n  const isMobile = containerWidth <= MOBILE_BREAKPOINT;\n  const isTablet = !isMobile && containerWidth <= TABLET_BREAKPOINT;\n\n  const cardsPerView = isMobile ? 1 : isTablet ? 2 : Math.max(2, Math.min(4, cardsDesktop));\n\n  const reviews: EbayReviewItem[] = React.useMemo(\n    () => (reviewsProp ?? []).map((r) => ({ avatar: r.avatar ?? null, name: r.name ?? \"\", date: r.date ?? \"\", rating: r.rating ?? 5, text: r.text ?? \"\" })),\n    [reviewsProp],\n  );\n\n  const totalPages = Math.max(1, Math.ceil(reviews.length / cardsPerView));\n  const [page, setPage] = React.useState(0);\n  React.useEffect(() => {\n    if (page > totalPages - 1) setPage(0);\n  }, [totalPages, page]);\n\n  const [isHovering, setIsHovering] = React.useState(false);\n  const [drag, setDrag] = React.useState<{ startX: number; deltaX: number } | null>(null);\n  const dragRef = React.useRef<{ startX: number; deltaX: number } | null>(null);\n\n  const isLight = themeMode === \"light\";\n  const isCustom = themeMode === \"custom\";\n  const useLightChrome = themeMode !== \"dark\";\n  const starEmptyColor = isCustom ? \"rgba(128,128,128,0.35)\" : isLight ? \"rgba(0,0,0,0.15)\" : \"rgba(255,255,255,0.25)\";\n\n  const bg = isCustom ? customBackground : isLight ? \"#f5f5f5\" : TOKENS.ink;\n  const headerBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.05)\";\n  const cardBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.05)\";\n  const cardBorder = isCustom ? customBorder : isLight ? \"rgba(30,27,75,0.06)\" : TOKENS.glassBorderSoft;\n  const fg = isCustom ? customText : isLight ? \"#1e1b4b\" : \"#ffffff\";\n  const fgSubtle = isCustom ? customTextMuted : isLight ? \"rgba(30,27,75,0.55)\" : \"rgba(255,255,255,0.55)\";\n  const navBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.08)\";\n  const navBorder = isCustom ? customBorder : isLight ? \"rgba(30,27,75,0.1)\" : TOKENS.glassBorderSoft;\n\n  const titleStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 700, letterSpacing: \"-0.01em\", color: fg, margin: 0, ...titleFont, fontSize: titleFont?.fontSize ?? (isMobile ? 20 : 24) }),\n    [titleFont, fg, isMobile],\n  );\n\n  const reviewTextStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 400, lineHeight: 1.6, color: fg, ...reviewTextFont, fontSize: reviewTextFont?.fontSize ?? 14.5 }),\n    [reviewTextFont, fg],\n  );\n\n  const reviewTextMinHeight = React.useMemo(() => {\n    const fontSize = parseFloat(String(reviewTextStyle.fontSize)) || 14.5;\n    const lineHeightRaw = reviewTextStyle.lineHeight;\n    const lineHeight = typeof lineHeightRaw === \"number\" ? lineHeightRaw : parseFloat(String(lineHeightRaw)) || 1.6;\n    return fontSize * lineHeight * 4;\n  }, [reviewTextStyle]);\n\n  const reviewerNameStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 600, color: fg, ...reviewerNameFont, fontSize: reviewerNameFont?.fontSize ?? 14, lineHeight: reviewerNameFont?.lineHeight ?? 1.4 }),\n    [reviewerNameFont, fg],\n  );\n\n  const metaStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 400, color: fgSubtle, ...metaFont, fontSize: metaFont?.fontSize ?? 13 }),\n    [metaFont, fgSubtle],\n  );\n\n  const ctaStyle: React.CSSProperties = React.useMemo(() => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 600, color: \"#ffffff\", ...ctaFont, fontSize: ctaFont?.fontSize ?? 14 }), [ctaFont]);\n\n  const goTo = React.useCallback((next: number) => setPage(((next % totalPages) + totalPages) % totalPages), [totalPages]);\n\n  // Autoplay — paused on hover/drag.\n  React.useEffect(() => {\n    if (!autoPlay || isHovering || drag || totalPages <= 1) return;\n    const id = setInterval(() => setPage((p) => (p + 1) % totalPages), Math.max(2, autoPlaySpeed) * 1000);\n    return () => clearInterval(id);\n  }, [autoPlay, isHovering, drag, totalPages, autoPlaySpeed]);\n\n  // Drag-to-swipe — uses Pointer Capture on the track itself so move/up\n  // events keep firing even outside its bounds, with no window listeners.\n  const handlePointerDown = (e: React.PointerEvent<HTMLDivElement>) => {\n    e.currentTarget.setPointerCapture(e.pointerId);\n    const next = { startX: e.clientX, deltaX: 0 };\n    dragRef.current = next;\n    setDrag(next);\n  };\n  const handlePointerMove = (e: React.PointerEvent<HTMLDivElement>) => {\n    const d = dragRef.current;\n    if (!d) return;\n    const next = { startX: d.startX, deltaX: e.clientX - d.startX };\n    dragRef.current = next;\n    setDrag(next);\n  };\n  const endDrag = (e: React.PointerEvent<HTMLDivElement>) => {\n    const d = dragRef.current;\n    if (d && containerWidth > 0) {\n      const threshold = containerWidth * 0.12;\n      if (d.deltaX < -threshold) goTo(page + 1);\n      else if (d.deltaX > threshold) goTo(page - 1);\n    }\n    dragRef.current = null;\n    setDrag(null);\n    if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId);\n  };\n\n  const dragPercent = drag && containerWidth > 0 ? (drag.deltaX / containerWidth) * 100 : 0;\n  const translate = -(page * 100) + dragPercent;\n\n  // Pushes the arrows further out over the card edges when there's room in\n  // the side padding, but never far enough to overflow the section.\n  const arrowOffset = -Math.min(16, Math.max(paddingHorizontal - 4, 0));\n\n  return (\n    <section\n      ref={containerRef}\n      aria-label={badgeTitle || \"Customer reviews\"}\n      itemScope\n      itemType=\"https://schema.org/Organization\"\n      className={cn(\"relative box-border flex w-full flex-col\", className)}\n      style={{\n        background: bg,\n        paddingTop: isMobile ? Math.max(paddingTop - 16, 24) : paddingTop,\n        paddingBottom: isMobile ? Math.max(paddingBottom - 16, 24) : paddingBottom,\n        paddingLeft: isMobile ? 16 : paddingHorizontal,\n        paddingRight: isMobile ? 16 : paddingHorizontal,\n        fontFamily: TOKENS.uiFontFamily,\n        gap: isMobile ? Math.max(sectionGap - 8, 12) : sectionGap,\n        ...style,\n      }}\n      {...props}\n    >\n      {showHeader && (\n        <div\n          className=\"box-border flex flex-col items-start justify-between gap-4\"\n          style={{ flexDirection: isMobile ? \"column\" : \"row\", alignItems: isMobile ? \"flex-start\" : \"center\", background: headerBg, borderRadius: cardRadius, padding: isMobile ? \"20px 20px\" : \"24px 28px\" }}\n        >\n          <div>\n            <div className=\"mb-2.5 flex items-center gap-2.5\">\n              <EbayMark size={isMobile ? Math.min(logoSize, 20) : logoSize} />\n              <h2 style={titleStyle} itemProp=\"name\">\n                {badgeTitle}\n              </h2>\n            </div>\n            <div itemProp=\"aggregateRating\" itemScope itemType=\"https://schema.org/AggregateRating\" className=\"flex items-center gap-2.5\">\n              <span itemProp=\"ratingValue\" className=\"text-xl font-bold\" style={{ color: fg }}>\n                {overallRating.toFixed(1)}\n              </span>\n              <StarRow rating={overallRating} size={18} emptyColor={starEmptyColor} />\n              <span style={metaStyle}>{reviewCount.toLocaleString()} reviews</span>\n              <meta itemProp=\"reviewCount\" content={String(reviewCount)} />\n              <meta itemProp=\"bestRating\" content=\"5\" />\n            </div>\n          </div>\n\n          {showCTA &&\n            ctaText &&\n            (ctaLink ? (\n              <a\n                href={ctaLink}\n                className=\"box-border inline-flex cursor-pointer items-center justify-center rounded-full whitespace-nowrap no-underline\"\n                style={{ width: isMobile ? \"100%\" : \"auto\", padding: \"12px 24px\", background: accentColor, flexShrink: 0, ...ctaStyle }}\n              >\n                {ctaText}\n              </a>\n            ) : (\n              <button\n                type=\"button\"\n                className=\"box-border inline-flex cursor-pointer items-center justify-center rounded-full border-none whitespace-nowrap\"\n                style={{ width: isMobile ? \"100%\" : \"auto\", padding: \"12px 24px\", background: accentColor, flexShrink: 0, ...ctaStyle }}\n              >\n                {ctaText}\n              </button>\n            ))}\n        </div>\n      )}\n\n      <div className=\"relative\" onMouseEnter={() => setIsHovering(true)} onMouseLeave={() => setIsHovering(false)}>\n        <div className=\"overflow-hidden\">\n          <div\n            onPointerDown={handlePointerDown}\n            onPointerMove={handlePointerMove}\n            onPointerUp={endDrag}\n            onPointerCancel={endDrag}\n            className=\"flex touch-pan-y\"\n            style={{ width: `${totalPages * 100}%`, transform: `translateX(${translate / totalPages}%)`, transition: drag ? \"none\" : \"transform 0.45s cubic-bezier(0.22,1,0.36,1)\", cursor: drag ? \"grabbing\" : \"grab\" }}\n          >\n            {Array.from({ length: totalPages }).map((_, pageIndex) => (\n              <div key={pageIndex} className=\"box-border grid shrink-0 items-stretch\" style={{ width: `${100 / totalPages}%`, gridTemplateColumns: `repeat(${cardsPerView}, 1fr)`, gap }}>\n                {reviews.slice(pageIndex * cardsPerView, pageIndex * cardsPerView + cardsPerView).map((review, i) => {\n                  const idx = pageIndex * cardsPerView + i;\n                  return (\n                    <article\n                      key={idx}\n                      aria-label={`Review by ${review.name || \"Anonymous\"}`}\n                      itemProp=\"review\"\n                      itemScope\n                      itemType=\"https://schema.org/Review\"\n                      className=\"box-border flex h-full flex-col\"\n                      style={{ background: cardBg, border: `1px solid ${cardBorder}`, borderRadius: cardRadius, padding: isMobile ? 20 : 24, minHeight: 200 }}\n                    >\n                      <span itemProp=\"reviewRating\" itemScope itemType=\"https://schema.org/Rating\">\n                        <StarRow rating={review.rating} size={15} emptyColor={starEmptyColor} />\n                        <meta itemProp=\"ratingValue\" content={String(review.rating)} />\n                      </span>\n                      <p itemProp=\"reviewBody\" className=\"mb-0 line-clamp-4\" style={{ ...reviewTextStyle, marginTop: 14, minHeight: reviewTextMinHeight }}>\n                        {review.text}\n                      </p>\n                      <div className=\"flex items-center gap-3 border-t\" style={{ marginTop: 18, paddingTop: 16, borderColor: cardBorder }}>\n                        <Avatar src={review.avatar} name={review.name} color={AVATAR_PALETTE[idx % AVATAR_PALETTE.length]} />\n                        <div itemProp=\"author\" itemScope itemType=\"https://schema.org/Person\" className=\"min-w-0\">\n                          <div itemProp=\"name\" className=\"truncate\" style={reviewerNameStyle}>\n                            {review.name}\n                          </div>\n                          <div className=\"mt-1\" style={metaStyle}>\n                            {review.date}\n                          </div>\n                        </div>\n                      </div>\n                    </article>\n                  );\n                })}\n              </div>\n            ))}\n          </div>\n        </div>\n\n        {totalPages > 1 && showArrows && !isMobile && (\n          <>\n            <button\n              type=\"button\"\n              aria-label=\"Previous reviews\"\n              onClick={() => goTo(page - 1)}\n              className=\"absolute top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full\"\n              style={{ left: arrowOffset, background: navBg, border: `1px solid ${navBorder}`, boxShadow: useLightChrome ? \"0 2px 10px rgba(30,27,75,0.08)\" : \"none\" }}\n            >\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke={fg} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <path d=\"M15 18l-6-6 6-6\" />\n              </svg>\n            </button>\n            <button\n              type=\"button\"\n              aria-label=\"Next reviews\"\n              onClick={() => goTo(page + 1)}\n              className=\"absolute top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full\"\n              style={{ right: arrowOffset, background: navBg, border: `1px solid ${navBorder}`, boxShadow: useLightChrome ? \"0 2px 10px rgba(30,27,75,0.08)\" : \"none\" }}\n            >\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke={fg} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <path d=\"M9 18l6-6-6-6\" />\n              </svg>\n            </button>\n          </>\n        )}\n      </div>\n\n      {totalPages > 1 && (\n        <div className=\"flex justify-center gap-2\">\n          {Array.from({ length: totalPages }).map((_, i) => (\n            <button\n              key={i}\n              type=\"button\"\n              aria-label={`Go to page ${i + 1}`}\n              aria-current={i === page ? \"true\" : undefined}\n              onClick={() => goTo(i)}\n              className=\"block h-2 rounded-full border-none p-0 transition-all duration-300\"\n              style={{ width: i === page ? 20 : 8, background: i === page ? accentColor : cardBorder }}\n            />\n          ))}\n        </div>\n      )}\n\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}