:root {
  --fpd-pink: #e8a0bf;
  --fpd-pink-deep: #d478a0;
  --fpd-blush: #fff4f8;
  --fpd-cream: #FEEDF4;
  --fpd-ink: #4a3040;
  --fpd-muted: #8a6b7a;
  --fpd-line: #f3d4e2;
  --fpd-star: #f0b429;
  --fpd-star-empty: #f3d4e2;
  --fpd-shadow: 0 18px 50px rgba(212, 120, 160, 0.12);
  --fpd-card-w: min(78vw, 280px);
  --fpd-pad: 16px;
  --fpd-radius: 20px;
}

* { box-sizing: border-box; }

#fpd-reviews {
  display: block;
  width: 100%;
  max-width: 100%;
}

.fpd-widget {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--fpd-ink);
  background: var(--fpd-cream);
  border: 1px solid var(--fpd-line);
  border-radius: var(--fpd-radius);
  box-shadow: var(--fpd-shadow);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
}

.fpd-carousel {
  position: relative;
  overflow: hidden;
  padding: 16px 0 18px;
}

.fpd-carousel::before,
.fpd-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  width: clamp(16px, 4vw, 36px);
  z-index: 1;
  pointer-events: none;
}

.fpd-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--fpd-cream), transparent);
}

.fpd-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--fpd-cream), transparent);
}

.fpd-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px var(--fpd-pad);
  animation: fpd-scroll var(--fpd-duration, 90s) linear infinite;
  touch-action: pan-y;
}

.fpd-card {
  background: #fff;
  border: 1px solid var(--fpd-line);
  border-radius: 18px;
  padding: 14px;
  flex: 0 0 var(--fpd-card-w);
  width: var(--fpd-card-w);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.fpd-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.fpd-buyer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}

.fpd-buyer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42vw;
}

.fpd-verified {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #e89bb8;
}

.fpd-meta {
  color: var(--fpd-muted);
  font-size: 12px;
  margin-top: 2px;
}

.fpd-stars {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.fpd-stars svg {
  width: 14px;
  height: 14px;
  display: block;
}

.fpd-stars .fpd-star-on {
  fill: var(--fpd-star);
  stroke: #e0a21f;
}

.fpd-stars .fpd-star-off {
  fill: var(--fpd-star-empty);
  stroke: #e8c1d2;
}

.fpd-comment {
  margin: 0;
  font-size: clamp(14px, 3.2vw, 15px);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fpd-item {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--fpd-pink-deep);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fpd-item:hover { text-decoration: underline; }

.fpd-empty {
  text-align: center;
  color: var(--fpd-muted);
  padding: 30px 10px;
}

.fpd-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--fpd-pad) 16px;
  font-size: 12px;
}

.fpd-footer a {
  color: var(--fpd-pink-deep);
  font-weight: 700;
  text-decoration: none;
}

@keyframes fpd-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

@media (hover: hover) and (pointer: fine) {
  .fpd-widget:hover .fpd-track,
  .fpd-widget:focus-within .fpd-track {
    animation-play-state: paused;
  }
}

@media (min-width: 640px) {
  :root {
    --fpd-card-w: min(42vw, 300px);
    --fpd-pad: 20px;
    --fpd-radius: 24px;
  }

  .fpd-buyer span {
    max-width: none;
  }

  .fpd-stars svg {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fpd-card-w: 300px;
    --fpd-pad: 28px;
  }

  #fpd-reviews {
    width: 90vw;
    max-width: 90vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .fpd-card {
    min-height: 220px;
    padding: 16px;
  }

  .fpd-track {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fpd-track {
    animation: none;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

