{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "etsy-reviews",
  "title": "Etsy Reviews",
  "description": "A shop-review carousel with the Etsy wordmark, aggregate rating header and CTA, above a draggable autoplaying grid of review cards.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/etsy-reviews/etsy-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 EtsyReviewsThemeMode = \"light\" | \"dark\" | \"custom\";\n\nexport interface EtsyReviewItem {\n  avatar?: string | null;\n  name: string;\n  date: string;\n  rating: number;\n  text: string;\n}\n\nexport interface EtsyReviewsFontValue {\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: EtsyReviewItem[] = [\n  {\n    avatar: null,\n    name: \"Emma Wilson\",\n    date: \"7 days ago\",\n    rating: 5,\n    text: \"Beautiful piece, exactly as pictured! Shipping was fast and the packaging was so thoughtful. Highly recommend this shop!\",\n  },\n  {\n    avatar: null,\n    name: \"Grace Miller\",\n    date: \"21 days ago\",\n    rating: 5,\n    text: \"I've ordered from this shop a few times now and I'm always impressed. The quality is consistently excellent, the seller communicates quickly, and every order feels handmade with care.\",\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 craftsmanship and reasonable prices.\",\n  },\n  {\n    avatar: null,\n    name: \"Marcus Lee\",\n    date: \"28 days ago\",\n    rating: 5,\n    text: \"Lovely item from start to finish. Customer service was great 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 ordering to delivery, the experience felt smooth, well organized, and easy to follow every step of the way.\",\n  },\n];\n\n// Official Etsy wordmark — shown for platform attribution only.\nfunction EtsyMark({ size = 22 }: { size?: number }) {\n  return (\n    <svg width={size * 2} height={size} viewBox=\"0 0 48 24\" fill=\"none\" aria-hidden=\"true\">\n      <path\n        fill=\"#F45800\"\n        d=\"M6.54681 3.125V9.133C6.54681 9.133 8.66381 9.133 9.79681 9.047C10.6878 8.891 10.8518 8.805 11.0158 7.914L11.3438 6.609H12.3128L12.1488 9.461L12.2348 12.383H11.2578L11.0158 11.242C10.7738 10.43 10.4458 10.265 9.79681 10.187C8.98481 10.101 6.54681 10.101 6.54681 10.101V15.14C6.54681 16.109 7.03881 16.523 8.17181 16.523H11.5858C12.6408 16.523 13.6948 16.437 14.3518 14.898L15.2348 12.945H16.0548C15.9688 13.351 15.5628 16.929 15.4848 17.734C15.4848 17.734 12.3988 17.656 11.1018 17.656H5.24981L1.75781 17.734V16.851L2.89081 16.601C3.71081 16.437 3.95281 16.195 3.95281 15.546C3.95281 15.546 4.03881 13.351 4.03881 9.694C4.03881 6.046 3.95281 3.85 3.95281 3.85C3.95281 3.123 3.71081 2.959 2.89081 2.795L1.75781 2.555V1.664L5.17181 1.734H11.6718C12.9688 1.734 15.1558 1.5 15.1558 1.5C15.1558 1.5 15.0778 2.875 14.9918 6.125H14.1008L13.7728 4.984C13.4528 3.523 12.9678 2.796 12.0698 2.796H6.96081C6.54681 2.797 6.54681 2.875 6.54681 3.125ZM19.7028 3.766H20.6798V7.18L24.0158 7.016L23.8518 8.563L20.6018 8.313V14.329C20.6018 16.032 21.1718 16.688 22.1488 16.688C23.0318 16.688 23.6878 16.196 23.9298 15.79L24.4138 16.36C23.9298 17.493 22.5548 18.063 21.2498 18.063C19.6328 18.063 18.3198 17.094 18.3198 15.227V8.398H16.3818V7.586C18.0078 7.422 19.2188 6.445 19.7028 3.766ZM26.6948 14.242L27.3428 15.789C27.5848 16.437 28.1548 17.094 29.4518 17.094C30.8348 17.094 31.4048 16.36 31.4048 15.469C31.4048 12.703 25.9598 13.516 25.9598 9.781C25.9598 7.672 27.6628 6.687 29.8578 6.687C30.8348 6.687 32.2958 6.851 33.0298 7.179C32.8658 7.991 32.7798 9.046 32.7798 9.859L31.9748 9.937L31.4048 8.312C31.2408 7.914 30.5848 7.585 29.7798 7.585C28.8028 7.585 27.8268 7.991 27.8268 9.046C27.8268 11.562 33.4358 10.999 33.4358 14.734C33.4358 16.851 31.5688 17.984 29.2878 17.984C27.5848 17.984 25.8738 17.328 25.8738 17.328C26.0378 16.359 25.9598 15.305 25.8738 14.242H26.6948ZM33.0308 22.039C33.2728 21.148 33.4368 20.016 33.6008 18.953L34.4918 18.875L34.8198 20.578C34.8978 20.984 35.1398 21.312 35.7888 21.312C36.8438 21.312 38.2268 20.664 39.5308 18.39C38.9528 17.007 37.2498 12.546 35.7028 9.132C35.2968 8.234 35.2188 8.155 34.6558 7.991L34.2418 7.835V7.015L36.6868 7.101L39.6868 6.937V7.75L38.9528 7.914C38.3828 7.992 38.1478 8.312 38.1478 8.641C38.1478 8.727 38.1478 8.805 38.2258 8.969C38.3818 9.461 39.6868 13.11 40.6638 15.547C41.4688 13.844 43.0158 10.024 43.2578 9.375C43.3438 9.047 43.4218 8.969 43.4218 8.727C43.4218 8.313 43.1798 8.071 42.6168 7.915L42.0388 7.75V6.938L44.3198 7.016L46.4288 6.938V7.75L46.0228 8.07C45.2108 8.398 45.1248 8.476 44.8038 9.132L41.2338 17.491C39.1168 22.288 36.9218 22.694 35.3818 22.694C34.4058 22.695 33.6718 22.445 33.0308 22.039Z\"\n      />\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 EtsyReviewsProps extends Omit<React.ComponentPropsWithoutRef<\"section\">, \"children\"> {\n  themeMode?: EtsyReviewsThemeMode;\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?: EtsyReviewItem[];\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?: EtsyReviewsFontValue;\n  reviewTextFont?: EtsyReviewsFontValue;\n  reviewerNameFont?: EtsyReviewsFontValue;\n  metaFont?: EtsyReviewsFontValue;\n  ctaFont?: EtsyReviewsFontValue;\n}\n\nexport function EtsyReviews({\n  themeMode = \"dark\",\n  accentColor = \"#F45800\",\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 = \"Etsy 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}: EtsyReviewsProps) {\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: EtsyReviewItem[] = 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              <EtsyMark 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"
}