.dt-size-chart {
  max-width: 100%;
  color: #222;
}

.dt-size-chart__note {
  margin: 0 0 1.25rem;
}

.dt-size-chart__section {
  margin: 0 0 1.75rem;
}

.dt-size-chart__section h3 {
  margin: 0 0 0.75rem;
}

.dt-size-chart__table-wrap {
  max-width: 100%;
}

.dt-size-chart__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.95rem;
}

.dt-size-chart__table th,
.dt-size-chart__table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid #dedede;
  text-align: left;
  vertical-align: middle;
}

.dt-size-chart__table thead th {
  background: #f4f4f4;
  font-weight: 600;
}

.dt-size-chart__table tbody th {
  font-weight: 600;
}

.dt-size-chart__footnote,
.dt-size-chart__source {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .dt-size-chart__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dt-size-chart__table,
  .dt-size-chart__table tbody {
    display: block;
    width: 100%;
  }

  .dt-size-chart__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 0.75rem;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 4px;
  }

  .dt-size-chart__table tbody th,
  .dt-size-chart__table tbody td {
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 0;
    border-top: 1px solid #eee;
    overflow-wrap: anywhere;
  }

  .dt-size-chart__table tbody tr > :first-child {
    grid-column: 1 / -1;
    border-top: 0;
    background: #f4f4f4;
  }

  .dt-size-chart__table tbody td::before {
    display: block;
    margin-bottom: 0.15rem;
    color: #666;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
  }
}
