section.mdl.tags.tags-one {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: var(--nn-tag-height);
  padding: 10px 0 12px;
  overflow: visible;
  border-bottom: 1px solid rgba(12, 14, 18, .05);
}

div.mdl.tags.list {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

div.mdl.tags.list::-webkit-scrollbar {
  display: none;
}

a.mdl.tags.item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 31px;
  padding: 7px 14px;
  border: 1px solid rgba(12, 14, 18, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--nn-text);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
  transition: background-color .18s var(--nn-ease), border-color .18s var(--nn-ease), transform .18s var(--nn-ease);
}

span.mdl.tags.item.count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(12, 14, 18, .08);
  color: var(--nn-text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

a.mdl.tags.item:hover,
a.mdl.tags.item.is-active {
  border-color: rgba(12, 14, 18, .18);
  background: var(--nn-dark);
  color: #fff;
  transform: translateY(-1px);
}

a.mdl.tags.item:hover span.mdl.tags.item.count,
a.mdl.tags.item.is-active span.mdl.tags.item.count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

a.mdl.tags.item.alltags {
  justify-self: end;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 560px) {
  section.mdl.tags.tags-one {
    gap: 6px;
    padding: 8px 0 10px;
  }

  div.mdl.tags.list {
    gap: 6px;
  }

  a.mdl.tags.item {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 12px;
  }
}
