/* Make It a Match — Print Studio under-gallery style */
.lp-match-under-gallery {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
}

.lp-match-under-gallery .lp-match-panel,
.lp-match-panel {
  display: grid;
  grid-template-columns: minmax(145px, 0.82fr) minmax(0, 1.75fr);
  gap: 13px;
  align-items: center;
  padding: 15px 14px 14px;
  background: #fff;
  border: 1px solid #e7ece7;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(40, 70, 48, 0.045);
  overflow: hidden;
  box-sizing: border-box;
}

.lp-match-under-gallery .lp-match-copy,
.lp-match-copy {
  max-width: none;
  padding: 2px;
  min-width: 0;
}

.lp-match-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #66866d;
  margin: 0 0 7px;
}

.lp-match-copy h2 {
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #285d3c;
  margin: 0 0 8px;
  font-weight: 850;
}

.lp-match-copy p {
  max-width: none;
  font-size: 10px;
  line-height: 1.55;
  color: #778279;
  margin: 0 0 11px;
}

.lp-match-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #245b39;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.lp-match-cta:hover {
  background: #19472b;
  transform: translateY(-1px);
}

.lp-shelf-wrap {
  min-width: 0;
  position: relative;
}

.lp-shelf-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin: 0 1px 6px;
}

.lp-shelf-hint {
  font-size: 9px;
  color: #879188;
  margin-right: 4px;
}

.lp-scroll-btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #e2e9e2;
  background: #fff;
  color: #356247;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.lp-scroll-btn:hover {
  background: #285d3c;
  border-color: #285d3c;
  color: #fff;
}

.lp-match-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1px 1px 3px;
  min-width: 0;
}

.lp-match-track::-webkit-scrollbar {
  display: none;
}

.lp-match-card {
  flex: 0 0 128px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8ece8;
  border-radius: 13px;
  padding: 7px 7px 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lp-match-card:hover {
  transform: translateY(-2px);
  border-color: #b9cfbd;
  box-shadow: 0 7px 16px rgba(40, 70, 48, 0.08);
}

.lp-match-art {
  height: 88px;
  border-radius: 9px;
  overflow: hidden;
  background: #f4f6f3;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}

.lp-match-art img,
.lp-match-art .image,
.lp-match-art picture,
.lp-match-art picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-match-card strong,
.lp-kit__name {
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: #315d40;
  margin: 0 0 3px;
  font-weight: 800;
}

.lp-match-card small,
.lp-kit__sub,
.lp-kit__price {
  font-size: 8px;
  color: #879188;
  line-height: 1.35;
  display: block;
}

.lp-kit__shape {
  display: block;
  width: 58%;
  height: 34%;
  border-radius: 999px;
  background: #d7c4b4;
  opacity: 0.85;
}

.lp-kit__media--bowl .lp-kit__shape {
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: #c9b7a6;
}

.lp-kit__media--roller .lp-kit__shape {
  width: 28%;
  height: 58%;
  border-radius: 999px;
  background: #cbb9a8;
}

.lp-match-empty {
  flex: 1;
  min-height: 88px;
  display: grid;
  place-items: center;
  color: #879188;
  font-size: 11px;
  border: 1px dashed #dce5dd;
  border-radius: 12px;
  padding: 12px;
}

.lp-nav-foot {
  font-size: 8px;
  color: #8d968f;
  margin-top: 7px;
}

.lp-nav-foot strong {
  color: #536c59;
}

@media (max-width: 900px) {
  .lp-match-under-gallery {
    margin-top: 15px;
  }

  .lp-match-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .lp-match-copy p {
    max-width: 560px;
  }

  .lp-match-card {
    flex-basis: 142px;
  }

  .lp-match-art {
    height: 98px;
  }
}

@media (max-width: 640px) {
  .lp-match-under-gallery {
    margin-top: 13px;
  }

  .lp-match-panel {
    padding: 13px 11px;
    border-radius: 15px;
    gap: 9px;
  }

  .lp-match-copy h2 {
    font-size: 23px;
  }

  .lp-match-copy p {
    font-size: 10px;
    margin-bottom: 9px;
  }

  .lp-match-cta {
    padding: 9px 12px;
    font-size: 10px;
  }

  .lp-match-card {
    flex-basis: 132px;
    padding: 7px;
  }

  .lp-match-art {
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-match-card,
  .lp-match-cta {
    transition: none;
  }
}
