button.ds-actioned-link {
  background-color: transparent;
  cursor: pointer;
}

.ds-actioned-link {
  align-items: center;
  border: solid 0.0625rem var(--ds-color-london-85);
  border-radius: 1rem;
  box-sizing: border-box;
  display: inline-flex;
  font-family: var(--ds-type-system-sans-lining);
  font-size: var(--ds-type-scale-0);
  font-weight: 400;
  height: 2rem;
  line-height: var(--ds-type-leading-border-link);
  margin: 0;
  padding: 0.25rem var(--ds-grid-gap) 0.25rem calc(var(--ds-grid-gap) - 0.25rem);
  text-decoration: none;
  span {
    border-bottom: 0.0625rem solid transparent;
    color: var(--ds-color-london-5);
    margin: 0.125rem 0 0 0;
    transition: border-color var(--ds-interactions-transition), color var(--ds-interactions-transition);
    will-change: border-color, color;
  }
  &:hover {
    span {
      border-bottom-color: var(--ds-color-chicago-30);
      color: var(--ds-color-chicago-30);
    }
  }
  &:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.125rem var(--ds-color-chicago-30);
    outline: solid transparent;
  }
  &:active {
    border-color: var(--ds-color-chicago-45);
    box-shadow: none;
    span {
      border-bottom-color: transparent;
      color: var(--ds-color-london-5);
    }
  }
  &::before {
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    height: 1.5rem;
    margin: 0 0.375rem 0 0;
    width: 1.5rem;
  }
  &.ds-actioned-link--disabled {
    border-color: var(--ds-color-london-95);
    cursor: default;
    span {
      color: #8C8C8C;
    }
  }
  &.ds-actioned-link--complete,
  &.ds-actioned-link--toggled {
    background-color: var(--ds-color-los-angeles-95);
    border-color: var(--ds-color-los-angeles-95);
    span {
      color: var(--ds-color-london-5);
    }
  }
  &.ds-actioned-link--complete {
    cursor: default;
    &:hover {
      span {
        border-bottom-color: transparent;
      }
    }
  }
  &.ds-actioned-link--disabled:hover {
    span {
      border-bottom-color: transparent;
      color: #8C8C8C;
    }
  }
}

.ds-actioned-link--minor {
  font-size: var(--ds-type-scale--1);
  height: 1.5rem;
  padding: 0.125rem var(--ds-grid-gap) 0.125rem calc(var(--ds-grid-gap) - 0.25rem);
  &::before {
    height: 1rem;
    margin-right: 0.25rem;
    width: 1rem;
  }
}

.ds-actioned-link--add {
  &::before {
    background-image: url('eds://common/static/images/icons/material-add--action.svg');
  }
}

.ds-actioned-link--download {
  &::before {
    background-image: url('eds://common/static/images/icons/material-download--action.svg');
  }
}

.ds-actioned-link--edit {
  &::before {
    background-image: url('eds://common/static/images/icons/material-edit--action.svg');
  }
}

.ds-actioned-link--listen {
  &::before {
    background-image: url('eds://common/static/images/icons/material-listen--action.svg');
  }
}

.ds-actioned-link--remove {
  &::before {
    background-image: url('eds://common/static/images/icons/material-remove--action.svg');
  }
}

.ds-actioned-link--reuse-this-content {
  &::before {
    background-image: url('eds://common/static/images/icons/material-reuse--action.svg');
  }
}

.ds-actioned-link--the-trust-project {
  &::before {
    background-image: url('eds://common/static/images/icons/trust-project.svg');
  }
}

.ds-actioned-link--watch {
  &::before {
    background-image: url('eds://common/static/images/icons/material-watch--action.svg');
  }
}

.ds-actioned-link--copy {
  &::before {
    background-image: url('eds://common/static/images/icons/material-copy--action.svg');
  }
}

.ds-actioned-link--check {
  &::before {
    background-image: url('eds://common/static/images/icons/material-check--action.svg');
  }
}

.ds-actioned-link--apple-podcasts {
  &::before {
    background-image: url('eds://common/static/images/icons/apple-podcasts.svg');
  }
}

.ds-actioned-link--google-podcasts {
  &::before {
    background-image: url('eds://common/static/images/icons/google-podcasts.svg');
  }
}

.ds-actioned-link--user {
  &::before {
    background-image: url('eds://common/static/images/icons/material-icon--person.svg');
  }
}

.ds-actioned-link--gift {
  &::before {
    background-image: url('eds://common/static/images/icons/material-gift--light.svg');
  }
}

.ds-actioned-link--share {
  &::before {
    background-image: url('eds://common/static/images/icons/material-share--light.svg');
  }
}

.ds-actioned-link--bin {
  &::before {
    background-image: url('eds://common/static/images/icons/material-bin--light.svg');
    height: 1rem;
    width: 1rem;
  }
}

.ds-actioned-link--saved {
  &::before {
    background-image: url('eds://common/static/images/icons/bookmark.svg');
  }
}

.ds-actioned-link--save {
  &::before {
    background-image: url('eds://common/static/images/icons/bookmark-border.svg');
  }
}

.ds-actioned-link--apple-podcasts-coloured {
  &::before {
    background-image: url('eds://common/static/images/icons/apple-podcasts-coloured.svg');
  }
}

.ds-actioned-link--google-podcasts-coloured {
  &::before {
    background-image: url('eds://common/static/images/icons/google-podcasts-coloured.svg');
  }
}

.ds-actioned-link--spotify {
  &::before {
    background-image: url('eds://common/static/images/icons/spotify.svg');
  }
}

.ds-actioned-link--rss {
  &::before {
    background-image: url('eds://common/static/images/icons/rss.svg');
  }
}

.ds-actioned-link--indicator {
  &::before {
    -moz-animation: rotate 1s linear infinite;
    -webkit-animation: rotate 1s linear infinite;
    animation: rotate 1s linear infinite;
    background-image: url('eds://common/static/images/icons/indicator.svg');
    height: 1.25rem;
    width: 1.25rem;
  }
}

.ds-actioned-link--minor.ds-actioned-link--indicator {
  &::before {
    height: 1rem;
    width: 1rem;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes rotate {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.ds-actioned-link--disabled {
  &.ds-actioned-link--add::before {
    background-image: url('eds://common/static/images/icons/material-add--action-disabled.svg');
  }
}
