/* Shared by the listing grid and the next-step/similar/requested-item cards. */
a[href^="/itemdetail/"] > .cursor-pointer.flex-col > .align-right,
.swiper-slide .cursor-pointer.flex-col > .align-right {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto;
  min-width: 0;
}

a[href^="/itemdetail/"] > .cursor-pointer.flex-col > .align-right > div:first-child,
.swiper-slide .cursor-pointer.flex-col > .align-right > div:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.5;
  height: 3em;
}

a[href^="/itemdetail/"] > .cursor-pointer.flex-col > .align-right > .border-bottom-grey,
.swiper-slide .cursor-pointer.flex-col > .align-right > .border-bottom-grey {
  height: 0 !important;
  padding-bottom: 0 !important;
  flex: 0 0 auto;
}

.border-gray1-16 a[href^="/itemdetail/"] > .cursor-pointer.flex-col > div:first-child > img {
  height: 200px !important;
  width: 100% !important;
}

.swiper-slide .cursor-pointer.flex-col > div:first-child > img {
  height: 200px !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .border-gray1-16 a[href^="/itemdetail/"] > .cursor-pointer.flex-col > div:first-child > img {
    height: 150px !important;
  }
}

@media (max-width: 699px) {
  .swiper-slide .cursor-pointer.flex-col > div:first-child > img {
    height: 160px !important;
  }
}
