.customer-style-gallery {
  --csg-accent: #e02020;
  --csg-ink: #171717;
  --csg-muted: #686868;
  --csg-line: #dedede;
  --csg-paper: #f7f7f5;
  background: #ffffff;
  color: var(--csg-ink);
  overflow: hidden;
}

.customer-style-gallery *,
.customer-style-gallery *::before,
.customer-style-gallery *::after {
  box-sizing: border-box;
}

.customer-style-gallery__reward {
  background: var(--csg-ink);
  color: #ffffff;
}

.customer-style-gallery__reward-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(420px, 1.6fr) auto;
  align-items: center;
  gap: 32px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.customer-style-gallery__eyebrow {
  margin: 0 0 9px;
  color: var(--csg-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.customer-style-gallery__reward h2,
.customer-style-gallery__gallery h2 {
  margin: 0;
  letter-spacing: 0;
}

.customer-style-gallery__reward h2 {
  max-width: 560px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.18;
}

.customer-style-gallery__reward-copy > p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: #d1d1d1;
  font-size: 14px;
  line-height: 1.55;
}

.customer-style-gallery__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-style-gallery__steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-style-gallery__steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #5d5d5d;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
}

.customer-style-gallery__steps strong {
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.customer-style-gallery__submit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--csg-accent);
  border-radius: 4px;
  background: var(--csg-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.customer-style-gallery__submit:hover,
.customer-style-gallery__submit:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--csg-ink);
}

.customer-style-gallery__terms {
  grid-column: 1 / -1;
  margin: -18px 0 0;
  color: #969696;
  font-size: 11px;
  line-height: 1.4;
}

.customer-style-gallery__gallery {
  padding-top: 54px;
  padding-bottom: 64px;
}

.customer-style-gallery__heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.customer-style-gallery__gallery h2 {
  font-size: 30px;
  line-height: 1.2;
}

.customer-style-gallery__heading-row > div:first-child > p:last-child {
  margin: 9px 0 0;
  color: var(--csg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.customer-style-gallery__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.customer-style-gallery__controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--csg-line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--csg-ink);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.customer-style-gallery__controls button:hover,
.customer-style-gallery__controls button:focus-visible {
  border-color: var(--csg-ink);
  background: var(--csg-ink);
  color: #ffffff;
}

.customer-style-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  overscroll-behavior-inline: contain;
  scrollbar-color: #bcbcbc transparent;
  scrollbar-width: thin;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (hover: hover) and (pointer: fine) {
  .customer-style-gallery__track {
    cursor: grab;
  }

  .customer-style-gallery__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .customer-style-gallery__track.is-dragging .customer-style-gallery__card {
    pointer-events: none;
  }
}

.customer-style-gallery__track:focus-visible {
  outline: 2px solid var(--csg-accent);
  outline-offset: 4px;
}

.customer-style-gallery__card {
  display: flex;
  flex: 0 0 clamp(230px, 22vw, 286px);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--csg-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--csg-ink);
  scroll-snap-align: start;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.customer-style-gallery__card:hover,
.customer-style-gallery__card:focus-visible {
  border-color: #8a8a8a;
  transform: translateY(-3px);
}

.customer-style-gallery__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--csg-paper);
}

.customer-style-gallery__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.customer-style-gallery__card:hover img {
  transform: scale(1.025);
}

.customer-style-gallery__image-wrap > span {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--csg-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.customer-style-gallery__card-copy {
  display: flex;
  min-height: 184px;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.customer-style-gallery__review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-style-gallery__review-meta span {
  color: #e58a00;
  font-size: 13px;
  line-height: 1;
}

.customer-style-gallery__review-meta time {
  color: #777777;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.customer-style-gallery__card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #3b3b3b;
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-style-gallery__card-copy strong {
  margin-top: auto;
  padding-top: 16px;
  color: var(--csg-ink);
  font-size: 13px;
  line-height: 1.3;
}

.customer-style-gallery__card-copy small {
  margin-top: 7px;
  color: #858585;
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 989px) {
  .customer-style-gallery__reward-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .customer-style-gallery__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-style-gallery__submit {
    justify-self: start;
  }

  .customer-style-gallery__terms {
    margin-top: -8px;
  }
}

@media (max-width: 749px) {
  .customer-style-gallery__reward-inner {
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .customer-style-gallery__reward h2 {
    font-size: 23px;
  }

  .customer-style-gallery__steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-style-gallery__submit {
    width: 100%;
  }

  .customer-style-gallery__gallery {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .customer-style-gallery__heading-row {
    align-items: center;
    margin-bottom: 18px;
  }

  .customer-style-gallery__gallery h2 {
    font-size: 24px;
  }

  .customer-style-gallery__heading-row > div:first-child > p:last-child {
    max-width: 280px;
  }

  .customer-style-gallery__controls {
    display: none;
  }

  .customer-style-gallery__track {
    gap: 12px;
    margin-right: -20px;
  }

  .customer-style-gallery__card {
    flex-basis: 76vw;
    max-width: 310px;
  }

  .customer-style-gallery__card-copy {
    min-height: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-style-gallery__card,
  .customer-style-gallery__image-wrap img,
  .customer-style-gallery__controls button {
    transition: none;
  }
}
