/* Media query for screens with a maximum width of 767px */
@media only screen and (max-width: 767px) {
  .size-chart {
    margin: 0 -1rem;
  }
}

/* Style for the size chart table */
.size-chart table {
  border-collapse: collapse;
}

.size-chart table th,
.size-chart table td {
  border-bottom: 1px solid var(--color-4);
  padding: 1.5rem 0;
  font-family: 'semplicitapro' !important;
  text-align: left !important; }
}

.size-chart table td {
  font-size: .875rem;
  font-weight: 500;
}

.size-chart table th,
.size-chart table td:first-child {
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
}

/* Style for the mobile dropdown */
.size-chart__mobile-dropdown {
  margin-bottom: 1.5rem;
  background-color: #fff;
  z-index: 200;
  position: sticky;
  top: -1rem;
}

/* Media query for screens with a minimum width of 768px */
@media only screen and (min-width: 768px) {
  .size-chart__mobile-dropdown {
    display: none;
  }
}

/* Media query for screens with a maximum width of 767px */
@media only screen and (max-width: 767px) {
  .size-chart__tabs {
    padding: 0 1rem;
  }

  .size-chart__tabs > label {
    display: none;
  }
}

/* Style for text and image combination in the size chart */
.size-chart__text-img {
  display: flex;
}

/* Media query for screens with a maximum width of 767px */
@media only screen and (max-width: 767px) {
  .size-chart__text-img {
    flex-direction: column-reverse;
    align-items: center;
  }
}

.size-chart__text-img ol {
  padding: 1rem 0;
  margin: 0;
  counter-reset: item;
  list-style-type: none;
}

.size-chart__text-img li {
  --space-top: 1.5rem;
  position: relative;
  display: block;
  padding: var(--space-top);
  border-bottom: 1px solid var(--color-4);
  margin-left: .5rem;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.size-chart__text-img li::before {
  position: absolute;
  left: 0;
  top: var(--space-top);
  content: counter(item);
  counter-increment: item;
}

.size-chart__text-img li span {
  margin-top: .5rem;
  text-transform: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: normal;
  display: block;
}

.size-chart__text-img img {
  object-fit: contain;
}
