.nenashi-recently-viewed {
  width: 100%;
  margin: 36px 0 24px;
  padding: 24px 0 8px;
  border-top: 1px solid #eceff3;
  background: #fff;
}

.nenashi-recently-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px 18px;
}

.nenashi-recently-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 600;
  color: #111;
}

.nenashi-recently-arrows {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid #eceff3;
  border-radius: 30px;
  background: #fff;
}

.nenashi-recently-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 20px;
  cursor: pointer;
}

.nenashi-recently-arrow:active {
  background: #f2f3f5;
}

.nenashi-recently-track {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 0 20px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.nenashi-recently-track::-webkit-scrollbar {
  display: none;
}

.nenashi-recent-card {
  flex: 0 0 245px;
  max-width: 245px;
  overflow: hidden;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: #fff;
  scroll-snap-align: start;
}

.nenashi-recent-image-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f8fa;
}

.nenashi-recent-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nenashi-recent-body {
  padding: 14px 15px 16px;
}

.nenashi-recent-name {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #17191d;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nenashi-recent-price {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

@media (max-width: 767px) {
  html.route-product-product .nenashi-recently-viewed {
    position: relative;
    left: 50%;
    width: 100vw;
    margin: 30px 0 88px -50vw;
    padding-top: 22px;
  }

  html.route-product-product .nenashi-recently-head {
    margin-right: 14px;
    margin-left: 14px;
  }

  html.route-product-product .nenashi-recently-title {
    font-size: 22px;
  }

  html.route-product-product .nenashi-recently-track {
    gap: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  html.route-product-product .nenashi-recent-card {
    flex-basis: min(76vw, 285px);
    max-width: min(76vw, 285px);
  }
}
