/* Reviews carousel for screen 1 (lib/funnel/landing.js): the rules of
   public/fresh-food/assets/recipe-detail.css that style .recipe-review*,
   copied so the recipe page's global styles stay out of the funnel. */

.recipe-section--reviews {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  margin-bottom: 0;
  --recipe-accent-soft: #e8edf5;
  background: #e8edf5;
}
.recipe-reviews__quotes {
  position: absolute;
  top: 1.25rem;
  right: clamp(0.5rem, 4vw, 3rem);
  z-index: 0;
  width: clamp(10rem, 22vw, 18rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.recipe-reviews__header {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.recipe-reviews__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: var(--font-weight-regular);
  color: var(--pawy-blue);
  margin: 0 0 0.85rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.recipe-reviews__lead {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  color: var(--pawy-blue);
}
.recipe-reviews {
  position: relative;
  z-index: 1;
}
.recipe-reviews--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}
.recipe-reviews__viewport {
  width: 100%;
  --reviews-gap: 1rem;
  --reviews-visible: 5;
  padding: 1.75rem 0 1.25rem;
  overflow: visible;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
}
.recipe-reviews__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.recipe-reviews__track {
  display: flex;
  align-items: stretch;
  gap: var(--reviews-gap);
  touch-action: pan-y;
  will-change: transform;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.recipe-review {
  flex: 0 0
    calc((100vw - (var(--reviews-visible) - 1) * var(--reviews-gap)) / var(--reviews-visible));
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 43, 125, 0.08);
  transform-origin: center bottom;
  transform: rotate(var(--review-rotate, 0deg)) scale(var(--review-scale, 1))
    translateY(var(--review-drop, 0px));
  will-change: transform;
  color: inherit;
  text-decoration: none;
}
a.recipe-review--linked {
  cursor: pointer;
  touch-action: manipulation;
}
a.recipe-review--linked:hover,
a.recipe-review--linked:focus {
  text-decoration: none;
}
a.recipe-review--linked:focus-visible {
  outline: 2px solid var(--pawy-blue);
  outline-offset: 3px;
}
@media (hover: hover) {
  a.recipe-review--linked:hover {
    box-shadow: 0 12px 28px rgba(16, 43, 125, 0.12);
  }
  a.recipe-review--linked:hover .recipe-review__owner-name,
  a.recipe-review--linked:focus-visible .recipe-review__owner-name {
    text-decoration: underline;
    text-decoration-color: rgba(16, 43, 125, 0.35);
    text-underline-offset: 0.2em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-reviews__track,
  .recipe-review {
    will-change: auto;
  }
}
.recipe-review__media {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
}
.recipe-section--reviews .recipe-review__owner-avatar {
  background: rgba(16, 43, 125, 0.08);
}
.recipe-review__photo-wrap {
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}
.recipe-review__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-review__photo--placeholder {
  background: linear-gradient(145deg, #f4f7ff 0%, #e8eefc 100%);
}
.recipe-review__owner--rating-only {
  justify-content: flex-start;
}
.recipe-review__tag {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 1rem);
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  background: var(--pawy-yellow);
  color: var(--pawy-blue);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 43, 125, 0.12);
  transform: translate(-50%, 50%);
}
.recipe-review__tag-icon {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}
.recipe-review__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: clamp(9.5rem, 11.5vw, 11rem);
  padding: calc(2.35rem + 5px) calc(1.05rem + 5px) calc(1.45rem + 5px);
  border-radius: 0 0 22px 22px;
  background: #fff;
}
.recipe-review__owner .recipe-review__stars {
  margin: 0;
  color: var(--pawy-yellow);
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.recipe-review blockquote {
  margin: 0 0 0.9rem;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pawy-blue);
}
.recipe-review__owner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}
.recipe-review__owner-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.recipe-review__owner-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--recipe-accent-soft);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--pawy-blue);
}
.recipe-review__owner-name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--pawy-blue);
}
.recipe-reviews__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(-2.3rem);
}
.recipe-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--pawy-blue);
}
.recipe-reviews__rating strong {
  font-weight: var(--font-weight-bold);
}
.recipe-reviews__star {
  color: var(--pawy-yellow);
  flex-shrink: 0;
}
.recipe-reviews__verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--pawy-blue);
}
.recipe-reviews__verified strong {
  font-weight: var(--font-weight-bold);
}
.recipe-reviews__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
}
.recipe-reviews__all {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--pawy-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(16, 43, 125, 0.35);
}
.recipe-reviews__all:hover,
.recipe-reviews__all:focus {
  text-decoration-color: var(--pawy-blue);
}
.recipe-reviews__cta {
  width: min(100%, 22rem);
  min-height: 54px;
  border-radius: var(--radius-pill);
}
@media (max-width: 1024px) {
  .recipe-reviews__viewport {
    --reviews-visible: 3;
  }
}
@media (max-width: 900px) {
  .recipe-reviews__viewport {
    --reviews-visible: 2;
  }
}
@media (max-width: 640px) {
  .recipe-reviews__viewport {
    --reviews-visible: 1.7;
    --reviews-gap: 0.65rem;
    padding: 1rem 0 0.75rem;
  }
  .recipe-reviews__track {
    padding-top: 0.35rem;
    padding-bottom: 1.5rem;
  }
  .recipe-reviews__trust {
    transform: translateY(calc(-2.3rem + 35px));
  }
  .recipe-reviews__cta {
    transform: translateY(10px);
  }
  .recipe-review {
    border-radius: 16px;
  }
  .recipe-review__media,
  .recipe-review__photo-wrap {
    border-radius: 16px 16px 0 0;
  }
  .recipe-review__body {
    min-height: 8rem;
    padding: calc(2.15rem + 5px) calc(0.65rem + 5px) calc(1rem + 5px);
    border-radius: 0 0 16px 16px;
  }
  .recipe-review blockquote {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0.55rem;
  }
  .recipe-review__tag {
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    font-size: 14px;
    padding: 0.38rem 1rem;
    max-width: calc(100% - 5px);
    white-space: normal;
    text-align: center;
  }
  .recipe-review__tag > span {
    min-width: 0;
  }
  .recipe-review__tag-icon {
    width: 1.15rem;
    height: 1.15rem;
  }
  .recipe-review__owner .recipe-review__stars {
    font-size: 15px;
  }
  .recipe-review__owner {
    gap: 0.45rem;
  }
  .recipe-review__owner-meta {
    gap: 0.08rem;
  }
  .recipe-review__owner-avatar {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 13px;
  }
  .recipe-review__owner-name {
    font-size: 13px;
  }
  .recipe-reviews__quotes {
    display: none;
  }
}
