.sunday-reviews {
  background: var(--ss-yellow-bright);
  padding-block: var(--ss-space-8) var(--ss-space-9);
  font-family: var(--ss-font-body);
}

.sunday-reviews .ss-container {
  overflow: visible;
}

.sunday-reviews__title {
  color: var(--ss-color-primary);
  font-size: var(--ss-display-lg);
  line-height: 0.9;
  margin-bottom: var(--ss-space-4);
  text-align: center;
}

.sunday-reviews__carousel-wrap {
  position: relative;
  overflow: visible;
}

.sunday-reviews__carousel {
  width: 100%;
  overflow: visible;
}

.sunday-reviews__track {
  /* Carousel tracks use overflow-x: auto, which also clips overflow-y.
     Pad the track so hover lift + shadow stay inside the scrollport. */
  --sunday-reviews-hover-pad-top: 0.25rem;
  --sunday-reviews-hover-pad-bottom: 1.75rem;
  list-style: none;
  margin: calc(-1 * var(--sunday-reviews-hover-pad-top)) 0
    calc(-1 * var(--sunday-reviews-hover-pad-bottom));
  padding: var(--sunday-reviews-hover-pad-top) 0
    var(--sunday-reviews-hover-pad-bottom);
}

.sunday-reviews__slide {
  height: 100%;
  overflow: visible;
}

.sunday-review {
  display: flex;
  flex-direction: column;
  gap: var(--ss-space-4);
  height: 100%;
  padding: var(--ss-space-6);
  background: var(--ss-color-surface-card);
  border-radius: 2rem;
}

.sunday-review--linked {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.sunday-review--linked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sunday-review__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--ss-space-4);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sunday-review__stars {
  display: flex;
  gap: 4px;
  color: var(--ss-red);
}

.sunday-review__stars svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sunday-review__title {
  margin: 0;
  font-family: var(--ss-font-body);
  font-size: var(--ss-font-size-md);
  font-weight: var(--ss-font-weight-bold);
  line-height: 1.2;
  color: var(--ss-black);
}

.sunday-review__body {
  flex: 1;
  margin: 0;
  font-size: var(--ss-font-size-sm);
  line-height: 1.4;
  color: var(--ss-black);
}

.sunday-review__meta {
  display: flex;
  gap: var(--ss-space-3);
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.sunday-review__author {
  font-size: var(--ss-font-size-sm);
  font-weight: var(--ss-font-weight-bold);
  line-height: 1.2;
  color: var(--ss-black);
}

.sunday-review__verified {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: var(--ss-font-size-sm);
  font-weight: var(--ss-font-weight-bold);
  line-height: 1;
  color: var(--ss-red);
  white-space: nowrap;
}

.sunday-review__verified-icon {
  display: inline-flex;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.sunday-review__verified-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sunday-review__divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ss-black);
}

.sunday-review__products {
  display: flex;
  gap: var(--ss-space-2);
  align-items: center;
  min-height: var(--sunday-review-thumb-height, 4.75rem);
}

.sunday-review__products img {
  display: block;
  width: auto;
  max-height: var(--sunday-review-thumb-height, 4.75rem);
  height: auto;
  object-fit: contain;
}

.sunday-reviews__button {
  position: absolute;
  inset-block-start: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ss-color-text);
  background: var(--ss-color-surface-card);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--ss-shadow-card);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.sunday-reviews__button:hover {
  opacity: 0.85;
}

.sunday-reviews__button:disabled {
  display: none;
}

.sunday-reviews__button--previous {
  inset-inline-start: 0;
  transform: translate(calc(-100% - 16px), -50%);
}

.sunday-reviews__button--previous svg {
  transform: rotate(180deg);
}

.sunday-reviews__button--next {
  inset-inline-end: 0;
  transform: translate(calc(100% + 16px), -50%);
}

@media (max-width: 959px) {
  .sunday-reviews__carousel {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: auto auto;
    row-gap: var(--ss-space-4);
  }

  .sunday-reviews__track {
    grid-column: 1 / -1;
    grid-row: 1;
    width: calc(100% + var(--page-padding, 16px) * 2);
    padding-inline: var(--page-padding, 16px);
    margin-inline: calc(-1 * var(--page-padding, 16px));
    scroll-padding-inline: var(--page-padding, 16px);
  }

  .sunday-review {
    padding: var(--ss-space-5);
    border-radius: 1.5rem;
  }

  .sunday-reviews__button {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .sunday-reviews__button--previous {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-inline-end: var(--ss-space-2);
  }

  .sunday-reviews__button--next {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    margin-inline-start: var(--ss-space-2);
  }
}
