.thesale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.thesale-grid--ranking {
  counter-reset: ranking;
}

.thesale-grid__item {
  display: block;
}

.thesale-grid__item:hover {
  text-decoration: none;
}

.thesale-grid--ranking .thesale-grid__item {
  position: relative;
}

.thesale-grid--ranking .thesale-grid__item::before {
  counter-increment: ranking;
  content: counter(ranking);
  display: block;
  position: absolute;
  top: 8px;
  left: 8px;
  height: 30px;
  width: 30px;
  border-radius: 15px;
  background-color: #333;
  z-index: 1;
  font-size: 13px;
  font-family: Roboto;
  line-height: 30px;
  text-align: center;
  color: #fff;
}

.thesale-grid--ranking li:nth-child(1) .thesale-grid__item::before {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    #dbaf00 0%,
    #dbaf00 50%,
    #b89300 50%,
    #b89300 100%
  );
}

.thesale-grid--ranking li:nth-child(2) .thesale-grid__item::before {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    #9c9c9c 0%,
    #9c9c9c 50%,
    #686868 50%,
    #686868 100%
  );
}

.thesale-grid--ranking li:nth-child(3) .thesale-grid__item::before {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    #995e00 0%,
    #995e00 50%,
    #7b4b00 50%,
    #7b4b00 100%
  );
}

.thesale-grid__label {
  background-color: #000;
  color: #fff;
  opacity: 0.7;
  font-family: Roboto;
  font-size: 14px;
  line-height: 1;
  width: fit-content;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.thesale-grid__label strong {
  font-weight: 700;
  font-size: 20px;
}

.thesale-grid__image-wrap {
  display: block;
  position: relative;
}

.thesale-grid__image-wrap img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  display: block;
  width: 100%;
}

.thesale-grid__image-wrap:hover img {
  opacity: 0.8;
}

.thesale-grid__text-wrap {
  display: grid;
  grid-template-columns: 1 1fr;
  row-gap: 8px;
  margin-top: 12px;
}

.thesale-grid__shopname {
  font-size: 14px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #333;
}

.thesale-grid__discount-price {
  color: #bf0000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
}

.thesale-grid__discount-price strong {
  font-family: Roboto;
  font-size: 18px;
  font-weight: 500;
}

.thesale-grid__price {
  color: #717171;
  font-size: 11px;
  line-height: 1;
  display: inline-block;
}

.thesale-grid__price span {
  font-family: Roboto;
  font-size: 12px;
  text-decoration: line-through;
}

.thesale-ranking-tab.ecm-tab-container{
  overflow-x: scroll;
}

.thesale-ranking-tab .ecm-tab {
  /* min-width: 120px; */
  flex:1;
  color: #8f8f8f;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.thesale-ranking-tab .ecm-tab[aria-selected="true"] {
  color: #333;
  border-bottom-color: #333;
}

.loadingIcon {
  display: block;
  position: relative;
  top: 50%;
  left: 50%;
  z-index: 1;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M13.8462%200V1.87774C18.5649%202.75576%2022.1538%206.92099%2022.1538%2011.9215C22.1538%2017.5566%2017.5985%2022.1418%2012%2022.1418C6.40154%2022.1418%201.84615%2017.5566%201.84615%2011.9215C1.84615%206.92099%205.43508%202.75576%2010.1538%201.87774V0C4.40492%200.895668%200%205.88409%200%2011.9215C0%2018.5916%205.37231%2024%2012%2024C18.6277%2024%2024%2018.5916%2024%2011.9215C24%205.88409%2019.5951%200.895668%2013.8462%200Z%22%20fill%3D%22%2369767B%22%2F%3E%3C%2Fsvg%3E');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  animation: loadingAnimation 1s linear infinite;
}
@keyframes loadingAnimation {
  0%{ transform:rotate(0);}
  100%{ transform:rotate(360deg); }
}