@layer components {
  /*
   * Tag
   */
  
  .vocabulary-cell {
    display: flex;
    flex-direction: column;
    align-content: space-between;
  }
  
  .tag-row {
    max-height: auto;
    flex: 1;
  }
  
  .tag {
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    padding: 2px 1px 2px 8px;
    border-radius: 5px;
    background-color: var(--color-primary-lighter);
    color: var(--color-white);
    align-items: center;
    margin: 2px 2px 2px 3px;
  
    .tag-exit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 4px;
      border: 0;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      background-color: rgb(var(--rgb-black) / 0);
      transition: background-color 0.2s ease;
      outline: 0;
      padding: 0;
      cursor: pointer;
  
      i {
        color: white;
        font-size: 12px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
      }
  
      &:hover {
        background-color: rgb(var(--rgb-black) / 0.35);
      }
  
      &:active {
        transition: 0;
        background-color: rgb(var(--rgb-black) / 0.55);
      }
    }
  }
  
  .tag-form {
    margin-left: auto;
  
    select {
      border: 1px solid var(--color-grey-100);
      border-radius: 4px;
      color: inherit;
      font-size: 0.9rem;
      outline: none;
      padding: 3px 1px 3px 3px;
  
      @media (max-width: 639.98px) {
        font-size: 0.938rem;
      }
  
      &:hover {
        border: 1px solid var(--color-grey-400);
        outline: none;
      }
  
      &::-ms-expand {
        display: none;
      }
    }
  }
}
